Home
last modified time | relevance | path

Searched refs:irq_nr (Results 1 – 25 of 28) sorted by relevance

12

/linux-2.6.39/arch/mips/txx9/generic/
Dirq_tx4939.c55 unsigned int irq_nr = d->irq - TXX9_IRQ_BASE; in tx4939_irq_unmask() local
58 if (irq_nr < 32) { in tx4939_irq_unmask()
59 irq_nr--; in tx4939_irq_unmask()
60 lvlp = &tx4939_ircptr->lvl[(irq_nr % 16) / 2].r; in tx4939_irq_unmask()
62 irq_nr -= 32; in tx4939_irq_unmask()
63 lvlp = &tx4939_ircptr->lvl[8 + (irq_nr % 16) / 2].r; in tx4939_irq_unmask()
65 ofs = (irq_nr & 16) + (irq_nr & 1) * 8; in tx4939_irq_unmask()
67 | (tx4939irq[irq_nr].level << ofs), in tx4939_irq_unmask()
73 unsigned int irq_nr = d->irq - TXX9_IRQ_BASE; in tx4939_irq_mask() local
76 if (irq_nr < 32) { in tx4939_irq_mask()
[all …]
/linux-2.6.39/arch/mips/pnx8550/common/
Dint.c105 static inline void mask_gic_int(unsigned int irq_nr) in mask_gic_int() argument
108 PNX8550_GIC_REQ(irq_nr) = 1<<28; /* set priority to 0 */ in mask_gic_int()
111 static inline void unmask_gic_int(unsigned int irq_nr) in unmask_gic_int() argument
114 PNX8550_GIC_REQ(irq_nr) = (1<<26 | 1<<16) | (1<<28) | gic_prio[irq_nr]; in unmask_gic_int()
119 unsigned int irq_nr = d->irq; in mask_irq() local
121 if ((PNX8550_INT_CP0_MIN <= irq_nr) && (irq_nr <= PNX8550_INT_CP0_MAX)) { in mask_irq()
122 modify_cp0_intmask(1 << irq_nr, 0); in mask_irq()
123 } else if ((PNX8550_INT_GIC_MIN <= irq_nr) && in mask_irq()
124 (irq_nr <= PNX8550_INT_GIC_MAX)) { in mask_irq()
125 mask_gic_int(irq_nr - PNX8550_INT_GIC_MIN); in mask_irq()
[all …]
/linux-2.6.39/arch/mips/kernel/
Dirq_txx9.c68 unsigned int irq_nr = d->irq - TXX9_IRQ_BASE; in txx9_irq_unmask() local
69 u32 __iomem *ilrp = &txx9_ircptr->ilr[(irq_nr % 16 ) / 2]; in txx9_irq_unmask()
70 int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; in txx9_irq_unmask()
73 | (txx9irq[irq_nr].level << ofs), in txx9_irq_unmask()
84 unsigned int irq_nr = d->irq - TXX9_IRQ_BASE; in txx9_irq_mask() local
85 u32 __iomem *ilrp = &txx9_ircptr->ilr[(irq_nr % 16) / 2]; in txx9_irq_mask()
86 int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; in txx9_irq_mask()
104 unsigned int irq_nr = d->irq - TXX9_IRQ_BASE; in txx9_irq_mask_ack() local
108 if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode))) in txx9_irq_mask_ack()
109 __raw_writel(TXx9_IRSCR_EIClrE | irq_nr, &txx9_ircptr->scr); in txx9_irq_mask_ack()
[all …]
/linux-2.6.39/arch/powerpc/sysdev/
Dcpm2_pic.c84 unsigned int irq_nr = virq_to_hw(d->irq); in cpm2_mask_irq() local
86 bit = irq_to_siubit[irq_nr]; in cpm2_mask_irq()
87 word = irq_to_siureg[irq_nr]; in cpm2_mask_irq()
96 unsigned int irq_nr = virq_to_hw(d->irq); in cpm2_unmask_irq() local
98 bit = irq_to_siubit[irq_nr]; in cpm2_unmask_irq()
99 word = irq_to_siureg[irq_nr]; in cpm2_unmask_irq()
108 unsigned int irq_nr = virq_to_hw(d->irq); in cpm2_ack() local
110 bit = irq_to_siubit[irq_nr]; in cpm2_ack()
111 word = irq_to_siureg[irq_nr]; in cpm2_ack()
119 unsigned int irq_nr = virq_to_hw(d->irq); in cpm2_end_irq() local
[all …]
Dmpc8xx_pic.c31 unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq; in mpc8xx_unmask_irq() local
33 bit = irq_nr & 0x1f; in mpc8xx_unmask_irq()
34 word = irq_nr >> 5; in mpc8xx_unmask_irq()
43 unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq; in mpc8xx_mask_irq() local
45 bit = irq_nr & 0x1f; in mpc8xx_mask_irq()
46 word = irq_nr >> 5; in mpc8xx_mask_irq()
55 unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq; in mpc8xx_ack() local
57 bit = irq_nr & 0x1f; in mpc8xx_ack()
64 unsigned int irq_nr = (unsigned int)irq_map[d->irq].hwirq; in mpc8xx_end_irq() local
66 bit = irq_nr & 0x1f; in mpc8xx_end_irq()
[all …]
Di8259.c101 static void i8259_set_irq_mask(int irq_nr) in i8259_set_irq_mask() argument
/linux-2.6.39/arch/mips/rb532/
Dirq.c83 static inline int irq_to_group(unsigned int irq_nr) in irq_to_group() argument
85 return (irq_nr - GROUP0_IRQ_BASE) >> 5; in irq_to_group()
116 unsigned int group, intr_bit, irq_nr = d->irq; in rb532_enable_irq() local
117 int ip = irq_nr - GROUP0_IRQ_BASE; in rb532_enable_irq()
121 enable_local_irq(irq_nr); in rb532_enable_irq()
137 unsigned int group, intr_bit, mask, irq_nr = d->irq; in rb532_disable_irq() local
138 int ip = irq_nr - GROUP0_IRQ_BASE; in rb532_disable_irq()
142 disable_local_irq(irq_nr); in rb532_disable_irq()
154 if (group == GPIO_MAPPED_IRQ_GROUP && irq_nr <= (GROUP4_IRQ_BASE + 13)) in rb532_disable_irq()
155 rb532_gpio_set_istat(0, irq_nr - GPIO_MAPPED_IRQ_BASE); in rb532_disable_irq()
/linux-2.6.39/arch/sparc/kernel/
Dsun4c_irq.c68 static void sun4c_disable_irq(unsigned int irq_nr) in sun4c_disable_irq() argument
74 irq_nr &= (NR_IRQS - 1); in sun4c_disable_irq()
76 switch (irq_nr) { in sun4c_disable_irq()
97 static void sun4c_enable_irq(unsigned int irq_nr) in sun4c_enable_irq() argument
103 irq_nr &= (NR_IRQS - 1); in sun4c_enable_irq()
105 switch (irq_nr) { in sun4c_enable_irq()
Dsun4m_irq.c201 static void sun4m_disable_irq(unsigned int irq_nr) in sun4m_disable_irq() argument
206 mask = sun4m_get_irqmask(irq_nr); in sun4m_disable_irq()
208 if (irq_nr > 15) in sun4m_disable_irq()
215 static void sun4m_enable_irq(unsigned int irq_nr) in sun4m_enable_irq() argument
224 if (irq_nr != 0x0b) { in sun4m_enable_irq()
225 mask = sun4m_get_irqmask(irq_nr); in sun4m_enable_irq()
227 if (irq_nr > 15) in sun4m_enable_irq()
Dleon_kernel.c86 static void leon_enable_irq(unsigned int irq_nr) in leon_enable_irq() argument
89 mask = get_irqmask(irq_nr); in leon_enable_irq()
96 static void leon_disable_irq(unsigned int irq_nr) in leon_disable_irq() argument
99 mask = get_irqmask(irq_nr); in leon_disable_irq()
336 void leon_enable_irq_cpu(unsigned int irq_nr, unsigned int cpu) in leon_enable_irq_cpu() argument
339 mask = get_irqmask(irq_nr); in leon_enable_irq_cpu()
Dpcic.c801 static inline unsigned long get_irqmask(int irq_nr) in get_irqmask() argument
803 return 1 << irq_nr; in get_irqmask()
806 static void pcic_disable_irq(unsigned int irq_nr) in pcic_disable_irq() argument
810 mask = get_irqmask(irq_nr); in pcic_disable_irq()
816 static void pcic_enable_irq(unsigned int irq_nr) in pcic_enable_irq() argument
820 mask = get_irqmask(irq_nr); in pcic_enable_irq()
/linux-2.6.39/arch/mips/txx9/jmr3927/
Dirq.c53 unsigned int irq_nr = d->irq - JMR3927_IRQ_IOC; in mask_irq_ioc() local
55 unsigned int bit = 1 << irq_nr; in mask_irq_ioc()
63 unsigned int irq_nr = d->irq - JMR3927_IRQ_IOC; in unmask_irq_ioc() local
65 unsigned int bit = 1 << irq_nr; in unmask_irq_ioc()
/linux-2.6.39/arch/mips/lasat/
Dinterrupt.c37 unsigned int irq_nr = d->irq - LASAT_IRQ_BASE; in disable_lasat_irq() local
39 *lasat_int_mask &= ~(1 << irq_nr) << lasat_int_mask_shift; in disable_lasat_irq()
44 unsigned int irq_nr = d->irq - LASAT_IRQ_BASE; in enable_lasat_irq() local
46 *lasat_int_mask |= (1 << irq_nr) << lasat_int_mask_shift; in enable_lasat_irq()
/linux-2.6.39/arch/arm/mach-pxa/
Dirq.c149 void __init pxa_init_irq(int irq_nr, set_wake_t fn) in pxa_init_irq() argument
153 BUG_ON(irq_nr > MAX_INTERNAL_IRQS); in pxa_init_irq()
155 pxa_internal_irq_nr = irq_nr; in pxa_init_irq()
157 for (n = 0; n < irq_nr; n += 32) { in pxa_init_irq()
162 for (i = n; (i < (n + 32)) && (i < irq_nr); i++) { in pxa_init_irq()
Dgeneric.h16 extern void __init pxa_init_irq(int irq_nr,
/linux-2.6.39/arch/cris/arch-v10/kernel/
Dirq.c20 #define crisv10_mask_irq(irq_nr) (*R_VECT_MASK_CLR = 1 << (irq_nr)); argument
21 #define crisv10_unmask_irq(irq_nr) (*R_VECT_MASK_SET = 1 << (irq_nr)); argument
/linux-2.6.39/arch/powerpc/platforms/powermac/
Dpic.c72 static void __pmac_retrigger(unsigned int irq_nr) in __pmac_retrigger() argument
74 if (irq_nr >= max_real_irqs && pmac_irq_cascade > 0) { in __pmac_retrigger()
75 __set_bit(irq_nr, ppc_lost_interrupts); in __pmac_retrigger()
76 irq_nr = pmac_irq_cascade; in __pmac_retrigger()
79 if (!__test_and_set_bit(irq_nr, ppc_lost_interrupts)) { in __pmac_retrigger()
122 static void __pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) in __pmac_set_irq_mask() argument
124 unsigned long bit = 1UL << (irq_nr & 0x1f); in __pmac_set_irq_mask()
125 int i = irq_nr >> 5; in __pmac_set_irq_mask()
127 if ((unsigned)irq_nr >= max_irqs) in __pmac_set_irq_mask()
146 __pmac_retrigger(irq_nr); in __pmac_set_irq_mask()
/linux-2.6.39/arch/mips/dec/
Dint-handler.S161 bgez a0,handle_it # irq_nr >= 0?
162 # irq_nr < 0: it is an address
210 bgez a0,handle_it # irq_nr >= 0?
211 # irq_nr < 0: it is an address
/linux-2.6.39/arch/mips/alchemy/common/
Dirq.c474 unsigned int bit, irq_nr; in au1000_init_irq() local
519 irq_nr = map->im_irq; in au1000_init_irq()
521 if (irq_nr >= AU1000_INTC1_INT_BASE) { in au1000_init_irq()
522 bit = irq_nr - AU1000_INTC1_INT_BASE; in au1000_init_irq()
526 bit = irq_nr - AU1000_INTC0_INT_BASE; in au1000_init_irq()
531 au1x_ic_settype(irq_get_irq_data(irq_nr), map->im_type); in au1000_init_irq()
Ddbdma.c1062 int irq_nr, ret; in au1xxx_dbdma_init() local
1071 irq_nr = AU1550_DDMA_INT; in au1xxx_dbdma_init()
1074 irq_nr = AU1200_DDMA_INT; in au1xxx_dbdma_init()
1080 ret = request_irq(irq_nr, dbdma_interrupt, IRQF_DISABLED, in au1xxx_dbdma_init()
/linux-2.6.39/drivers/isdn/hardware/eicon/
Ddivasproc.c82 IoAdapters[cadapter]->irq_info.irq_nr); in divas_read()
287 seq_printf(m, "IRQ : %d\n", IoAdapter->irq_info.irq_nr); in info_proc_show()
319 if (!IoAdapter->irq_info.irq_nr) { in info_proc_show()
Dos_bri.c251 a->xdi_adapter.irq_info.irq_nr = a->resources.pci.irq; in diva_bri_init_card()
254 if (diva_os_register_irq(a, a->xdi_adapter.irq_info.irq_nr, in diva_bri_init_card()
280 diva_os_remove_irq(a, a->xdi_adapter.irq_info.irq_nr); in diva_bri_cleanup_adapter()
/linux-2.6.39/drivers/mfd/
Dasic3.c78 unsigned int irq_nr; member
380 asic->irq_nr = ret; in asic3_irq_probe()
403 irq_set_chained_handler(asic->irq_nr, asic3_irq_demux); in asic3_irq_probe()
404 irq_set_irq_type(asic->irq_nr, IRQ_TYPE_EDGE_RISING); in asic3_irq_probe()
405 irq_set_handler_data(asic->irq_nr, asic); in asic3_irq_probe()
422 irq_set_chained_handler(asic->irq_nr, NULL); in asic3_irq_remove()
/linux-2.6.39/drivers/gpu/drm/i915/
Di915_irq.c1257 static int i915_wait_irq(struct drm_device * dev, int irq_nr) in i915_wait_irq() argument
1264 DRM_DEBUG_DRIVER("irq_nr=%d breadcrumb=%d\n", irq_nr, in i915_wait_irq()
1267 if (READ_BREADCRUMB(dev_priv) >= irq_nr) { in i915_wait_irq()
1278 READ_BREADCRUMB(dev_priv) >= irq_nr); in i915_wait_irq()
1280 } else if (wait_for(READ_BREADCRUMB(dev_priv) >= irq_nr, 3000)) in i915_wait_irq()
/linux-2.6.39/arch/sparc/include/asm/
Dleon.h374 void leon_enable_irq_cpu(unsigned int irq_nr, unsigned int cpu);

12