/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 | 333 int ocause, cause; in mips_cm_error_report() local 345 cause = FIELD_GET(CM_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 348 if (!cause) in mips_cm_error_report() 351 if (cause < 16) { in mips_cm_error_report() 381 cm2_causes[cause], buf); in mips_cm_error_report() 388 cause = FIELD_GET(CM3_GCR_ERROR_CAUSE_ERRTYPE, cm_error); in mips_cm_error_report() 391 if (!cause) in mips_cm_error_report() 404 if (cause == 1 || cause == 3) { /* Tag ECC */ in mips_cm_error_report() 425 } else if (cause == 2) { in mips_cm_error_report() 449 cm3_causes[cause], buf); in mips_cm_error_report()
|
/arch/mips/kvm/ |
D | trap_emul.c | 47 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_emul_no_handler() local 48 u32 exccode = (cause & CAUSEF_EXCCODE) >> CAUSEB_EXCCODE; in kvm_trap_emul_no_handler() 55 if (cause & CAUSEF_BD) in kvm_trap_emul_no_handler() 72 u32 cause = vcpu->arch.host_cp0_cause; in kvm_trap_emul_handle_cop_unusable() local 76 if (((cause & CAUSEF_CE) >> CAUSEB_CE) == 1) { in kvm_trap_emul_handle_cop_unusable() 84 er = kvm_mips_emulate_fpu_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_cop_unusable() 91 er = kvm_mips_emulate_inst(cause, opc, run, vcpu); in kvm_trap_emul_handle_cop_unusable() 119 static int kvm_mips_bad_load(u32 cause, u32 *opc, struct kvm_run *run, in kvm_mips_bad_load() argument 133 if (cause & CAUSEF_BD) in kvm_mips_bad_load() 142 er = kvm_mips_emulate_load(inst, cause, run, vcpu); in kvm_mips_bad_load() [all …]
|
D | emulate.c | 244 enum emulation_result update_pc(struct kvm_vcpu *vcpu, u32 cause) in update_pc() argument 248 if (cause & CAUSEF_BD) { in update_pc() 702 u32 cause; in kvm_mips_write_compare() local 742 cause = kvm_read_c0_guest_cause(cop0); in kvm_mips_write_compare() 752 if (!ack && cause & CAUSEF_TI) in kvm_mips_write_compare() 753 kvm_write_c0_guest_cause(cop0, cause); in kvm_mips_write_compare() 1264 u32 *opc, u32 cause, in kvm_mips_emulate_CP0() argument 1278 er = update_pc(vcpu, cause); in kvm_mips_emulate_CP0() 1599 u32 cause, in kvm_mips_emulate_store() argument 1613 er = update_pc(vcpu, cause); in kvm_mips_emulate_store() [all …]
|
D | interrupt.h | 52 u32 cause); 54 u32 cause); 55 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause);
|
D | vz.c | 283 u32 cause) in kvm_vz_irq_deliver_cb() argument 311 u32 cause) in kvm_vz_irq_clear_cb() argument 390 u32 cause) in _kvm_vz_restore_stimer() argument 399 write_gc0_cause(cause); in _kvm_vz_restore_stimer() 412 u32 compare, u32 cause) in _kvm_vz_restore_htimer() argument 429 write_gc0_cause(cause); in _kvm_vz_restore_htimer() 451 u32 cause, compare; in kvm_vz_restore_timer() local 454 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer() 457 _kvm_vz_restore_stimer(vcpu, compare, cause); in kvm_vz_restore_timer() 496 u32 cause, compare, before_count, end_count; in _kvm_vz_save_htimer() local [all …]
|
D | interrupt.c | 116 u32 cause) in kvm_mips_irq_deliver_cb() argument 172 if (cause & CAUSEF_BD) in kvm_mips_irq_deliver_cb() 199 u32 cause) in kvm_mips_irq_clear_cb() argument 204 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause) in kvm_mips_deliver_interrupts() argument 215 if (kvm_mips_callbacks->irq_clear(vcpu, priority, cause)) { in kvm_mips_deliver_interrupts() 227 if (kvm_mips_callbacks->irq_deliver(vcpu, priority, cause)) { in kvm_mips_deliver_interrupts()
|
/arch/xtensa/kernel/ |
D | traps.c | 84 int cause; member 365 #define set_handler(type, cause, handler) \ argument 370 per_cpu(exc_table, cpu).type[cause] = (handler);\ 375 void * __init trap_set_handler(int cause, void *handler) in trap_set_handler() argument 377 void *previous = per_cpu(exc_table, 0).default_handler[cause]; in trap_set_handler() 379 set_handler(default_handler, cause, handler); in trap_set_handler() 426 for(i = 0; dispatch_init_table[i].cause >= 0; i++) { in trap_init() 428 int cause = dispatch_init_table[i].cause; in trap_init() local 432 set_handler(default_handler, cause, handler); in trap_init() 434 set_handler(fast_user_handler, cause, handler); in trap_init() [all …]
|
/arch/nios2/kernel/ |
D | traps.c | 126 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument 130 cause >>= 2; in handle_unaligned_c() 140 pr_alert(" cause %d\n", cause); in handle_unaligned_c() 172 asmlinkage void unhandled_exception(struct pt_regs *regs, int cause) in unhandled_exception() argument 176 cause /= 4; in unhandled_exception() 179 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/mips/include/asm/ |
D | kvm_host.h | 709 __BUILD_KVM_RW_HW(cause, 32, MIPS_CP0_CAUSE, 0) 734 __BUILD_KVM_ATOMIC_HW(cause, 32, MIPS_CP0_CAUSE, 0) 808 u32 cause); 810 u32 cause); 873 extern enum emulation_result kvm_mips_handle_tlbmiss(u32 cause, 949 enum emulation_result update_pc(struct kvm_vcpu *vcpu, u32 cause); 964 u32 cause = vcpu->host_cp0_cause; in kvm_is_ifetch_fault() local 974 if ((cause & CAUSEF_BD) && badvaddr - epc <= 4) in kvm_is_ifetch_fault() 980 extern enum emulation_result kvm_mips_emulate_inst(u32 cause, 987 extern enum emulation_result kvm_mips_emulate_syscall(u32 cause, [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/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/alpha/mm/ |
D | fault.c | 85 long cause, struct pt_regs *regs) in do_page_fault() argument 97 if (cause == 0) { in do_page_fault() 135 if (cause < 0) { in do_page_fault() 138 } else if (!cause) { in do_page_fault() 208 die_if_kernel("Oops", regs, cause, (unsigned long*)regs - 16); in do_page_fault()
|
/arch/nios2/mm/ |
D | fault.c | 42 asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long cause, in do_page_fault() argument 52 cause >>= 2; in do_page_fault() 109 switch (cause) { in do_page_fault() 190 "cause %ld\n", current->comm, SIGSEGV, address, cause); in do_page_fault() 212 cause); in do_page_fault()
|
/arch/riscv/mm/ |
D | fault.c | 32 unsigned long addr, cause; in do_page_fault() local 37 cause = regs->scause; in do_page_fault() 90 switch (cause) { in do_page_fault() 105 panic("%s: unhandled cause %lu", __func__, cause); in do_page_fault()
|
/arch/mips/oprofile/ |
D | op_model_loongson3.c | 137 uint32_t cause, handled = IRQ_NONE; in loongson3_perfcount_handler() local 140 cause = read_c0_cause(); in loongson3_perfcount_handler() 141 if (!(cause & CAUSEF_PCI)) in loongson3_perfcount_handler() 165 if (!(cause & CAUSEF_TI)) in loongson3_perfcount_handler()
|
/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/mips/lasat/ |
D | interrupt.c | 75 unsigned int cause = read_c0_cause(); in plat_irq_dispatch() local 78 if (cause & CAUSEF_IP7) { /* R4000 count / compare IRQ */ in plat_irq_dispatch()
|
/arch/arm/kvm/hyp/ |
D | switch.c | 215 void __hyp_text __noreturn __hyp_panic(int cause) in __hyp_panic() argument 220 if (cause == ARM_EXCEPTION_DATA_ABORT) in __hyp_panic() 239 __hyp_do_panic(__hyp_panic_string[cause], elr, val); in __hyp_panic()
|
/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 76 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() 261 current->thread.per_event.cause = PER_EVENT_STORE >> 16; in sim_stor_event()
|