/drivers/usb/class/ |
D | cdc-wdm.c | 115 struct wdm_device *desc; in wdm_find_device() local 118 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device() 119 if (desc->intf == intf) in wdm_find_device() 121 desc = NULL; in wdm_find_device() 125 return desc; in wdm_find_device() 130 struct wdm_device *desc; in wdm_find_device_by_minor() local 133 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device_by_minor() 134 if (desc->intf->minor == minor) in wdm_find_device_by_minor() 136 desc = NULL; in wdm_find_device_by_minor() 140 return desc; in wdm_find_device_by_minor() [all …]
|
/drivers/crypto/caam/ |
D | desc_constr.h | 16 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\ 33 static inline int desc_len(u32 *desc) in desc_len() argument 35 return *desc & HDR_DESCLEN_MASK; in desc_len() 38 static inline int desc_bytes(void *desc) in desc_bytes() argument 40 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes() 43 static inline u32 *desc_end(u32 *desc) in desc_end() argument 45 return desc + desc_len(desc); in desc_end() 48 static inline void *sh_desc_pdb(u32 *desc) in sh_desc_pdb() argument 50 return desc + 1; in sh_desc_pdb() 53 static inline void init_desc(u32 *desc, u32 options) in init_desc() argument [all …]
|
D | caamalg.c | 96 static inline void append_dec_op1(u32 *desc, u32 type) in append_dec_op1() argument 102 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1() 107 jump_cmd = append_jump(desc, JUMP_TEST_ALL | JUMP_COND_SHRD); in append_dec_op1() 108 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1() 110 uncond_jump_cmd = append_jump(desc, JUMP_TEST_ALL); in append_dec_op1() 111 set_jump_tgt_here(desc, jump_cmd); in append_dec_op1() 112 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1() 114 set_jump_tgt_here(desc, uncond_jump_cmd); in append_dec_op1() 121 static inline void aead_append_src_dst(u32 *desc, u32 msg_type) in aead_append_src_dst() argument 123 append_seq_fifo_store(desc, 0, FIFOST_TYPE_MESSAGE_DATA | KEY_VLF); in aead_append_src_dst() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_res.h | 37 struct wq_enet_desc *desc = vnic_wq_next_desc(wq); in fnic_queue_wq_desc() local 39 wq_enet_desc_enc(desc, in fnic_queue_wq_desc() 61 struct wq_enet_desc *desc = vnic_wq_next_desc(wq); in fnic_queue_wq_eth_desc() local 63 wq_enet_desc_enc(desc, in fnic_queue_wq_eth_desc() 91 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_icmnd_16() local 93 desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_icmnd_16() 94 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_icmnd_16() 95 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16() 96 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_icmnd_16() 98 desc->u.icmnd_16.lunmap_id = lunmap_id; /* index into lunmap table */ in fnic_queue_wq_copy_desc_icmnd_16() [all …]
|
/drivers/infiniband/core/ |
D | packer.c | 62 void ib_pack(const struct ib_field *desc, in ib_pack() argument 70 if (desc[i].size_bits <= 32) { in ib_pack() 76 shift = 32 - desc[i].offset_bits - desc[i].size_bits; in ib_pack() 77 if (desc[i].struct_size_bytes) in ib_pack() 78 val = value_read(desc[i].struct_offset_bytes, in ib_pack() 79 desc[i].struct_size_bytes, in ib_pack() 84 mask = cpu_to_be32(((1ull << desc[i].size_bits) - 1) << shift); in ib_pack() 85 addr = (__be32 *) buf + desc[i].offset_words; in ib_pack() 87 } else if (desc[i].size_bits <= 64) { in ib_pack() 93 shift = 64 - desc[i].offset_bits - desc[i].size_bits; in ib_pack() [all …]
|
/drivers/gpio/ |
D | gpiolib.c | 84 return &chip->desc[hwnum]; in gpiochip_get_desc() 92 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument 94 return desc - &gpio_desc[0]; in desc_to_gpio() 103 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument 105 return desc ? desc->chip : NULL; in gpiod_to_chip() 141 int gpiod_get_direction(const struct gpio_desc *desc) in gpiod_get_direction() argument 147 chip = gpiod_to_chip(desc); in gpiod_get_direction() 148 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction() 159 clear_bit(FLAG_IS_OUT, &((struct gpio_desc *)desc)->flags); in gpiod_get_direction() 163 set_bit(FLAG_IS_OUT, &((struct gpio_desc *)desc)->flags); in gpiod_get_direction() [all …]
|
D | gpiolib-sysfs.c | 44 const struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_direction_show() local 49 if (!test_bit(FLAG_EXPORT, &desc->flags)) { in gpio_direction_show() 52 gpiod_get_direction(desc); in gpio_direction_show() 54 test_bit(FLAG_IS_OUT, &desc->flags) in gpio_direction_show() 65 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_direction_store() local 70 if (!test_bit(FLAG_EXPORT, &desc->flags)) in gpio_direction_store() 73 status = gpiod_direction_output_raw(desc, 1); in gpio_direction_store() 75 status = gpiod_direction_output_raw(desc, 0); in gpio_direction_store() 77 status = gpiod_direction_input(desc); in gpio_direction_store() 91 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_value_show() local [all …]
|
D | gpiolib.h | 88 int gpiod_request(struct gpio_desc *desc, const char *label); 89 void gpiod_free(struct gpio_desc *desc); 94 static int __maybe_unused gpio_chip_hwgpio(const struct gpio_desc *desc) in gpio_chip_hwgpio() argument 96 return desc - &desc->chip->desc[0]; in gpio_chip_hwgpio() 101 #define gpiod_emerg(desc, fmt, ...) \ argument 102 pr_emerg("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\ 104 #define gpiod_crit(desc, fmt, ...) \ argument 105 pr_crit("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \ 107 #define gpiod_err(desc, fmt, ...) \ argument 108 pr_err("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \ [all …]
|
/drivers/regulator/ |
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 | palmas-regulator.c | 470 pmic->desc[id].enable_val = pmic->current_reg_mode[id]; in palmas_set_mode_smps() 869 struct regulator_desc *desc; in palmas_ldo_registration() local 883 desc = &pmic->desc[id]; in palmas_ldo_registration() 884 desc->name = rinfo->name; in palmas_ldo_registration() 885 desc->id = id; in palmas_ldo_registration() 886 desc->type = REGULATOR_VOLTAGE; in palmas_ldo_registration() 887 desc->owner = THIS_MODULE; in palmas_ldo_registration() 890 desc->n_voltages = PALMAS_LDO_NUM_VOLTAGES; in palmas_ldo_registration() 892 desc->ops = &palmas_ops_ext_control_ldo; in palmas_ldo_registration() 894 desc->ops = &palmas_ops_ldo; in palmas_ldo_registration() [all …]
|
/drivers/power/ |
D | charger-manager.c | 104 switch (cm->desc->battery_present) { in is_batt_present() 111 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present() 121 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present() 123 cm->desc->psy_charger_stat[i]); in is_batt_present() 126 cm->desc->psy_charger_stat[i]); in is_batt_present() 159 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_ext_pwr_online() 160 psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); in is_ext_pwr_online() 163 cm->desc->psy_charger_stat[i]); in is_ext_pwr_online() 191 fuel_gauge = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in get_batt_uV() 220 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_charging() [all …]
|
/drivers/pinctrl/ |
D | pinmux.c | 35 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops() 87 struct pin_desc *desc; in pin_request() local 88 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pin_request() 91 desc = pin_desc_get(pctldev, pin); in pin_request() 92 if (desc == NULL) { in pin_request() 100 pin, desc->name, owner); in pin_request() 104 if (desc->gpio_owner) { in pin_request() 107 desc->name, desc->gpio_owner, owner); in pin_request() 111 desc->gpio_owner = owner; in pin_request() 113 if (desc->mux_usecount && strcmp(desc->mux_owner, owner)) { in pin_request() [all …]
|
/drivers/staging/lustre/lustre/lov/ |
D | lproc_lov.c | 47 struct lov_desc *desc; in lov_stripesize_seq_show() local 50 desc = &dev->u.lov.desc; in lov_stripesize_seq_show() 51 return seq_printf(m, "%llu\n", desc->ld_default_stripe_size); in lov_stripesize_seq_show() 58 struct lov_desc *desc; in lov_stripesize_seq_write() local 63 desc = &dev->u.lov.desc; in lov_stripesize_seq_write() 69 desc->ld_default_stripe_size = val; in lov_stripesize_seq_write() 77 struct lov_desc *desc; in lov_stripeoffset_seq_show() local 80 desc = &dev->u.lov.desc; in lov_stripeoffset_seq_show() 81 return seq_printf(m, "%llu\n", desc->ld_default_stripe_offset); in lov_stripeoffset_seq_show() 88 struct lov_desc *desc; in lov_stripeoffset_seq_write() local [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | ring_mode.c | 36 struct dma_desc *desc; in stmmac_jumbo_frm() local 41 desc = (struct dma_desc *)(priv->dma_etx + entry); in stmmac_jumbo_frm() 43 desc = priv->dma_tx + entry; in stmmac_jumbo_frm() 54 desc->des2 = dma_map_single(priv->device, skb->data, in stmmac_jumbo_frm() 56 if (dma_mapping_error(priv->device, desc->des2)) in stmmac_jumbo_frm() 59 priv->tx_skbuff_dma[entry].buf = desc->des2; in stmmac_jumbo_frm() 60 desc->des3 = desc->des2 + BUF_SIZE_4KiB; in stmmac_jumbo_frm() 61 priv->hw->desc->prepare_tx_desc(desc, 1, bmax, csum, in stmmac_jumbo_frm() 68 desc = (struct dma_desc *)(priv->dma_etx + entry); in stmmac_jumbo_frm() 70 desc = priv->dma_tx + entry; in stmmac_jumbo_frm() [all …]
|
/drivers/dma/ |
D | ep93xx_dma.c | 237 struct ep93xx_dma_desc *desc) in ep93xx_dma_set_active() argument 241 list_add_tail(&desc->node, &edmac->active); in ep93xx_dma_set_active() 244 while (!list_empty(&desc->tx_list)) { in ep93xx_dma_set_active() 245 struct ep93xx_dma_desc *d = list_first_entry(&desc->tx_list, in ep93xx_dma_set_active() 254 d->txd.callback = desc->txd.callback; in ep93xx_dma_set_active() 255 d->txd.callback_param = desc->txd.callback_param; in ep93xx_dma_set_active() 285 struct ep93xx_dma_desc *desc; in ep93xx_dma_advance_active() local 292 desc = ep93xx_dma_get_active(edmac); in ep93xx_dma_advance_active() 293 if (!desc) in ep93xx_dma_advance_active() 300 return !desc->txd.cookie; in ep93xx_dma_advance_active() [all …]
|
D | imx-dma.c | 128 struct dma_async_tx_descriptor desc; member 162 struct dma_async_tx_descriptor desc; member 250 struct imxdma_desc *desc; in imxdma_chan_is_doing_cyclic() local 253 desc = list_first_entry(&imxdmac->ld_active, struct imxdma_desc, in imxdma_chan_is_doing_cyclic() 255 if (desc->type == IMXDMA_DESC_CYCLIC) in imxdma_chan_is_doing_cyclic() 289 struct imxdma_channel *imxdmac = to_imxdma_chan(d->desc.chan); in imxdma_sg_next() 318 struct imxdma_channel *imxdmac = to_imxdma_chan(d->desc.chan); in imxdma_enable_hw() 439 struct imxdma_desc *desc; in dma_irq_handle_channel() local 448 desc = list_first_entry(&imxdmac->ld_active, in dma_irq_handle_channel() 453 if (desc->sg) { in dma_irq_handle_channel() [all …]
|
D | txx9dmac.c | 148 const struct txx9dmac_desc *desc) in desc_read_CHAR() argument 150 return is_dmac64(dc) ? desc->hwdesc.CHAR : desc->hwdesc32.CHAR; in desc_read_CHAR() 154 struct txx9dmac_desc *desc, dma_addr_t val) in desc_write_CHAR() argument 157 desc->hwdesc.CHAR = val; in desc_write_CHAR() 159 desc->hwdesc32.CHAR = val; in desc_write_CHAR() 183 static struct txx9dmac_desc *txx9dmac_last_child(struct txx9dmac_desc *desc) in txx9dmac_last_child() argument 185 if (!list_empty(&desc->tx_list)) in txx9dmac_last_child() 186 desc = list_entry(desc->tx_list.prev, typeof(*desc), desc_node); in txx9dmac_last_child() 187 return desc; in txx9dmac_last_child() 196 struct txx9dmac_desc *desc; in txx9dmac_desc_alloc() local [all …]
|
D | intel_mid_dma.c | 207 struct intel_mid_dma_desc *desc, *_desc; in midc_desc_get() local 211 list_for_each_entry_safe(desc, _desc, &midc->free_list, desc_node) { in midc_desc_get() 212 if (async_tx_test_ack(&desc->txd)) { in midc_desc_get() 213 list_del(&desc->desc_node); in midc_desc_get() 214 ret = desc; in midc_desc_get() 230 struct intel_mid_dma_desc *desc) in midc_desc_put() argument 232 if (desc) { in midc_desc_put() 234 list_add_tail(&desc->desc_node, &midc->free_list); in midc_desc_put() 285 struct intel_mid_dma_desc *desc) in midc_descriptor_complete() argument 288 struct dma_async_tx_descriptor *txd = &desc->txd; in midc_descriptor_complete() [all …]
|
/drivers/usb/image/ |
D | microtek.c | 212 static inline void mts_debug_dump(struct mts_desc* desc) { in mts_debug_dump() argument 214 (int)desc, in mts_debug_dump() 215 (int)desc->usb_dev->toggle[1],(int)desc->usb_dev->toggle[0] in mts_debug_dump() 218 usb_sndbulkpipe(desc->usb_dev,desc->ep_out), in mts_debug_dump() 219 usb_rcvbulkpipe(desc->usb_dev,desc->ep_response), in mts_debug_dump() 220 usb_rcvbulkpipe(desc->usb_dev,desc->ep_image) in mts_debug_dump() 319 static inline void mts_urb_abort(struct mts_desc* desc) { in mts_urb_abort() argument 321 mts_debug_dump(desc); in mts_urb_abort() 323 usb_kill_urb( desc->urb ); in mts_urb_abort() 340 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_abort() local [all …]
|
/drivers/lguest/ |
D | lguest_device.c | 49 struct lguest_device_desc *desc; member 70 static struct lguest_vqconfig *lg_vq(const struct lguest_device_desc *desc) in lg_vq() argument 72 return (void *)(desc + 1); in lg_vq() 76 static u8 *lg_features(const struct lguest_device_desc *desc) in lg_features() argument 78 return (void *)(lg_vq(desc) + desc->num_vq); in lg_features() 82 static u8 *lg_config(const struct lguest_device_desc *desc) in lg_config() argument 84 return lg_features(desc) + desc->feature_len * 2; in lg_config() 88 static unsigned desc_size(const struct lguest_device_desc *desc) in desc_size() argument 90 return sizeof(*desc) in desc_size() 91 + desc->num_vq * sizeof(struct lguest_vqconfig) in desc_size() [all …]
|
/drivers/usb/gadget/ |
D | epautoconf.c | 45 struct usb_endpoint_descriptor *desc, in ep_matches() argument 60 type = usb_endpoint_type(desc); in ep_matches() 103 if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches() 117 if (usb_endpoint_xfer_bulk(desc)) { in ep_matches() 130 if (desc->wMaxPacketSize == 0) in ep_matches() 131 desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket_limit); in ep_matches() 137 max = 0x7ff & usb_endpoint_maxp(desc); in ep_matches() 153 if ((desc->wMaxPacketSize & cpu_to_le16(3<<11))) { in ep_matches() 164 desc->bEndpointAddress &= USB_DIR_IN; in ep_matches() 167 desc->bEndpointAddress |= num; in ep_matches() [all …]
|
/drivers/s390/kvm/ |
D | kvm_virtio.c | 42 struct kvm_device_desc *desc; member 56 static struct kvm_vqconfig *kvm_vq_config(const struct kvm_device_desc *desc) in kvm_vq_config() argument 58 return (struct kvm_vqconfig *)(desc + 1); in kvm_vq_config() 61 static u8 *kvm_vq_features(const struct kvm_device_desc *desc) in kvm_vq_features() argument 63 return (u8 *)(kvm_vq_config(desc) + desc->num_vq); in kvm_vq_features() 66 static u8 *kvm_vq_configspace(const struct kvm_device_desc *desc) in kvm_vq_configspace() argument 68 return kvm_vq_features(desc) + desc->feature_len * 2; in kvm_vq_configspace() 74 static unsigned desc_size(const struct kvm_device_desc *desc) in desc_size() argument 76 return sizeof(*desc) in desc_size() 77 + desc->num_vq * sizeof(struct kvm_vqconfig) in desc_size() [all …]
|
/drivers/usb/core/ |
D | config.c | 50 struct usb_ss_ep_comp_descriptor *desc; in usb_parse_ss_endpoint_companion() local 56 desc = (struct usb_ss_ep_comp_descriptor *) buffer; in usb_parse_ss_endpoint_companion() 57 if (desc->bDescriptorType != USB_DT_SS_ENDPOINT_COMP || in usb_parse_ss_endpoint_companion() 62 cfgno, inum, asnum, ep->desc.bEndpointAddress); in usb_parse_ss_endpoint_companion() 73 if (usb_endpoint_xfer_isoc(&ep->desc) || in usb_parse_ss_endpoint_companion() 74 usb_endpoint_xfer_int(&ep->desc)) in usb_parse_ss_endpoint_companion() 76 ep->desc.wMaxPacketSize; in usb_parse_ss_endpoint_companion() 80 memcpy(&ep->ss_ep_comp, desc, USB_DT_SS_EP_COMP_SIZE); in usb_parse_ss_endpoint_companion() 83 if (usb_endpoint_xfer_control(&ep->desc) && desc->bMaxBurst != 0) { in usb_parse_ss_endpoint_companion() 86 "setting to zero\n", desc->bMaxBurst, in usb_parse_ss_endpoint_companion() [all …]
|
D | devices.c | 182 const struct usb_endpoint_descriptor *desc) in usb_dump_endpoint_descriptor() argument 190 dir = usb_endpoint_dir_in(desc) ? 'I' : 'O'; in usb_dump_endpoint_descriptor() 193 switch (usb_endpoint_maxp(desc) & (0x03 << 11)) { in usb_dump_endpoint_descriptor() 202 switch (usb_endpoint_type(desc)) { in usb_dump_endpoint_descriptor() 206 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 213 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor() 218 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 225 interval = 1 << (desc->bInterval - 1); in usb_dump_endpoint_descriptor() 227 interval = desc->bInterval; in usb_dump_endpoint_descriptor() 241 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, in usb_dump_endpoint_descriptor() [all …]
|
/drivers/misc/mic/card/ |
D | mic_virtio.h | 43 static inline unsigned mic_desc_size(struct mic_device_desc __iomem *desc) in mic_desc_size() argument 45 return sizeof(*desc) in mic_desc_size() 46 + ioread8(&desc->num_vq) * sizeof(struct mic_vqconfig) in mic_desc_size() 47 + ioread8(&desc->feature_len) * 2 in mic_desc_size() 48 + ioread8(&desc->config_len); in mic_desc_size() 52 mic_vq_config(struct mic_device_desc __iomem *desc) in mic_vq_config() argument 54 return (struct mic_vqconfig __iomem *)(desc + 1); in mic_vq_config() 58 mic_vq_features(struct mic_device_desc __iomem *desc) in mic_vq_features() argument 60 return (__u8 __iomem *)(mic_vq_config(desc) + ioread8(&desc->num_vq)); in mic_vq_features() 64 mic_vq_configspace(struct mic_device_desc __iomem *desc) in mic_vq_configspace() argument [all …]
|