Home
last modified time | relevance | path

Searched full:desc (Results 1 – 25 of 3442) sorted by relevance

12345678910>>...138

/linux-6.12.1/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 …]
/linux-6.12.1/kernel/irq/
Dchip.c44 struct irq_desc *desc = irq_get_desc_lock(irq, &flags, 0); in irq_set_chip() local
46 if (!desc) in irq_set_chip()
49 desc->irq_data.chip = (struct irq_chip *)(chip ?: &no_irq_chip); in irq_set_chip()
50 irq_put_desc_unlock(desc, flags); in irq_set_chip()
68 struct irq_desc *desc = irq_get_desc_buslock(irq, &flags, IRQ_GET_DESC_CHECK_GLOBAL); in irq_set_irq_type() local
71 if (!desc) in irq_set_irq_type()
74 ret = __irq_set_trigger(desc, type); in irq_set_irq_type()
75 irq_put_desc_busunlock(desc, flags); in irq_set_irq_type()
90 struct irq_desc *desc = irq_get_desc_lock(irq, &flags, 0); in irq_set_handler_data() local
92 if (!desc) in irq_set_handler_data()
[all …]
Dsettings.h42 irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) in irq_settings_clr_and_set() argument
44 desc->status_use_accessors &= ~(clr & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
45 desc->status_use_accessors |= (set & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
48 static inline bool irq_settings_is_per_cpu(struct irq_desc *desc) in irq_settings_is_per_cpu() argument
50 return desc->status_use_accessors & _IRQ_PER_CPU; in irq_settings_is_per_cpu()
53 static inline bool irq_settings_is_per_cpu_devid(struct irq_desc *desc) in irq_settings_is_per_cpu_devid() argument
55 return desc->status_use_accessors & _IRQ_PER_CPU_DEVID; in irq_settings_is_per_cpu_devid()
58 static inline void irq_settings_set_per_cpu(struct irq_desc *desc) in irq_settings_set_per_cpu() argument
60 desc->status_use_accessors |= _IRQ_PER_CPU; in irq_settings_set_per_cpu()
63 static inline void irq_settings_set_no_balancing(struct irq_desc *desc) in irq_settings_set_no_balancing() argument
[all …]
Dirqdesc.c54 static int alloc_masks(struct irq_desc *desc, int node) in alloc_masks() argument
56 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
61 if (!zalloc_cpumask_var_node(&desc->irq_common_data.effective_affinity, in alloc_masks()
63 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
69 if (!zalloc_cpumask_var_node(&desc->pending_mask, GFP_KERNEL, node)) { in alloc_masks()
71 free_cpumask_var(desc->irq_common_data.effective_affinity); in alloc_masks()
73 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
80 static void desc_smp_init(struct irq_desc *desc, int node, in desc_smp_init() argument
85 cpumask_copy(desc->irq_common_data.affinity, affinity); in desc_smp_init()
88 cpumask_clear(desc->pending_mask); in desc_smp_init()
[all …]
Dpm.c16 bool irq_pm_check_wakeup(struct irq_desc *desc) in irq_pm_check_wakeup() argument
18 if (irqd_is_wakeup_armed(&desc->irq_data)) { in irq_pm_check_wakeup()
19 irqd_clear(&desc->irq_data, IRQD_WAKEUP_ARMED); in irq_pm_check_wakeup()
20 desc->istate |= IRQS_SUSPENDED | IRQS_PENDING; in irq_pm_check_wakeup()
21 desc->depth++; in irq_pm_check_wakeup()
22 irq_disable(desc); in irq_pm_check_wakeup()
23 pm_system_irq_wakeup(irq_desc_get_irq(desc)); in irq_pm_check_wakeup()
30 * Called from __setup_irq() with desc->lock held after @action has
33 void irq_pm_install_action(struct irq_desc *desc, struct irqaction *action) in irq_pm_install_action() argument
35 desc->nr_actions++; in irq_pm_install_action()
[all …]
Dmanage.c38 static void __synchronize_hardirq(struct irq_desc *desc, bool sync_chip) in __synchronize_hardirq() argument
40 struct irq_data *irqd = irq_desc_get_irq_data(desc); in __synchronize_hardirq()
50 while (irqd_irq_inprogress(&desc->irq_data)) in __synchronize_hardirq()
54 raw_spin_lock_irqsave(&desc->lock, flags); in __synchronize_hardirq()
55 inprogress = irqd_irq_inprogress(&desc->irq_data); in __synchronize_hardirq()
70 raw_spin_unlock_irqrestore(&desc->lock, flags); in __synchronize_hardirq()
100 struct irq_desc *desc = irq_to_desc(irq); in synchronize_hardirq() local
102 if (desc) { in synchronize_hardirq()
103 __synchronize_hardirq(desc, false); in synchronize_hardirq()
104 return !atomic_read(&desc->threads_active); in synchronize_hardirq()
[all …]
Dinternals.h43 * Bit masks for desc->core_internal_state__do_not_mess_with_it
77 extern int __irq_set_trigger(struct irq_desc *desc, unsigned long flags);
78 extern void __disable_irq(struct irq_desc *desc);
79 extern void __enable_irq(struct irq_desc *desc);
87 extern int irq_activate(struct irq_desc *desc);
88 extern int irq_activate_and_startup(struct irq_desc *desc, bool resend);
89 extern int irq_startup(struct irq_desc *desc, bool resend, bool force);
91 extern void irq_shutdown(struct irq_desc *desc);
92 extern void irq_shutdown_and_deactivate(struct irq_desc *desc);
93 extern void irq_enable(struct irq_desc *desc);
[all …]
Dresend.c33 struct irq_desc *desc; in resend_irqs() local
37 desc = hlist_entry(irq_resend_list.first, struct irq_desc, in resend_irqs()
39 hlist_del_init(&desc->resend_node); in resend_irqs()
41 desc->handle_irq(desc); in resend_irqs()
50 static int irq_sw_resend(struct irq_desc *desc) in irq_sw_resend() argument
56 if (handle_enforce_irqctx(&desc->irq_data)) in irq_sw_resend()
64 if (irq_settings_is_nested_thread(desc)) { in irq_sw_resend()
69 if (!desc->parent_irq) in irq_sw_resend()
72 desc = irq_to_desc(desc->parent_irq); in irq_sw_resend()
73 if (!desc) in irq_sw_resend()
[all …]
Dautoprobe.c32 struct irq_desc *desc; in probe_irq_on() local
45 for_each_irq_desc_reverse(i, desc) { in probe_irq_on()
46 raw_spin_lock_irq(&desc->lock); in probe_irq_on()
47 if (!desc->action && irq_settings_can_probe(desc)) { in probe_irq_on()
52 if (desc->irq_data.chip->irq_set_type) in probe_irq_on()
53 desc->irq_data.chip->irq_set_type(&desc->irq_data, in probe_irq_on()
55 irq_activate_and_startup(desc, IRQ_NORESEND); in probe_irq_on()
57 raw_spin_unlock_irq(&desc->lock); in probe_irq_on()
68 for_each_irq_desc_reverse(i, desc) { in probe_irq_on()
69 raw_spin_lock_irq(&desc->lock); in probe_irq_on()
[all …]
Dspurious.c36 bool irq_wait_for_poll(struct irq_desc *desc) in irq_wait_for_poll() argument
37 __must_hold(&desc->lock) in irq_wait_for_poll()
41 smp_processor_id(), desc->irq_data.irq)) in irq_wait_for_poll()
46 raw_spin_unlock(&desc->lock); in irq_wait_for_poll()
47 while (irqd_irq_inprogress(&desc->irq_data)) in irq_wait_for_poll()
49 raw_spin_lock(&desc->lock); in irq_wait_for_poll()
50 } while (irqd_irq_inprogress(&desc->irq_data)); in irq_wait_for_poll()
52 return !irqd_irq_disabled(&desc->irq_data) && desc->action; in irq_wait_for_poll()
62 static int try_one_irq(struct irq_desc *desc, bool force) in try_one_irq() argument
67 raw_spin_lock(&desc->lock); in try_one_irq()
[all …]
/linux-6.12.1/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.h12 #include "desc.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()
[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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/lib/crypto/
Dpoly1305.c15 void poly1305_init_generic(struct poly1305_desc_ctx *desc, in poly1305_init_generic() argument
18 poly1305_core_setkey(&desc->core_r, key); in poly1305_init_generic()
19 desc->s[0] = get_unaligned_le32(key + 16); in poly1305_init_generic()
20 desc->s[1] = get_unaligned_le32(key + 20); in poly1305_init_generic()
21 desc->s[2] = get_unaligned_le32(key + 24); in poly1305_init_generic()
22 desc->s[3] = get_unaligned_le32(key + 28); in poly1305_init_generic()
23 poly1305_core_init(&desc->h); in poly1305_init_generic()
24 desc->buflen = 0; in poly1305_init_generic()
25 desc->sset = true; in poly1305_init_generic()
26 desc->rset = 2; in poly1305_init_generic()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/infiniband/core/
Dpacker.c54 * @desc:Array of structure field descriptions
55 * @desc_len:Number of entries in @desc
60 * controlled by the array of fields in @desc.
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()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/include/uapi/linux/usb/
Daudio.h161 __le16 wTotalLength; /* includes Unit and Terminal desc. */
267 static inline __u8 uac_mixer_unit_bNrChannels(struct uac_mixer_unit_descriptor *desc) in uac_mixer_unit_bNrChannels() argument
269 return desc->baSourceID[desc->bNrInPins]; in uac_mixer_unit_bNrChannels()
272 static inline __u32 uac_mixer_unit_wChannelConfig(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_wChannelConfig() argument
276 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
277 desc->baSourceID[desc->bNrInPins + 1]; in uac_mixer_unit_wChannelConfig()
279 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_mixer_unit_wChannelConfig()
280 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_mixer_unit_wChannelConfig()
281 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
282 (desc->baSourceID[desc->bNrInPins + 1]); in uac_mixer_unit_wChannelConfig()
[all …]
/linux-6.12.1/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 …]

12345678910>>...138