Home
last modified time | relevance | path

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

12345678910>>...87

/Linux-v4.19/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()
52 desc->irq_data.chip = chip; in irq_set_chip()
53 irq_put_desc_unlock(desc, flags); in irq_set_chip()
71 struct irq_desc *desc = irq_get_desc_buslock(irq, &flags, IRQ_GET_DESC_CHECK_GLOBAL); in irq_set_irq_type() local
74 if (!desc) in irq_set_irq_type()
77 ret = __irq_set_trigger(desc, type); in irq_set_irq_type()
78 irq_put_desc_busunlock(desc, flags); in irq_set_irq_type()
93 struct irq_desc *desc = irq_get_desc_lock(irq, &flags, 0); in irq_set_handler_data() local
95 if (!desc) in irq_set_handler_data()
[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()
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()
38 desc->force_resume_depth++; in irq_pm_install_action()
[all …]
Dmanage.c37 static void __synchronize_hardirq(struct irq_desc *desc) in __synchronize_hardirq() argument
48 while (irqd_irq_inprogress(&desc->irq_data)) in __synchronize_hardirq()
52 raw_spin_lock_irqsave(&desc->lock, flags); in __synchronize_hardirq()
53 inprogress = irqd_irq_inprogress(&desc->irq_data); in __synchronize_hardirq()
54 raw_spin_unlock_irqrestore(&desc->lock, flags); in __synchronize_hardirq()
79 struct irq_desc *desc = irq_to_desc(irq); in synchronize_hardirq() local
81 if (desc) { in synchronize_hardirq()
82 __synchronize_hardirq(desc); in synchronize_hardirq()
83 return !atomic_read(&desc->threads_active); in synchronize_hardirq()
102 struct irq_desc *desc = irq_to_desc(irq); in synchronize_irq() local
[all …]
Dsettings.h38 irq_settings_clr_and_set(struct irq_desc *desc, u32 clr, u32 set) in irq_settings_clr_and_set() argument
40 desc->status_use_accessors &= ~(clr & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
41 desc->status_use_accessors |= (set & _IRQF_MODIFY_MASK); in irq_settings_clr_and_set()
44 static inline bool irq_settings_is_per_cpu(struct irq_desc *desc) in irq_settings_is_per_cpu() argument
46 return desc->status_use_accessors & _IRQ_PER_CPU; in irq_settings_is_per_cpu()
49 static inline bool irq_settings_is_per_cpu_devid(struct irq_desc *desc) in irq_settings_is_per_cpu_devid() argument
51 return desc->status_use_accessors & _IRQ_PER_CPU_DEVID; in irq_settings_is_per_cpu_devid()
54 static inline void irq_settings_set_per_cpu(struct irq_desc *desc) in irq_settings_set_per_cpu() argument
56 desc->status_use_accessors |= _IRQ_PER_CPU; in irq_settings_set_per_cpu()
59 static inline void irq_settings_set_no_balancing(struct irq_desc *desc) in irq_settings_set_no_balancing() argument
[all …]
Dirqdesc.c55 static int alloc_masks(struct irq_desc *desc, int node) in alloc_masks() argument
57 if (!zalloc_cpumask_var_node(&desc->irq_common_data.affinity, in alloc_masks()
62 if (!zalloc_cpumask_var_node(&desc->irq_common_data.effective_affinity, in alloc_masks()
64 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
70 if (!zalloc_cpumask_var_node(&desc->pending_mask, GFP_KERNEL, node)) { in alloc_masks()
72 free_cpumask_var(desc->irq_common_data.effective_affinity); in alloc_masks()
74 free_cpumask_var(desc->irq_common_data.affinity); in alloc_masks()
81 static void desc_smp_init(struct irq_desc *desc, int node, in desc_smp_init() argument
86 cpumask_copy(desc->irq_common_data.affinity, affinity); in desc_smp_init()
89 cpumask_clear(desc->pending_mask); in desc_smp_init()
[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
40 smp_processor_id(), desc->irq_data.irq)) in irq_wait_for_poll()
45 raw_spin_unlock(&desc->lock); in irq_wait_for_poll()
46 while (irqd_irq_inprogress(&desc->irq_data)) in irq_wait_for_poll()
48 raw_spin_lock(&desc->lock); in irq_wait_for_poll()
49 } while (irqd_irq_inprogress(&desc->irq_data)); in irq_wait_for_poll()
51 return !irqd_irq_disabled(&desc->irq_data) && desc->action; in irq_wait_for_poll()
61 static int try_one_irq(struct irq_desc *desc, bool force) in try_one_irq() argument
66 raw_spin_lock(&desc->lock); in try_one_irq()
72 if (irq_settings_is_per_cpu(desc) || in try_one_irq()
[all …]
Dinternals.h68 extern int __irq_set_trigger(struct irq_desc *desc, unsigned long flags);
69 extern void __disable_irq(struct irq_desc *desc);
70 extern void __enable_irq(struct irq_desc *desc);
78 extern int irq_activate(struct irq_desc *desc);
79 extern int irq_activate_and_startup(struct irq_desc *desc, bool resend);
80 extern int irq_startup(struct irq_desc *desc, bool resend, bool force);
82 extern void irq_shutdown(struct irq_desc *desc);
83 extern void irq_enable(struct irq_desc *desc);
84 extern void irq_disable(struct irq_desc *desc);
85 extern void irq_percpu_enable(struct irq_desc *desc, unsigned int cpu);
[all …]
/Linux-v4.19/drivers/usb/class/
Dcdc-wdm.c113 struct wdm_device *desc; in wdm_find_device() local
116 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device()
117 if (desc->intf == intf) in wdm_find_device()
119 desc = NULL; in wdm_find_device()
123 return desc; in wdm_find_device()
128 struct wdm_device *desc; in wdm_find_device_by_minor() local
131 list_for_each_entry(desc, &wdm_device_list, device_list) in wdm_find_device_by_minor()
132 if (desc->intf->minor == minor) in wdm_find_device_by_minor()
134 desc = NULL; in wdm_find_device_by_minor()
138 return desc; in wdm_find_device_by_minor()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Dcomedi_isadma.c21 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 …]
/Linux-v4.19/drivers/crypto/ccree/
Dcc_aead.c260 static unsigned int xcbc_setkey(struct cc_hw_desc *desc, in xcbc_setkey() argument
264 hw_desc_init(&desc[0]); in xcbc_setkey()
269 set_din_type(&desc[0], DMA_DLLI, in xcbc_setkey()
272 set_cipher_mode(&desc[0], DRV_CIPHER_ECB); in xcbc_setkey()
273 set_cipher_config0(&desc[0], DRV_CRYPTO_DIRECTION_ENCRYPT); in xcbc_setkey()
274 set_key_size_aes(&desc[0], ctx->auth_keylen); in xcbc_setkey()
275 set_flow_mode(&desc[0], S_DIN_to_AES); in xcbc_setkey()
276 set_setup_mode(&desc[0], SETUP_LOAD_KEY0); in xcbc_setkey()
278 hw_desc_init(&desc[1]); in xcbc_setkey()
279 set_din_const(&desc[1], 0x01010101, CC_AES_128_BIT_KEY_SIZE); in xcbc_setkey()
[all …]
/Linux-v4.19/tools/testing/selftests/x86/
Dldt_gdt.c142 struct user_desc desc = *d; in install_valid_mode() local
152 desc.entry_number = gdt_entry_num; in install_valid_mode()
154 ret = syscall(SYS_set_thread_area, &desc); in install_valid_mode()
157 &desc, sizeof(desc)); in install_valid_mode()
169 uint32_t limit = desc.limit; in install_valid_mode()
170 if (desc.limit_in_pages) in install_valid_mode()
172 check_valid_segment(desc.entry_number, ldt, ar, limit, true); in install_valid_mode()
175 if (desc.seg_32bit) { in install_valid_mode()
189 static bool install_valid(const struct user_desc *desc, uint32_t ar) in install_valid() argument
191 bool ret = install_valid_mode(desc, ar, false, true); in install_valid()
[all …]
/Linux-v4.19/include/uapi/linux/usb/
Daudio.h267 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()
285 static inline __u8 uac_mixer_unit_iChannelNames(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_iChannelNames() argument
[all …]
/Linux-v4.19/net/sunrpc/
Dsocklib.c29 size_t xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_bits() argument
31 if (len > desc->count) in xdr_skb_read_bits()
32 len = desc->count; in xdr_skb_read_bits()
33 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) in xdr_skb_read_bits()
35 desc->count -= len; in xdr_skb_read_bits()
36 desc->offset += len; in xdr_skb_read_bits()
49 static size_t xdr_skb_read_and_csum_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_and_csum_bits() argument
54 if (len > desc->count) in xdr_skb_read_and_csum_bits()
55 len = desc->count; in xdr_skb_read_and_csum_bits()
56 pos = desc->offset; in xdr_skb_read_and_csum_bits()
[all …]
/Linux-v4.19/arch/s390/tools/
Dgen_opcode_table.c152 static void read_instructions(struct gen_opcode *desc) in read_instructions() argument
167 desc->nr++; in read_instructions()
168 desc->insn = realloc(desc->insn, desc->nr * sizeof(*desc->insn)); in read_instructions()
169 if (!desc->insn) in read_instructions()
171 desc->insn[desc->nr - 1] = insn; in read_instructions()
180 static void print_formats(struct gen_opcode *desc) in print_formats() argument
185 qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmpformat); in print_formats()
189 for (i = 0; i < desc->nr; i++) { in print_formats()
190 if (!strcmp(format, desc->insn[i].format)) in print_formats()
193 format = desc->insn[i].format; in print_formats()
[all …]
/Linux-v4.19/include/linux/
Dirqdesc.h123 static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) in irq_desc_get_irq() argument
125 return desc->irq_data.irq; in irq_desc_get_irq()
128 static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) in irq_desc_get_irq_data() argument
130 return &desc->irq_data; in irq_desc_get_irq_data()
133 static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc) in irq_desc_get_chip() argument
135 return desc->irq_data.chip; in irq_desc_get_chip()
138 static inline void *irq_desc_get_chip_data(struct irq_desc *desc) in irq_desc_get_chip_data() argument
140 return desc->irq_data.chip_data; in irq_desc_get_chip_data()
143 static inline void *irq_desc_get_handler_data(struct irq_desc *desc) in irq_desc_get_handler_data() argument
145 return desc->irq_common_data.handler_data; in irq_desc_get_handler_data()
[all …]
/Linux-v4.19/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 …]

12345678910>>...87