/drivers/usb/class/ |
D | cdc-wdm.c | 122 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/ |
D | caamalg_desc.c | 16 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 …]
|
D | desc_constr.h | 54 #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 …]
|
D | pkc_desc.c | 14 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/ |
D | da9062-regulator.c | 47 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 …]
|
D | helpers.c | 32 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 36 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 38 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 39 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 40 return val != rdev->desc->enable_val; 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() 63 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap() 64 val = rdev->desc->disable_val; in regulator_enable_regmap() 66 val = rdev->desc->enable_val; in regulator_enable_regmap() [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/crypto/ccree/ |
D | cc_aead.c | 251 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 …]
|
D | cc_hash.c | 59 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/crypto/ccp/ |
D | ccp-dmaengine.c | 76 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 …]
|
D | ccp-dev-v5.c | 221 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/ |
D | comedi_isadma.c | 21 void comedi_isadma_program(struct comedi_isadma_desc *desc) in comedi_isadma_program() argument 26 clear_dma_ff(desc->chan); in comedi_isadma_program() 27 set_dma_mode(desc->chan, desc->mode); in comedi_isadma_program() 28 set_dma_addr(desc->chan, desc->hw_addr); in comedi_isadma_program() 29 set_dma_count(desc->chan, desc->size); in comedi_isadma_program() 30 enable_dma(desc->chan); in comedi_isadma_program() 102 struct comedi_isadma_desc *desc = &dma->desc[dma->cur_dma]; in comedi_isadma_poll() local 108 clear_dma_ff(desc->chan); in comedi_isadma_poll() 110 disable_dma(desc->chan); in comedi_isadma_poll() 111 result = get_dma_residue(desc->chan); in comedi_isadma_poll() [all …]
|
/drivers/power/supply/ |
D | charger-manager.c | 102 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/pinctrl/mediatek/ |
D | pinctrl-mtk-common-v2.c | 73 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/ |
D | gpiolib.c | 163 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() argument 165 return desc->gdev->base + (desc - &desc->gdev->descs[0]); in desc_to_gpio() 174 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip() argument 176 if (!desc || !desc->gdev) in gpiod_to_chip() 178 return desc->gdev->chip; in gpiod_to_chip() 213 int gpiod_get_direction(struct gpio_desc *desc) in gpiod_get_direction() argument 219 gc = gpiod_to_chip(desc); in gpiod_get_direction() 220 offset = gpio_chip_hwgpio(desc); in gpiod_get_direction() 226 if (test_bit(FLAG_OPEN_DRAIN, &desc->flags) && in gpiod_get_direction() 227 test_bit(FLAG_IS_OUT, &desc->flags)) in gpiod_get_direction() [all …]
|
D | gpiolib-sysfs.c | 22 struct gpio_desc *desc; member 63 struct gpio_desc *desc = data->desc; in direction_show() local 68 gpiod_get_direction(desc); in direction_show() 70 test_bit(FLAG_IS_OUT, &desc->flags) ? "out" : "in"); 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.h | 98 struct gpio_desc **desc; member 173 #define gpiod_not_found(desc) (IS_ERR(desc) && PTR_ERR(desc) == -ENOENT) argument 175 int gpiod_request(struct gpio_desc *desc, const char *label); 176 void gpiod_free(struct gpio_desc *desc); 178 static inline int gpiod_request_user(struct gpio_desc *desc, const char *label) in gpiod_request_user() argument 182 ret = gpiod_request(desc, label); in gpiod_request_user() 189 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id, 191 int gpio_set_debounce_timeout(struct gpio_desc *desc, unsigned int debounce); 192 int gpiod_hog(struct gpio_desc *desc, const char *name, 198 static inline int gpio_chip_hwgpio(const struct gpio_desc *desc) in gpio_chip_hwgpio() argument [all …]
|
/drivers/dma/ptdma/ |
D | ptdma-dmaengine.c | 42 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/dma/sh/ |
D | rcar-dmac.c | 183 } 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/ |
D | hclge_err.c | 1352 struct hclge_desc *desc, u32 cmd, u16 flag) in hclge_cmd_query_error() argument 1358 hclge_cmd_setup_basic_desc(&desc[0], cmd, true); in hclge_cmd_query_error() 1360 desc[0].flag |= cpu_to_le16(flag); in hclge_cmd_query_error() 1361 hclge_cmd_setup_basic_desc(&desc[1], cmd, true); in hclge_cmd_query_error() 1365 ret = hclge_cmd_send(&hdev->hw, &desc[0], desc_num); in hclge_cmd_query_error() 1374 struct hclge_desc desc; in hclge_clear_mac_tnl_int() local 1376 hclge_cmd_setup_basic_desc(&desc, HCLGE_OPC_CLEAR_MAC_TNL_INT, false); in hclge_clear_mac_tnl_int() 1377 desc.data[0] = cpu_to_le32(HCLGE_MAC_TNL_INT_CLR); in hclge_clear_mac_tnl_int() 1379 return hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_clear_mac_tnl_int() 1385 struct hclge_desc desc[2]; in hclge_config_common_hw_err_int() local [all …]
|
/drivers/net/phy/ |
D | mii_timestamper.c | 29 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 …]
|
/drivers/pinctrl/ |
D | pinmux.c | 34 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_check_ops() 86 struct pin_desc *desc = pin_desc_get(pctldev, pin); in pinmux_can_be_used_for_gpio() local 87 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pinmux_can_be_used_for_gpio() 90 if (!desc || !ops) in pinmux_can_be_used_for_gpio() 93 if (ops->strict && desc->mux_usecount) in pinmux_can_be_used_for_gpio() 96 return !(ops->strict && !!desc->gpio_owner); in pinmux_can_be_used_for_gpio() 112 struct pin_desc *desc; in pin_request() local 113 const struct pinmux_ops *ops = pctldev->desc->pmxops; in pin_request() 116 desc = pin_desc_get(pctldev, pin); in pin_request() 117 if (desc == NULL) { in pin_request() [all …]
|
/drivers/dma/hsu/ |
D | hsu.c | 57 struct hsu_dma_desc *desc = hsuc->desc; in hsu_dma_chan_start() local 77 count = desc->nents - desc->active; in hsu_dma_chan_start() 79 hsu_chan_writel(hsuc, HSU_CH_DxSAR(i), desc->sg[i].addr); in hsu_dma_chan_start() 80 hsu_chan_writel(hsuc, HSU_CH_DxTSR(i), desc->sg[i].len); in hsu_dma_chan_start() 86 desc->active++; in hsu_dma_chan_start() 115 hsuc->desc = NULL; in hsu_dma_start_transfer() 120 hsuc->desc = to_hsu_dma_desc(vdesc); in hsu_dma_start_transfer() 206 struct hsu_dma_desc *desc; in hsu_dma_do_irq() local 217 desc = hsuc->desc; in hsu_dma_do_irq() 218 if (desc) { in hsu_dma_do_irq() [all …]
|
/drivers/dma/ |
D | dma-jz4780.c | 121 struct jz4780_dma_hwdesc *desc; member 137 struct jz4780_dma_desc *desc; member 233 struct jz4780_dma_desc *desc; in jz4780_dma_desc_alloc() local 238 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in jz4780_dma_desc_alloc() 239 if (!desc) in jz4780_dma_desc_alloc() 242 desc->desc = dma_pool_alloc(jzchan->desc_pool, GFP_NOWAIT, in jz4780_dma_desc_alloc() 243 &desc->desc_phys); in jz4780_dma_desc_alloc() 244 if (!desc->desc) { in jz4780_dma_desc_alloc() 245 kfree(desc); in jz4780_dma_desc_alloc() 249 desc->count = count; in jz4780_dma_desc_alloc() [all …]
|