Home
last modified time | relevance | path

Searched full:irq_id (Results 1 – 25 of 47) sorted by relevance

12

/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dirq.c30 static inline irq_ID_t virq_get_irq_id(const enum virq_id irq_ID,
81 const unsigned int irq_id) in irq_enable_channel() argument
89 unsigned int me = 1U << irq_id; in irq_enable_channel()
92 assert(irq_id < IRQ_N_CHANNEL[ID]); in irq_enable_channel()
138 const unsigned int irq_id) in irq_disable_channel() argument
144 unsigned int me = 1U << irq_id; in irq_disable_channel()
147 assert(irq_id < IRQ_N_CHANNEL[ID]); in irq_disable_channel()
169 unsigned int *irq_id) in irq_get_channel_id() argument
177 assert(irq_id); in irq_get_channel_id()
196 if (irq_id) in irq_get_channel_id()
[all …]
H A Dgp_timer_local.h36 #define _REG_GP_TIMER_IRQ_TRIGGER_VALUE_ID(irq_id) HIVE_GP_TIMER_IRQ_TRIGGER_VALUE_REG_IDX(irq_id, … argument
38 #define _REG_GP_TIMER_IRQ_TIMER_SELECT_ID(irq_id) \ argument
39 HIVE_GP_TIMER_IRQ_TIMER_SELECT_REG_IDX(irq_id, HIVE_GP_TIMER_NUM_COUNTERS, HIVE_GP_TIMER_NUM_IRQS)
41 #define _REG_GP_TIMER_IRQ_ENABLE_ID(irq_id) \ argument
42 HIVE_GP_TIMER_IRQ_ENABLE_REG_IDX(irq_id, HIVE_GP_TIMER_NUM_COUNTERS, HIVE_GP_TIMER_NUM_IRQS)
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
H A Dirq_public.h62 \return none, enable(IRQ[ID].channel[irq_ID])
66 const unsigned int irq_ID);
84 \return none, disable(IRQ[ID].channel[irq_ID])
102 \param irq_id[out] active IRQ (channel) identifier
112 unsigned int *irq_id);
114 /*! Raise an interrupt on channel irq_id of device IRQ[ID]
117 \param irq_id[in] IRQ (channel) identifier
119 \return none, signal(IRQ[ID].channel[irq_id])
123 const irq_sw_channel_id_t irq_id);
127 \return any(VIRQ.channel[irq_ID] != 0)
[all …]
/openbmc/linux/drivers/misc/ocxl/
H A Dtrace.h174 TP_PROTO(int pasid, int irq_id, unsigned int virq, int hw_irq),
175 TP_ARGS(pasid, irq_id, virq, hw_irq),
179 __field(int, irq_id)
186 __entry->irq_id = irq_id;
191 TP_printk("pasid=0x%x irq_id=%d virq=%u hw_irq=%d",
193 __entry->irq_id,
200 TP_PROTO(int pasid, int irq_id),
201 TP_ARGS(pasid, irq_id),
205 __field(int, irq_id)
210 __entry->irq_id = irq_id;
[all …]
H A Dafu_irq.c25 u64 ocxl_irq_id_to_offset(struct ocxl_context *ctx, int irq_id) in ocxl_irq_id_to_offset() argument
27 return ctx->afu->irq_base_offset + (irq_id << PAGE_SHIFT); in ocxl_irq_id_to_offset()
30 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id, in ocxl_irq_set_handler() argument
39 irq = idr_find(&ctx->irq_idr, irq_id); in ocxl_irq_set_handler()
105 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, int *irq_id) in ocxl_afu_irq_alloc() argument
139 *irq_id = irq->id; in ocxl_afu_irq_alloc()
168 int ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id) in ocxl_afu_irq_free() argument
174 irq = idr_find(&ctx->irq_idr, irq_id); in ocxl_afu_irq_free()
197 u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id) in ocxl_afu_irq_get_addr() argument
204 irq = idr_find(&ctx->irq_idr, irq_id); in ocxl_afu_irq_get_addr()
H A Dfile.c205 int irq_id; in afu_ioctl() local
227 rc = ocxl_afu_irq_alloc(ctx, &irq_id); in afu_ioctl()
229 irq_offset = ocxl_irq_id_to_offset(ctx, irq_id); in afu_ioctl()
233 ocxl_afu_irq_free(ctx, irq_id); in afu_ioctl()
244 irq_id = ocxl_irq_offset_to_id(ctx, irq_offset); in afu_ioctl()
245 rc = ocxl_afu_irq_free(ctx, irq_id); in afu_ioctl()
255 irq_id = ocxl_irq_offset_to_id(ctx, irq_fd.irq_offset); in afu_ioctl()
259 rc = ocxl_irq_set_handler(ctx, irq_id, irq_handler, irq_free, ev_ctx); in afu_ioctl()
H A Dcontext.c102 int irq_id = ocxl_irq_offset_to_id(ctx, offset); in map_afu_irq() local
104 trigger_addr = ocxl_afu_irq_get_addr(ctx, irq_id); in map_afu_irq()
164 int irq_id = ocxl_irq_offset_to_id(ctx, vma->vm_pgoff << PAGE_SHIFT); in check_mmap_afu_irq() local
171 if (!ocxl_afu_irq_get_addr(ctx, irq_id)) in check_mmap_afu_irq()
/openbmc/linux/drivers/net/ipa/
H A Dipa_interrupt.c47 static void ipa_interrupt_process(struct ipa_interrupt *interrupt, u32 irq_id) in ipa_interrupt_process() argument
51 u32 mask = BIT(irq_id); in ipa_interrupt_process()
57 switch (irq_id) { in ipa_interrupt_process()
64 ipa_uc_interrupt_handler(ipa, irq_id); in ipa_interrupt_process()
73 ipa_power_suspend_handler(ipa, irq_id); in ipa_interrupt_process()
109 u32 irq_id = __ffs(mask); in ipa_isr_thread() local
111 mask ^= BIT(irq_id); in ipa_isr_thread()
113 ipa_interrupt_process(interrupt, irq_id); in ipa_isr_thread()
H A Dipa_uc.h15 * @irq_id: IPA interrupt ID
17 void ipa_uc_interrupt_handler(struct ipa *ipa, enum ipa_irq_id irq_id);
H A Dipa_power.h54 * @irq_id: IPA interrupt ID (unused)
60 void ipa_power_suspend_handler(struct ipa *ipa, enum ipa_irq_id irq_id);
H A Dipa_uc.c173 void ipa_uc_interrupt_handler(struct ipa *ipa, enum ipa_irq_id irq_id) in ipa_uc_interrupt_handler() argument
176 if (irq_id == IPA_IRQ_UC_0) in ipa_uc_interrupt_handler()
178 else if (irq_id == IPA_IRQ_UC_1) in ipa_uc_interrupt_handler()
/openbmc/linux/sound/soc/mediatek/common/
H A Dmtk-afe-fe-dai.c83 int irq_id = mtk_dynamic_irq_acquire(afe); in mtk_afe_fe_startup() local
85 if (irq_id != afe->irqs_size) { in mtk_afe_fe_startup()
87 memif->irq_usage = irq_id; in mtk_afe_fe_startup()
104 int irq_id; in mtk_afe_fe_shutdown() local
106 irq_id = memif->irq_usage; in mtk_afe_fe_shutdown()
112 mtk_dynamic_irq_release(afe, irq_id); in mtk_afe_fe_shutdown()
308 int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id) in mtk_dynamic_irq_release() argument
311 if (irq_id >= 0 && irq_id < afe->irqs_size) { in mtk_dynamic_irq_release()
312 afe->irqs[irq_id].irq_occupyed = 0; in mtk_dynamic_irq_release()
H A Dmtk-btcvsd.c112 int irq_id; member
219 disable_irq(bt->irq_id); in mtk_btcvsd_snd_set_state()
225 enable_irq(bt->irq_id); in mtk_btcvsd_snd_set_state()
481 static irqreturn_t mtk_btcvsd_snd_irq_handler(int irq_id, void *dev) in mtk_btcvsd_snd_irq_handler() argument
1276 int irq_id; in mtk_btcvsd_snd_probe() local
1307 irq_id = platform_get_irq(pdev, 0); in mtk_btcvsd_snd_probe()
1308 if (irq_id <= 0) in mtk_btcvsd_snd_probe()
1309 return irq_id < 0 ? irq_id : -ENXIO; in mtk_btcvsd_snd_probe()
1311 ret = devm_request_irq(dev, irq_id, mtk_btcvsd_snd_irq_handler, in mtk_btcvsd_snd_probe()
1319 btcvsd->irq_id = irq_id; in mtk_btcvsd_snd_probe()
/openbmc/linux/include/misc/
H A Docxl.h163 * @irq_id: out, the IRQ ID
167 int ocxl_afu_irq_alloc(struct ocxl_context *ctx, int *irq_id);
172 * @irq_id: the IRQ ID
176 int ocxl_afu_irq_free(struct ocxl_context *ctx, int irq_id);
183 * @irq_id: The IRQ ID
187 u64 ocxl_afu_irq_get_addr(struct ocxl_context *ctx, int irq_id);
192 * @irq_id: The IRQ ID
199 int ocxl_irq_set_handler(struct ocxl_context *ctx, int irq_id,
/openbmc/linux/drivers/tty/serial/
H A Dmen_z135_uart.c35 #define IRQ_ID(x) ((x) & 0x1f) macro
387 int irq_id; in men_z135_intr() local
390 irq_id = IRQ_ID(uart->stat_reg); in men_z135_intr()
392 if (!irq_id) in men_z135_intr()
397 iowrite8(irq_id, port->membase + MEN_Z135_STAT_REG); in men_z135_intr()
399 if (irq_id & MEN_Z135_IRQ_ID_RLS) { in men_z135_intr()
404 if (irq_id & (MEN_Z135_IRQ_ID_RDA | MEN_Z135_IRQ_ID_CTI)) { in men_z135_intr()
405 if (irq_id & MEN_Z135_IRQ_ID_CTI) in men_z135_intr()
411 if (irq_id & MEN_Z135_IRQ_ID_TSA) { in men_z135_intr()
416 if (irq_id & MEN_Z135_IRQ_ID_MST) { in men_z135_intr()
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-pcm.c67 int irq_id = mtk_dynamic_irq_acquire(afe); in mt8186_fe_startup() local
69 if (irq_id != afe->irqs_size) { in mt8186_fe_startup()
71 memif->irq_usage = irq_id; in mt8186_fe_startup()
90 int irq_id = memif->irq_usage; in mt8186_fe_shutdown() local
97 mtk_dynamic_irq_release(afe, irq_id); in mt8186_fe_shutdown()
162 int irq_id = memif->irq_usage; in mt8186_fe_trigger() local
163 struct mtk_base_afe_irq *irqs = &afe->irqs[irq_id]; in mt8186_fe_trigger()
170 dev_dbg(afe->dev, "%s(), %s cmd %d, irq_id %d\n", in mt8186_fe_trigger()
171 __func__, memif->data->name, cmd, irq_id); in mt8186_fe_trigger()
298 int irq_id = memif->irq_usage; in mt8186_fe_prepare() local
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dsh_css_hrt.c67 irq_sw_channel_id_t irq_id = IRQ_SW_CHANNEL0_ID; in sh_css_hrt_sp_wait() local
77 (1U << (irq_id + IRQ_SW_CHANNEL_OFFSET))) == 0)) { in sh_css_hrt_sp_wait()
/openbmc/linux/drivers/irqchip/
H A Dirq-loongson-htvec.c24 #define VEC_REG_IDX(irq_id) ((irq_id) / VEC_COUNT_PER_REG) argument
25 #define VEC_REG_BIT(irq_id) ((irq_id) % VEC_COUNT_PER_REG) argument
H A Dirq-loongson-pch-pic.c34 #define PIC_REG_IDX(irq_id) ((irq_id) / PIC_COUNT_PER_REG) argument
35 #define PIC_REG_BIT(irq_id) ((irq_id) % PIC_COUNT_PER_REG) argument
H A Dirq-loongson-eiointc.c30 #define VEC_REG_IDX(irq_id) ((irq_id) / VEC_COUNT_PER_REG) argument
31 #define VEC_REG_BIT(irq_id) ((irq_id) % VEC_COUNT_PER_REG) argument
/openbmc/qemu/hw/arm/
H A Dexynos4210.c335 uint32_t grp, bit, irq_id, n; in exynos4210_init_board_irqs() local
345 irq_id = 0; in exynos4210_init_board_irqs()
348 irq_id = EXT_GIC_ID_MCT_G0; in exynos4210_init_board_irqs()
352 irq_id = EXT_GIC_ID_MCT_G1; in exynos4210_init_board_irqs()
368 if (irq_id) { in exynos4210_init_board_irqs()
395 if (irq_id) { in exynos4210_init_board_irqs()
397 qdev_get_gpio_in(extgicdev, irq_id - 32)); in exynos4210_init_board_irqs()
404 irq_id = combiner_grp_to_gic_id[grp - in exynos4210_init_board_irqs()
415 if (irq_id) { in exynos4210_init_board_irqs()
424 qdev_get_gpio_in(extgicdev, irq_id - 32)); in exynos4210_init_board_irqs()
/openbmc/linux/sound/soc/mediatek/mt7986/
H A Dmt7986-afe-pcm.c342 static irqreturn_t mt7986_afe_irq_handler(int irq_id, void *dev) in mt7986_afe_irq_handler() argument
476 int i, irq_id, ret; in mt7986_afe_pcm_dev_probe() local
543 irq_id = platform_get_irq(pdev, 0); in mt7986_afe_pcm_dev_probe()
544 if (irq_id < 0) { in mt7986_afe_pcm_dev_probe()
545 ret = irq_id; in mt7986_afe_pcm_dev_probe()
548 ret = devm_request_irq(dev, irq_id, mt7986_afe_irq_handler, in mt7986_afe_pcm_dev_probe()
/openbmc/linux/sound/pci/hda/
H A Dhda_tegra.c267 int irq_id = platform_get_irq(pdev, 0); in hda_tegra_first_init() local
271 if (irq_id < 0) in hda_tegra_first_init()
272 return irq_id; in hda_tegra_first_init()
278 err = devm_request_irq(chip->card->dev, irq_id, azx_interrupt, in hda_tegra_first_init()
283 irq_id); in hda_tegra_first_init()
286 bus->irq = irq_id; in hda_tegra_first_init()
/openbmc/linux/drivers/edac/
H A Dthunderx_edac.c1075 static irqreturn_t thunderx_ocx_com_isr(int irq, void *irq_id) in thunderx_ocx_com_isr() argument
1077 struct msix_entry *msix = irq_id; in thunderx_ocx_com_isr()
1104 static irqreturn_t thunderx_ocx_com_threaded_isr(int irq, void *irq_id) in thunderx_ocx_com_threaded_isr() argument
1106 struct msix_entry *msix = irq_id; in thunderx_ocx_com_threaded_isr()
1168 static irqreturn_t thunderx_ocx_lnk_isr(int irq, void *irq_id) in thunderx_ocx_lnk_isr() argument
1170 struct msix_entry *msix = irq_id; in thunderx_ocx_lnk_isr()
1187 static irqreturn_t thunderx_ocx_lnk_threaded_isr(int irq, void *irq_id) in thunderx_ocx_lnk_threaded_isr() argument
1189 struct msix_entry *msix = irq_id; in thunderx_ocx_lnk_threaded_isr()
1760 static irqreturn_t thunderx_l2c_tad_isr(int irq, void *irq_id) in thunderx_l2c_tad_isr() argument
1762 struct msix_entry *msix = irq_id; in thunderx_l2c_tad_isr()
[all …]
/openbmc/u-boot/arch/x86/cpu/i386/
H A Dinterrupt.c79 switch (regs->irq_id) { in dump_regs()
151 printf("%s\n", exceptions[regs->irq_id]); in do_exception()
297 if (regs->irq_id < 32) { in irq_llsr()
302 do_irq(regs->irq_id); in irq_llsr()
320 * 4 bytes pushed by vector handler (irq_id)

12