/openbmc/linux/arch/arm/mm/ |
H A D | fault.c | 108 return (fsr & FSR_WRITE) && !(fsr & FSR_CM); in is_write_fault() 113 int fs = fsr_fs(fsr); in is_translation_fault() 135 die("Oops", regs, fsr); in die_kernel_fault() 201 tsk->thread.error_code = fsr; in __do_user_fault() 227 int fs = fsr_fs(fsr); in is_permission_fault() 266 if (is_write_fault(fsr)) { in do_page_fault() 271 if (fsr & FSR_LNX_PF) { in do_page_fault() 276 mm, addr, fsr, regs); in do_page_fault() 457 do_bad_area(addr, fsr, regs); in do_translation_fault() 531 inf->name, fsr, addr); in do_DataAbort() [all …]
|
H A D | fault.h | 21 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument 23 return fsr & FSR_FS5_0; in fsr_fs() 32 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument 34 return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6; in fsr_fs() 38 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs); 40 asmlinkage void do_DataAbort(unsigned long addr, unsigned int fsr,
|
H A D | abort-macro.S | 13 .macro do_thumb_abort, fsr, pc, psr, tmp 22 orreq \fsr, \fsr, #1 << 11 @ yes.
|
/openbmc/linux/arch/microblaze/kernel/ |
H A D | exceptions.c | 70 int fsr, int addr) in full_exception() argument 121 if (fsr & FSR_IO) in full_exception() 122 fsr = FPE_FLTINV; in full_exception() 123 else if (fsr & FSR_OF) in full_exception() 124 fsr = FPE_FLTOVF; in full_exception() 125 else if (fsr & FSR_UF) in full_exception() 126 fsr = FPE_FLTUND; in full_exception() 127 else if (fsr & FSR_DZ) in full_exception() 128 fsr = FPE_FLTDIV; in full_exception() 129 else if (fsr & FSR_DO) in full_exception() [all …]
|
/openbmc/linux/arch/sparc/math-emu/ |
H A D | math_32.c | 203 fpt->thread.fsr &= ~0x3000; in do_mathemu() 219 unsigned long fsr = *pfsr; in record_exception() local 248 fsr &= ~(FSR_CEXC_MASK); in record_exception() 249 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception() 258 fsr |= ((long)eflag << FSR_AEXC_SHIFT); in record_exception() 262 fsr |= (1UL << 14); in record_exception() 264 *pfsr = fsr; in record_exception() 290 long fsr; in do_one_mathemu() local 500 case 0: fsr = *pfsr; in do_one_mathemu() 503 fsr &= ~0xc00; fsr |= (IR << 10); in do_one_mathemu() [all …]
|
H A D | math_64.c | 103 u64 fsr = current_thread_info()->xfsr[0]; in record_exception() local 107 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception() 111 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception() 132 fsr &= ~(FSR_CEXC_MASK); in record_exception() 133 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception() 142 fsr |= ((long)eflag << FSR_AEXC_SHIFT); in record_exception() 146 fsr |= (1UL << 14); in record_exception() 148 current_thread_info()->xfsr[0] = fsr; in record_exception()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | traps_32.c | 171 fpsave(&fptask->thread.float_regs[0], &fptask->thread.fsr, in do_fpd_trap() 202 unsigned long fsr; local 224 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr, 230 switch ((fpt->thread.fsr & 0x1c000)) { 278 fsr = fpt->thread.fsr; 280 if ((fsr & 0x1c000) == (1 << 14)) { 281 if (fsr & 0x10) 283 else if (fsr & 0x08) 285 else if (fsr & 0x04) 287 else if (fsr & 0x02) [all …]
|
H A D | sigutil_32.c | 21 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 29 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, in save_fpu_state() 38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state() 73 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
|
/openbmc/qemu/target/sparc/ |
H A D | fop_helper.c | 81 env->fsr |= cexc << FSR_AEXC_SHIFT; in check_ieee_exceptions() 449 env->fsr |= FSR_NVA; in finish_fcmp() 541 target_ulong fsr = env->fsr | env->fsr_cexc_ftt; in cpu_get_fsr() local 543 fsr |= env->fcc[0] << FSR_FCC0_SHIFT; in cpu_get_fsr() 551 fsr |= env->def.fpu_version; in cpu_get_fsr() 553 return fsr; in cpu_get_fsr() 565 env->fsr = fsr & (FSR_RD_MASK | FSR_TEM_MASK | FSR_AEXC_MASK); in set_fsr_nonsplit() 567 switch (fsr & FSR_RD_MASK) { in set_fsr_nonsplit() 596 set_fsr_nonsplit(env, fsr); in cpu_put_fsr() 603 set_fsr_nonsplit(env, fsr); in helper_set_fsr_nofcc_noftt() [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | tlb_helper.c | 85 uint32_t fsr, fsc; in compute_fsr_fsc() local 102 fsr = arm_fi_to_lfsc(fi); in compute_fsr_fsc() 103 fsc = extract32(fsr, 0, 6); in compute_fsr_fsc() 105 fsr = arm_fi_to_sfsc(fi); in compute_fsr_fsc() 116 return fsr; in compute_fsr_fsc() 179 uint32_t syn, exc, fsr, fsc; in arm_deliver_fault() local 198 fsr = compute_fsr_fsc(env, fi, target_el, mmu_idx, &fsc); in arm_deliver_fault() 243 fsr = compute_fsr_fsc(env, fi, target_el, mmu_idx, &fsc); in arm_deliver_fault() 254 fsr |= (1 << 11); in arm_deliver_fault() 261 env->exception.fsr = fsr; in arm_deliver_fault() [all …]
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | psr.h | 55 unsigned int fsr = 0; in get_fsr() local 60 : "=r" (fsr) in get_fsr() 63 return fsr; in get_fsr()
|
H A D | sfp-machine_32.h | 185 #define FP_ROUNDMODE ((current->thread.fsr >> 30) & 0x3) 187 #define FP_ROUNDMODE ((last_task_used_math->thread.fsr >> 30) & 0x3) 201 #define FP_INHIBIT_RESULTS ((current->thread.fsr >> 23) & _fex) 203 #define FP_INHIBIT_RESULTS ((last_task_used_math->thread.fsr >> 23) & _fex) 207 #define FP_TRAPPING_EXCEPTIONS ((current->thread.fsr >> 23) & 0x1f) 209 #define FP_TRAPPING_EXCEPTIONS ((last_task_used_math->thread.fsr >> 23) & 0x1f)
|
H A D | switch_to_32.h | 21 fpsave(&(prv)->thread.float_regs[0], &(prv)->thread.fsr, \ 103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
|
/openbmc/linux/drivers/tty/serial/ |
H A D | ma35d1_serial.c | 236 u32 fsr; in receive_chars() local 245 if (fsr & MA35_FSR_BIF) { in receive_chars() 250 if (fsr & MA35_FSR_FEF) in receive_chars() 252 if (fsr & MA35_FSR_PEF) in receive_chars() 254 if (fsr & MA35_FSR_RX_OVER_IF) in receive_chars() 260 if (fsr & MA35_FSR_BIF) in receive_chars() 262 else if (fsr & MA35_FSR_PEF) in receive_chars() 264 else if (fsr & MA35_FSR_FEF) in receive_chars() 288 u32 isr, fsr; in ma35d1serial_interrupt() local 300 if (fsr & MA35_FSR_TX_OVER_IF) in ma35d1serial_interrupt() [all …]
|
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/ |
H A D | eflash.c | 80 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_init() 115 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_init() 175 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_real_protect() 179 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in flash_real_protect() 198 while ((readl(&eefc->fsr) & AT91_EEFC_FSR_FRDY) == 0) in erase_write_page() 201 return readl(&eefc->fsr) in erase_write_page()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | inject_fault.c | 131 u32 fsr; in inject_abt32() local 135 fsr = DFSR_LPAE | DFSR_FSC_EXTABT_LPAE; in inject_abt32() 138 fsr = DFSR_FSC_EXTABT_nLPAE; in inject_abt32() 147 vcpu_write_sys_reg(vcpu, fsr, IFSR32_EL2); in inject_abt32() 152 vcpu_write_sys_reg(vcpu, fsr, ESR_EL1); in inject_abt32()
|
/openbmc/qemu/linux-user/sparc/ |
H A D | cpu_loop.c | 296 target_ulong fsr = cpu_get_fsr(env); in cpu_loop() local 298 if ((fsr & FSR_FTT_MASK) == FSR_FTT_IEEE_EXCP) { in cpu_loop() 299 if (fsr & FSR_NVC) { in cpu_loop() 301 } else if (fsr & FSR_OFC) { in cpu_loop() 303 } else if (fsr & FSR_UFC) { in cpu_loop() 305 } else if (fsr & FSR_DZC) { in cpu_loop() 307 } else if (fsr & FSR_NXC) { in cpu_loop()
|
/openbmc/linux/drivers/iommu/ |
H A D | msm_iommu.c | 567 (fsr & 0x02) ? "TF " : "", in print_ctx_regs() 568 (fsr & 0x04) ? "AFF " : "", in print_ctx_regs() 569 (fsr & 0x08) ? "APF " : "", in print_ctx_regs() 570 (fsr & 0x10) ? "TLBMF " : "", in print_ctx_regs() 571 (fsr & 0x20) ? "HTWDEEF " : "", in print_ctx_regs() 572 (fsr & 0x40) ? "HTWSEEF " : "", in print_ctx_regs() 573 (fsr & 0x80) ? "MHF " : "", in print_ctx_regs() 574 (fsr & 0x10000) ? "SL " : "", in print_ctx_regs() 645 unsigned int fsr; in msm_iommu_fault_handler() local 663 fsr = GET_FSR(iommu->base, i); in msm_iommu_fault_handler() [all …]
|
/openbmc/linux/arch/arm/mach-bcm/ |
H A D | bcm_5301x.c | 22 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr, in bcm5301x_abort_handler() argument 31 if (fsr == (FSR_EXTERNAL | FSR_READ | FSR_IMPRECISE)) in bcm5301x_abort_handler()
|
/openbmc/qemu/bsd-user/host/arm/ |
H A D | host-signal.h | 30 uint32_t fsr = info->si_trapno; in host_signal_write() local 32 return extract32(fsr, 11, 1); in host_signal_write()
|
/openbmc/qemu/linux-user/include/host/arm/ |
H A D | host-signal.h | 39 uint32_t fsr = uc->uc_mcontext.error_code; in host_signal_write() local 40 return extract32(fsr, 11, 1); in host_signal_write()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-sh7760.c | 117 unsigned long msr, fsr, fier, len; in sh7760_i2c_irq() local 120 fsr = IN32(id, I2CFSR); in sh7760_i2c_irq() 147 fsr = 0; in sh7760_i2c_irq() 163 if (fsr & FSR_RDF) { in sh7760_i2c_irq() 178 fsr &= ~FSR_RDF; in sh7760_i2c_irq() 195 if ((fsr & FSR_TEND) && (msg->len < 1)) { in sh7760_i2c_irq() 204 fsr &= ~FSR_TEND; in sh7760_i2c_irq() 207 if (fsr & FSR_TDFE) { in sh7760_i2c_irq() 232 OUT32(id, I2CFSR, ~fsr); in sh7760_i2c_irq()
|
/openbmc/linux/arch/sparc/lib/ |
H A D | VISsave.S | 32 stx %fsr, [%g6 + TI_XFSR] 39 stx %fsr, [%g6 + TI_XFSR] 56 stx %fsr, [%g2 + TI_XFSR]
|
/openbmc/u-boot/drivers/mtd/spi/ |
H A D | spi-nor-tiny.c | 296 int fsr = read_fsr(nor); in spi_nor_fsr_ready() local 298 if (fsr < 0) in spi_nor_fsr_ready() 299 return fsr; in spi_nor_fsr_ready() 300 return fsr & FSR_READY; in spi_nor_fsr_ready() 305 int sr, fsr; in spi_nor_ready() local 310 fsr = nor->flags & SNOR_F_USE_FSR ? spi_nor_fsr_ready(nor) : 1; in spi_nor_ready() 311 if (fsr < 0) in spi_nor_ready() 312 return fsr; in spi_nor_ready() 313 return sr && fsr; in spi_nor_ready()
|
/openbmc/linux/drivers/iommu/arm/arm-smmu/ |
H A D | arm-smmu-nvidia.c | 197 u32 fsr, fsynr, cbfrsynra; in nvidia_smmu_context_fault_bank() local 202 fsr = readl_relaxed(cb_base + ARM_SMMU_CB_FSR); in nvidia_smmu_context_fault_bank() 203 if (!(fsr & ARM_SMMU_FSR_FAULT)) in nvidia_smmu_context_fault_bank() 212 fsr, iova, fsynr, cbfrsynra, idx); in nvidia_smmu_context_fault_bank() 214 writel_relaxed(fsr, cb_base + ARM_SMMU_CB_FSR); in nvidia_smmu_context_fault_bank()
|