Home
last modified time | relevance | path

Searched refs:fsr (Results 1 – 25 of 104) sorted by relevance

12345

/openbmc/linux/arch/arm/mm/
H A Dfault.c106 static inline bool is_write_fault(unsigned int fsr) in is_write_fault() argument
108 return (fsr & FSR_WRITE) && !(fsr & FSR_CM); in is_write_fault()
111 static inline bool is_translation_fault(unsigned int fsr) in is_translation_fault() argument
113 int fs = fsr_fs(fsr); in is_translation_fault()
125 unsigned long addr, unsigned int fsr, in die_kernel_fault() argument
131 msg, addr, fsr & FSR_LNX_PF ? "execute" : in die_kernel_fault()
132 fsr & FSR_WRITE ? "write" : "read"); in die_kernel_fault()
135 die("Oops", regs, fsr); in die_kernel_fault()
144 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault() argument
160 if (is_translation_fault(fsr) && in __do_kernel_fault()
[all …]
H A Dfault.h21 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 Dabort-macro.S13 .macro do_thumb_abort, fsr, pc, psr, tmp
22 orreq \fsr, \fsr, #1 << 11 @ yes.
/openbmc/linux/arch/microblaze/kernel/
H A Dexceptions.c70 int fsr, int addr) in full_exception() argument
76 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception()
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()
[all …]
/openbmc/linux/arch/sparc/math-emu/
H A Dmath_32.c133 static int do_one_mathemu(u32 insn, unsigned long *fsr, unsigned long *fregs);
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
201 fpt->thread.fsr &= ~(0x3000 | FSR_CEXC_MASK); in do_mathemu()
203 fpt->thread.fsr &= ~0x3000; in do_mathemu()
219 unsigned long fsr = *pfsr; in record_exception() local
223 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
227 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
248 fsr &= ~(FSR_CEXC_MASK); in record_exception()
249 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception()
[all …]
H A Dmath_64.c103 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/qemu/target/sparc/
H A Dfop_helper.c74 if (cexc & (env->fsr >> FSR_TEM_SHIFT)) { in check_ieee_exceptions()
81 env->fsr |= cexc << FSR_AEXC_SHIFT; in check_ieee_exceptions()
449 env->fsr |= FSR_NVA; in finish_fcmp()
547 target_ulong fsr = env->fsr | env->fsr_cexc_ftt; in cpu_get_fsr() local
549 fsr |= env->fcc[0] << FSR_FCC0_SHIFT; in cpu_get_fsr()
551 fsr |= (uint64_t)env->fcc[1] << FSR_FCC1_SHIFT; in cpu_get_fsr()
552 fsr |= (uint64_t)env->fcc[2] << FSR_FCC2_SHIFT; in cpu_get_fsr()
553 fsr |= (uint64_t)env->fcc[3] << FSR_FCC3_SHIFT; in cpu_get_fsr()
555 fsr |= env->fsr_qne; in cpu_get_fsr()
559 fsr |= env->def.fpu_version; in cpu_get_fsr()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dtraps_32.c171 fpsave(&fptask->thread.float_regs[0], &fptask->thread.fsr, in do_fpd_trap()
176 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
187 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
202 unsigned long fsr; local
224 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
227 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
230 switch ((fpt->thread.fsr & 0x1c000)) {
255 fpload(&current->thread.float_regs[0], &current->thread.fsr);
278 fsr = fpt->thread.fsr;
280 if ((fsr & 0x1c000) == (1 << 14)) {
[all …]
H A Dsigutil_32.c21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
29 fpsave(&current->thread.float_regs[0], &current->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/arm/tcg/
H A Dtlb_helper.c85 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/drivers/tty/serial/
H A Dma35d1_serial.c236 u32 fsr; in receive_chars() local
238 fsr = serial_in(up, MA35_FSR_REG); in receive_chars()
243 if (unlikely(fsr & (MA35_FSR_BIF | MA35_FSR_FEF | in receive_chars()
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()
258 fsr & (MA35_FSR_BIF | MA35_FSR_FEF | in receive_chars()
260 if (fsr & MA35_FSR_BIF) in receive_chars()
262 else if (fsr & MA35_FSR_PEF) in receive_chars()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dpsr.h55 unsigned int fsr = 0; in get_fsr() local
60 : "=r" (fsr) in get_fsr()
63 return fsr; in get_fsr()
H A Dsfp-machine_32.h185 #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 Dswitch_to_32.h21 fpsave(&(prv)->thread.float_regs[0], &(prv)->thread.fsr, \
103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c80 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 Dinject_fault.c131 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 Dcpu_loop.c296 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 Dmsm_iommu.c563 unsigned int fsr = GET_FSR(base, ctx); in print_ctx_regs() local
566 pr_err("FSR = %08x [%s%s%s%s%s%s%s%s%s%s]\n", fsr, in print_ctx_regs()
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()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-sh7760.c117 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/arm/mach-bcm/
H A Dbcm_5301x.c22 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 Dhost-signal.h30 uint32_t fsr = info->si_trapno; in host_signal_write() local
32 return extract32(fsr, 11, 1); in host_signal_write()
/openbmc/linux/arch/sparc/lib/
H A DVISsave.S32 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 Dspi-nor-tiny.c296 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/qemu/linux-user/include/host/arm/
H A Dhost-signal.h39 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/iommu/arm/arm-smmu/
H A Darm-smmu-nvidia.c197 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()

12345