/linux-4.19.296/drivers/regulator/ |
D | da9062-regulator.c | 55 struct regulator_desc desc; member 72 struct regulator_desc desc; member 326 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9062_set_suspend_voltage() 329 rdev->desc->vsel_mask, sel); in da9062_set_suspend_voltage() 428 .desc.id = DA9061_ID_BUCK1, 429 .desc.name = "DA9061 BUCK1", 430 .desc.of_match = of_match_ptr("buck1"), 431 .desc.regulators_node = of_match_ptr("regulators"), 432 .desc.ops = &da9062_buck_ops, 433 .desc.min_uV = (300) * 1000, [all …]
|
D | helpers.c | 36 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 40 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 42 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 43 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 44 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap() 47 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 48 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap() 67 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap() 68 val = rdev->desc->disable_val; in regulator_enable_regmap() 70 val = rdev->desc->enable_val; in regulator_enable_regmap() [all …]
|
D | qcom_rpm-regulator.c | 60 struct regulator_desc desc; member 454 .desc.linear_ranges = pldo_ranges, 455 .desc.n_linear_ranges = ARRAY_SIZE(pldo_ranges), 456 .desc.n_voltages = 161, 457 .desc.ops = &uV_ops, 464 .desc.linear_ranges = nldo_ranges, 465 .desc.n_linear_ranges = ARRAY_SIZE(nldo_ranges), 466 .desc.n_voltages = 64, 467 .desc.ops = &uV_ops, 474 .desc.linear_ranges = smps_ranges, [all …]
|
D | palmas-regulator.c | 481 pmic->desc[id].enable_val = pmic->current_reg_mode[id]; in palmas_set_mode_smps() 905 struct regulator_desc *desc; in palmas_ldo_registration() local 919 desc = &pmic->desc[id]; in palmas_ldo_registration() 920 desc->name = rinfo->name; in palmas_ldo_registration() 921 desc->id = id; in palmas_ldo_registration() 922 desc->type = REGULATOR_VOLTAGE; in palmas_ldo_registration() 923 desc->owner = THIS_MODULE; in palmas_ldo_registration() 926 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in palmas_ldo_registration() 928 desc->ops = &palmas_ops_ext_control_ldo; in palmas_ldo_registration() 930 desc->ops = &palmas_ops_ldo; in palmas_ldo_registration() [all …]
|
/linux-4.19.296/include/uapi/linux/usb/ |
D | audio.h | 267 static inline __u8 uac_mixer_unit_bNrChannels(struct uac_mixer_unit_descriptor *desc) in uac_mixer_unit_bNrChannels() argument 269 return desc->baSourceID[desc->bNrInPins]; in uac_mixer_unit_bNrChannels() 272 static inline __u32 uac_mixer_unit_wChannelConfig(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_wChannelConfig() argument 276 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig() 277 desc->baSourceID[desc->bNrInPins + 1]; in uac_mixer_unit_wChannelConfig() 279 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_mixer_unit_wChannelConfig() 280 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_mixer_unit_wChannelConfig() 281 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig() 282 (desc->baSourceID[desc->bNrInPins + 1]); in uac_mixer_unit_wChannelConfig() 285 static inline __u8 uac_mixer_unit_iChannelNames(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_iChannelNames() argument [all …]
|
/linux-4.19.296/include/linux/ |
D | irqdesc.h | 124 static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) in irq_desc_get_irq() argument 126 return desc->irq_data.irq; in irq_desc_get_irq() 129 static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) in irq_desc_get_irq_data() argument 131 return &desc->irq_data; in irq_desc_get_irq_data() 134 static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc) in irq_desc_get_chip() argument 136 return desc->irq_data.chip; in irq_desc_get_chip() 139 static inline void *irq_desc_get_chip_data(struct irq_desc *desc) in irq_desc_get_chip_data() argument 141 return desc->irq_data.chip_data; in irq_desc_get_chip_data() 144 static inline void *irq_desc_get_handler_data(struct irq_desc *desc) in irq_desc_get_handler_data() argument 146 return desc->irq_common_data.handler_data; in irq_desc_get_handler_data() [all …]
|
D | elfnote.h | 56 #define ELFNOTE(name, type, desc) \ 58 desc ; \ 72 #define _ELFNOTE(size, name, unique, type, desc) \ argument 77 typeof(desc) _desc \ 86 sizeof(desc), \ 90 desc \ 92 #define ELFNOTE(size, name, type, desc) \ argument 93 _ELFNOTE(size, name, __LINE__, type, desc) 95 #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc) argument 96 #define ELFNOTE64(name, type, desc) ELFNOTE(64, name, type, desc) argument
|
/linux-4.19.296/include/linux/gpio/ |
D | consumer.h | 26 struct gpio_desc *desc[]; member 74 void gpiod_put(struct gpio_desc *desc); 96 void devm_gpiod_put(struct device *dev, struct gpio_desc *desc); 99 int gpiod_get_direction(struct gpio_desc *desc); 100 int gpiod_direction_input(struct gpio_desc *desc); 101 int gpiod_direction_output(struct gpio_desc *desc, int value); 102 int gpiod_direction_output_raw(struct gpio_desc *desc, int value); 105 int gpiod_get_value(const struct gpio_desc *desc); 108 void gpiod_set_value(struct gpio_desc *desc, int value); 111 int gpiod_get_raw_value(const struct gpio_desc *desc); [all …]
|
/linux-4.19.296/drivers/gpio/ |
D | gpiolib-sysfs.c | 21 struct gpio_desc *desc; member 62 struct gpio_desc *desc = data->desc; in direction_show() local 67 gpiod_get_direction(desc); in direction_show() 69 test_bit(FLAG_IS_OUT, &desc->flags) in direction_show() 81 struct gpio_desc *desc = data->desc; in direction_store() local 87 status = gpiod_direction_output_raw(desc, 1); in direction_store() 89 status = gpiod_direction_output_raw(desc, 0); in direction_store() 91 status = gpiod_direction_input(desc); in direction_store() 105 struct gpio_desc *desc = data->desc; in value_show() local 110 status = gpiod_get_value_cansleep(desc); in value_show() [all …]
|
D | gpiolib.c | 160 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument 162 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio() 171 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument 173 if (!desc || !desc->gdev) in gpiod_to_chip() 175 return desc->gdev->chip; in gpiod_to_chip() 211 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction() argument 217 chip = gpiod_to_chip(desc); in gpiod_get_direction() 218 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction() 224 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags) && in gpiod_get_direction() 225 test_bit(FLAG_IS_OUT, &desc->flags)) in gpiod_get_direction() [all …]
|
D | devres.c | 28 struct gpio_desc **desc = res; in devm_gpiod_release() local 30 gpiod_put(*desc); in devm_gpiod_release() 107 struct gpio_desc *desc; in devm_gpiod_get_index() local 114 desc = gpiod_get_index(dev, con_id, idx, flags); in devm_gpiod_get_index() 115 if (IS_ERR(desc)) { in devm_gpiod_get_index() 117 return desc; in devm_gpiod_get_index() 120 *dr = desc; in devm_gpiod_get_index() 123 return desc; in devm_gpiod_get_index() 149 struct gpio_desc *desc; in devm_gpiod_get_from_of_node() local 156 desc = gpiod_get_from_of_node(node, propname, index, dflags, label); in devm_gpiod_get_from_of_node() [all …]
|
D | gpiolib-of.c | 113 struct gpio_desc *desc; in of_get_named_gpiod_flags() local 126 desc = ERR_PTR(-EPROBE_DEFER); in of_get_named_gpiod_flags() 130 desc = of_xlate_and_get_gpiod_flags(chip, &gpiospec, flags); in of_get_named_gpiod_flags() 131 if (IS_ERR(desc)) in of_get_named_gpiod_flags() 139 PTR_ERR_OR_ZERO(desc)); in of_get_named_gpiod_flags() 144 return desc; in of_get_named_gpiod_flags() 150 struct gpio_desc *desc; in of_get_named_gpio_flags() local 152 desc = of_get_named_gpiod_flags(np, list_name, index, flags); in of_get_named_gpio_flags() 154 if (IS_ERR(desc)) in of_get_named_gpio_flags() 155 return PTR_ERR(desc); in of_get_named_gpio_flags() [all …]
|
D | gpiolib-legacy.c | 22 struct gpio_desc *desc; in gpio_request_one() local 25 desc = gpio_to_desc(gpio); in gpio_request_one() 28 if (!desc && gpio_is_valid(gpio)) in gpio_request_one() 31 err = gpiod_request(desc, label); in gpio_request_one() 36 set_bit(FLAG_OPEN_DRAIN, &desc->flags); in gpio_request_one() 39 set_bit(FLAG_OPEN_SOURCE, &desc->flags); in gpio_request_one() 42 set_bit(FLAG_ACTIVE_LOW, &desc->flags); in gpio_request_one() 45 err = gpiod_direction_input(desc); in gpio_request_one() 47 err = gpiod_direction_output_raw(desc, in gpio_request_one() 54 err = gpiod_export(desc, flags & GPIOF_EXPORT_CHANGEABLE); in gpio_request_one() [all …]
|
D | gpiolib.h | 226 int gpiod_request(struct gpio_desc *desc, const char *label); 227 void gpiod_free(struct gpio_desc *desc); 228 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id, 230 int gpiod_hog(struct gpio_desc *desc, const char *name, 236 static inline int gpio_chip_hwgpio(const struct gpio_desc *desc) in gpio_chip_hwgpio() argument 238 return desc - &desc->gdev->descs[0]; in gpio_chip_hwgpio() 246 #define gpiod_emerg(desc, fmt, ...) \ argument 247 pr_emerg("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\ 249 #define gpiod_crit(desc, fmt, ...) \ argument 250 pr_crit("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \ [all …]
|
/linux-4.19.296/fs/nfs/ |
D | pagelist.c | 33 nfs_pgio_current_mirror(struct nfs_pageio_descriptor *desc) in nfs_pgio_current_mirror() argument 35 return nfs_pgio_has_mirroring(desc) ? in nfs_pgio_current_mirror() 36 &desc->pg_mirrors[desc->pg_mirror_idx] : in nfs_pgio_current_mirror() 37 &desc->pg_mirrors[0]; in nfs_pgio_current_mirror() 41 void nfs_pgheader_init(struct nfs_pageio_descriptor *desc, in nfs_pgheader_init() argument 45 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() 49 hdr->inode = desc->pg_inode; in nfs_pgheader_init() 53 hdr->io_completion = desc->pg_io_completion; in nfs_pgheader_init() 54 hdr->dreq = desc->pg_dreq; in nfs_pgheader_init() 56 hdr->completion_ops = desc->pg_completion_ops; in nfs_pgheader_init() [all …]
|
/linux-4.19.296/include/soc/fsl/qe/ |
D | qe_ic.h | 62 void (*low_handler)(struct irq_desc *desc), 63 void (*high_handler)(struct irq_desc *desc)); 68 void (*low_handler)(struct irq_desc *desc), in qe_ic_init() argument 69 void (*high_handler)(struct irq_desc *desc)) in qe_ic_init() argument 81 static inline void qe_ic_cascade_low_ipic(struct irq_desc *desc) in qe_ic_cascade_low_ipic() argument 83 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); in qe_ic_cascade_low_ipic() 90 static inline void qe_ic_cascade_high_ipic(struct irq_desc *desc) in qe_ic_cascade_high_ipic() argument 92 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); in qe_ic_cascade_high_ipic() 99 static inline void qe_ic_cascade_low_mpic(struct irq_desc *desc) in qe_ic_cascade_low_mpic() argument 101 struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); in qe_ic_cascade_low_mpic() [all …]
|
/linux-4.19.296/drivers/base/ |
D | platform-msi.c | 39 static irq_hw_number_t platform_msi_calc_hwirq(struct msi_desc *desc) in platform_msi_calc_hwirq() argument 43 devid = desc->platform.msi_priv_data->devid; in platform_msi_calc_hwirq() 45 return (devid << (32 - DEV_ID_SHIFT)) | desc->platform.msi_index; in platform_msi_calc_hwirq() 48 static void platform_msi_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc) in platform_msi_set_desc() argument 50 arg->desc = desc; in platform_msi_set_desc() 51 arg->hwirq = platform_msi_calc_hwirq(desc); in platform_msi_set_desc() 81 struct msi_desc *desc = irq_data_get_msi_desc(data); in platform_msi_write_msg() local 84 priv_data = desc->platform.msi_priv_data; in platform_msi_write_msg() 86 priv_data->write_msg(desc, msg); in platform_msi_write_msg() 111 struct msi_desc *desc, *tmp; in platform_msi_free_descs() local [all …]
|
/linux-4.19.296/crypto/ |
D | shash.c | 104 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned() argument 107 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() 121 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned() 125 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned() 128 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() argument 131 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() 136 return shash_update_unaligned(desc, data, len); in crypto_shash_update() 138 return shash->update(desc, data, len); in crypto_shash_update() 142 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned() argument 144 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() [all …]
|
/linux-4.19.296/fs/ext2/ |
D | ialloc.c | 49 struct ext2_group_desc *desc; in read_inode_bitmap() local 52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 53 if (!desc) in read_inode_bitmap() 56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 68 struct ext2_group_desc * desc; in ext2_release_inode() local 71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode() 72 if (!desc) { in ext2_release_inode() 79 le16_add_cpu(&desc->bg_free_inodes_count, 1); in ext2_release_inode() 81 le16_add_cpu(&desc->bg_used_dirs_count, -1); in ext2_release_inode() [all …]
|
/linux-4.19.296/include/uapi/linux/ |
D | mic_common.h | 105 struct mic_device_desc desc[0]; member 177 static inline unsigned mic_desc_size(const struct mic_device_desc *desc) in mic_desc_size() argument 179 return sizeof(*desc) + desc->num_vq * sizeof(struct mic_vqconfig) in mic_desc_size() 180 + desc->feature_len * 2 + desc->config_len; in mic_desc_size() 184 mic_vq_config(const struct mic_device_desc *desc) in mic_vq_config() argument 186 return (struct mic_vqconfig *)(desc + 1); in mic_vq_config() 189 static inline __u8 *mic_vq_features(const struct mic_device_desc *desc) in mic_vq_features() argument 191 return (__u8 *)(mic_vq_config(desc) + desc->num_vq); in mic_vq_features() 194 static inline __u8 *mic_vq_configspace(const struct mic_device_desc *desc) in mic_vq_configspace() argument 196 return mic_vq_features(desc) + desc->feature_len * 2; in mic_vq_configspace() [all …]
|
/linux-4.19.296/drivers/sh/intc/ |
D | handle.c | 18 static intc_enum __init intc_grp_id(struct intc_desc *desc, in intc_grp_id() argument 21 struct intc_group *g = desc->hw.groups; in intc_grp_id() 24 for (i = 0; g && enum_id && i < desc->hw.nr_groups; i++) { in intc_grp_id() 25 g = desc->hw.groups + i; in intc_grp_id() 38 static unsigned int __init _intc_mask_data(struct intc_desc *desc, in _intc_mask_data() argument 44 struct intc_mask_reg *mr = desc->hw.mask_regs; in _intc_mask_data() 48 while (mr && enum_id && *reg_idx < desc->hw.nr_mask_regs) { in _intc_mask_data() 49 mr = desc->hw.mask_regs + *reg_idx; in _intc_mask_data() 89 intc_get_mask_handle(struct intc_desc *desc, struct intc_desc_int *d, in intc_get_mask_handle() argument 96 ret = _intc_mask_data(desc, d, enum_id, &i, &j); in intc_get_mask_handle() [all …]
|
/linux-4.19.296/drivers/irqchip/ |
D | irq-partition-percpu.c | 124 static void partition_handle_irq(struct irq_desc *desc) in partition_handle_irq() argument 126 struct partition_desc *part = irq_desc_get_handler_data(desc); in partition_handle_irq() 127 struct irq_chip *chip = irq_desc_get_chip(desc); in partition_handle_irq() 131 chained_irq_enter(chip, desc); in partition_handle_irq() 139 handle_bad_irq(desc); in partition_handle_irq() 146 chained_irq_exit(chip, desc); in partition_handle_irq() 188 int partition_translate_id(struct partition_desc *desc, void *partition_id) in partition_translate_id() argument 193 for (i = 0; i < desc->nr_parts; i++) { in partition_translate_id() 194 if (desc->parts[i].partition_id == partition_id) { in partition_translate_id() 195 part = &desc->parts[i]; in partition_translate_id() [all …]
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-ismt.c | 202 static void __ismt_desc_dump(struct device *dev, const struct ismt_desc *desc) in __ismt_desc_dump() argument 205 dev_dbg(dev, "Descriptor struct: %p\n", desc); in __ismt_desc_dump() 206 dev_dbg(dev, "\ttgtaddr_rw=0x%02X\n", desc->tgtaddr_rw); in __ismt_desc_dump() 207 dev_dbg(dev, "\twr_len_cmd=0x%02X\n", desc->wr_len_cmd); in __ismt_desc_dump() 208 dev_dbg(dev, "\trd_len= 0x%02X\n", desc->rd_len); in __ismt_desc_dump() 209 dev_dbg(dev, "\tcontrol= 0x%02X\n", desc->control); in __ismt_desc_dump() 210 dev_dbg(dev, "\tstatus= 0x%02X\n", desc->status); in __ismt_desc_dump() 211 dev_dbg(dev, "\tretry= 0x%02X\n", desc->retry); in __ismt_desc_dump() 212 dev_dbg(dev, "\trxbytes= 0x%02X\n", desc->rxbytes); in __ismt_desc_dump() 213 dev_dbg(dev, "\ttxbytes= 0x%02X\n", desc->txbytes); in __ismt_desc_dump() [all …]
|
/linux-4.19.296/drivers/clk/mvebu/ |
D | common.c | 110 const struct coreclk_soc_desc *desc) in mvebu_coreclk_setup() argument 123 clk_data.clk_num = 2 + desc->num_ratios; in mvebu_coreclk_setup() 126 if (desc->get_refclk_freq) in mvebu_coreclk_setup() 139 rate = desc->get_tclk_freq(base); in mvebu_coreclk_setup() 147 rate = desc->get_cpu_freq(base); in mvebu_coreclk_setup() 149 if (desc->is_sscg_enabled && desc->fix_sscg_deviation in mvebu_coreclk_setup() 150 && desc->is_sscg_enabled(base)) in mvebu_coreclk_setup() 151 rate = desc->fix_sscg_deviation(rate); in mvebu_coreclk_setup() 158 for (n = 0; n < desc->num_ratios; n++) { in mvebu_coreclk_setup() 159 const char *rclk_name = desc->ratios[n].name; in mvebu_coreclk_setup() [all …]
|
/linux-4.19.296/include/linux/mtd/ |
D | ubi.h | 238 void ubi_get_volume_info(struct ubi_volume_desc *desc, 249 void ubi_close_volume(struct ubi_volume_desc *desc); 250 int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, 252 int ubi_leb_read_sg(struct ubi_volume_desc *desc, int lnum, struct ubi_sgl *sgl, 254 int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, 256 int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, 258 int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); 259 int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); 260 int ubi_leb_map(struct ubi_volume_desc *desc, int lnum); 261 int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); [all …]
|