Home
last modified time | relevance | path

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

12345678910>>...118

/openbmc/linux/kernel/irq/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dinternals.h77 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);
94 extern void irq_disable(struct irq_desc *desc);
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/usb/class/
H A 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 …]
/openbmc/linux/drivers/crypto/caam/
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/regulator/
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/scsi/fnic/
H A 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 …]
/openbmc/linux/lib/crypto/
H A 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 …]
/openbmc/linux/drivers/infiniband/core/
H A 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 …]
/openbmc/u-boot/drivers/fpga/
H A Dxilinx.c22 static int xilinx_validate(xilinx_desc *desc, char *fn);
28 const fpga_desc * const desc = fpga_get_desc(devnum); in fpga_is_partial_data() local
29 xilinx_desc *desc_xilinx = desc->devdesc; in fpga_is_partial_data()
46 const fpga_desc *desc; in fpga_loadbitstream() local
51 desc = fpga_validate(devnum, dataptr, 0, (char *)__func__); in fpga_loadbitstream()
53 xdesc = desc->devdesc; in fpga_loadbitstream()
140 int xilinx_load(xilinx_desc *desc, const void *buf, size_t bsize, in xilinx_load() argument
143 if (!xilinx_validate (desc, (char *)__FUNCTION__)) { in xilinx_load()
148 if (!desc->operations || !desc->operations->load) { in xilinx_load()
153 return desc->operations->load(desc, buf, bsize, bstype); in xilinx_load()
[all …]
/openbmc/linux/include/uapi/linux/usb/
H A 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 …]
/openbmc/u-boot/drivers/crypto/fsl/
H A Ddesc_constr.h20 #define PRINT_POS do { printf("%02d: %s\n", desc_len(desc),\
68 static inline int desc_len(u32 *desc) in desc_len() argument
70 return *desc & HDR_DESCLEN_MASK; in desc_len()
73 static inline int desc_bytes(void *desc) in desc_bytes() argument
75 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
78 static inline u32 *desc_end(u32 *desc) in desc_end() argument
80 return desc + desc_len(desc); in desc_end()
83 static inline void *desc_pdb(u32 *desc) in desc_pdb() argument
85 return desc + 1; in desc_pdb()
88 static inline void init_desc(u32 *desc, u32 options) in init_desc() argument
[all …]
/openbmc/linux/drivers/crypto/ccree/
H A 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 …]
/openbmc/qemu/accel/tcg/
H A Dtcg-runtime-gvec.c27 static inline void clear_high(void *d, intptr_t oprsz, uint32_t desc) in clear_high() argument
29 intptr_t maxsz = simd_maxsz(desc); in clear_high()
39 void HELPER(gvec_add8)(void *d, void *a, void *b, uint32_t desc) in HELPER()
41 intptr_t oprsz = simd_oprsz(desc); in HELPER()
47 clear_high(d, oprsz, desc); in HELPER()
50 void HELPER(gvec_add16)(void *d, void *a, void *b, uint32_t desc) in HELPER()
52 intptr_t oprsz = simd_oprsz(desc); in HELPER()
58 clear_high(d, oprsz, desc); in HELPER()
61 void HELPER(gvec_add32)(void *d, void *a, void *b, uint32_t desc) in HELPER()
63 intptr_t oprsz = simd_oprsz(desc); in HELPER()
[all …]
/openbmc/phosphor-debug-collector/tools/dreport.d/openpower.d/plugins.d/
H A Ddumpfilelist12 desc="Dumps"
18 if ! add_cmd_output "$command" "$file_name" "$desc";
22 desc="BMC dumps"
24 add_cmd_output "echo $'[$desc]'" "$file_name" "$desc"
25 add_cmd_output "ls -AX $dir/*/*" "$file_name" "$desc"
27 log_info "$desc directory is empty"
32 desc="Hardware dumps"
34 add_cmd_output "echo $'\n[$desc]'" "$file_name" "$desc"
35 add_cmd_output "ls -AX $dir/*/*" "$file_name" "$desc"
37 log_info "$desc directory is empty"
[all …]
/openbmc/openpower-debug-collector/dump/tools/bmcdump/plugins/
H A Ddumpfilelist12 desc="Dumps"
18 if ! add_cmd_output "$command" "$file_name" "$desc";
22 desc="BMC dumps"
24 add_cmd_output "echo $'[$desc]'" "$file_name" "$desc"
25 add_cmd_output "ls -AX $dir/*/*" "$file_name" "$desc"
27 log_info "$desc directory is empty"
32 desc="Hardware dumps"
34 add_cmd_output "echo $'\n[$desc]'" "$file_name" "$desc"
35 add_cmd_output "ls -AX $dir/*/*" "$file_name" "$desc"
37 log_info "$desc directory is empty"
[all …]

12345678910>>...118