Home
last modified time | relevance | path

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

12345678910>>...67

/drivers/usb/class/
Dcdc-wdm.c111 struct wdm_device *desc; in wdm_find_device() local
114 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device()
115 if (desc->intf == intf) in wdm_find_device()
117 desc = NULL; in wdm_find_device()
121 return desc; in wdm_find_device()
126 struct wdm_device *desc; in wdm_find_device_by_minor() local
129 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device_by_minor()
130 if (desc->intf->minor == minor) in wdm_find_device_by_minor()
132 desc = NULL; in wdm_find_device_by_minor()
136 return desc; in wdm_find_device_by_minor()
[all …]
/drivers/crypto/caam/
Dcaamalg_desc.c15 static inline void aead_append_src_dst(u32 *desc, u32 msg_type) in aead_append_src_dst() argument
17 append_seq_fifo_store(desc, 0, FIFOST_TYPE_MESSAGE_DATA | KEY_VLF); in aead_append_src_dst()
18 append_seq_fifo_load(desc, 0, FIFOLD_CLASS_BOTH | in aead_append_src_dst()
23 static inline void append_dec_op1(u32 *desc, u32 type) in append_dec_op1() argument
29 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
34 jump_cmd = append_jump(desc, JUMP_TEST_ALL | JUMP_COND_SHRD); in append_dec_op1()
35 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
37 uncond_jump_cmd = append_jump(desc, JUMP_TEST_ALL); in append_dec_op1()
38 set_jump_tgt_here(desc, jump_cmd); in append_dec_op1()
39 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
[all …]
Ddesc_constr.h21 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\
40 static inline int desc_len(u32 * const desc) in desc_len() argument
42 return caam32_to_cpu(*desc) & HDR_DESCLEN_MASK; in desc_len()
45 static inline int desc_bytes(void * const desc) in desc_bytes() argument
47 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
50 static inline u32 *desc_end(u32 * const desc) in desc_end() argument
52 return desc + desc_len(desc); in desc_end()
55 static inline void *sh_desc_pdb(u32 * const desc) in sh_desc_pdb() argument
57 return desc + 1; in sh_desc_pdb()
60 static inline void init_desc(u32 * const desc, u32 options) in init_desc() argument
[all …]
Dpkc_desc.c14 void init_rsa_pub_desc(u32 *desc, struct rsa_pub_pdb *pdb) in init_rsa_pub_desc() argument
16 init_job_desc_pdb(desc, 0, sizeof(*pdb)); in init_rsa_pub_desc()
17 append_cmd(desc, pdb->sgf); in init_rsa_pub_desc()
18 append_ptr(desc, pdb->f_dma); in init_rsa_pub_desc()
19 append_ptr(desc, pdb->g_dma); in init_rsa_pub_desc()
20 append_ptr(desc, pdb->n_dma); in init_rsa_pub_desc()
21 append_ptr(desc, pdb->e_dma); in init_rsa_pub_desc()
22 append_cmd(desc, pdb->f_len); in init_rsa_pub_desc()
23 append_operation(desc, OP_TYPE_UNI_PROTOCOL | OP_PCLID_RSAENC_PUBKEY); in init_rsa_pub_desc()
27 void init_rsa_priv_f1_desc(u32 *desc, struct rsa_priv_f1_pdb *pdb) in init_rsa_priv_f1_desc() argument
[all …]
/drivers/regulator/
Dda9062-regulator.c55 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 …]
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 …]
/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/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/ccree/
Dssi_aead.c270 static int xcbc_setkey(struct cc_hw_desc *desc, struct ssi_aead_ctx *ctx) in xcbc_setkey() argument
273 hw_desc_init(&desc[0]); in xcbc_setkey()
277 set_din_type(&desc[0], DMA_DLLI, in xcbc_setkey()
280 set_cipher_mode(&desc[0], DRV_CIPHER_ECB); in xcbc_setkey()
281 set_cipher_config0(&desc[0], DRV_CRYPTO_DIRECTION_ENCRYPT); in xcbc_setkey()
282 set_key_size_aes(&desc[0], ctx->auth_keylen); in xcbc_setkey()
283 set_flow_mode(&desc[0], S_DIN_to_AES); in xcbc_setkey()
284 set_setup_mode(&desc[0], SETUP_LOAD_KEY0); in xcbc_setkey()
286 hw_desc_init(&desc[1]); in xcbc_setkey()
287 set_din_const(&desc[1], 0x01010101, CC_AES_128_BIT_KEY_SIZE); in xcbc_setkey()
[all …]
Dssi_hash.c69 struct cc_hw_desc desc[],
73 struct cc_hw_desc desc[],
113 unsigned int flow_mode, struct cc_hw_desc desc[],
117 static inline void ssi_set_hash_endianity(u32 mode, struct cc_hw_desc *desc) in ssi_set_hash_endianity() argument
122 set_bytes_swap(desc, 1); in ssi_set_hash_endianity()
124 set_cipher_config0(desc, HASH_DIGEST_RESULT_LITTLE_ENDIAN); in ssi_set_hash_endianity()
157 struct cc_hw_desc desc; in ssi_hash_map_request() local
235 hw_desc_init(&desc); in ssi_hash_map_request()
236 set_din_sram(&desc, larval_digest_addr, ctx->inter_digestsize); in ssi_hash_map_request()
237 set_dout_dlli(&desc, state->digest_buff_dma_addr, in ssi_hash_map_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/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.c74 struct ccp_dma_desc *desc, *dtmp; in ccp_free_desc_resources() local
76 list_for_each_entry_safe(desc, dtmp, list, entry) { in ccp_free_desc_resources()
77 ccp_free_cmd_resources(ccp, &desc->active); in ccp_free_desc_resources()
78 ccp_free_cmd_resources(ccp, &desc->pending); in ccp_free_desc_resources()
80 list_del(&desc->entry); in ccp_free_desc_resources()
81 kmem_cache_free(ccp->dma_desc_cache, desc); in ccp_free_desc_resources()
106 struct ccp_dma_desc *desc, *dtmp; in ccp_cleanup_desc_resources() local
108 list_for_each_entry_safe_reverse(desc, dtmp, list, entry) { in ccp_cleanup_desc_resources()
109 if (!async_tx_test_ack(&desc->tx_desc)) in ccp_cleanup_desc_resources()
112 dev_dbg(ccp->dev, "%s - desc=%p\n", __func__, desc); in ccp_cleanup_desc_resources()
[all …]
Dccp-dev-v5.c227 static int ccp5_do_cmd(struct ccp5_desc *desc, in ccp5_do_cmd() argument
238 if (CCP5_CMD_SOC(desc)) { in ccp5_do_cmd()
239 CCP5_CMD_IOC(desc) = 1; in ccp5_do_cmd()
240 CCP5_CMD_SOC(desc) = 0; in ccp5_do_cmd()
245 dP = (__le32 *) desc; in ccp5_do_cmd()
262 if (CCP5_CMD_IOC(desc)) { in ccp5_do_cmd()
285 struct ccp5_desc desc; in ccp5_perform_aes() local
292 memset(&desc, 0, Q_DESC_SIZE); in ccp5_perform_aes()
294 CCP5_CMD_ENGINE(&desc) = CCP_ENGINE_AES; in ccp5_perform_aes()
296 CCP5_CMD_SOC(&desc) = op->soc; in ccp5_perform_aes()
[all …]
/drivers/dma/sh/
Drcar-dmac.c185 } desc; member
341 struct rcar_dmac_desc *desc = chan->desc.running; in rcar_dmac_chan_start_xfer() local
342 u32 chcr = desc->chcr; in rcar_dmac_chan_start_xfer()
349 if (desc->hwdescs.use) { in rcar_dmac_chan_start_xfer()
351 list_first_entry(&desc->chunks, in rcar_dmac_chan_start_xfer()
356 chan->index, desc, desc->nchunks, &desc->hwdescs.dma); in rcar_dmac_chan_start_xfer()
364 desc->hwdescs.dma >> 32); in rcar_dmac_chan_start_xfer()
367 (desc->hwdescs.dma & 0xfffffff0) | in rcar_dmac_chan_start_xfer()
370 RCAR_DMACHCRB_DCNT(desc->nchunks - 1) | in rcar_dmac_chan_start_xfer()
396 if (!desc->cyclic) in rcar_dmac_chan_start_xfer()
[all …]
/drivers/gpio/
Dgpiolib.c149 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument
151 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio()
160 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument
162 if (!desc || !desc->gdev || !desc->gdev->chip) in gpiod_to_chip()
164 return desc->gdev->chip; in gpiod_to_chip()
200 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction() argument
206 chip = gpiod_to_chip(desc); in gpiod_get_direction()
207 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction()
213 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags) && in gpiod_get_direction()
214 test_bit(FLAG_IS_OUT, &desc->flags)) in gpiod_get_direction()
[all …]
Dgpiolib-sysfs.c20 struct gpio_desc *desc; member
61 struct gpio_desc *desc = data->desc; in direction_show() local
66 gpiod_get_direction(desc); in direction_show()
68 test_bit(FLAG_IS_OUT, &desc->flags) in direction_show()
80 struct gpio_desc *desc = data->desc; in direction_store() local
86 status = gpiod_direction_output_raw(desc, 1); in direction_store()
88 status = gpiod_direction_output_raw(desc, 0); in direction_store()
90 status = gpiod_direction_input(desc); in direction_store()
104 struct gpio_desc *desc = data->desc; in value_show() local
109 status = sprintf(buf, "%d\n", gpiod_get_value_cansleep(desc)); in value_show()
[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/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()
103 desc->mux_usecount && strcmp(desc->mux_owner, owner)) { in pin_request()
106 desc->name, desc->mux_owner, owner); in pin_request()
110 if ((gpio_range || ops->strict) && desc->gpio_owner) { in pin_request()
113 desc->name, desc->gpio_owner, owner); in pin_request()
[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 …]
/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.c208 static inline void mts_debug_dump(struct mts_desc* desc) { in mts_debug_dump() argument
210 (int)desc, in mts_debug_dump()
211 (int)desc->usb_dev->toggle[1],(int)desc->usb_dev->toggle[0] in mts_debug_dump()
214 usb_sndbulkpipe(desc->usb_dev,desc->ep_out), in mts_debug_dump()
215 usb_rcvbulkpipe(desc->usb_dev,desc->ep_response), in mts_debug_dump()
216 usb_rcvbulkpipe(desc->usb_dev,desc->ep_image) in mts_debug_dump()
313 static inline void mts_urb_abort(struct mts_desc* desc) { in mts_urb_abort() argument
315 mts_debug_dump(desc); in mts_urb_abort()
317 usb_kill_urb( desc->urb ); in mts_urb_abort()
334 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); in mts_scsi_abort() local
[all …]

12345678910>>...67