Home
last modified time | relevance | path

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

123

/linux-6.1.9/arch/arm/mm/
Dfault.c103 static inline bool is_write_fault(unsigned int fsr) in is_write_fault() argument
105 return (fsr & FSR_WRITE) && !(fsr & FSR_CM); in is_write_fault()
108 static inline bool is_translation_fault(unsigned int fsr) in is_translation_fault() argument
110 int fs = fsr_fs(fsr); in is_translation_fault()
122 unsigned long addr, unsigned int fsr, in die_kernel_fault() argument
131 die("Oops", regs, fsr); in die_kernel_fault()
140 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault() argument
156 if (is_translation_fault(fsr) && in __do_kernel_fault()
157 kfence_handle_page_fault(addr, is_write_fault(fsr), regs)) in __do_kernel_fault()
163 die_kernel_fault(msg, mm, addr, fsr, regs); in __do_kernel_fault()
[all …]
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);
Dabort-macro.S13 .macro do_thumb_abort, fsr, pc, psr, tmp
22 orreq \fsr, \fsr, #1 << 11 @ yes.
/linux-6.1.9/arch/microblaze/kernel/
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-6.1.9/arch/sparc/math-emu/
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 …]
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-6.1.9/arch/sparc/kernel/
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 …]
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()
Dptrace_32.c176 membuf_write(&to, &target->thread.fsr, sizeof(u32)); in fpregs32_get()
202 &target->thread.fsr, in fpregs32_set()
295 membuf_write(&to, &target->thread.fsr, sizeof(u32)); in getfpregs_get()
317 &target->thread.fsr, in setfpregs_set()
349 unsigned long fsr; member
Dptrace_64.c721 compat_ulong_t fsr; in fpregs32_set() local
725 &fsr, in fpregs32_set()
731 val |= fsr; in fpregs32_set()
865 compat_ulong_t fsr; in setfpregs_set() local
869 &fsr, in setfpregs_set()
875 val |= fsr; in setfpregs_set()
918 unsigned int fsr; member
1008 unsigned long fsr; member
Dprocess_32.c187 fpsave(&tsk->thread.float_regs[0], &tsk->thread.fsr,
208 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
277 fpsave(&p->thread.float_regs[0], &p->thread.fsr,
/linux-6.1.9/arch/sparc/include/asm/
Dpsr.h55 unsigned int fsr = 0; in get_fsr() local
60 : "=r" (fsr) in get_fsr()
63 return fsr; in get_fsr()
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)
Dswitch_to_32.h21 fpsave(&(prv)->thread.float_regs[0], &(prv)->thread.fsr, \
103 void fpsave(unsigned long *fpregs, unsigned long *fsr,
/linux-6.1.9/arch/arm64/kvm/
Dinject_fault.c82 u32 fsr; in inject_abt32() local
86 fsr = DFSR_LPAE | DFSR_FSC_EXTABT_LPAE; in inject_abt32()
89 fsr = DFSR_FSC_EXTABT_nLPAE; in inject_abt32()
98 vcpu_write_sys_reg(vcpu, fsr, IFSR32_EL2); in inject_abt32()
103 vcpu_write_sys_reg(vcpu, fsr, ESR_EL1); in inject_abt32()
/linux-6.1.9/drivers/iommu/
Dmsm_iommu.c559 unsigned int fsr = GET_FSR(base, ctx); in print_ctx_regs() local
562 pr_err("FSR = %08x [%s%s%s%s%s%s%s%s%s%s]\n", fsr, in print_ctx_regs()
563 (fsr & 0x02) ? "TF " : "", in print_ctx_regs()
564 (fsr & 0x04) ? "AFF " : "", in print_ctx_regs()
565 (fsr & 0x08) ? "APF " : "", in print_ctx_regs()
566 (fsr & 0x10) ? "TLBMF " : "", in print_ctx_regs()
567 (fsr & 0x20) ? "HTWDEEF " : "", in print_ctx_regs()
568 (fsr & 0x40) ? "HTWSEEF " : "", in print_ctx_regs()
569 (fsr & 0x80) ? "MHF " : "", in print_ctx_regs()
570 (fsr & 0x10000) ? "SL " : "", in print_ctx_regs()
[all …]
/linux-6.1.9/drivers/i2c/busses/
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-6.1.9/arch/arm/mach-bcm/
Dbcm_5301x.c24 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr, in bcm5301x_abort_handler() argument
33 if (fsr == (FSR_EXTERNAL | FSR_READ | FSR_IMPRECISE)) in bcm5301x_abort_handler()
/linux-6.1.9/arch/sparc/lib/
DVISsave.S32 stx %fsr, [%g6 + TI_XFSR]
39 stx %fsr, [%g6 + TI_XFSR]
56 stx %fsr, [%g2 + TI_XFSR]
/linux-6.1.9/drivers/iommu/arm/arm-smmu/
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()
/linux-6.1.9/arch/arm/mach-iop32x/
Dpci.c170 iop3xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in iop3xx_pci_abort() argument
173 addr, fsr, regs->ARM_pc, regs->ARM_lr); in iop3xx_pci_abort()
179 if (fsr & (1 << 10)) in iop3xx_pci_abort()
/linux-6.1.9/sound/soc/sof/intel/
Dhda.c483 u32 fsr, state, wait_state, module, error_code; in hda_dsp_get_state() local
485 fsr = snd_sof_dsp_read(sdev, HDA_DSP_BAR, chip->rom_status_reg); in hda_dsp_get_state()
486 state = FSR_TO_STATE_CODE(fsr); in hda_dsp_get_state()
487 wait_state = FSR_TO_WAIT_STATE_CODE(fsr); in hda_dsp_get_state()
488 module = FSR_TO_MODULE_CODE(fsr); in hda_dsp_get_state()
504 dev_printk(level, sdev->dev, "%#010x: unknown ROM status value\n", fsr); in hda_dsp_get_state()
518 fsr, module_text, state_text, wait_state_text, in hda_dsp_get_state()
519 fsr & FSR_HALTED ? "not running" : "running"); in hda_dsp_get_state()
522 fsr, module_text, state_text, in hda_dsp_get_state()
523 fsr & FSR_HALTED ? "not running" : "running"); in hda_dsp_get_state()
/linux-6.1.9/arch/arm64/include/asm/
Dkprobes.h39 int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);
/linux-6.1.9/include/linux/
Dadreno-smmu-priv.h31 u32 fsr; member
/linux-6.1.9/arch/ia64/include/asm/
Dfpswa.h59 unsigned long *fsr, unsigned long *isr, unsigned long *preds,

123