Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 1369) sorted by relevance

12345678910>>...55

/drivers/usb/class/
Dcdc-wdm.c115 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/
Ddesc_constr.h17 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\
36 static inline int desc_len(u32 *desc) in desc_len() argument
38 return caam32_to_cpu(*desc) & HDR_DESCLEN_MASK; in desc_len()
41 static inline int desc_bytes(void *desc) in desc_bytes() argument
43 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
46 static inline u32 *desc_end(u32 *desc) in desc_end() argument
48 return desc + desc_len(desc); in desc_end()
51 static inline void *sh_desc_pdb(u32 *desc) in sh_desc_pdb() argument
53 return desc + 1; in sh_desc_pdb()
56 static inline void init_desc(u32 *desc, u32 options) in init_desc() argument
[all …]
Dcaamalg.c167 static inline void append_dec_op1(u32 *desc, u32 type) in append_dec_op1() argument
173 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
178 jump_cmd = append_jump(desc, JUMP_TEST_ALL | JUMP_COND_SHRD); in append_dec_op1()
179 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
181 uncond_jump_cmd = append_jump(desc, JUMP_TEST_ALL); in append_dec_op1()
182 set_jump_tgt_here(desc, jump_cmd); in append_dec_op1()
183 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
185 set_jump_tgt_here(desc, uncond_jump_cmd); in append_dec_op1()
192 static inline void aead_append_src_dst(u32 *desc, u32 msg_type) in aead_append_src_dst() argument
194 append_seq_fifo_store(desc, 0, FIFOST_TYPE_MESSAGE_DATA | KEY_VLF); in aead_append_src_dst()
[all …]
/drivers/scsi/fnic/
Dfnic_res.h37 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/regulator/
Dhelpers.c36 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 …]
Dda9062-regulator.c44 struct regulator_desc desc; member
61 struct regulator_desc desc; member
309 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9062_set_suspend_voltage()
312 rdev->desc->vsel_mask, sel); in da9062_set_suspend_voltage()
411 .desc.id = DA9062_ID_BUCK1,
412 .desc.name = "DA9062 BUCK1",
413 .desc.of_match = of_match_ptr("buck1"),
414 .desc.regulators_node = of_match_ptr("regulators"),
415 .desc.ops = &da9062_buck_ops,
416 .desc.min_uV = (300) * 1000,
[all …]
/drivers/infiniband/core/
Dpacker.c62 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/staging/comedi/drivers/
Dcomedi_isadma.c30 void comedi_isadma_program(struct comedi_isadma_desc *desc) in comedi_isadma_program() argument
35 clear_dma_ff(desc->chan); in comedi_isadma_program()
36 set_dma_mode(desc->chan, desc->mode); in comedi_isadma_program()
37 set_dma_addr(desc->chan, desc->hw_addr); in comedi_isadma_program()
38 set_dma_count(desc->chan, desc->size); in comedi_isadma_program()
39 enable_dma(desc->chan); in comedi_isadma_program()
111 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() local
117 clear_dma_ff(desc->chan); in comedi_isadma_poll()
119 disable_dma(desc->chan); in comedi_isadma_poll()
120 result = get_dma_residue(desc->chan); in comedi_isadma_poll()
[all …]
/drivers/crypto/ccp/
Dccp-dmaengine.c42 struct ccp_dma_desc *desc, *dtmp; in ccp_free_desc_resources() local
44 list_for_each_entry_safe(desc, dtmp, list, entry) { in ccp_free_desc_resources()
45 ccp_free_cmd_resources(ccp, &desc->active); in ccp_free_desc_resources()
46 ccp_free_cmd_resources(ccp, &desc->pending); in ccp_free_desc_resources()
48 list_del(&desc->entry); in ccp_free_desc_resources()
49 kmem_cache_free(ccp->dma_desc_cache, desc); in ccp_free_desc_resources()
74 struct ccp_dma_desc *desc, *dtmp; in ccp_cleanup_desc_resources() local
76 list_for_each_entry_safe_reverse(desc, dtmp, list, entry) { in ccp_cleanup_desc_resources()
77 if (!async_tx_test_ack(&desc->tx_desc)) in ccp_cleanup_desc_resources()
80 dev_dbg(ccp->dev, "%s - desc=%p\n", __func__, desc); in ccp_cleanup_desc_resources()
[all …]
Dccp-dev-v5.c209 static int ccp5_do_cmd(struct ccp5_desc *desc, in ccp5_do_cmd() argument
218 if (CCP5_CMD_SOC(desc)) { in ccp5_do_cmd()
219 CCP5_CMD_IOC(desc) = 1; in ccp5_do_cmd()
220 CCP5_CMD_SOC(desc) = 0; in ccp5_do_cmd()
225 dP = (__le32 *) desc; in ccp5_do_cmd()
242 if (CCP5_CMD_IOC(desc)) { in ccp5_do_cmd()
262 struct ccp5_desc desc; in ccp5_perform_aes() local
267 memset(&desc, 0, Q_DESC_SIZE); in ccp5_perform_aes()
269 CCP5_CMD_ENGINE(&desc) = CCP_ENGINE_AES; in ccp5_perform_aes()
271 CCP5_CMD_SOC(&desc) = op->soc; in ccp5_perform_aes()
[all …]
/drivers/pinctrl/
Dpinmux.c35 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()
110 if (ops->strict && desc->mux_usecount && in pin_request()
111 strcmp(desc->mux_owner, owner)) { in pin_request()
[all …]
/drivers/firmware/
Dqcom_scm-64.c84 const struct qcom_scm_desc *desc, in qcom_scm_call() argument
87 int arglen = desc->arginfo & 0xf; in qcom_scm_call()
90 u64 cmd, x5 = desc->args[FIRST_EXT_ARG_IDX]; in qcom_scm_call()
107 args[i] = cpu_to_le32(desc->args[i + in qcom_scm_call()
113 args[i] = cpu_to_le64(desc->args[i + in qcom_scm_call()
138 arm_smccc_smc_quirk(cmd, desc->arginfo, desc->args[0], in qcom_scm_call()
139 desc->args[1], desc->args[2], x5, in qcom_scm_call()
210 struct qcom_scm_desc desc = {0}; in __qcom_scm_is_call_available() local
213 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_is_call_available()
214 desc.args[0] = QCOM_SCM_FNID(svc_id, cmd_id) | in __qcom_scm_is_call_available()
[all …]
/drivers/dma/sh/
Drcar-dmac.c183 } desc; member
338 struct rcar_dmac_desc *desc = chan->desc.running; in rcar_dmac_chan_start_xfer() local
339 u32 chcr = desc->chcr; in rcar_dmac_chan_start_xfer()
346 if (desc->hwdescs.use) { in rcar_dmac_chan_start_xfer()
351 chan->index, desc, desc->nchunks, &desc->hwdescs.dma); in rcar_dmac_chan_start_xfer()
355 desc->hwdescs.dma >> 32); in rcar_dmac_chan_start_xfer()
358 (desc->hwdescs.dma & 0xfffffff0) | in rcar_dmac_chan_start_xfer()
361 RCAR_DMACHCRB_DCNT(desc->nchunks - 1) | in rcar_dmac_chan_start_xfer()
371 chunk = list_first_entry(&desc->chunks, in rcar_dmac_chan_start_xfer()
389 if (!desc->cyclic) in rcar_dmac_chan_start_xfer()
[all …]
/drivers/gpio/
Dgpiolib-sysfs.c19 struct gpio_desc *desc; member
60 struct gpio_desc *desc = data->desc; in direction_show() local
65 gpiod_get_direction(desc); in direction_show()
67 test_bit(FLAG_IS_OUT, &desc->flags) in direction_show()
79 struct gpio_desc *desc = data->desc; in direction_store() local
85 status = gpiod_direction_output_raw(desc, 1); in direction_store()
87 status = gpiod_direction_output_raw(desc, 0); in direction_store()
89 status = gpiod_direction_input(desc); in direction_store()
103 struct gpio_desc *desc = data->desc; in value_show() local
108 status = sprintf(buf, "%d\n", gpiod_get_value_cansleep(desc)); in value_show()
[all …]
Dgpiolib.c131 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument
133 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio()
142 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument
144 if (!desc || !desc->gdev || !desc->gdev->chip) in gpiod_to_chip()
146 return desc->gdev->chip; in gpiod_to_chip()
182 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction() argument
188 chip = gpiod_to_chip(desc); in gpiod_get_direction()
189 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction()
198 clear_bit(FLAG_IS_OUT, &desc->flags); in gpiod_get_direction()
202 set_bit(FLAG_IS_OUT, &desc->flags); in gpiod_get_direction()
[all …]
/drivers/power/supply/
Dcharger-manager.c95 switch (cm->desc->battery_present) { in is_batt_present()
102 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present()
113 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present()
115 cm->desc->psy_charger_stat[i]); in is_batt_present()
118 cm->desc->psy_charger_stat[i]); in is_batt_present()
152 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_ext_pwr_online()
153 psy = power_supply_get_by_name(cm->desc->psy_charger_stat[i]); in is_ext_pwr_online()
156 cm->desc->psy_charger_stat[i]); in is_ext_pwr_online()
186 fuel_gauge = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in get_batt_uV()
216 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_charging()
[all …]
/drivers/dma/
Ddma-jz4780.c118 struct jz4780_dma_hwdesc *desc; member
134 struct jz4780_dma_desc *desc; member
188 struct jz4780_dma_desc *desc; in jz4780_dma_desc_alloc() local
193 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in jz4780_dma_desc_alloc()
194 if (!desc) in jz4780_dma_desc_alloc()
197 desc->desc = dma_pool_alloc(jzchan->desc_pool, GFP_NOWAIT, in jz4780_dma_desc_alloc()
198 &desc->desc_phys); in jz4780_dma_desc_alloc()
199 if (!desc->desc) { in jz4780_dma_desc_alloc()
200 kfree(desc); in jz4780_dma_desc_alloc()
204 desc->count = count; in jz4780_dma_desc_alloc()
[all …]
Dep93xx_dma.c238 struct ep93xx_dma_desc *desc) in ep93xx_dma_set_active() argument
242 list_add_tail(&desc->node, &edmac->active); in ep93xx_dma_set_active()
245 while (!list_empty(&desc->tx_list)) { in ep93xx_dma_set_active()
246 struct ep93xx_dma_desc *d = list_first_entry(&desc->tx_list, in ep93xx_dma_set_active()
255 d->txd.callback = desc->txd.callback; in ep93xx_dma_set_active()
256 d->txd.callback_param = desc->txd.callback_param; in ep93xx_dma_set_active()
284 struct ep93xx_dma_desc *desc; in ep93xx_dma_advance_active() local
291 desc = ep93xx_dma_get_active(edmac); in ep93xx_dma_advance_active()
292 if (!desc) in ep93xx_dma_advance_active()
299 return !desc->txd.cookie; in ep93xx_dma_advance_active()
[all …]
Dat_xdmac.c422 struct at_xdmac_desc *desc = txd_to_at_desc(tx); in at_xdmac_tx_submit() local
431 __func__, atchan, desc); in at_xdmac_tx_submit()
432 list_add_tail(&desc->xfer_node, &atchan->xfers_list); in at_xdmac_tx_submit()
434 at_xdmac_start_xfer(atchan, desc); in at_xdmac_tx_submit()
443 struct at_xdmac_desc *desc; in at_xdmac_alloc_desc() local
447 desc = dma_pool_alloc(atxdmac->at_xdmac_desc_pool, gfp_flags, &phys); in at_xdmac_alloc_desc()
448 if (desc) { in at_xdmac_alloc_desc()
449 memset(desc, 0, sizeof(*desc)); in at_xdmac_alloc_desc()
450 INIT_LIST_HEAD(&desc->descs_list); in at_xdmac_alloc_desc()
451 dma_async_tx_descriptor_init(&desc->tx_dma_desc, chan); in at_xdmac_alloc_desc()
[all …]
Dfsl_raid.c88 struct fsl_re_desc *desc; in fsl_re_tx_submit() local
93 desc = to_fsl_re_dma_desc(tx); in fsl_re_tx_submit()
98 list_add_tail(&desc->node, &re_chan->submit_q); in fsl_re_tx_submit()
109 struct fsl_re_desc *desc, *_desc; in fsl_re_issue_pending() local
118 list_for_each_entry_safe(desc, _desc, &re_chan->submit_q, node) { in fsl_re_issue_pending()
122 list_move_tail(&desc->node, &re_chan->active_q); in fsl_re_issue_pending()
125 &desc->hwdesc, sizeof(struct fsl_re_hw_desc)); in fsl_re_issue_pending()
135 static void fsl_re_desc_done(struct fsl_re_desc *desc) in fsl_re_desc_done() argument
137 dma_cookie_complete(&desc->async_tx); in fsl_re_desc_done()
138 dma_descriptor_unmap(&desc->async_tx); in fsl_re_desc_done()
[all …]
/drivers/staging/lustre/lustre/lov/
Dlproc_lov.c43 struct lov_desc *desc; in lov_stripesize_seq_show() local
46 desc = &dev->u.lov.desc; in lov_stripesize_seq_show()
47 seq_printf(m, "%llu\n", desc->ld_default_stripe_size); in lov_stripesize_seq_show()
56 struct lov_desc *desc; in lov_stripesize_seq_write() local
61 desc = &dev->u.lov.desc; in lov_stripesize_seq_write()
67 desc->ld_default_stripe_size = val; in lov_stripesize_seq_write()
76 struct lov_desc *desc; in lov_stripeoffset_seq_show() local
79 desc = &dev->u.lov.desc; in lov_stripeoffset_seq_show()
80 seq_printf(m, "%llu\n", desc->ld_default_stripe_offset); in lov_stripeoffset_seq_show()
89 struct lov_desc *desc; in lov_stripeoffset_seq_write() local
[all …]
/drivers/staging/skein/
Dskein_generic.c23 static int skein256_init(struct shash_desc *desc) in skein256_init() argument
25 return skein_256_init((struct skein_256_ctx *)shash_desc_ctx(desc), in skein256_init()
29 static int skein256_update(struct shash_desc *desc, const u8 *data, in skein256_update() argument
32 return skein_256_update((struct skein_256_ctx *)shash_desc_ctx(desc), in skein256_update()
36 static int skein256_final(struct shash_desc *desc, u8 *out) in skein256_final() argument
38 return skein_256_final((struct skein_256_ctx *)shash_desc_ctx(desc), in skein256_final()
42 static int skein256_export(struct shash_desc *desc, void *out) in skein256_export() argument
44 struct skein_256_ctx *sctx = shash_desc_ctx(desc); in skein256_export()
50 static int skein256_import(struct shash_desc *desc, const void *in) in skein256_import() argument
52 struct skein_256_ctx *sctx = shash_desc_ctx(desc); in skein256_import()
[all …]
/drivers/dma/hsu/
Dhsu.c60 struct hsu_dma_desc *desc = hsuc->desc; in hsu_dma_chan_start() local
80 count = desc->nents - desc->active; in hsu_dma_chan_start()
82 hsu_chan_writel(hsuc, HSU_CH_DxSAR(i), desc->sg[i].addr); in hsu_dma_chan_start()
83 hsu_chan_writel(hsuc, HSU_CH_DxTSR(i), desc->sg[i].len); in hsu_dma_chan_start()
89 desc->active++; in hsu_dma_chan_start()
118 hsuc->desc = NULL; in hsu_dma_start_transfer()
123 hsuc->desc = to_hsu_dma_desc(vdesc); in hsu_dma_start_transfer()
208 struct hsu_dma_desc *desc; in hsu_dma_do_irq() local
218 desc = hsuc->desc; in hsu_dma_do_irq()
219 if (desc) { in hsu_dma_do_irq()
[all …]
/drivers/usb/image/
Dmicrotek.c212 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()
317 static inline void mts_urb_abort(struct mts_desc* desc) { in mts_urb_abort() argument
319 mts_debug_dump(desc); in mts_urb_abort()
321 usb_kill_urb( desc->urb ); in mts_urb_abort()
338 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_abort() local
[all …]
/drivers/usb/core/
Dconfig.c50 struct usb_ssp_isoc_ep_comp_descriptor *desc; in usb_parse_ssp_isoc_endpoint_companion() local
56 desc = (struct usb_ssp_isoc_ep_comp_descriptor *) buffer; in usb_parse_ssp_isoc_endpoint_companion()
57 if (desc->bDescriptorType != USB_DT_SSP_ISOC_ENDPOINT_COMP || in usb_parse_ssp_isoc_endpoint_companion()
61 cfgno, inum, asnum, ep->desc.bEndpointAddress); in usb_parse_ssp_isoc_endpoint_companion()
64 memcpy(&ep->ssp_isoc_ep_comp, desc, USB_DT_SSP_ISOC_EP_COMP_SIZE); in usb_parse_ssp_isoc_endpoint_companion()
71 struct usb_ss_ep_comp_descriptor *desc; in usb_parse_ss_endpoint_companion() local
77 desc = (struct usb_ss_ep_comp_descriptor *) buffer; in usb_parse_ss_endpoint_companion()
79 if (desc->bDescriptorType != USB_DT_SS_ENDPOINT_COMP || in usb_parse_ss_endpoint_companion()
84 cfgno, inum, asnum, ep->desc.bEndpointAddress); in usb_parse_ss_endpoint_companion()
95 if (usb_endpoint_xfer_isoc(&ep->desc) || in usb_parse_ss_endpoint_companion()
[all …]

12345678910>>...55