Home
last modified time | relevance | path

Searched refs:intr (Results 1 – 25 of 733) sorted by relevance

12345678910>>...30

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dintr.c150 list_for_each_entry(intr, &device->intr.intr, head) in nvkm_intr_rearm_locked()
151 intr->func->rearm(intr); in nvkm_intr_rearm_locked()
159 list_for_each_entry(intr, &device->intr.intr, head) in nvkm_intr_unarm_locked()
160 intr->func->unarm(intr); in nvkm_intr_unarm_locked()
182 list_for_each_entry(intr, &device->intr.intr, head) { in nvkm_intr()
212 list_for_each_entry(intr, &device->intr.intr, head) { in nvkm_intr()
255 list_add_tail(&intr->head, &device->intr.intr); in nvkm_intr_add()
322 list_for_each_entry(intr, &device->intr.intr, head) in nvkm_intr_rearm()
328 list_for_each_entry(intr, &device->intr.intr, head) { in nvkm_intr_rearm()
331 intr->func->allow(intr, i, intr->mask[i]); in nvkm_intr_rearm()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-ti-sci-intr.c68 *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()
245 intr = devm_kzalloc(dev, sizeof(*intr), GFP_KERNEL); in ti_sci_intr_irq_domain_probe()
246 if (!intr) in ti_sci_intr_irq_domain_probe()
249 intr->dev = dev; in ti_sci_intr_irq_domain_probe()
251 &intr->type); in ti_sci_intr_irq_domain_probe()
258 if (IS_ERR(intr->sci)) in ti_sci_intr_irq_domain_probe()
263 &intr->ti_sci_id); in ti_sci_intr_irq_domain_probe()
269 intr->out_irqs = devm_ti_sci_get_resource(intr->sci, dev, in ti_sci_intr_irq_domain_probe()
[all …]
H A Dirq-mips-gic.c87 switch (intr) { in gic_local_irq_is_routable()
153 unsigned int intr; in gic_handle_shared_int() local
183 write_gic_rmask(intr); in gic_mask_irq()
184 gic_clear_pcpu_masks(intr); in gic_mask_irq()
192 write_gic_smask(intr); in gic_unmask_irq()
194 gic_clear_pcpu_masks(intr); in gic_unmask_irq()
313 unsigned int intr; in gic_handle_local_int() local
354 int intr, cpu; in gic_mask_local_irq_all_vpes() local
372 int intr, cpu; in gic_unmask_local_irq_all_vpes() local
473 unsigned int intr; in gic_irq_domain_map() local
[all …]
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_intr.c17 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument
19 intr->ctrl = NULL; in vnic_intr_free()
25 intr->index = index; in vnic_intr_alloc()
26 intr->vdev = vdev; in vnic_intr_alloc()
29 if (!intr->ctrl) { in vnic_intr_alloc()
41 vnic_intr_coalescing_timer_set(intr, coalescing_timer); in vnic_intr_init()
42 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init()
44 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init()
51 coalescing_timer), &intr->ctrl->coalescing_timer); in vnic_intr_coalescing_timer_set()
54 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument
[all …]
H A Dvnic_intr.h41 static inline void vnic_intr_unmask(struct vnic_intr *intr) in vnic_intr_unmask() argument
43 iowrite32(0, &intr->ctrl->mask); in vnic_intr_unmask()
46 static inline void vnic_intr_mask(struct vnic_intr *intr) in vnic_intr_mask() argument
48 iowrite32(1, &intr->ctrl->mask); in vnic_intr_mask()
51 static inline int vnic_intr_masked(struct vnic_intr *intr) in vnic_intr_masked() argument
53 return ioread32(&intr->ctrl->mask); in vnic_intr_masked()
71 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits()
76 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits()
89 void vnic_intr_free(struct vnic_intr *intr);
94 void vnic_intr_coalescing_timer_set(struct vnic_intr *intr,
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/
H A Dtu102.c29 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_reset()
37 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_allow()
45 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_block()
51 tu102_vfn_intr_rearm(struct nvkm_intr *intr) in tu102_vfn_intr_rearm() argument
53 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_rearm()
59 tu102_vfn_intr_unarm(struct nvkm_intr *intr) in tu102_vfn_intr_unarm() argument
61 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_unarm()
69 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_pending()
77 if (intr->stat[leaf]) in tu102_vfn_intr_pending()
80 intr->stat[leaf] = 0; in tu102_vfn_intr_pending()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dvnic_intr.c15 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument
17 intr->ctrl = NULL; in vnic_intr_free()
23 intr->index = index; in vnic_intr_alloc()
24 intr->vdev = vdev; in vnic_intr_alloc()
27 if (!intr->ctrl) { in vnic_intr_alloc()
39 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in vnic_intr_init()
40 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init()
41 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in vnic_intr_init()
42 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init()
45 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument
[all …]
H A Dvnic_intr.h56 static inline void vnic_intr_unmask(struct vnic_intr *intr) in vnic_intr_unmask() argument
58 iowrite32(0, &intr->ctrl->mask); in vnic_intr_unmask()
61 static inline void vnic_intr_mask(struct vnic_intr *intr) in vnic_intr_mask() argument
63 iowrite32(1, &intr->ctrl->mask); in vnic_intr_mask()
66 static inline void vnic_intr_return_credits(struct vnic_intr *intr, in vnic_intr_return_credits() argument
76 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in vnic_intr_return_credits()
81 return ioread32(&intr->ctrl->int_credits); in vnic_intr_credits()
86 unsigned int credits = vnic_intr_credits(intr); in vnic_intr_return_all_credits()
90 vnic_intr_return_credits(intr, credits, unmask, reset_timer); in vnic_intr_return_all_credits()
99 void vnic_intr_free(struct vnic_intr *intr);
[all …]
/openbmc/linux/drivers/scsi/snic/
H A Dvnic_intr.c12 void svnic_intr_free(struct vnic_intr *intr) in svnic_intr_free() argument
14 intr->ctrl = NULL; in svnic_intr_free()
20 intr->index = index; in svnic_intr_alloc()
21 intr->vdev = vdev; in svnic_intr_alloc()
24 if (!intr->ctrl) { in svnic_intr_alloc()
36 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in svnic_intr_init()
37 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in svnic_intr_init()
38 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in svnic_intr_init()
39 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_init()
42 void svnic_intr_clean(struct vnic_intr *intr) in svnic_intr_clean() argument
[all …]
H A Dvnic_intr.h40 svnic_intr_unmask(struct vnic_intr *intr) in svnic_intr_unmask() argument
42 iowrite32(0, &intr->ctrl->mask); in svnic_intr_unmask()
46 svnic_intr_mask(struct vnic_intr *intr) in svnic_intr_mask() argument
48 iowrite32(1, &intr->ctrl->mask); in svnic_intr_mask()
52 svnic_intr_return_credits(struct vnic_intr *intr, in svnic_intr_return_credits() argument
64 iowrite32(int_credit_return, &intr->ctrl->int_credit_return); in svnic_intr_return_credits()
68 svnic_intr_credits(struct vnic_intr *intr) in svnic_intr_credits() argument
70 return ioread32(&intr->ctrl->int_credits); in svnic_intr_credits()
74 svnic_intr_return_all_credits(struct vnic_intr *intr) in svnic_intr_return_all_credits() argument
76 unsigned int credits = svnic_intr_credits(intr); in svnic_intr_return_all_credits()
[all …]
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_interrupts.c249 if (!intr) in dpu_core_irq()
265 DPU_REG_WRITE(&intr->hw, intr->intr_set[reg_idx].clr_off, in dpu_core_irq()
306 if (!intr) in dpu_hw_intr_enable_irq_locked()
361 if (!intr) in dpu_hw_intr_disable_irq_locked()
410 if (!intr) in dpu_clear_irqs()
428 if (!intr) in dpu_disable_all_irqs()
448 if (!intr) in dpu_core_irq_read()
483 intr = kzalloc(sizeof(*intr), GFP_KERNEL); in dpu_hw_intr_init()
484 if (!intr) in dpu_hw_intr_init()
511 return intr; in dpu_hw_intr_init()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
H A Dgp100.c46 gp100_mc_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in gp100_mc_intr_allow() argument
48 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in gp100_mc_intr_allow()
54 gp100_mc_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in gp100_mc_intr_block() argument
56 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in gp100_mc_intr_block()
62 gp100_mc_intr_rearm(struct nvkm_intr *intr) in gp100_mc_intr_rearm() argument
66 for (i = 0; i < intr->leaves; i++) in gp100_mc_intr_rearm()
67 intr->func->allow(intr, i, intr->mask[i]); in gp100_mc_intr_rearm()
71 gp100_mc_intr_unarm(struct nvkm_intr *intr) in gp100_mc_intr_unarm() argument
75 for (i = 0; i < intr->leaves; i++) in gp100_mc_intr_unarm()
76 intr->func->block(intr, i, 0xffffffff); in gp100_mc_intr_unarm()
[all …]
H A Dnv04.c72 nv04_mc_intr_rearm(struct nvkm_intr *intr) in nv04_mc_intr_rearm() argument
74 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_rearm()
77 for (leaf = 0; leaf < intr->leaves; leaf++) in nv04_mc_intr_rearm()
82 nv04_mc_intr_unarm(struct nvkm_intr *intr) in nv04_mc_intr_unarm() argument
84 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_unarm()
87 for (leaf = 0; leaf < intr->leaves; leaf++) in nv04_mc_intr_unarm()
94 nv04_mc_intr_pending(struct nvkm_intr *intr) in nv04_mc_intr_pending() argument
96 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_pending()
100 for (leaf = 0; leaf < intr->leaves; leaf++) { in nv04_mc_intr_pending()
102 if (intr->stat[leaf]) in nv04_mc_intr_pending()
[all …]
H A Dgt215.c57 gt215_mc_intr_allow(struct nvkm_intr *intr, int leaf, u32 mask) in gt215_mc_intr_allow() argument
59 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in gt215_mc_intr_allow()
65 gt215_mc_intr_block(struct nvkm_intr *intr, int leaf, u32 mask) in gt215_mc_intr_block() argument
67 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in gt215_mc_intr_block()
84 .intr = &nv04_mc_intr,
/openbmc/linux/arch/mips/include/asm/
H A Dmips-gic.h99 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 …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/
H A Dgk104.c65 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 …]
H A Dgp100.c66 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 …]
/openbmc/linux/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pic.c195 ctrl_reg = in_be32(&intr->ctrl); in mpc52xx_extirq_set_type()
198 out_be32(&intr->ctrl, ctrl_reg); in mpc52xx_extirq_set_type()
357 reg = in_be32(&intr->ctrl); in mpc52xx_irqhost_map()
411 intr = of_iomap(picnode, 0); in mpc52xx_init_irq()
412 if (!intr) in mpc52xx_init_irq()
430 intr_ctrl = in_be32(&intr->ctrl); in mpc52xx_init_irq()
439 out_be32(&intr->per_pri1, 0); in mpc52xx_init_irq()
440 out_be32(&intr->per_pri2, 0); in mpc52xx_init_irq()
441 out_be32(&intr->per_pri3, 0); in mpc52xx_init_irq()
442 out_be32(&intr->main_pri1, 0); in mpc52xx_init_irq()
[all …]
/openbmc/linux/drivers/usb/mtu3/
H A Dmtu3_trace.h36 TP_PROTO(u32 intr),
37 TP_ARGS(intr),
39 __field(u32, intr)
42 __entry->intr = intr;
55 TP_PROTO(u32 intr),
56 TP_ARGS(intr),
58 __field(u32, intr)
61 __entry->intr = intr;
63 TP_printk("(%08x) %s %s %s", __entry->intr,
65 __entry->intr & RESUME_INTR ? "RESUME" : "",
[all …]
/openbmc/u-boot/drivers/net/
H A De1000_spi.c22 const void *dout_mem, void *din_mem, bool intr) in e1000_spi_xfer() argument
37 if (intr && ctrlc()) in e1000_spi_xfer()
181 bool intr) in e1000_spi_eeprom_disable_wr() argument
189 u8 status, bool intr) in e1000_spi_eeprom_write_status() argument
206 const void *data, u16 off, u16 len, bool intr) in e1000_spi_eeprom_write_page() argument
224 void *data, u16 off, u16 len, bool intr) in e1000_spi_eeprom_read_page() argument
255 if (e1000_spi_eeprom_poll_ready(hw, intr)) in e1000_spi_eeprom_dump()
281 const void *data, u16 off, u16 len, bool intr) in e1000_spi_eeprom_program() argument
292 if (e1000_spi_eeprom_poll_ready(hw, intr)) in e1000_spi_eeprom_program()
296 if (e1000_spi_eeprom_enable_wr(hw, intr)) in e1000_spi_eeprom_program()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dcore.c16 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()
50 if (intr & MT_INT_RX_DONE(1)) { in mt7603_irq_handler()
/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_usb.c360 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 …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dg84.c145 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 …]
/openbmc/linux/drivers/mtd/nand/onenand/
H A Donenand_omap2.c132 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 …]
/openbmc/linux/drivers/scsi/
H A Dmac53c94.c46 int intr; member
198 int nb, stat, seq, intr; in mac53c94_interrupt() local
207 intr = readb(&regs->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 …]

12345678910>>...30