/Linux-v5.10/drivers/irqchip/ |
D | irq-ti-sci-intr.c | 24 * @out_irqs: TISCI resource pointer representing INTR irqs. 38 .name = "INTR", 62 struct ti_sci_intr_irq_domain *intr = domain->host_data; in ti_sci_intr_irq_domain_translate() local 68 *type = intr->type; in ti_sci_intr_irq_domain_translate() 75 * @intr: IRQ domain corresponding to Interrupt Router 80 static int ti_sci_intr_xlate_irq(struct ti_sci_intr_irq_domain *intr, u32 irq) in ti_sci_intr_xlate_irq() argument 82 struct device_node *np = dev_of_node(intr->dev); in ti_sci_intr_xlate_irq() 111 struct ti_sci_intr_irq_domain *intr = domain->host_data; in ti_sci_intr_irq_domain_free() local 118 intr->sci->ops.rm_irq_ops.free_irq(intr->sci, in ti_sci_intr_irq_domain_free() 119 intr->ti_sci_id, data->hwirq, in ti_sci_intr_irq_domain_free() [all …]
|
D | irq-mips-gic.c | 66 static void gic_clear_pcpu_masks(unsigned int intr) in gic_clear_pcpu_masks() argument 72 clear_bit(intr, per_cpu_ptr(pcpu_masks, i)); in gic_clear_pcpu_masks() 75 static bool gic_local_irq_is_routable(int intr) in gic_local_irq_is_routable() argument 84 switch (intr) { in gic_local_irq_is_routable() 150 unsigned int intr, virq; in gic_handle_shared_int() local 166 for_each_set_bit(intr, pending, gic_shared_intrs) { in gic_handle_shared_int() 168 GIC_SHARED_TO_HWIRQ(intr)); in gic_handle_shared_int() 178 unsigned int intr = GIC_HWIRQ_TO_SHARED(d->hwirq); in gic_mask_irq() local 180 write_gic_rmask(intr); in gic_mask_irq() 181 gic_clear_pcpu_masks(intr); in gic_mask_irq() [all …]
|
/Linux-v5.10/drivers/net/ethernet/cisco/enic/ |
D | vnic_intr.c | 30 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument 32 intr->ctrl = NULL; in vnic_intr_free() 35 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in vnic_intr_alloc() argument 38 intr->index = index; in vnic_intr_alloc() 39 intr->vdev = vdev; in vnic_intr_alloc() 41 intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in vnic_intr_alloc() 42 if (!intr->ctrl) { in vnic_intr_alloc() 43 vdev_err(vdev, "Failed to hook INTR[%d].ctrl resource\n", in vnic_intr_alloc() 51 void vnic_intr_init(struct vnic_intr *intr, u32 coalescing_timer, in vnic_intr_init() argument 54 vnic_intr_coalescing_timer_set(intr, coalescing_timer); in vnic_intr_init() [all …]
|
D | vnic_intr.h | 54 static inline void vnic_intr_unmask(struct vnic_intr *intr) in vnic_intr_unmask() argument 56 iowrite32(0, &intr->ctrl->mask); in vnic_intr_unmask() 59 static inline void vnic_intr_mask(struct vnic_intr *intr) in vnic_intr_mask() argument 61 iowrite32(1, &intr->ctrl->mask); in vnic_intr_mask() 64 static inline int vnic_intr_masked(struct vnic_intr *intr) in vnic_intr_masked() argument 66 return ioread32(&intr->ctrl->mask); in vnic_intr_masked() 69 static inline void vnic_intr_return_credits(struct vnic_intr *intr, in vnic_intr_return_credits() argument 79 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in vnic_intr_return_credits() 82 static inline unsigned int vnic_intr_credits(struct vnic_intr *intr) in vnic_intr_credits() argument 84 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits() [all …]
|
/Linux-v5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_interrupts.h | 33 * @DPU_IRQ_TYPE_SFI_VIDEO_IN: Video static frame INTR into static 34 * @DPU_IRQ_TYPE_SFI_VIDEO_OUT: Video static frame INTR out-of static 35 * @DPU_IRQ_TYPE_SFI_CMD_0_IN: DSI CMD0 static frame INTR into static 36 * @DPU_IRQ_TYPE_SFI_CMD_0_OUT: DSI CMD0 static frame INTR out-of static 37 * @DPU_IRQ_TYPE_SFI_CMD_1_IN: DSI CMD1 static frame INTR into static 38 * @DPU_IRQ_TYPE_SFI_CMD_1_OUT: DSI CMD1 static frame INTR out-of static 39 * @DPU_IRQ_TYPE_SFI_CMD_2_IN: DSI CMD2 static frame INTR into static 40 * @DPU_IRQ_TYPE_SFI_CMD_2_OUT: DSI CMD2 static frame INTR out-of static 96 * @intr: HW interrupt handle 101 struct dpu_hw_intr *intr, [all …]
|
D | dpu_hw_interrupts.c | 253 /* BEGIN MAP_RANGE: 0-31, INTR */ 773 static void dpu_hw_intr_dispatch_irq(struct dpu_hw_intr *intr, in dpu_hw_intr_dispatch_irq() argument 784 if (!intr) in dpu_hw_intr_dispatch_irq() 792 spin_lock_irqsave(&intr->irq_lock, irq_flags); in dpu_hw_intr_dispatch_irq() 794 irq_status = intr->save_irq_status[reg_idx]; in dpu_hw_intr_dispatch_irq() 803 if (!test_bit(reg_idx, &intr->irq_mask) || in dpu_hw_intr_dispatch_irq() 808 * Search through matching intr status from irq map. in dpu_hw_intr_dispatch_irq() 827 intr->ops.clear_intr_status_nolock( in dpu_hw_intr_dispatch_irq() 828 intr, irq_idx); in dpu_hw_intr_dispatch_irq() 838 spin_unlock_irqrestore(&intr->irq_lock, irq_flags); in dpu_hw_intr_dispatch_irq() [all …]
|
/Linux-v5.10/drivers/scsi/fnic/ |
D | vnic_intr.c | 27 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument 29 intr->ctrl = NULL; in vnic_intr_free() 32 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in vnic_intr_alloc() argument 35 intr->index = index; in vnic_intr_alloc() 36 intr->vdev = vdev; in vnic_intr_alloc() 38 intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in vnic_intr_alloc() 39 if (!intr->ctrl) { in vnic_intr_alloc() 40 printk(KERN_ERR "Failed to hook INTR[%d].ctrl resource\n", in vnic_intr_alloc() 48 void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, in vnic_intr_init() argument 51 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in vnic_intr_init() [all …]
|
D | vnic_intr.h | 68 static inline void vnic_intr_unmask(struct vnic_intr *intr) in vnic_intr_unmask() argument 70 iowrite32(0, &intr->ctrl->mask); in vnic_intr_unmask() 73 static inline void vnic_intr_mask(struct vnic_intr *intr) in vnic_intr_mask() argument 75 iowrite32(1, &intr->ctrl->mask); in vnic_intr_mask() 78 static inline void vnic_intr_return_credits(struct vnic_intr *intr, in vnic_intr_return_credits() argument 88 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in vnic_intr_return_credits() 91 static inline unsigned int vnic_intr_credits(struct vnic_intr *intr) in vnic_intr_credits() argument 93 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits() 96 static inline void vnic_intr_return_all_credits(struct vnic_intr *intr) in vnic_intr_return_all_credits() argument 98 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() [all …]
|
D | fnic_isr.c | 44 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_NOTIFY]); in fnic_isr_legacy() 49 vnic_intr_return_all_credits(&fnic->intr[FNIC_INTX_ERR]); in fnic_isr_legacy() 58 vnic_intr_return_credits(&fnic->intr[FNIC_INTX_WQ_RQ_COPYWQ], in fnic_isr_legacy() 60 1 /* unmask intr */, in fnic_isr_legacy() 61 1 /* reset intr timer */); in fnic_isr_legacy() 79 vnic_intr_return_credits(&fnic->intr[0], in fnic_isr_msi() 81 1 /* unmask intr */, in fnic_isr_msi() 82 1 /* reset intr timer */); in fnic_isr_msi() 96 vnic_intr_return_credits(&fnic->intr[FNIC_MSIX_RQ], in fnic_isr_msix_rq() 98 1 /* unmask intr */, in fnic_isr_msix_rq() [all …]
|
/Linux-v5.10/drivers/scsi/snic/ |
D | vnic_intr.c | 26 void svnic_intr_free(struct vnic_intr *intr) in svnic_intr_free() argument 28 intr->ctrl = NULL; in svnic_intr_free() 31 int svnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in svnic_intr_alloc() argument 34 intr->index = index; in svnic_intr_alloc() 35 intr->vdev = vdev; in svnic_intr_alloc() 37 intr->ctrl = svnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in svnic_intr_alloc() 38 if (!intr->ctrl) { in svnic_intr_alloc() 39 pr_err("Failed to hook INTR[%d].ctrl resource\n", in svnic_intr_alloc() 47 void svnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, in svnic_intr_init() argument 50 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in svnic_intr_init() [all …]
|
D | vnic_intr.h | 54 svnic_intr_unmask(struct vnic_intr *intr) in svnic_intr_unmask() argument 56 iowrite32(0, &intr->ctrl->mask); in svnic_intr_unmask() 60 svnic_intr_mask(struct vnic_intr *intr) in svnic_intr_mask() argument 62 iowrite32(1, &intr->ctrl->mask); in svnic_intr_mask() 66 svnic_intr_return_credits(struct vnic_intr *intr, in svnic_intr_return_credits() argument 78 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in svnic_intr_return_credits() 82 svnic_intr_credits(struct vnic_intr *intr) in svnic_intr_credits() argument 84 return ioread32(&intr->ctrl->int_credits); in svnic_intr_credits() 88 svnic_intr_return_all_credits(struct vnic_intr *intr) in svnic_intr_return_all_credits() argument 90 unsigned int credits = svnic_intr_credits(intr); in svnic_intr_return_all_credits() [all …]
|
/Linux-v5.10/arch/mips/include/asm/ |
D | mips-gic.h | 49 static inline void __iomem *addr_gic_##name(unsigned int intr) \ 51 return mips_gic_base + (off) + (intr * (stride)); \ 54 static inline unsigned int read_gic_##name(unsigned int intr) \ 57 return __raw_readl(addr_gic_##name(intr)); \ 64 static inline void write_gic_##name(unsigned int intr, \ 68 __raw_writel(val, addr_gic_##name(intr)); \ 92 static inline unsigned int read_gic_##name(unsigned int intr) \ 98 addr += (intr / 64) * sizeof(uint64_t); \ 99 val = __raw_readq(addr) >> intr % 64; \ 101 addr += (intr / 32) * sizeof(uint32_t); \ [all …]
|
/Linux-v5.10/drivers/usb/mtu3/ |
D | mtu3_trace.h | 38 TP_PROTO(u32 intr), 39 TP_ARGS(intr), 41 __field(u32, intr) 44 __entry->intr = intr; 46 TP_printk("(%08x) %s %s %s %s %s %s", __entry->intr, 47 __entry->intr & HOT_RST_INTR ? "HOT_RST" : "", 48 __entry->intr & WARM_RST_INTR ? "WARM_RST" : "", 49 __entry->intr & ENTER_U3_INTR ? "ENT_U3" : "", 50 __entry->intr & EXIT_U3_INTR ? "EXIT_U3" : "", 51 __entry->intr & VBUS_RISE_INTR ? "VBUS_RISE" : "", [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
D | gp100.c | 66 u32 intr = nvkm_rd32(device, 0x104410 + base) & mask; in gp100_ce_intr() local 67 if (intr & 0x00000001) { //XXX: guess in gp100_ce_intr() 70 intr &= ~0x00000001; in gp100_ce_intr() 72 if (intr & 0x00000002) { //XXX: guess in gp100_ce_intr() 75 intr &= ~0x00000002; in gp100_ce_intr() 77 if (intr & 0x00000004) { in gp100_ce_intr() 80 intr &= ~0x00000004; in gp100_ce_intr() 82 if (intr) { in gp100_ce_intr() 83 nvkm_warn(subdev, "intr %08x\n", intr); in gp100_ce_intr() 84 nvkm_wr32(device, 0x104410 + base, intr); in gp100_ce_intr() [all …]
|
D | gk104.c | 65 u32 intr = nvkm_rd32(device, 0x104908 + base) & mask; in gk104_ce_intr() local 66 if (intr & 0x00000001) { in gk104_ce_intr() 69 intr &= ~0x00000001; in gk104_ce_intr() 71 if (intr & 0x00000002) { in gk104_ce_intr() 74 intr &= ~0x00000002; in gk104_ce_intr() 76 if (intr & 0x00000004) { in gk104_ce_intr() 79 intr &= ~0x00000004; in gk104_ce_intr() 81 if (intr) { in gk104_ce_intr() 82 nvkm_warn(subdev, "intr %08x\n", intr); in gk104_ce_intr() 83 nvkm_wr32(device, 0x104908 + base, intr); in gk104_ce_intr() [all …]
|
/Linux-v5.10/arch/m68k/include/asm/ |
D | mcfintc.h | 31 #define MCFSIM_ICR_AUTOVEC 0x80 /* Auto-vectored intr */ 32 #define MCFSIM_ICR_LEVEL0 0x00 /* Level 0 intr */ 33 #define MCFSIM_ICR_LEVEL1 0x04 /* Level 1 intr */ 34 #define MCFSIM_ICR_LEVEL2 0x08 /* Level 2 intr */ 35 #define MCFSIM_ICR_LEVEL3 0x0c /* Level 3 intr */ 36 #define MCFSIM_ICR_LEVEL4 0x10 /* Level 4 intr */ 37 #define MCFSIM_ICR_LEVEL5 0x14 /* Level 5 intr */ 38 #define MCFSIM_ICR_LEVEL6 0x18 /* Level 6 intr */ 39 #define MCFSIM_ICR_LEVEL7 0x1c /* Level 7 intr */ 41 #define MCFSIM_ICR_PRI0 0x00 /* Priority 0 intr */ [all …]
|
D | m5206sim.h | 26 #define MCFSIM_ICR1 (MCF_MBAR + 0x14) /* Intr Ctrl reg 1 */ 27 #define MCFSIM_ICR2 (MCF_MBAR + 0x15) /* Intr Ctrl reg 2 */ 28 #define MCFSIM_ICR3 (MCF_MBAR + 0x16) /* Intr Ctrl reg 3 */ 29 #define MCFSIM_ICR4 (MCF_MBAR + 0x17) /* Intr Ctrl reg 4 */ 30 #define MCFSIM_ICR5 (MCF_MBAR + 0x18) /* Intr Ctrl reg 5 */ 31 #define MCFSIM_ICR6 (MCF_MBAR + 0x19) /* Intr Ctrl reg 6 */ 32 #define MCFSIM_ICR7 (MCF_MBAR + 0x1a) /* Intr Ctrl reg 7 */ 33 #define MCFSIM_ICR8 (MCF_MBAR + 0x1b) /* Intr Ctrl reg 8 */ 34 #define MCFSIM_ICR9 (MCF_MBAR + 0x1c) /* Intr Ctrl reg 9 */ 35 #define MCFSIM_ICR10 (MCF_MBAR + 0x1d) /* Intr Ctrl reg 10 */ [all …]
|
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | core.c | 16 u32 intr; in mt7603_irq_handler() local 18 intr = mt76_rr(dev, MT_INT_SOURCE_CSR); in mt7603_irq_handler() 19 mt76_wr(dev, MT_INT_SOURCE_CSR, intr); in mt7603_irq_handler() 24 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7603_irq_handler() 26 intr &= dev->mt76.mmio.irqmask; in mt7603_irq_handler() 28 if (intr & MT_INT_MAC_IRQ3) { in mt7603_irq_handler() 39 if (intr & MT_INT_TX_DONE_ALL) { in mt7603_irq_handler() 44 if (intr & MT_INT_RX_DONE(0)) { in mt7603_irq_handler() 49 if (intr & MT_INT_RX_DONE(1)) { in mt7603_irq_handler()
|
/Linux-v5.10/drivers/net/wireless/zydas/zd1211rw/ |
D | zd_usb.c | 361 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int_override() local 364 spin_lock_irqsave(&intr->lock, flags); in handle_regs_int_override() 365 if (atomic_read(&intr->read_regs_enabled)) { in handle_regs_int_override() 366 atomic_set(&intr->read_regs_enabled, 0); in handle_regs_int_override() 367 intr->read_regs_int_overridden = 1; in handle_regs_int_override() 368 complete(&intr->read_regs.completion); in handle_regs_int_override() 370 spin_unlock_irqrestore(&intr->lock, flags); in handle_regs_int_override() 376 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int() local 381 spin_lock_irqsave(&intr->lock, flags); in handle_regs_int() 391 } else if (atomic_read(&intr->read_regs_enabled)) { in handle_regs_int() [all …]
|
/Linux-v5.10/drivers/gpu/host1x/ |
D | intr.c | 16 #include "intr.h" 165 spin_lock(&syncpt->intr.lock); in process_wait_list() 167 remove_completed_waiters(&syncpt->intr.wait_head, threshold, in process_wait_list() 170 empty = list_empty(&syncpt->intr.wait_head); in process_wait_list() 174 reset_threshold_interrupt(host, &syncpt->intr.wait_head, in process_wait_list() 177 spin_unlock(&syncpt->intr.lock); in process_wait_list() 194 container_of(syncpt_intr, struct host1x_syncpt, intr); in syncpt_thresh_work() 225 spin_lock(&syncpt->intr.lock); in host1x_intr_add_action() 227 queue_was_empty = list_empty(&syncpt->intr.wait_head); in host1x_intr_add_action() 229 if (add_waiter_to_queue(waiter, &syncpt->intr.wait_head)) { in host1x_intr_add_action() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/interrupt-controller/ |
D | ti,sci-intr.yaml | 4 $id: http://devicetree.org/schemas/interrupt-controller/ti,sci-intr.yaml# 16 The Interrupt Router (INTR) module provides a mechanism to mux M 51 const: ti,sci-intr 53 ti,intr-trigger-type: 58 1 = If intr supports edge triggered interrupts. 59 4 = If intr supports level triggered interrupts. 71 Interrupt ranges that converts the INTR output hw irq numbers 76 "output_irq" specifies the base for intr output irq 84 - ti,intr-trigger-type 96 compatible = "ti,sci-intr"; [all …]
|
/Linux-v5.10/drivers/scsi/ |
D | mac53c94.c | 46 int intr; member 200 int nb, stat, seq, intr; in mac53c94_interrupt() local 209 intr = readb(®s->interrupt); in mac53c94_interrupt() 212 printk(KERN_DEBUG "mac53c94_intr, intr=%x stat=%x seq=%x phase=%d\n", in mac53c94_interrupt() 213 intr, stat, seq, state->phase); in mac53c94_interrupt() 216 if (intr & INTR_RESET) { in mac53c94_interrupt() 224 if (intr & INTR_ILL_CMD) { in mac53c94_interrupt() 225 printk(KERN_ERR "53c94: invalid cmd, intr=%x stat=%x seq=%x phase=%d\n", in mac53c94_interrupt() 226 intr, stat, seq, state->phase); in mac53c94_interrupt() 233 printk("53c94: bad error, intr=%x stat=%x seq=%x phase=%d\n", in mac53c94_interrupt() [all …]
|
/Linux-v5.10/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | pci.c | 32 u32 intr, mask; in mt7915_irq_handler() local 34 intr = mt76_rr(dev, MT_INT_SOURCE_CSR); in mt7915_irq_handler() 35 intr &= dev->mt76.mmio.irqmask; in mt7915_irq_handler() 36 mt76_wr(dev, MT_INT_SOURCE_CSR, intr); in mt7915_irq_handler() 41 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7915_irq_handler() 43 mask = intr & MT_INT_RX_DONE_ALL; in mt7915_irq_handler() 44 if (intr & MT_INT_TX_DONE_MCU) in mt7915_irq_handler() 49 if (intr & MT_INT_TX_DONE_MCU) in mt7915_irq_handler() 52 if (intr & MT_INT_RX_DONE_DATA) in mt7915_irq_handler() 55 if (intr & MT_INT_RX_DONE_WM) in mt7915_irq_handler() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | g84.c | 145 uint32_t intr; in g84_therm_intr() local 149 intr = nvkm_rd32(device, 0x20100) & 0x3ff; in g84_therm_intr() 152 if (intr & 0x002) { in g84_therm_intr() 156 intr &= ~0x002; in g84_therm_intr() 160 if (intr & 0x004) { in g84_therm_intr() 164 intr &= ~0x004; in g84_therm_intr() 168 if (intr & 0x008) { in g84_therm_intr() 172 intr &= ~0x008; in g84_therm_intr() 176 if (intr & 0x010) { in g84_therm_intr() 180 intr &= ~0x010; in g84_therm_intr() [all …]
|
/Linux-v5.10/drivers/mtd/nand/onenand/ |
D | onenand_omap2.c | 129 static void wait_err(char *msg, int state, unsigned int ctrl, unsigned int intr) in wait_err() argument 131 printk(KERN_ERR "onenand_wait: %s! state %d ctrl 0x%04x intr 0x%04x\n", in wait_err() 132 msg, state, ctrl, intr); in wait_err() 136 unsigned int intr) in wait_warn() argument 139 "intr 0x%04x\n", msg, state, ctrl, intr); in wait_warn() 146 unsigned int intr = 0; in omap2_onenand_wait() local 170 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 171 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait() 176 wait_err("controller error", state, ctrl, intr); in omap2_onenand_wait() 179 if ((intr & intr_flags) == intr_flags) in omap2_onenand_wait() [all …]
|