Home
last modified time | relevance | path

Searched refs:pending (Results 1 – 25 of 100) sorted by relevance

1234

/arch/mips/cobalt/
Dirq.c25 unsigned pending = read_c0_status() & read_c0_cause() & ST0_IM; in plat_irq_dispatch() local
28 if (pending & CAUSEF_IP2) in plat_irq_dispatch()
30 else if (pending & CAUSEF_IP6) { in plat_irq_dispatch()
36 } else if (pending & CAUSEF_IP3) in plat_irq_dispatch()
38 else if (pending & CAUSEF_IP4) in plat_irq_dispatch()
40 else if (pending & CAUSEF_IP5) in plat_irq_dispatch()
42 else if (pending & CAUSEF_IP7) in plat_irq_dispatch()
/arch/mips/vr41xx/common/
Dirq.c80 unsigned int pending = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch() local
82 if (pending & CAUSEF_IP7) in plat_irq_dispatch()
84 else if (pending & 0x7800) { in plat_irq_dispatch()
85 if (pending & CAUSEF_IP3) in plat_irq_dispatch()
87 else if (pending & CAUSEF_IP4) in plat_irq_dispatch()
89 else if (pending & CAUSEF_IP5) in plat_irq_dispatch()
91 else if (pending & CAUSEF_IP6) in plat_irq_dispatch()
93 } else if (pending & CAUSEF_IP2) in plat_irq_dispatch()
95 else if (pending & CAUSEF_IP0) in plat_irq_dispatch()
97 else if (pending & CAUSEF_IP1) in plat_irq_dispatch()
/arch/mips/sni/
Dpcit.c183 u32 pending = *(volatile u32 *)SNI_PCIT_INT_REG; in pcit_hwint1() local
187 irq = ffs((pending >> 16) & 0x7f); in pcit_hwint1()
196 u32 pending = *(volatile u32 *)SNI_PCIT_INT_REG; in pcit_hwint0() local
200 irq = ffs((pending >> 16) & 0x3f); in pcit_hwint0()
209 u32 pending = read_c0_cause() & read_c0_status(); in sni_pcit_hwint() local
211 if (pending & C_IRQ1) in sni_pcit_hwint()
213 else if (pending & C_IRQ2) in sni_pcit_hwint()
215 else if (pending & C_IRQ3) in sni_pcit_hwint()
217 else if (pending & C_IRQ5) in sni_pcit_hwint()
223 u32 pending = read_c0_cause() & read_c0_status(); in sni_pcit_hwint_cplus() local
[all …]
Dpcimt.c278 u32 pending = read_c0_cause() & read_c0_status(); in sni_pcimt_hwint() local
280 if (pending & C_IRQ5) in sni_pcimt_hwint()
282 else if (pending & C_IRQ4) in sni_pcimt_hwint()
284 else if (pending & C_IRQ3) in sni_pcimt_hwint()
286 else if (pending & C_IRQ1) in sni_pcimt_hwint()
288 else if (pending & C_IRQ0) { in sni_pcimt_hwint()
/arch/mips/ralink/
Dirq.c99 u32 pending = rt_intc_r32(INTC_REG_STATUS0); in ralink_intc_irq_handler() local
101 if (pending) { in ralink_intc_irq_handler()
103 generic_handle_domain_irq(domain, __ffs(pending)); in ralink_intc_irq_handler()
111 unsigned long pending; in plat_irq_dispatch() local
113 pending = read_c0_status() & read_c0_cause() & ST0_IM; in plat_irq_dispatch()
115 if (pending & STATUSF_IP7) in plat_irq_dispatch()
118 else if (pending & STATUSF_IP5) in plat_irq_dispatch()
121 else if (pending & STATUSF_IP6) in plat_irq_dispatch()
124 else if (pending & STATUSF_IP4) in plat_irq_dispatch()
127 else if (pending & STATUSF_IP2) in plat_irq_dispatch()
/arch/mips/loongson2ef/fuloong-2e/
Dirq.c24 asmlinkage void mach_irq_dispatch(unsigned int pending) in mach_irq_dispatch() argument
26 if (pending & CAUSEF_IP7) in mach_irq_dispatch()
28 else if (pending & CAUSEF_IP6) /* perf counter loverflow */ in mach_irq_dispatch()
30 else if (pending & CAUSEF_IP5) in mach_irq_dispatch()
32 else if (pending & CAUSEF_IP2) in mach_irq_dispatch()
/arch/mips/kvm/
Dinterrupt.c26 unsigned long *pending = &vcpu->arch.pending_exceptions; in kvm_mips_deliver_interrupts() local
30 if (!(*pending) && !(*pending_clr)) in kvm_mips_deliver_interrupts()
42 priority = __ffs(*pending); in kvm_mips_deliver_interrupts()
46 priority = find_next_bit(pending, in kvm_mips_deliver_interrupts()
47 BITS_PER_BYTE * sizeof(*pending), in kvm_mips_deliver_interrupts()
/arch/powerpc/kvm/
Dbook3s_xive_template.c40 xc->pending |= 1 << cppr; in GLUE()
111 u8 pending, int scan_type) in GLUE()
117 while ((xc->mfrr != 0xff || pending != 0) && hirq == 0) { in GLUE()
126 prio = ffs(pending) - 1; in GLUE()
192 pending &= ~(1 << prio); in GLUE()
232 xc->pending = pending; in GLUE()
281 xc->pending, xc->hw_cppr, xc->cppr); in GLUE()
287 hirq = GLUE(X_PFX,scan_interrupts)(xc, xc->pending, scan_fetch); in GLUE()
321 u8 pending = xc->pending; in GLUE() local
336 pending = 0xff; in GLUE()
[all …]
/arch/mips/sibyte/sb1250/
Dirq.c131 u64 pending; in ack_sb1250_irq() local
139 pending = __raw_readq(IOADDR(A_IMR_REGISTER(sb1250_irq_owner[irq], in ack_sb1250_irq()
141 pending &= ((u64)1 << (irq)); in ack_sb1250_irq()
142 if (pending) { in ack_sb1250_irq()
155 __raw_writeq(pending, in ack_sb1250_irq()
296 unsigned int pending; in plat_irq_dispatch() local
308 pending = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch()
310 if (pending & CAUSEF_IP7) /* CPU performance counter interrupt */ in plat_irq_dispatch()
312 else if (pending & CAUSEF_IP4) in plat_irq_dispatch()
316 else if (pending & CAUSEF_IP3) in plat_irq_dispatch()
[all …]
/arch/mips/loongson2ef/lemote-2f/
Dirq.c73 void mach_irq_dispatch(unsigned int pending) in mach_irq_dispatch() argument
75 if (pending & CAUSEF_IP7) in mach_irq_dispatch()
77 else if (pending & CAUSEF_IP6) { /* North Bridge, Perf counter */ in mach_irq_dispatch()
79 } else if (pending & CAUSEF_IP3) /* CPU UART */ in mach_irq_dispatch()
81 else if (pending & CAUSEF_IP2) /* South Bridge */ in mach_irq_dispatch()
/arch/mips/txx9/rbtx4938/
Dirq.c110 static int rbtx4938_irq_dispatch(int pending) in rbtx4938_irq_dispatch() argument
114 if (pending & STATUSF_IP7) in rbtx4938_irq_dispatch()
116 else if (pending & STATUSF_IP2) { in rbtx4938_irq_dispatch()
120 } else if (pending & STATUSF_IP1) in rbtx4938_irq_dispatch()
122 else if (pending & STATUSF_IP0) in rbtx4938_irq_dispatch()
/arch/mips/txx9/rbtx4927/
Dirq.c172 static int rbtx4927_irq_dispatch(int pending) in rbtx4927_irq_dispatch() argument
176 if (pending & STATUSF_IP7) /* cpu timer */ in rbtx4927_irq_dispatch()
178 else if (pending & STATUSF_IP2) { /* tx4927 pic */ in rbtx4927_irq_dispatch()
182 } else if (pending & STATUSF_IP0) /* user line 0 */ in rbtx4927_irq_dispatch()
184 else if (pending & STATUSF_IP1) /* user line 1 */ in rbtx4927_irq_dispatch()
/arch/mips/sibyte/bcm1480/
Dirq.c143 u64 pending; in ack_bcm1480_irq() local
157 pending = __raw_readq(IOADDR(A_BCM1480_IMR_REGISTER(bcm1480_irq_owner[irq], in ack_bcm1480_irq()
159 pending &= ((u64)1 << (irq_dirty)); in ack_bcm1480_irq()
160 if (pending) { in ack_bcm1480_irq()
168 __raw_writeq(pending, IOADDR(A_BCM1480_IMR_REGISTER(cpu_logical_map(i), in ack_bcm1480_irq()
172 …__raw_writeq(pending, IOADDR(A_BCM1480_IMR_REGISTER(0, R_BCM1480_IMR_LDT_INTERRUPT_CLR_H + (k*BCM1… in ack_bcm1480_irq()
335 unsigned int pending; in plat_irq_dispatch() local
337 pending = read_c0_cause() & read_c0_status(); in plat_irq_dispatch()
339 if (pending & CAUSEF_IP4) in plat_irq_dispatch()
342 else if (pending & CAUSEF_IP3) in plat_irq_dispatch()
[all …]
/arch/mips/txx9/rbtx4939/
Dirq.c53 static int rbtx4939_irq_dispatch(int pending) in rbtx4939_irq_dispatch() argument
57 if (pending & CAUSEF_IP7) in rbtx4939_irq_dispatch()
67 } else if (pending & CAUSEF_IP0) in rbtx4939_irq_dispatch()
69 else if (pending & CAUSEF_IP1) in rbtx4939_irq_dispatch()
/arch/mips/loongson2ef/common/
Dirq.c36 unsigned int pending; in plat_irq_dispatch() local
38 pending = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch()
41 mach_irq_dispatch(pending); in plat_irq_dispatch()
/arch/mips/loongson32/common/
Dirq.c131 unsigned int pending; in plat_irq_dispatch() local
133 pending = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch()
135 if (pending & CAUSEF_IP7) in plat_irq_dispatch()
137 else if (pending & CAUSEF_IP2) in plat_irq_dispatch()
139 else if (pending & CAUSEF_IP3) in plat_irq_dispatch()
141 else if (pending & CAUSEF_IP4) in plat_irq_dispatch()
143 else if (pending & CAUSEF_IP5) in plat_irq_dispatch()
145 else if (pending & CAUSEF_IP6) in plat_irq_dispatch()
/arch/arm/mach-pxa/
Dpcm990-baseboard.c286 unsigned long pending; in pcm990_irq_handler() local
288 pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); in pcm990_irq_handler()
289 pending &= pcm990_irq_enabled; in pcm990_irq_handler()
294 if (likely(pending)) { in pcm990_irq_handler()
295 irq = PCM027_IRQ(0) + __ffs(pending); in pcm990_irq_handler()
298 pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); in pcm990_irq_handler()
299 pending &= pcm990_irq_enabled; in pcm990_irq_handler()
300 } while (pending); in pcm990_irq_handler()
/arch/mips/ath25/
Dar2315.c70 u32 pending = ar2315_rst_reg_read(AR2315_ISR) & in ar2315_misc_irq_handler() local
75 if (pending) { in ar2315_misc_irq_handler()
78 nr = __ffs(pending); in ar2315_misc_irq_handler()
88 if (!pending || ret) in ar2315_misc_irq_handler()
129 u32 pending = read_c0_status() & read_c0_cause(); in ar2315_irq_dispatch() local
131 if (pending & CAUSEF_IP3) in ar2315_irq_dispatch()
134 else if (pending & CAUSEF_IP5) in ar2315_irq_dispatch()
137 else if (pending & CAUSEF_IP2) in ar2315_irq_dispatch()
139 else if (pending & CAUSEF_IP7) in ar2315_irq_dispatch()
Dar5312.c74 u32 pending = ar5312_rst_reg_read(AR5312_ISR) & in ar5312_misc_irq_handler() local
79 if (pending) { in ar5312_misc_irq_handler()
82 nr = __ffs(pending); in ar5312_misc_irq_handler()
89 if (!pending || ret) in ar5312_misc_irq_handler()
125 u32 pending = read_c0_status() & read_c0_cause(); in ar5312_irq_dispatch() local
127 if (pending & CAUSEF_IP2) in ar5312_irq_dispatch()
129 else if (pending & CAUSEF_IP5) in ar5312_irq_dispatch()
131 else if (pending & CAUSEF_IP6) in ar5312_irq_dispatch()
133 else if (pending & CAUSEF_IP7) in ar5312_irq_dispatch()
/arch/um/os-Linux/
Dsignal.c181 unsigned long pending = 1UL << sig; in hard_handler() local
196 bail = to_irq_stack(&pending); in hard_handler()
200 nested = pending & 1; in hard_handler()
201 pending &= ~1; in hard_handler()
203 while ((sig = ffs(pending)) != 0){ in hard_handler()
205 pending &= ~(1 << sig); in hard_handler()
216 pending = from_irq_stack(nested); in hard_handler()
217 } while (pending); in hard_handler()
/arch/mips/jazz/
Dirq.c95 unsigned int pending = read_c0_cause() & read_c0_status(); in plat_irq_dispatch() local
98 if (pending & IE_IRQ4) { in plat_irq_dispatch()
101 } else if (pending & IE_IRQ2) { in plat_irq_dispatch()
104 } else if (pending & IE_IRQ1) { in plat_irq_dispatch()
/arch/mips/txx9/jmr3927/
Dirq.c83 static int jmr3927_irq_dispatch(int pending) in jmr3927_irq_dispatch() argument
87 if ((pending & CAUSEF_IP7) == 0) in jmr3927_irq_dispatch()
89 irq = (pending >> CAUSEB_IP2) & 0x0f; in jmr3927_irq_dispatch()
/arch/mips/sgi-ip22/
Dip22-int.c200 unsigned int pending = read_c0_status() & read_c0_cause(); in plat_irq_dispatch() local
205 if (pending & CAUSEF_IP7) in plat_irq_dispatch()
207 else if (pending & CAUSEF_IP2) in plat_irq_dispatch()
209 else if (pending & CAUSEF_IP3) in plat_irq_dispatch()
211 else if (pending & CAUSEF_IP6) in plat_irq_dispatch()
213 else if (pending & (CAUSEF_IP4 | CAUSEF_IP5)) in plat_irq_dispatch()
/arch/mips/sgi-ip32/
Dip32-irq.c410 unsigned int pending = read_c0_status() & read_c0_cause(); in plat_irq_dispatch() local
412 if (likely(pending & IE_IRQ0)) in plat_irq_dispatch()
414 else if (unlikely(pending & IE_IRQ1)) in plat_irq_dispatch()
416 else if (unlikely(pending & IE_IRQ2)) in plat_irq_dispatch()
418 else if (unlikely(pending & IE_IRQ3)) in plat_irq_dispatch()
420 else if (unlikely(pending & IE_IRQ4)) in plat_irq_dispatch()
422 else if (likely(pending & IE_IRQ5)) in plat_irq_dispatch()
/arch/arc/kernel/
Dsmp.c364 unsigned long pending; in do_IPI() local
377 copy = pending = xchg(this_cpu_ptr(&ipi_data), 0); in do_IPI()
380 unsigned long msg = __ffs(pending); in do_IPI()
386 pending &= ~(1U << msg); in do_IPI()
387 } while (pending); in do_IPI()

1234