Home
last modified time | relevance | path

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

12345678910>>...84

/drivers/usb/class/
Dcdc-wdm.c122 struct wdm_device *desc; in wdm_find_device() local
125 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device()
126 if (desc->intf == intf) in wdm_find_device()
128 desc = NULL; in wdm_find_device()
132 return desc; in wdm_find_device()
137 struct wdm_device *desc; in wdm_find_device_by_minor() local
140 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device_by_minor()
141 if (desc->intf->minor == minor) in wdm_find_device_by_minor()
143 desc = NULL; in wdm_find_device_by_minor()
147 return desc; in wdm_find_device_by_minor()
[all …]
/drivers/crypto/caam/
Dcaamalg_desc.c16 static inline void aead_append_src_dst(u32 *desc, u32 msg_type) in aead_append_src_dst() argument
18 append_seq_fifo_store(desc, 0, FIFOST_TYPE_MESSAGE_DATA | KEY_VLF); in aead_append_src_dst()
19 append_seq_fifo_load(desc, 0, FIFOLD_CLASS_BOTH | in aead_append_src_dst()
24 static inline void append_dec_op1(u32 *desc, u32 type) in append_dec_op1() argument
30 append_operation(desc, type | OP_ALG_AS_INITFINAL | in append_dec_op1()
35 jump_cmd = append_jump(desc, JUMP_TEST_ALL | JUMP_COND_SHRD); in append_dec_op1()
36 append_operation(desc, type | OP_ALG_AS_INIT | OP_ALG_DECRYPT); 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_INIT | OP_ALG_DECRYPT | in append_dec_op1()
[all …]
Ddesc_constr.h54 #define PRINT_POS do { printk(KERN_DEBUG "%02d: %s\n", desc_len(desc),\
84 static inline int desc_len(u32 * const desc) in desc_len() argument
86 return caam32_to_cpu(*desc) & HDR_DESCLEN_MASK; in desc_len()
89 static inline int desc_bytes(void * const desc) in desc_bytes() argument
91 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
94 static inline u32 *desc_end(u32 * const desc) in desc_end() argument
96 return desc + desc_len(desc); in desc_end()
99 static inline void *sh_desc_pdb(u32 * const desc) in sh_desc_pdb() argument
101 return desc + 1; in sh_desc_pdb()
104 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_RSA_PUB_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.c47 struct regulator_desc desc; member
60 struct regulator_desc desc; member
258 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9062_set_suspend_voltage()
261 rdev->desc->vsel_mask, sel); in da9062_set_suspend_voltage()
360 .desc.id = DA9061_ID_BUCK1,
361 .desc.name = "DA9061 BUCK1",
362 .desc.of_match = of_match_ptr("buck1"),
363 .desc.regulators_node = of_match_ptr("regulators"),
364 .desc.ops = &da9062_buck_ops,
365 .desc.min_uV = (300) * 1000,
[all …]
Dhelpers.c33 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap()
37 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap()
39 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap()
40 if (rdev->desc->enable_val) in regulator_is_enabled_regmap()
41 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap()
44 if (rdev->desc->enable_val) in regulator_is_enabled_regmap()
45 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap()
64 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap()
65 val = rdev->desc->disable_val; in regulator_enable_regmap()
67 val = rdev->desc->enable_val; in regulator_enable_regmap()
[all …]
Drt5739.c53 const struct regulator_desc *desc = rdev->desc; in rt5739_set_mode() local
57 if (desc->vsel_reg == RT5739_REG_NSEL0) in rt5739_set_mode()
78 const struct regulator_desc *desc = rdev->desc; in rt5739_get_mode() local
83 if (desc->vsel_reg == RT5739_REG_NSEL0) in rt5739_get_mode()
100 const struct regulator_desc *desc = rdev->desc; in rt5739_set_suspend_voltage() local
105 max_uV = desc->min_uV + desc->uV_step * (desc->n_voltages - 1); in rt5739_set_suspend_voltage()
107 if (uV < desc->min_uV || uV > max_uV) in rt5739_set_suspend_voltage()
110 if (desc->vsel_reg == RT5739_REG_NSEL0) in rt5739_set_suspend_voltage()
115 vsel = (uV - desc->min_uV) / desc->uV_step; in rt5739_set_suspend_voltage()
121 const struct regulator_desc *desc = rdev->desc; in rt5739_set_suspend_enable() local
[all …]
/drivers/scsi/fnic/
Dfnic_res.h25 struct wq_enet_desc *desc = vnic_wq_next_desc(wq); in fnic_queue_wq_desc() local
27 wq_enet_desc_enc(desc, in fnic_queue_wq_desc()
49 struct wq_enet_desc *desc = vnic_wq_next_desc(wq); in fnic_queue_wq_eth_desc() local
51 wq_enet_desc_enc(desc, in fnic_queue_wq_eth_desc()
79 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_icmnd_16() local
81 desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_icmnd_16()
82 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_icmnd_16()
83 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
84 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_icmnd_16()
86 desc->u.icmnd_16.lunmap_id = lunmap_id; /* index into lunmap table */ in fnic_queue_wq_copy_desc_icmnd_16()
[all …]
/drivers/crypto/ccree/
Dcc_aead.c251 static unsigned int xcbc_setkey(struct cc_hw_desc *desc, in xcbc_setkey() argument
255 hw_desc_init(&desc[0]); in xcbc_setkey()
260 set_din_type(&desc[0], DMA_DLLI, in xcbc_setkey()
263 set_cipher_mode(&desc[0], DRV_CIPHER_ECB); in xcbc_setkey()
264 set_cipher_config0(&desc[0], DRV_CRYPTO_DIRECTION_ENCRYPT); in xcbc_setkey()
265 set_key_size_aes(&desc[0], ctx->auth_keylen); in xcbc_setkey()
266 set_flow_mode(&desc[0], S_DIN_to_AES); in xcbc_setkey()
267 set_setup_mode(&desc[0], SETUP_LOAD_KEY0); in xcbc_setkey()
269 hw_desc_init(&desc[1]); in xcbc_setkey()
270 set_din_const(&desc[1], 0x01010101, CC_AES_128_BIT_KEY_SIZE); in xcbc_setkey()
[all …]
Dcc_hash.c59 static void cc_setup_xcbc(struct ahash_request *areq, struct cc_hw_desc desc[],
62 static void cc_setup_cmac(struct ahash_request *areq, struct cc_hw_desc desc[],
104 unsigned int flow_mode, struct cc_hw_desc desc[],
107 static void cc_set_endianity(u32 mode, struct cc_hw_desc *desc) in cc_set_endianity() argument
111 set_bytes_swap(desc, 1); in cc_set_endianity()
113 set_cipher_config0(desc, HASH_DIGEST_RESULT_LITTLE_ENDIAN); in cc_set_endianity()
341 static int cc_fin_result(struct cc_hw_desc *desc, struct ahash_request *req, in cc_fin_result() argument
350 hw_desc_init(&desc[idx]); in cc_fin_result()
351 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_fin_result()
352 set_dout_dlli(&desc[idx], state->digest_result_dma_addr, digestsize, in cc_fin_result()
[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/crypto/ccp/
Dccp-dmaengine.c76 struct ccp_dma_desc *desc, *dtmp; in ccp_free_desc_resources() local
78 list_for_each_entry_safe(desc, dtmp, list, entry) { in ccp_free_desc_resources()
79 ccp_free_cmd_resources(ccp, &desc->active); in ccp_free_desc_resources()
80 ccp_free_cmd_resources(ccp, &desc->pending); in ccp_free_desc_resources()
82 list_del(&desc->entry); in ccp_free_desc_resources()
83 kmem_cache_free(ccp->dma_desc_cache, desc); in ccp_free_desc_resources()
108 struct ccp_dma_desc *desc, *dtmp; in ccp_cleanup_desc_resources() local
110 list_for_each_entry_safe_reverse(desc, dtmp, list, entry) { in ccp_cleanup_desc_resources()
111 if (!async_tx_test_ack(&desc->tx_desc)) in ccp_cleanup_desc_resources()
114 dev_dbg(ccp->dev, "%s - desc=%p\n", __func__, desc); in ccp_cleanup_desc_resources()
[all …]
Dccp-dev-v5.c221 static int ccp5_do_cmd(struct ccp5_desc *desc, in ccp5_do_cmd() argument
232 if (CCP5_CMD_SOC(desc)) { in ccp5_do_cmd()
233 CCP5_CMD_IOC(desc) = 1; in ccp5_do_cmd()
234 CCP5_CMD_SOC(desc) = 0; in ccp5_do_cmd()
239 dP = (u32 *)desc; in ccp5_do_cmd()
256 if (CCP5_CMD_IOC(desc)) { in ccp5_do_cmd()
279 struct ccp5_desc desc; in ccp5_perform_aes() local
286 memset(&desc, 0, Q_DESC_SIZE); in ccp5_perform_aes()
288 CCP5_CMD_ENGINE(&desc) = CCP_ENGINE_AES; in ccp5_perform_aes()
290 CCP5_CMD_SOC(&desc) = op->soc; in ccp5_perform_aes()
[all …]
/drivers/comedi/drivers/
Dcomedi_isadma.c19 void comedi_isadma_program(struct comedi_isadma_desc *desc) in comedi_isadma_program() argument
24 clear_dma_ff(desc->chan); in comedi_isadma_program()
25 set_dma_mode(desc->chan, desc->mode); in comedi_isadma_program()
26 set_dma_addr(desc->chan, desc->hw_addr); in comedi_isadma_program()
27 set_dma_count(desc->chan, desc->size); in comedi_isadma_program()
28 enable_dma(desc->chan); in comedi_isadma_program()
100 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() local
106 clear_dma_ff(desc->chan); in comedi_isadma_poll()
108 disable_dma(desc->chan); in comedi_isadma_poll()
109 result = get_dma_residue(desc->chan); in comedi_isadma_poll()
[all …]
/drivers/power/supply/
Dcharger-manager.c102 switch (cm->desc->battery_present) { in is_batt_present()
109 psy = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in is_batt_present()
120 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_batt_present()
122 cm->desc->psy_charger_stat[i]); in is_batt_present()
125 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()
193 fuel_gauge = power_supply_get_by_name(cm->desc->psy_fuel_gauge); in get_batt_uV()
223 for (i = 0; cm->desc->psy_charger_stat[i]; i++) { in is_charging()
[all …]
/drivers/dma/ptdma/
Dptdma-dmaengine.c42 struct pt_dma_desc *desc = to_pt_desc(vd); in pt_do_cleanup() local
43 struct pt_device *pt = desc->pt; in pt_do_cleanup()
45 kmem_cache_free(pt->dma_desc_cache, desc); in pt_do_cleanup()
48 static int pt_dma_start_desc(struct pt_dma_desc *desc) in pt_dma_start_desc() argument
55 desc->issued_to_hw = 1; in pt_dma_start_desc()
57 pt_cmd = &desc->pt_cmd; in pt_dma_start_desc()
79 struct pt_dma_desc *desc) in pt_handle_active_desc() argument
87 if (desc) { in pt_handle_active_desc()
88 if (!desc->issued_to_hw) { in pt_handle_active_desc()
90 if (desc->status != DMA_ERROR) in pt_handle_active_desc()
[all …]
/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c73 const struct mtk_pin_desc *desc, in mtk_hw_pin_field_lookup() argument
94 if (desc->number >= rc->range[check].s_pin in mtk_hw_pin_field_lookup()
95 && desc->number <= rc->range[check].e_pin) { in mtk_hw_pin_field_lookup()
100 else if (desc->number < rc->range[check].s_pin) in mtk_hw_pin_field_lookup()
108 field, desc->number, desc->name); in mtk_hw_pin_field_lookup()
117 field, desc->number, desc->name); in mtk_hw_pin_field_lookup()
126 (desc->number - c->s_pin) * (c->x_bits); in mtk_hw_pin_field_lookup()
146 const struct mtk_pin_desc *desc, in mtk_hw_pin_field_get() argument
154 return mtk_hw_pin_field_lookup(hw, desc, field, pfd); in mtk_hw_pin_field_get()
192 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_set_value() argument
[all …]
/drivers/gpio/
Dgpiolib-sysfs.c35 struct gpio_desc *desc; member
76 struct gpio_desc *desc = data->desc; in direction_show() local
81 gpiod_get_direction(desc); in direction_show()
82 value = !!test_bit(FLAG_IS_OUT, &desc->flags); in direction_show()
93 struct gpio_desc *desc = data->desc; in direction_store() local
99 status = gpiod_direction_output_raw(desc, 1); in direction_store()
101 status = gpiod_direction_output_raw(desc, 0); in direction_store()
103 status = gpiod_direction_input(desc); in direction_store()
117 struct gpio_desc *desc = data->desc; in value_show() local
122 status = gpiod_get_value_cansleep(desc); in value_show()
[all …]
Dgpiolib.c182 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument
184 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio()
193 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument
195 if (!desc || !desc->gdev) in gpiod_to_chip()
197 return desc->gdev->chip; in gpiod_to_chip()
234 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction() argument
240 gc = gpiod_to_chip(desc); in gpiod_get_direction()
241 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction()
247 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags) && in gpiod_get_direction()
248 test_bit(FLAG_IS_OUT, &desc->flags)) in gpiod_get_direction()
[all …]
Dgpiolib.h109 struct gpio_desc **desc; member
120 #define for_each_gpio_desc(gc, desc) \ argument
122 __i < gc->ngpio && (desc = gpiochip_get_desc(gc, __i)); \
125 #define for_each_gpio_desc_with_flag(gc, desc, flag) \ argument
126 for_each_gpio_desc(gc, desc) \
127 if (!test_bit(flag, &desc->flags)) {} else
143 void gpiod_line_state_notify(struct gpio_desc *desc, unsigned long action);
198 #define gpiod_not_found(desc) (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT) argument
200 int gpiod_request(struct gpio_desc *desc, const char *label);
201 void gpiod_free(struct gpio_desc *desc);
[all …]
/drivers/pci/msi/
Dmsi.h12 void pci_msi_update_mask(struct msi_desc *desc, u32 clear, u32 set);
14 static inline void pci_msi_mask(struct msi_desc *desc, u32 mask) in pci_msi_mask() argument
16 pci_msi_update_mask(desc, 0, mask); in pci_msi_mask()
19 static inline void pci_msi_unmask(struct msi_desc *desc, u32 mask) in pci_msi_unmask() argument
21 pci_msi_update_mask(desc, mask, 0); in pci_msi_unmask()
24 static inline void __iomem *pci_msix_desc_addr(struct msi_desc *desc) in pci_msix_desc_addr() argument
26 return desc->pci.mask_base + desc->msi_index * PCI_MSIX_ENTRY_SIZE; in pci_msix_desc_addr()
35 static inline void pci_msix_write_vector_ctrl(struct msi_desc *desc, u32 ctrl) in pci_msix_write_vector_ctrl() argument
37 void __iomem *desc_addr = pci_msix_desc_addr(desc); in pci_msix_write_vector_ctrl()
39 if (desc->pci.msi_attrib.can_mask) in pci_msix_write_vector_ctrl()
[all …]
/drivers/net/wireless/ath/ath12k/
Dhal_rx.c27 struct hal_reo_get_queue_stats *desc; in ath12k_hal_reo_cmd_queue_stats() local
30 u32_encode_bits(sizeof(*desc), HAL_TLV_HDR_LEN); in ath12k_hal_reo_cmd_queue_stats()
32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_cmd_queue_stats()
33 memset_startat(desc, 0, queue_addr_lo); in ath12k_hal_reo_cmd_queue_stats()
35 desc->cmd.info0 &= ~cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats()
37 desc->cmd.info0 |= cpu_to_le32(HAL_REO_CMD_HDR_INFO0_STATUS_REQUIRED); in ath12k_hal_reo_cmd_queue_stats()
39 desc->queue_addr_lo = cpu_to_le32(cmd->addr_lo); in ath12k_hal_reo_cmd_queue_stats()
40 desc->info0 = le32_encode_bits(cmd->addr_hi, in ath12k_hal_reo_cmd_queue_stats()
43 desc->info0 |= cpu_to_le32(HAL_REO_GET_QUEUE_STATS_INFO0_CLEAR_STATS); in ath12k_hal_reo_cmd_queue_stats()
45 return le32_get_bits(desc->cmd.info0, HAL_REO_CMD_HDR_INFO0_CMD_NUMBER); in ath12k_hal_reo_cmd_queue_stats()
[all …]
/drivers/dma/sh/
Drcar-dmac.c183 } desc; member
379 struct rcar_dmac_desc *desc = chan->desc.running; in rcar_dmac_chan_start_xfer() local
380 u32 chcr = desc->chcr; in rcar_dmac_chan_start_xfer()
387 if (desc->hwdescs.use) { in rcar_dmac_chan_start_xfer()
389 list_first_entry(&desc->chunks, in rcar_dmac_chan_start_xfer()
394 chan->index, desc, desc->nchunks, &desc->hwdescs.dma); in rcar_dmac_chan_start_xfer()
402 desc->hwdescs.dma >> 32); in rcar_dmac_chan_start_xfer()
405 (desc->hwdescs.dma & 0xfffffff0) | in rcar_dmac_chan_start_xfer()
408 RCAR_DMACHCRB_DCNT(desc->nchunks - 1) | in rcar_dmac_chan_start_xfer()
434 if (!desc->cyclic) in rcar_dmac_chan_start_xfer()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_err.c1366 struct hclge_desc *desc, u32 cmd, u16 flag) in hclge_cmd_query_error() argument
1372 hclge_cmd_setup_basic_desc(&desc[0], cmd, true); in hclge_cmd_query_error()
1374 desc[0].flag |= cpu_to_le16(flag); in hclge_cmd_query_error()
1375 hclge_cmd_setup_basic_desc(&desc[1], cmd, true); in hclge_cmd_query_error()
1379 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_cmd_query_error()
1388 struct hclge_desc desc; in hclge_clear_mac_tnl_int() local
1390 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_CLEAR_MAC_TNL_INT, false); in hclge_clear_mac_tnl_int()
1391 desc.data[0] = cpu_to_le32(HCLGE_MAC_TNL_INT_CLR); in hclge_clear_mac_tnl_int()
1393 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_clear_mac_tnl_int()
1399 struct hclge_desc desc[2]; in hclge_config_common_hw_err_int() local
[all …]
/drivers/net/phy/
Dmii_timestamper.c29 struct mii_timestamping_desc *desc; in register_mii_tstamp_controller() local
31 desc = kzalloc(sizeof(*desc), GFP_KERNEL); in register_mii_tstamp_controller()
32 if (!desc) in register_mii_tstamp_controller()
35 INIT_LIST_HEAD(&desc->list); in register_mii_tstamp_controller()
36 desc->ctrl = ctrl; in register_mii_tstamp_controller()
37 desc->device = device; in register_mii_tstamp_controller()
40 list_add_tail(&mii_timestamping_devices, &desc->list); in register_mii_tstamp_controller()
54 struct mii_timestamping_desc *desc; in unregister_mii_tstamp_controller() local
59 desc = list_entry(this, struct mii_timestamping_desc, list); in unregister_mii_tstamp_controller()
60 if (desc->device == device) { in unregister_mii_tstamp_controller()
[all …]

12345678910>>...84