/Linux-v5.4/kernel/irq/ |
D | chip.c | 44 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 …]
|
D | pm.c | 16 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 …]
|
D | manage.c | 38 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 …]
|
D | settings.h | 38 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 …]
|
D | autoprobe.c | 32 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 …]
|
D | irqdesc.c | 55 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 …]
|
D | internals.h | 70 extern int __irq_set_trigger(struct irq_desc *desc, unsigned long flags); 71 extern void __disable_irq(struct irq_desc *desc); 72 extern void __enable_irq(struct irq_desc *desc); 80 extern int irq_activate(struct irq_desc *desc); 81 extern int irq_activate_and_startup(struct irq_desc *desc, bool resend); 82 extern int irq_startup(struct irq_desc *desc, bool resend, bool force); 84 extern void irq_shutdown(struct irq_desc *desc); 85 extern void irq_shutdown_and_deactivate(struct irq_desc *desc); 86 extern void irq_enable(struct irq_desc *desc); 87 extern void irq_disable(struct irq_desc *desc); [all …]
|
D | spurious.c | 36 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 …]
|
D | proc.c | 48 struct irq_desc *desc = irq_to_desc((long)m->private); in show_irq_affinity() local 54 mask = desc->irq_common_data.affinity; in show_irq_affinity() 56 if (irqd_is_setaffinity_pending(&desc->irq_data)) in show_irq_affinity() 57 mask = desc->pending_mask; in show_irq_affinity() 63 mask = irq_data_get_effective_affinity_mask(&desc->irq_data); in show_irq_affinity() 85 struct irq_desc *desc = irq_to_desc((long)m->private); in irq_affinity_hint_proc_show() local 92 raw_spin_lock_irqsave(&desc->lock, flags); in irq_affinity_hint_proc_show() 93 if (desc->affinity_hint) in irq_affinity_hint_proc_show() 94 cpumask_copy(mask, desc->affinity_hint); in irq_affinity_hint_proc_show() 95 raw_spin_unlock_irqrestore(&desc->lock, flags); in irq_affinity_hint_proc_show() [all …]
|
/Linux-v5.4/drivers/usb/class/ |
D | cdc-wdm.c | 113 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-v5.4/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 …]
|
/Linux-v5.4/drivers/regulator/ |
D | da9062-regulator.c | 46 struct regulator_desc desc; member 59 struct regulator_desc desc; member 255 sel <<= ffs(rdev->desc->vsel_mask) - 1; in da9062_set_suspend_voltage() 258 rdev->desc->vsel_mask, sel); in da9062_set_suspend_voltage() 357 .desc.id = DA9061_ID_BUCK1, 358 .desc.name = "DA9061 BUCK1", 359 .desc.of_match = of_match_ptr("buck1"), 360 .desc.regulators_node = of_match_ptr("regulators"), 361 .desc.ops = &da9062_buck_ops, 362 .desc.min_uV = (300) * 1000, [all …]
|
D | helpers.c | 30 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in regulator_is_enabled_regmap() 34 val &= rdev->desc->enable_mask; in regulator_is_enabled_regmap() 36 if (rdev->desc->enable_is_inverted) { in regulator_is_enabled_regmap() 37 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 38 return val != rdev->desc->enable_val; in regulator_is_enabled_regmap() 41 if (rdev->desc->enable_val) in regulator_is_enabled_regmap() 42 return val == rdev->desc->enable_val; in regulator_is_enabled_regmap() 61 if (rdev->desc->enable_is_inverted) { in regulator_enable_regmap() 62 val = rdev->desc->disable_val; in regulator_enable_regmap() 64 val = rdev->desc->enable_val; in regulator_enable_regmap() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/firmware/ |
D | qcom_scm-64.c | 76 const struct qcom_scm_desc *desc, in qcom_scm_call() argument 79 int arglen = desc->arginfo & 0xf; in qcom_scm_call() 82 u64 cmd, x5 = desc->args[FIRST_EXT_ARG_IDX]; in qcom_scm_call() 99 args[i] = cpu_to_le32(desc->args[i + in qcom_scm_call() 105 args[i] = cpu_to_le64(desc->args[i + in qcom_scm_call() 130 arm_smccc_smc_quirk(cmd, desc->arginfo, desc->args[0], in qcom_scm_call() 131 desc->args[1], desc->args[2], x5, in qcom_scm_call() 202 struct qcom_scm_desc desc = {0}; in __qcom_scm_is_call_available() local 205 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_is_call_available() 206 desc.args[0] = QCOM_SCM_FNID(svc_id, cmd_id) | in __qcom_scm_is_call_available() [all …]
|
/Linux-v5.4/include/uapi/linux/usb/ |
D | audio.h | 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() 285 static inline __u8 uac_mixer_unit_iChannelNames(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_iChannelNames() argument [all …]
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | ldt_gdt.c | 142 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-v5.4/drivers/staging/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 …]
|
/Linux-v5.4/net/sunrpc/ |
D | socklib.c | 31 xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len) in xdr_skb_read_bits() argument 33 if (len > desc->count) in xdr_skb_read_bits() 34 len = desc->count; in xdr_skb_read_bits() 35 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) in xdr_skb_read_bits() 37 desc->count -= len; in xdr_skb_read_bits() 38 desc->offset += len; in xdr_skb_read_bits() 50 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 55 if (len > desc->count) in xdr_skb_read_and_csum_bits() 56 len = desc->count; in xdr_skb_read_and_csum_bits() 57 pos = desc->offset; in xdr_skb_read_and_csum_bits() [all …]
|
/Linux-v5.4/arch/s390/tools/ |
D | gen_opcode_table.c | 152 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-v5.4/drivers/crypto/ccree/ |
D | cc_aead.c | 255 static unsigned int xcbc_setkey(struct cc_hw_desc *desc, in xcbc_setkey() argument 259 hw_desc_init(&desc[0]); in xcbc_setkey() 264 set_din_type(&desc[0], DMA_DLLI, in xcbc_setkey() 267 set_cipher_mode(&desc[0], DRV_CIPHER_ECB); in xcbc_setkey() 268 set_cipher_config0(&desc[0], DRV_CRYPTO_DIRECTION_ENCRYPT); in xcbc_setkey() 269 set_key_size_aes(&desc[0], ctx->auth_keylen); in xcbc_setkey() 270 set_flow_mode(&desc[0], S_DIN_to_AES); in xcbc_setkey() 271 set_setup_mode(&desc[0], SETUP_LOAD_KEY0); in xcbc_setkey() 273 hw_desc_init(&desc[1]); in xcbc_setkey() 274 set_din_const(&desc[1], 0x01010101, CC_AES_128_BIT_KEY_SIZE); in xcbc_setkey() [all …]
|
/Linux-v5.4/include/linux/ |
D | irqdesc.h | 125 static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) in irq_desc_get_irq() argument 127 return desc->irq_data.irq; in irq_desc_get_irq() 130 static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) in irq_desc_get_irq_data() argument 132 return &desc->irq_data; in irq_desc_get_irq_data() 135 static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc) in irq_desc_get_chip() argument 137 return desc->irq_data.chip; in irq_desc_get_chip() 140 static inline void *irq_desc_get_chip_data(struct irq_desc *desc) in irq_desc_get_chip_data() argument 142 return desc->irq_data.chip_data; in irq_desc_get_chip_data() 145 static inline void *irq_desc_get_handler_data(struct irq_desc *desc) in irq_desc_get_handler_data() argument 147 return desc->irq_common_data.handler_data; in irq_desc_get_handler_data() [all …]
|