Home
last modified time | relevance | path

Searched refs:pending (Results 1 – 25 of 87) 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/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/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()
290 unsigned int pending; in plat_irq_dispatch() local
302 pending = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch()
304 if (pending & CAUSEF_IP7) /* CPU performance counter interrupt */ in plat_irq_dispatch()
306 else if (pending & CAUSEF_IP4) in plat_irq_dispatch()
310 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/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/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/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/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.c193 unsigned long pending = 1UL << sig; in hard_handler() local
208 bail = to_irq_stack(&pending); in hard_handler()
212 nested = pending & 1; in hard_handler()
213 pending &= ~1; in hard_handler()
215 while ((sig = ffs(pending)) != 0){ in hard_handler()
217 pending &= ~(1 << sig); in hard_handler()
228 pending = from_irq_stack(nested); in hard_handler()
229 } 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/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.c357 unsigned long pending; in do_IPI() local
370 copy = pending = xchg(this_cpu_ptr(&ipi_data), 0); in do_IPI()
373 unsigned long msg = __ffs(pending); in do_IPI()
379 pending &= ~(1U << msg); in do_IPI()
380 } while (pending); in do_IPI()
/arch/mips/sgi-ip30/
Dip30-irq.c46 u64 pending, mask, cause, error_irqs, err_reg; in ip30_error_irq() local
50 pending = heart_read(&heart_regs->isr); in ip30_error_irq()
53 error_irqs = (pending & HEART_L4_INT_MASK & mask); in ip30_error_irq()
60 heart_write(mask & ~(pending), &heart_regs->imr[cpu]); in ip30_error_irq()
77 cpu, pending, mask, cause); in ip30_error_irq()
86 if ((pending >> i) & 1) in ip30_error_irq()
/arch/sparc/include/asm/
Dobio.h161 unsigned int pending; in cc_get_ipen() local
164 "=r" (pending) : in cc_get_ipen()
167 return pending; in cc_get_ipen()
/arch/mips/pci/
Dpci-ar71xx.c230 u32 pending; in ar71xx_pci_irq_handler() local
234 pending = __raw_readl(base + AR71XX_RESET_REG_PCI_INT_STATUS) & in ar71xx_pci_irq_handler()
237 if (pending & AR71XX_PCI_INT_DEV0) in ar71xx_pci_irq_handler()
240 else if (pending & AR71XX_PCI_INT_DEV1) in ar71xx_pci_irq_handler()
243 else if (pending & AR71XX_PCI_INT_DEV2) in ar71xx_pci_irq_handler()
246 else if (pending & AR71XX_PCI_INT_CORE) in ar71xx_pci_irq_handler()
/arch/sparc/kernel/
Dirq.h30 u32 pending; member
37 u32 pending; member
/arch/um/kernel/
Dtime.c275 if (e->pending) in __time_travel_add_event()
278 e->pending = true; in __time_travel_add_event()
348 e->pending = false; in deliver_time_travel_irqs()
370 e->pending = true; in time_travel_deliver_event()
386 if (!e->pending) in time_travel_del_event()
390 e->pending = false; in time_travel_del_event()
430 } while (ne.pending && !finished); in time_travel_update_time()
495 time_travel_timer_event.pending) { in time_travel_sleep()
/arch/powerpc/platforms/cell/
Dinterrupt.c132 struct cbe_iic_pending_bits pending; in iic_get_irq() local
137 *(unsigned long *) &pending = in iic_get_irq()
139 if (!(pending.flags & CBE_IIC_IRQ_VALID)) in iic_get_irq()
141 virq = irq_linear_revmap(iic_host, iic_pending_to_hwnum(pending)); in iic_get_irq()
144 iic->eoi_stack[++iic->eoi_ptr] = pending.prio; in iic_get_irq()

1234