/arch/mips/bcm47xx/ |
D | irq.c | 36 u32 cause; in plat_irq_dispatch() local 38 cause = read_c0_cause() & read_c0_status() & CAUSEF_IP; in plat_irq_dispatch() 40 clear_c0_status(cause); in plat_irq_dispatch() 42 if (cause & CAUSEF_IP7) in plat_irq_dispatch() 44 if (cause & CAUSEF_IP2) in plat_irq_dispatch() 46 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 48 if (cause & CAUSEF_IP4) in plat_irq_dispatch() 50 if (cause & CAUSEF_IP5) in plat_irq_dispatch() 52 if (cause & CAUSEF_IP6) in plat_irq_dispatch()
|
/arch/mips/kernel/ |
D | irq-gt641xx.c | 22 u32 cause; in ack_gt641xx_irq() local 25 cause = GT_READ(GT_INTRCAUSE_OFS); in ack_gt641xx_irq() 26 cause &= ~GT641XX_IRQ_TO_BIT(d->irq); in ack_gt641xx_irq() 27 GT_WRITE(GT_INTRCAUSE_OFS, cause); in ack_gt641xx_irq() 46 u32 cause, mask; in mask_ack_gt641xx_irq() local 53 cause = GT_READ(GT_INTRCAUSE_OFS); in mask_ack_gt641xx_irq() 54 cause &= ~GT641XX_IRQ_TO_BIT(d->irq); in mask_ack_gt641xx_irq() 55 GT_WRITE(GT_INTRCAUSE_OFS, cause); in mask_ack_gt641xx_irq() 81 u32 cause, mask; in gt641xx_irq_dispatch() local 84 cause = GT_READ(GT_INTRCAUSE_OFS); in gt641xx_irq_dispatch() [all …]
|
D | mips-cm.c | 376 int ocause, cause; in mips_cm_error_report() local 388 cause = FIELD_GET(CM_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 391 if (!cause) in mips_cm_error_report() 394 if (cause < 16) { in mips_cm_error_report() 405 } else if (cause < 24) { in mips_cm_error_report() 440 cm2_causes[cause], buf); in mips_cm_error_report() 447 cause = FIELD_GET(CM3_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 450 if (!cause) in mips_cm_error_report() 463 if (cause == 1 || cause == 3) { /* Tag ECC */ in mips_cm_error_report() 484 } else if (cause == 2) { in mips_cm_error_report() [all …]
|
/arch/riscv/mm/ |
D | fault.c | 52 if (kfence_handle_page_fault(addr, regs->cause == EXC_STORE_PAGE_FAULT, regs)) in no_context() 182 static inline bool access_error(unsigned long cause, struct vm_area_struct *vma) in access_error() argument 184 switch (cause) { in access_error() 202 panic("%s: unhandled cause %lu", __func__, cause); in access_error() 216 unsigned long addr, cause; in do_page_fault() local 221 cause = regs->cause; in do_page_fault() 227 if (kprobe_page_fault(regs, cause)) in do_page_fault() 266 tsk->thread.bad_cause = cause; in do_page_fault() 283 if (cause == EXC_STORE_PAGE_FAULT) in do_page_fault() 285 else if (cause == EXC_INST_PAGE_FAULT) in do_page_fault() [all …]
|
/arch/nios2/kernel/ |
D | traps.c | 122 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument 126 cause >>= 2; in handle_unaligned_c() 136 pr_alert(" cause %d\n", cause); in handle_unaligned_c() 168 asmlinkage void unhandled_exception(struct pt_regs *regs, int cause) in unhandled_exception() argument 172 cause /= 4; in unhandled_exception() 175 cause, user_mode(regs) ? "user" : "kernel", addr); in unhandled_exception()
|
D | misaligned.c | 66 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument 151 cause >>= 2; in handle_unaligned_c() 179 (unsigned int)addr, cause, in handle_unaligned_c()
|
/arch/xtensa/kernel/ |
D | traps.c | 84 int cause; member 372 #define set_handler(type, cause, handler) \ argument 377 per_cpu(exc_table, cpu).type[cause] = (handler);\ 382 void * __init trap_set_handler(int cause, void *handler) in trap_set_handler() argument 384 void *previous = per_cpu(exc_table, 0).default_handler[cause]; in trap_set_handler() 386 set_handler(default_handler, cause, handler); in trap_set_handler() 433 for(i = 0; dispatch_init_table[i].cause >= 0; i++) { in trap_init() 435 int cause = dispatch_init_table[i].cause; in trap_init() local 439 set_handler(default_handler, cause, handler); in trap_init() 441 set_handler(fast_user_handler, cause, handler); in trap_init() [all …]
|
/arch/mips/kvm/ |
D | interrupt.c | 24 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause) in kvm_mips_deliver_interrupts() argument 35 kvm_mips_callbacks->irq_clear(vcpu, priority, cause); in kvm_mips_deliver_interrupts() 44 kvm_mips_callbacks->irq_deliver(vcpu, priority, cause); in kvm_mips_deliver_interrupts()
|
D | vz.c | 258 u32 cause) in kvm_vz_irq_deliver_cb() argument 287 u32 cause) in kvm_vz_irq_clear_cb() argument 366 u32 cause) in _kvm_vz_restore_stimer() argument 375 write_gc0_cause(cause); in _kvm_vz_restore_stimer() 388 u32 compare, u32 cause) in _kvm_vz_restore_htimer() argument 404 write_gc0_cause(cause); in _kvm_vz_restore_htimer() 426 u32 cause, compare; in kvm_vz_restore_timer() local 429 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer() 432 _kvm_vz_restore_stimer(vcpu, compare, cause); in kvm_vz_restore_timer() 471 u32 cause, compare, before_count, end_count; in _kvm_vz_save_htimer() local [all …]
|
D | interrupt.h | 39 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause);
|
/arch/riscv/kernel/ |
D | traps.c | 36 long cause; in die() local 50 cause = regs ? regs->cause : -1; in die() 51 ret = notify_die(DIE_OOPS, str, regs, 0, cause, SIGSEGV); in die() 88 current->thread.bad_cause = regs->cause; in do_trap_error() 179 current->thread.bad_cause = regs->cause; in do_trap_break() 184 else if (notify_die(DIE_TRAP, "EBREAK", regs, 0, regs->cause, SIGTRAP) in do_trap_break()
|
D | signal.c | 125 regs->cause = -1UL; in SYSCALL_DEFINE0() 247 if (regs->cause == EXC_SYSCALL) { in handle_signal() 249 regs->cause = -1UL; in handle_signal() 287 if (regs->cause == EXC_SYSCALL) { in do_signal() 289 regs->cause = -1UL; in do_signal()
|
/arch/mips/bcm63xx/ |
D | irq.c | 163 u32 cause; in plat_irq_dispatch() local 166 cause = read_c0_cause() & read_c0_status() & ST0_IM; in plat_irq_dispatch() 168 if (!cause) in plat_irq_dispatch() 171 if (cause & CAUSEF_IP7) in plat_irq_dispatch() 173 if (cause & CAUSEF_IP0) in plat_irq_dispatch() 175 if (cause & CAUSEF_IP1) in plat_irq_dispatch() 177 if (cause & CAUSEF_IP2) in plat_irq_dispatch() 180 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 183 if (cause & CAUSEF_IP3) in plat_irq_dispatch() 185 if (cause & CAUSEF_IP4) in plat_irq_dispatch() [all …]
|
/arch/powerpc/include/asm/ |
D | tm.h | 14 uint8_t cause); 15 extern void tm_reclaim_current(uint8_t cause);
|
/arch/xtensa/include/asm/ |
D | mxregs.h | 36 #define MIPISET(cause) (0x140 + (cause)) argument
|
/arch/alpha/mm/ |
D | fault.c | 86 long cause, struct pt_regs *regs) in do_page_fault() argument 98 if (cause == 0) { in do_page_fault() 137 if (cause < 0) { in do_page_fault() 140 } else if (!cause) { in do_page_fault() 206 die_if_kernel("Oops", regs, cause, (unsigned long*)regs - 16); in do_page_fault()
|
/arch/nios2/mm/ |
D | fault.c | 43 asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause, in do_page_fault() argument 53 cause >>= 2; in do_page_fault() 112 switch (cause) { in do_page_fault() 181 "cause %ld\n", current->comm, SIGSEGV, address, cause); in do_page_fault() 203 cause); in do_page_fault()
|
/arch/mips/sgi-ip30/ |
D | ip30-irq.c | 46 u64 pending, mask, cause, error_irqs, err_reg; in ip30_error_irq() local 52 cause = heart_read(&heart_regs->cause); in ip30_error_irq() 75 if (cause) { in ip30_error_irq() 77 cpu, pending, mask, cause); in ip30_error_irq() 79 if (cause & HC_COR_MEM_ERR) { in ip30_error_irq()
|
/arch/powerpc/sysdev/ge/ |
D | ge_pic.c | 230 u32 cause, mask, active; in gef_pic_get_irq() local 234 cause = in_be32(gef_pic_irq_reg_base + GEF_PIC_INTR_STATUS); in gef_pic_get_irq() 238 active = cause & mask; in gef_pic_get_irq()
|
/arch/mips/sni/ |
D | a20r.c | 207 u32 cause, status; in a20r_hwint() local 212 cause = read_c0_cause(); in a20r_hwint() 214 irq = ffs(((cause & status) >> 8) & 0xf8); in a20r_hwint()
|
/arch/hexagon/mm/ |
D | vm_fault.c | 36 void do_page_fault(unsigned long address, long cause, struct pt_regs *regs) in do_page_fault() argument 78 switch (cause) { in do_page_fault()
|
/arch/s390/kernel/ |
D | uprobes.c | 54 static int check_per_event(unsigned short cause, unsigned long control, in check_per_event() argument 63 if ((control & 0x20200000) && (cause & 0x2000)) in check_per_event() 65 if (cause & 0x8000) { in check_per_event() 101 if (check_per_event(current->thread.per_event.cause, in arch_uprobe_post_xol() 262 current->thread.per_event.cause = PER_EVENT_STORE >> 16; in sim_stor_event()
|
/arch/arm/plat-orion/ |
D | gpio.c | 407 u32 cause, type; in gpio_irq_handler() local 413 cause = readl(GPIO_DATA_IN(ochip)) & readl(GPIO_LEVEL_MASK(ochip)); in gpio_irq_handler() 414 cause |= readl(GPIO_EDGE_CAUSE(ochip)) & readl(GPIO_EDGE_MASK(ochip)); in gpio_irq_handler() 421 if (!(cause & (1 << i))) in gpio_irq_handler() 444 u32 out, io_conf, blink, in_pol, data_in, cause, edg_msk, lvl_msk; in orion_gpio_dbg_show() local 453 cause = readl_relaxed(GPIO_EDGE_CAUSE(ochip)); in orion_gpio_dbg_show() 484 seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear "); in orion_gpio_dbg_show()
|
/arch/mips/include/asm/ |
D | kvm_host.h | 655 __BUILD_KVM_RW_HW(cause, 32, MIPS_CP0_CAUSE, 0) 680 __BUILD_KVM_ATOMIC_HW(cause, 32, MIPS_CP0_CAUSE, 0) 747 u32 cause); 749 u32 cause); 817 enum emulation_result update_pc(struct kvm_vcpu *vcpu, u32 cause); 832 u32 cause = vcpu->host_cp0_cause; in kvm_is_ifetch_fault() local 842 if ((cause & CAUSEF_BD) && badvaddr - epc <= 4) in kvm_is_ifetch_fault() 871 u32 cause, 874 u32 cause,
|
/arch/arc/include/asm/ |
D | kprobes.h | 48 int kprobe_fault_handler(struct pt_regs *regs, unsigned long cause);
|