/linux/drivers/irqchip/ |
A D | irq-ti-sci-intr.c | 68 *type = intr->type; in ti_sci_intr_irq_domain_translate() 118 intr->sci->ops.rm_irq_ops.free_irq(intr->sci, in ti_sci_intr_irq_domain_free() 170 err = intr->sci->ops.rm_irq_ops.set_irq(intr->sci, in ti_sci_intr_alloc_parent_irq() 244 intr = devm_kzalloc(dev, sizeof(*intr), GFP_KERNEL); in ti_sci_intr_irq_domain_probe() 245 if (!intr) in ti_sci_intr_irq_domain_probe() 248 intr->dev = dev; in ti_sci_intr_irq_domain_probe() 250 &intr->type); in ti_sci_intr_irq_domain_probe() 257 if (IS_ERR(intr->sci)) in ti_sci_intr_irq_domain_probe() 262 &intr->ti_sci_id); in ti_sci_intr_irq_domain_probe() 268 intr->out_irqs = devm_ti_sci_get_resource(intr->sci, dev, in ti_sci_intr_irq_domain_probe() [all …]
|
A D | irq-mips-gic.c | 86 switch (intr) { in gic_local_irq_is_routable() 152 unsigned int intr; in gic_handle_shared_int() local 182 write_gic_rmask(intr); in gic_mask_irq() 183 gic_clear_pcpu_masks(intr); in gic_mask_irq() 191 write_gic_smask(intr); in gic_unmask_irq() 193 gic_clear_pcpu_masks(intr); in gic_unmask_irq() 312 unsigned int intr; in gic_handle_local_int() local 353 int intr, cpu; in gic_mask_local_irq_all_vpes() local 371 int intr, cpu; in gic_unmask_local_irq_all_vpes() local 470 unsigned int intr; in gic_irq_domain_map() local [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_hw_interrupts.c | 157 if (!intr) in dpu_core_irq() 214 if (!intr) in dpu_hw_intr_enable_irq_locked() 263 if (!intr) in dpu_hw_intr_disable_irq_locked() 310 if (!intr) in dpu_clear_irqs() 328 if (!intr) in dpu_disable_all_irqs() 348 if (!intr) in dpu_core_irq_read() 396 intr = kzalloc(sizeof(*intr), GFP_KERNEL); in dpu_hw_intr_init() 397 if (!intr) in dpu_hw_intr_init() 407 kfree(intr); in dpu_hw_intr_init() 415 return intr; in dpu_hw_intr_init() [all …]
|
/linux/drivers/net/ethernet/cisco/enic/ |
A 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() 38 intr->index = index; in vnic_intr_alloc() 39 intr->vdev = vdev; in vnic_intr_alloc() 42 if (!intr->ctrl) { in vnic_intr_alloc() 54 vnic_intr_coalescing_timer_set(intr, coalescing_timer); in vnic_intr_init() 55 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init() 57 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init() 64 coalescing_timer), &intr->ctrl->coalescing_timer); in vnic_intr_coalescing_timer_set() 67 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument [all …]
|
A 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() 84 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits() 89 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() 102 void vnic_intr_free(struct vnic_intr *intr); 107 void vnic_intr_coalescing_timer_set(struct vnic_intr *intr, [all …]
|
/linux/arch/mips/include/asm/ |
A D | mips-gic.h | 99 val = __raw_readq(addr) >> intr % 64; \ 102 val = __raw_readl(addr) >> intr % 32; \ 118 __raw_writeq(BIT(intr % 64), addr); \ 121 __raw_writel(BIT(intr % 32), addr); \ 135 _val &= ~BIT_ULL(intr % 64); \ 143 _val &= ~BIT(intr % 32); \ 144 _val |= val << (intr % 32); \ 332 if (intr <= GIC_LOCAL_INT_TIMER) in mips_gic_vx_map_reg() 333 return intr; in mips_gic_vx_map_reg() 336 if (intr == GIC_LOCAL_INT_FDC) in mips_gic_vx_map_reg() [all …]
|
/linux/drivers/scsi/fnic/ |
A 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() 35 intr->index = index; in vnic_intr_alloc() 36 intr->vdev = vdev; in vnic_intr_alloc() 39 if (!intr->ctrl) { in vnic_intr_alloc() 51 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in vnic_intr_init() 52 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init() 53 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in vnic_intr_init() 54 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init() 57 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument [all …]
|
A 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() 88 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in vnic_intr_return_credits() 93 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits() 98 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits() 102 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits() 111 void vnic_intr_free(struct vnic_intr *intr); 112 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, [all …]
|
/linux/drivers/scsi/snic/ |
A 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() 34 intr->index = index; in svnic_intr_alloc() 35 intr->vdev = vdev; in svnic_intr_alloc() 38 if (!intr->ctrl) { in svnic_intr_alloc() 50 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in svnic_intr_init() 51 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in svnic_intr_init() 52 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in svnic_intr_init() 53 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_init() 56 void svnic_intr_clean(struct vnic_intr *intr) in svnic_intr_clean() argument [all …]
|
A 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/arch/powerpc/platforms/52xx/ |
A D | mpc52xx_pic.c | 194 ctrl_reg = in_be32(&intr->ctrl); in mpc52xx_extirq_set_type() 197 out_be32(&intr->ctrl, ctrl_reg); in mpc52xx_extirq_set_type() 356 reg = in_be32(&intr->ctrl); in mpc52xx_irqhost_map() 410 intr = of_iomap(picnode, 0); in mpc52xx_init_irq() 411 if (!intr) in mpc52xx_init_irq() 429 intr_ctrl = in_be32(&intr->ctrl); in mpc52xx_init_irq() 438 out_be32(&intr->per_pri1, 0); in mpc52xx_init_irq() 439 out_be32(&intr->per_pri2, 0); in mpc52xx_init_irq() 440 out_be32(&intr->per_pri3, 0); in mpc52xx_init_irq() 441 out_be32(&intr->main_pri1, 0); in mpc52xx_init_irq() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
A 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 …]
|
A 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 …]
|
/linux/drivers/net/wireless/zydas/zd1211rw/ |
A D | zd_usb.c | 360 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int_override() local 375 struct zd_usb_interrupt *intr = &usb->intr; in handle_regs_int() local 461 intr = &usb->intr; in int_urb_complete() 504 struct zd_usb_interrupt *intr = &usb->intr; in usb_int_enabled() local 517 struct zd_usb_interrupt *intr = &usb->intr; in zd_usb_enable_int() local 565 intr->buffer, intr->buffer_dma); in zd_usb_enable_int() 580 struct zd_usb_interrupt *intr = &usb->intr; in zd_usb_disable_int() local 1157 struct zd_usb_interrupt *intr = &usb->intr; in init_usb_interrupt() local 1601 struct zd_usb_interrupt *intr = &usb->intr; in prepare_read_regs_int() local 1613 struct zd_usb_interrupt *intr = &usb->intr; in disable_read_regs_int() local [all …]
|
/linux/drivers/usb/mtu3/ |
A D | mtu3_trace.h | 38 TP_PROTO(u32 intr), 39 TP_ARGS(intr), 41 __field(u32, intr) 44 __entry->intr = intr; 57 TP_PROTO(u32 intr), 58 TP_ARGS(intr), 60 __field(u32, intr) 63 __entry->intr = intr; 65 TP_printk("(%08x) %s %s %s", __entry->intr, 67 __entry->intr & RESUME_INTR ? "RESUME" : "", [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A 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/drivers/gpu/host1x/ |
A D | intr.c | 174 spin_lock(&syncpt->intr.lock); in process_wait_list() 186 spin_unlock(&syncpt->intr.lock); in process_wait_list() 234 spin_lock(&syncpt->intr.lock); in host1x_intr_add_action() 250 spin_unlock(&syncpt->intr.lock); in host1x_intr_add_action() 265 spin_lock(&syncpt->intr.lock); in host1x_intr_put_ref() 271 spin_unlock(&syncpt->intr.lock); in host1x_intr_put_ref() 293 spin_lock_init(&syncpt->intr.lock); in host1x_intr_init() 294 INIT_LIST_HEAD(&syncpt->intr.wait_head); in host1x_intr_init() 295 snprintf(syncpt->intr.thresh_irq_name, in host1x_intr_init() 296 sizeof(syncpt->intr.thresh_irq_name), in host1x_intr_init() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
A D | g84.c | 145 uint32_t intr; in g84_therm_intr() local 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() 183 if (intr) in g84_therm_intr() [all …]
|
/linux/drivers/mtd/nand/onenand/ |
A D | onenand_omap2.c | 132 msg, state, ctrl, intr); in wait_err() 136 unsigned int intr) in wait_warn() argument 146 unsigned int intr = 0; in omap2_onenand_wait() local 171 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait() 179 if ((intr & intr_flags) == intr_flags) in omap2_onenand_wait() 219 intr = read_reg(c, in omap2_onenand_wait() 225 if ((intr & ONENAND_INT_MASTER) == 0) in omap2_onenand_wait() 241 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait() 263 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() 266 if (intr & ONENAND_INT_READ) { in omap2_onenand_wait() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
A D | base.c | 71 u32 intr = mc->func->intr_stat(mc); in nvkm_mc_intr_stat() local 72 if (WARN_ON_ONCE(intr == 0xffffffff)) in nvkm_mc_intr_stat() 73 intr = 0; /* likely fallen off the bus */ in nvkm_mc_intr_stat() 74 return intr; in nvkm_mc_intr_stat() 85 u32 stat, intr; in nvkm_mc_intr() local 90 stat = intr = nvkm_mc_intr_stat(mc); in nvkm_mc_intr() 94 if (tdev->intr >= 0 && (stat & BIT(tdev->intr))) { in nvkm_mc_intr() 98 stat &= ~BIT(tdev->intr); in nvkm_mc_intr() 106 for (map = mc->func->intr; map->stat; map++) { in nvkm_mc_intr() 107 if (intr & map->stat) { in nvkm_mc_intr() [all …]
|
A D | ga100.c | 37 ga100_mc_intr_mask(struct nvkm_mc *mc, u32 mask, u32 intr) in ga100_mc_intr_mask() argument 39 nvkm_wr32(mc->subdev.device, 0xb81210, mask & intr ); in ga100_mc_intr_mask() 40 nvkm_wr32(mc->subdev.device, 0xb81410, mask & ~(mask & intr)); in ga100_mc_intr_mask() 46 u32 intr_top = nvkm_rd32(mc->subdev.device, 0xb81600), intr = 0x00000000; in ga100_mc_intr_stat() local 48 intr = nvkm_mask(mc->subdev.device, 0xb81010, 0x00000000, 0x00000000); in ga100_mc_intr_stat() 49 return intr; in ga100_mc_intr_stat() 62 .intr = gp100_mc_intr,
|
A D | gp100.c | 30 bool intr; member 38 u32 mask = mc->intr ? mc->mask : 0, i; in gp100_mc_intr_update() 51 mc->intr = false; in gp100_mc_intr_unarm() 62 mc->intr = true; in gp100_mc_intr_rearm() 68 gp100_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr) in gp100_mc_intr_mask() argument 73 mc->mask = (mc->mask & ~mask) | intr; in gp100_mc_intr_mask() 99 .intr = gp100_mc_intr, 119 mc->intr = false; in gp100_mc_new_()
|
A D | tu102.c | 28 bool intr; member 36 u32 mask = mc->intr ? mc->mask : 0, i; in tu102_mc_intr_update() 56 mc->intr = false; in tu102_mc_intr_unarm() 68 mc->intr = true; in tu102_mc_intr_rearm() 74 tu102_mc_intr_mask(struct nvkm_mc *base, u32 mask, u32 intr) in tu102_mc_intr_mask() argument 80 mc->mask = (mc->mask & ~mask) | intr; in tu102_mc_intr_mask() 107 .intr = gp100_mc_intr, 127 mc->intr = false; in tu102_mc_new_()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | pci.c | 100 u32 intr, intr1, mask; in mt7915_irq_tasklet() local 107 intr &= dev->mt76.mmio.irqmask; in mt7915_irq_tasklet() 115 intr |= intr1; in mt7915_irq_tasklet() 120 mask = intr & MT_INT_RX_DONE_ALL; in mt7915_irq_tasklet() 121 if (intr & MT_INT_TX_DONE_MCU) in mt7915_irq_tasklet() 126 if (intr & MT_INT_TX_DONE_MCU) in mt7915_irq_tasklet() 129 if (intr & MT_INT_RX_DONE_DATA0) in mt7915_irq_tasklet() 132 if (intr & MT_INT_RX_DONE_DATA1) in mt7915_irq_tasklet() 135 if (intr & MT_INT_RX_DONE_WM) in mt7915_irq_tasklet() 138 if (intr & MT_INT_RX_DONE_WA) in mt7915_irq_tasklet() [all …]
|
/linux/drivers/scsi/ |
A D | mac53c94.c | 46 int intr; member 198 int nb, stat, seq, intr; in mac53c94_interrupt() local 207 intr = readb(®s->interrupt); in mac53c94_interrupt() 214 if (intr & INTR_RESET) { in mac53c94_interrupt() 222 if (intr & INTR_ILL_CMD) { in mac53c94_interrupt() 248 if (intr & INTR_DISCONNECT) { in mac53c94_interrupt() 292 if (intr != INTR_BUS_SERV) { in mac53c94_interrupt() 320 if (intr != INTR_DONE) { in mac53c94_interrupt() 484 state->intr, node); in mac53c94_probe() 496 free_irq(state->intr, state); in mac53c94_probe() [all …]
|