/kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/ |
D | ics-rtas.c | 42 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_rtas_unmask_irq() local 46 pr_devel("xics: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_rtas_unmask_irq() 48 if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS) in ics_rtas_unmask_irq() 53 call_status = rtas_call_reentrant(ibm_set_xive, 3, 1, NULL, hw_irq, in ics_rtas_unmask_irq() 58 __func__, hw_irq, server, call_status); in ics_rtas_unmask_irq() 63 call_status = rtas_call_reentrant(ibm_int_on, 1, 1, NULL, hw_irq); in ics_rtas_unmask_irq() 66 __func__, hw_irq, call_status); in ics_rtas_unmask_irq() 87 static void ics_rtas_mask_real_irq(unsigned int hw_irq) in ics_rtas_mask_real_irq() argument 91 if (hw_irq == XICS_IPI) in ics_rtas_mask_real_irq() 94 call_status = rtas_call_reentrant(ibm_int_off, 1, 1, NULL, hw_irq); in ics_rtas_mask_real_irq() [all …]
|
D | ics-opal.c | 44 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_unmask_irq() local 48 pr_devel("ics-hal: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_unmask_irq() 50 if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS) in ics_opal_unmask_irq() 56 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 60 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 80 static void ics_opal_mask_real_irq(unsigned int hw_irq) in ics_opal_mask_real_irq() argument 85 if (hw_irq == XICS_IPI) in ics_opal_mask_real_irq() 89 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() 92 __func__, hw_irq, rc); in ics_opal_mask_real_irq() 97 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_mask_irq() local [all …]
|
D | icp-opal.c | 107 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in icp_opal_eoi() local 111 rc = opal_int_eoi((xics_pop_cppr() << 24) | hw_irq); in icp_opal_eoi()
|
D | icp-hv.c | 76 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in icp_hv_eoi() local 79 icp_hv_set_xirr((xics_pop_cppr() << 24) | hw_irq); in icp_hv_eoi()
|
D | icp-native.c | 88 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in icp_native_eoi() local 91 icp_native_set_xirr((xics_pop_cppr() << 24) | hw_irq); in icp_native_eoi()
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-renesas-intc-irqpin.c | 55 int hw_irq; member 114 int reg, int hw_irq) in intc_irqpin_hwirq_mask() argument 116 return BIT((p->iomem[reg].width - 1) - hw_irq); in intc_irqpin_hwirq_mask() 120 int reg, int hw_irq) in intc_irqpin_irq_write_hwirq() argument 122 intc_irqpin_write(p, reg, intc_irqpin_hwirq_mask(p, reg, hw_irq)); in intc_irqpin_irq_write_hwirq() 175 str, i->requested_irq, i->hw_irq, i->domain_irq); in intc_irqpin_dbg() 181 int hw_irq = irqd_to_hwirq(d); in intc_irqpin_irq_enable() local 183 intc_irqpin_dbg(&p->irq[hw_irq], "enable"); in intc_irqpin_irq_enable() 184 intc_irqpin_irq_write_hwirq(p, INTC_IRQPIN_REG_CLEAR, hw_irq); in intc_irqpin_irq_enable() 190 int hw_irq = irqd_to_hwirq(d); in intc_irqpin_irq_disable() local [all …]
|
D | irq-renesas-irqc.c | 40 int hw_irq; member 63 dev_dbg(i->p->dev, "%s (%d:%d)\n", str, i->requested_irq, i->hw_irq); in irqc_dbg() 77 int hw_irq = irqd_to_hwirq(d); in irqc_irq_set_type() local 81 irqc_dbg(&p->irq[hw_irq], "sense"); in irqc_irq_set_type() 86 tmp = ioread32(p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 89 iowrite32(tmp, p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 96 int hw_irq = irqd_to_hwirq(d); in irqc_irq_set_wake() local 98 irq_set_irq_wake(p->irq[hw_irq].requested_irq, on); in irqc_irq_set_wake() 111 u32 bit = BIT(i->hw_irq); in irqc_irq_handler() 118 generic_handle_irq(irq_find_mapping(p->irq_domain, i->hw_irq)); in irqc_irq_handler() [all …]
|
D | irq-renesas-rza1.c | 71 unsigned int hw_irq = irqd_to_hwirq(d); in rza1_irqc_set_type() local 96 tmp &= ~ICR1_IRQS_MASK(hw_irq); in rza1_irqc_set_type() 97 tmp |= ICR1_IRQS(hw_irq, sense); in rza1_irqc_set_type()
|
D | irq-bcm7038-l1.c | 410 irq_hw_number_t hw_irq) in bcm7038_l1_map() argument 413 u32 mask = BIT(hw_irq % IRQS_PER_WORD); in bcm7038_l1_map() 414 u32 word = hw_irq / IRQS_PER_WORD; in bcm7038_l1_map()
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xive/ |
D | common.c | 208 val = xive_ops->esb_rw(xd->hw_irq, offset, 0, 0); in xive_esb_read() 222 xive_ops->esb_rw(xd->hw_irq, offset, data, 1); in xive_esb_write() 264 static struct irq_data *xive_get_irq_data(u32 hw_irq) in xive_get_irq_data() argument 266 unsigned int irq = irq_find_mapping(xive_irq_domain, hw_irq); in xive_get_irq_data() 271 int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d) in xmon_xive_get_irq_config() argument 278 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq); in xmon_xive_get_irq_config() 280 xmon_printf("IRQ 0x%08x : no config rc=%d\n", hw_irq, rc); in xmon_xive_get_irq_config() 285 hw_irq, target, prio, lirq); in xmon_xive_get_irq_config() 288 d = xive_get_irq_data(hw_irq); in xmon_xive_get_irq_config() 365 static void xive_do_source_eoi(u32 hw_irq, struct xive_irq_data *xd) in xive_do_source_eoi() argument [all …]
|
D | xive-internal.h | 41 int (*populate_irq_data)(u32 hw_irq, struct xive_irq_data *data); 42 int (*configure_irq)(u32 hw_irq, u32 target, u8 prio, u32 sw_irq); 43 int (*get_irq_config)(u32 hw_irq, u32 *target, u8 *prio, 53 void (*eoi)(u32 hw_irq); 54 void (*sync_source)(u32 hw_irq); 55 u64 (*esb_rw)(u32 hw_irq, u32 offset, u64 data, bool write);
|
D | native.c | 45 int xive_native_populate_irq_data(u32 hw_irq, struct xive_irq_data *data) in xive_native_populate_irq_data() argument 54 rc = opal_xive_get_irq_info(hw_irq, &flags, &eoi_page, &trig_page, in xive_native_populate_irq_data() 58 hw_irq, rc); in xive_native_populate_irq_data() 80 pr_err("Failed to map EOI page for irq 0x%x\n", hw_irq); in xive_native_populate_irq_data() 84 data->hw_irq = hw_irq; in xive_native_populate_irq_data() 95 pr_err("Failed to map trigger page for irq 0x%x\n", hw_irq); in xive_native_populate_irq_data() 102 int xive_native_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_native_configure_irq() argument 107 rc = opal_xive_set_irq_config(hw_irq, target, prio, sw_irq); in xive_native_configure_irq() 116 static int xive_native_get_irq_config(u32 hw_irq, u32 *target, u8 *prio, in xive_native_get_irq_config() argument 123 rc = opal_xive_get_irq_config(hw_irq, &vp, prio, &lirq); in xive_native_get_irq_config() [all …]
|
D | spapr.c | 373 static int xive_spapr_populate_irq_data(u32 hw_irq, struct xive_irq_data *data) in xive_spapr_populate_irq_data() argument 383 rc = plpar_int_get_source_info(0, hw_irq, &flags, &eoi_page, &trig_page, in xive_spapr_populate_irq_data() 398 data->hw_irq = hw_irq; in xive_spapr_populate_irq_data() 416 pr_err("Failed to map EOI page for irq 0x%x\n", hw_irq); in xive_spapr_populate_irq_data() 429 pr_err("Failed to map trigger page for irq 0x%x\n", hw_irq); in xive_spapr_populate_irq_data() 435 static int xive_spapr_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_spapr_configure_irq() argument 439 rc = plpar_int_set_source_config(XIVE_SRC_SET_EISN, hw_irq, target, in xive_spapr_configure_irq() 445 static int xive_spapr_get_irq_config(u32 hw_irq, u32 *target, u8 *prio, in xive_spapr_get_irq_config() argument 453 rc = plpar_int_get_source_config(0, hw_irq, &h_target, &h_prio, in xive_spapr_get_irq_config() 632 static void xive_spapr_eoi(u32 hw_irq) in xive_spapr_eoi() argument [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | xive.h | 47 u32 hw_irq; member 104 int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d); 110 int xive_native_populate_irq_data(u32 hw_irq, 114 int xive_native_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq); 120 void xive_native_sync_source(u32 hw_irq); 121 void xive_native_sync_queue(u32 hw_irq);
|
D | pnv-pci.h | 36 int64_t pnv_opal_pci_msi_eoi(struct irq_chip *chip, unsigned int hw_irq);
|
/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
D | afu_irq.c | 11 int hw_irq; member 73 irq->virq = irq_create_mapping(NULL, irq->hw_irq); in setup_afu_irq() 78 pr_debug("hw_irq %d mapped to virq %u\n", irq->hw_irq, irq->virq); in setup_afu_irq() 127 rc = ocxl_link_irq_alloc(ctx->afu->fn->link, &irq->hw_irq); in ocxl_afu_irq_alloc() 135 trace_ocxl_afu_irq_alloc(ctx->pasid, irq->id, irq->virq, irq->hw_irq); in ocxl_afu_irq_alloc() 143 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq); in ocxl_afu_irq_alloc() 163 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq); in afu_irq_free()
|
D | trace.h | 110 TP_PROTO(int pasid, int irq_id, unsigned int virq, int hw_irq), 111 TP_ARGS(pasid, irq_id, virq, hw_irq), 117 __field(int, hw_irq) 124 __entry->hw_irq = hw_irq; 131 __entry->hw_irq
|
D | link.c | 686 int ocxl_link_irq_alloc(void *link_handle, int *hw_irq) in ocxl_link_irq_alloc() argument 700 *hw_irq = irq; in ocxl_link_irq_alloc() 705 void ocxl_link_free_irq(void *link_handle, int hw_irq) in ocxl_link_free_irq() argument 709 xive_native_free_irq(hw_irq); in ocxl_link_free_irq()
|
/kernel/linux/linux-5.10/kernel/irq/ |
D | generic-chip.c | 340 __irq_get_domain_generic_chip(struct irq_domain *d, unsigned int hw_irq) in __irq_get_domain_generic_chip() argument 347 idx = hw_irq / dgc->irqs_per_chip; in __irq_get_domain_generic_chip() 359 irq_get_domain_generic_chip(struct irq_domain *d, unsigned int hw_irq) in irq_get_domain_generic_chip() argument 361 struct irq_chip_generic *gc = __irq_get_domain_generic_chip(d, hw_irq); in irq_get_domain_generic_chip() 378 irq_hw_number_t hw_irq) in irq_map_generic_chip() argument 388 gc = __irq_get_domain_generic_chip(d, hw_irq); in irq_map_generic_chip() 392 idx = hw_irq % dgc->irqs_per_chip; in irq_map_generic_chip() 422 irq_domain_set_info(d, virq, hw_irq, chip, gc, ct->handler, NULL, NULL); in irq_map_generic_chip() 431 unsigned int hw_irq = data->hwirq; in irq_unmap_generic_chip() local 435 gc = irq_get_domain_generic_chip(d, hw_irq); in irq_unmap_generic_chip() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | opal-irqchip.c | 238 u32 hw_irq; in opal_event_init() local 242 i, &hw_irq); in opal_event_init() 249 virq = irq_create_mapping(NULL, hw_irq); in opal_event_init() 251 pr_warn("Failed to map OPAL irq 0x%x\n", hw_irq); in opal_event_init()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pci-xgene-msi.c | 295 int msir_index, msir_val, hw_irq; in xgene_msi_isr() local 325 hw_irq = (((msir_index * IRQS_PER_IDX) + intr_index) * in xgene_msi_isr() 332 hw_irq = hwirq_to_canonical_hwirq(hw_irq); in xgene_msi_isr() 333 virq = irq_find_mapping(xgene_msi->inner_domain, hw_irq); in xgene_msi_isr()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/interrupt-controller/ |
D | microchip,pic32-evic.txt | 23 <hw_irq irq_type> 25 hw_irq - represents the hardware interrupt number as in the data sheet.
|
/kernel/linux/linux-5.10/include/misc/ |
D | ocxl.h | 464 int ocxl_link_irq_alloc(void *link_handle, int *hw_irq); 469 void ocxl_link_free_irq(void *link_handle, int hw_irq);
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_xive_template.c | 75 static void GLUE(X_PFX,source_eoi)(u32 hw_irq, struct xive_irq_data *xd) in GLUE() 80 else if (hw_irq && xd->flags & XIVE_IRQ_FLAG_EOI_FW) in GLUE() 81 opal_int_eoi(hw_irq); in GLUE()
|
/kernel/linux/linux-5.10/arch/um/include/asm/ |
D | Kbuild | 12 generic-y += hw_irq.h
|