Home
last modified time | relevance | path

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

123

/linux/arch/arm/mm/
H A Dfault.c113 static inline bool is_write_fault(unsigned int fsr) in is_write_fault() argument
115 return (fsr & FSR_WRITE) && !(fsr & FSR_CM); in is_write_fault()
118 static inline bool is_translation_fault(unsigned int fsr) in is_translation_fault() argument
120 int fs = fsr_fs(fsr); in is_translation_fault()
132 unsigned long addr, unsigned int fsr, in die_kernel_fault() argument
138 msg, addr, fsr & FSR_LNX_PF ? "execute" : in die_kernel_fault()
139 fsr & FSR_WRITE ? "write" : "read"); in die_kernel_fault()
142 die("Oops", regs, fsr); in die_kernel_fault()
151 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault() argument
167 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.
/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 …]
/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()
/linux/arch/sparc/kernel/
H A Dtraps_32.c172 fpsave(&fptask->thread.float_regs[0], &fptask->thread.fsr, in do_fpd_trap()
177 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
188 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
203 unsigned long fsr; local
225 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
228 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
231 switch ((fpt->thread.fsr & 0x1c000)) {
256 fpload(&current->thread.float_regs[0], &current->thread.fsr);
279 fsr = fpt->thread.fsr;
281 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()
H A Dptrace_32.c177 membuf_write(&to, &target->thread.fsr, sizeof(u32)); in fpregs32_get()
203 &target->thread.fsr, in fpregs32_set()
296 membuf_write(&to, &target->thread.fsr, sizeof(u32)); in getfpregs_get()
318 &target->thread.fsr, in setfpregs_set()
350 unsigned long fsr; member
H A Dptrace_64.c720 compat_ulong_t fsr; in fpregs32_set() local
724 &fsr, in fpregs32_set()
730 val |= fsr; in fpregs32_set()
864 compat_ulong_t fsr; in setfpregs_set() local
868 &fsr, in setfpregs_set()
874 val |= fsr; in setfpregs_set()
917 unsigned int fsr; member
1007 unsigned long fsr; member
H A Dprocess_32.c186 fpsave(&tsk->thread.float_regs[0], &tsk->thread.fsr,
207 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
276 fpsave(&p->thread.float_regs[0], &p->thread.fsr,
/linux/drivers/iommu/arm/arm-smmu/
H A Darm-smmu-qcom-debug.c131 u32 val, fsr, status; in qcom_tbu_halt() local
143 fsr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSR); in qcom_tbu_halt()
144 if ((fsr & ARM_SMMU_CB_FSR_FAULT) && (fsr & ARM_SMMU_CB_FSR_SS)) { in qcom_tbu_halt()
156 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_FSR, fsr); in qcom_tbu_halt()
274 u64 fsr; in qcom_iova_to_phys() local
300 fsr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSR); in qcom_iova_to_phys()
301 if (fsr & ARM_SMMU_CB_FSR_FAULT) { in qcom_iova_to_phys()
303 arm_smmu_cb_write(smmu, idx, ARM_SMMU_CB_FSR, fsr); in qcom_iova_to_phys()
309 if (fsr & ARM_SMMU_CB_FSR_SS) in qcom_iova_to_phys()
322 fsr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSR); in qcom_iova_to_phys()
[all …]
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_CB_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()
H A Darm-smmu.c412 cfi->fsr = arm_smmu_cb_read(smmu, idx, ARM_SMMU_CB_FSR); in arm_smmu_read_context_fault_info()
422 cfi->fsr, cfi->iova, cfi->fsynr, cfi->cbfrsynra, idx); in arm_smmu_print_context_fault_info()
425 cfi->fsr, in arm_smmu_print_context_fault_info()
426 (cfi->fsr & ARM_SMMU_CB_FSR_MULTI) ? "MULTI " : "", in arm_smmu_print_context_fault_info()
427 (cfi->fsr & ARM_SMMU_CB_FSR_SS) ? "SS " : "", in arm_smmu_print_context_fault_info()
428 (u32)FIELD_GET(ARM_SMMU_CB_FSR_FORMAT, cfi->fsr), in arm_smmu_print_context_fault_info()
429 (cfi->fsr & ARM_SMMU_CB_FSR_UUT) ? " UUT" : "", in arm_smmu_print_context_fault_info()
430 (cfi->fsr & ARM_SMMU_CB_FSR_ASF) ? " ASF" : "", in arm_smmu_print_context_fault_info()
431 (cfi->fsr & ARM_SMMU_CB_FSR_TLBLKF) ? " TLBLKF" : "", in arm_smmu_print_context_fault_info()
432 (cfi->fsr & ARM_SMMU_CB_FSR_TLBMCF) ? " TLBMCF" : "", in arm_smmu_print_context_fault_info()
[all …]
/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 …]
/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,
/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()
/linux/drivers/iommu/
H A Dmsm_iommu.c576 unsigned int fsr = GET_FSR(base, ctx); in print_ctx_regs() local
579 pr_err("FSR = %08x [%s%s%s%s%s%s%s%s%s%s]\n", fsr, in print_ctx_regs()
580 (fsr & 0x02) ? "TF " : "", in print_ctx_regs()
581 (fsr & 0x04) ? "AFF " : "", in print_ctx_regs()
582 (fsr & 0x08) ? "APF " : "", in print_ctx_regs()
583 (fsr & 0x10) ? "TLBMF " : "", in print_ctx_regs()
584 (fsr & 0x20) ? "HTWDEEF " : "", in print_ctx_regs()
585 (fsr & 0x40) ? "HTWSEEF " : "", in print_ctx_regs()
586 (fsr & 0x80) ? "MHF " : "", in print_ctx_regs()
587 (fsr & 0x10000) ? "SL " : "", in print_ctx_regs()
[all …]
/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()
/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()
/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]
/linux/sound/soc/sof/intel/
H A Dhda-dsp.c1492 u32 fsr, state, wait_state, module, error_code; in hda_dsp_get_state() local
1494 fsr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, chip->rom_status_reg); in hda_dsp_get_state()
1495 state = FSR_TO_STATE_CODE(fsr); in hda_dsp_get_state()
1496 wait_state = FSR_TO_WAIT_STATE_CODE(fsr); in hda_dsp_get_state()
1497 module = FSR_TO_MODULE_CODE(fsr); in hda_dsp_get_state()
1520 dev_printk(level, sdev->dev, "%#010x: unknown ROM status value\n", fsr); in hda_dsp_get_state()
1534 fsr, module_text, state_text, wait_state_text, in hda_dsp_get_state()
1535 fsr & FSR_HALTED ? "not running" : "running"); in hda_dsp_get_state()
1538 fsr, module_text, state_text, in hda_dsp_get_state()
1539 fsr & FSR_HALTED ? "not running" : "running"); in hda_dsp_get_state()
/linux/arch/arm64/include/asm/
H A Dkprobes.h39 int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);

123