Home
last modified time | relevance | path

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

/linux-4.4.14/arch/arm/mm/
Dfault.c34 static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr) in notify_page_fault() argument
41 if (kprobe_running() && kprobe_fault_handler(regs, fsr)) in notify_page_fault()
49 static inline int notify_page_fault(struct pt_regs *regs, unsigned int fsr) in notify_page_fault() argument
132 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault() argument
150 die("Oops", regs, fsr); in __do_kernel_fault()
161 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument
170 tsk->comm, sig, addr, fsr); in __do_user_fault()
177 tsk->thread.error_code = fsr; in __do_user_fault()
186 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in do_bad_area() argument
196 __do_user_fault(tsk, addr, fsr, SIGSEGV, SEGV_MAPERR, regs); in do_bad_area()
[all …]
Dfault.h14 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
16 return fsr & FSR_FS5_0; in fsr_fs()
19 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
21 return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6; in fsr_fs()
25 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
Dabort-macro.S12 .macro do_thumb_abort, fsr, pc, psr, tmp
21 orreq \fsr, \fsr, #1 << 11 @ yes.
Dabort-ev4t.S22 do_thumb_abort fsr=r1, pc=r4, psr=r5, tmp=r3
Dabort-ev5t.S22 do_thumb_abort fsr=r1, pc=r4, psr=r5, tmp=r3
Dabort-ev5tj.S25 do_thumb_abort fsr=r1, pc=r4, psr=r5, tmp=r3
Dalignment.c771 do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in do_alignment() argument
918 do_bad_area(addr, fsr, regs); in do_alignment()
944 addr, fsr); in do_alignment()
/linux-4.4.14/arch/unicore32/mm/
Dfault.c31 static inline int fsr_fs(unsigned int fsr) in fsr_fs() argument
34 return (fsr & 31) + ((fsr & (3 << 5)) >> 5); in fsr_fs()
92 unsigned int fsr, struct pt_regs *regs) in __do_kernel_fault() argument
110 die("Oops", regs, fsr); in __do_kernel_fault()
120 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument
126 tsk->thread.error_code = fsr; in __do_user_fault()
135 void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in do_bad_area() argument
145 __do_user_fault(tsk, addr, fsr, SIGSEGV, SEGV_MAPERR, regs); in do_bad_area()
147 __do_kernel_fault(mm, addr, fsr, regs); in do_bad_area()
158 static inline bool access_error(unsigned int fsr, struct vm_area_struct *vma) in access_error() argument
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dexceptions.c75 int fsr, int addr) in full_exception() argument
83 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception()
128 if (fsr & FSR_IO) in full_exception()
129 fsr = FPE_FLTINV; in full_exception()
130 else if (fsr & FSR_OF) in full_exception()
131 fsr = FPE_FLTOVF; in full_exception()
132 else if (fsr & FSR_UF) in full_exception()
133 fsr = FPE_FLTUND; in full_exception()
134 else if (fsr & FSR_DZ) in full_exception()
135 fsr = FPE_FLTDIV; in full_exception()
[all …]
Dasm-offsets.c28 DEFINE(PT_FSR, offsetof(struct pt_regs, fsr)); in main()
124 DEFINE(CC_FSR, offsetof(struct cpu_context, fsr)); in main()
Dsignal.c75 COPY(pc); COPY(ear); COPY(esr); COPY(fsr); in restore_sigcontext()
136 COPY(pc); COPY(ear); COPY(esr); COPY(fsr); in setup_sigcontext()
Dprocess.c44 regs->msr, regs->ear, regs->esr, regs->fsr); in show_regs()
/linux-4.4.14/arch/sparc/math-emu/
Dmath_32.c132 static int do_one_mathemu(u32 insn, unsigned long *fsr, unsigned long *fregs);
182 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
194 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
200 fpt->thread.fsr &= ~(0x3000 | FSR_CEXC_MASK); in do_mathemu()
202 fpt->thread.fsr &= ~0x3000; in do_mathemu()
218 unsigned long fsr = *pfsr; in record_exception() local
222 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
226 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
247 fsr &= ~(FSR_CEXC_MASK); in record_exception()
248 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception()
[all …]
Dmath_64.c102 u64 fsr = current_thread_info()->xfsr[0]; in record_exception() local
106 would_trap = (fsr & ((long)eflag << FSR_TEM_SHIFT)) != 0UL; in record_exception()
110 eflag &= ((fsr & FSR_TEM_MASK) >> FSR_TEM_SHIFT); in record_exception()
131 fsr &= ~(FSR_CEXC_MASK); in record_exception()
132 fsr |= ((long)eflag << FSR_CEXC_SHIFT); in record_exception()
141 fsr |= ((long)eflag << FSR_AEXC_SHIFT); in record_exception()
145 fsr |= (1UL << 14); in record_exception()
147 current_thread_info()->xfsr[0] = fsr; in record_exception()
/linux-4.4.14/arch/sparc/kernel/
Dtraps_32.c195 fpsave(&fptask->thread.float_regs[0], &fptask->thread.fsr, in do_fpd_trap()
200 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
211 fpload(&current->thread.float_regs[0], &current->thread.fsr); in do_fpd_trap()
227 unsigned long fsr; local
248 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
251 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
254 switch ((fpt->thread.fsr & 0x1c000)) {
279 fpload(&current->thread.float_regs[0], &current->thread.fsr);
302 fsr = fpt->thread.fsr;
308 if ((fsr & 0x1c000) == (1 << 14)) {
[all …]
Dsigutil_32.c20 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
28 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
37 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
72 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
Dptrace_64.c337 unsigned long fprs, fsr, gsr; in fpregs64_get() local
369 fsr = task_thread_info(target)->xfsr[0]; in fpregs64_get()
372 fsr = gsr = 0; in fpregs64_get()
377 &fsr, in fpregs64_get()
711 compat_ulong_t fsr; in fpregs32_get() local
719 fsr = task_thread_info(target)->xfsr[0]; in fpregs32_get()
722 fsr = 0; in fpregs32_get()
736 &fsr, in fpregs32_get()
779 compat_ulong_t fsr; in fpregs32_set() local
783 &fsr, in fpregs32_set()
[all …]
Dprocess_32.c196 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
217 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
321 fpsave(&p->thread.float_regs[0], &p->thread.fsr,
429 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
439 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
450 fpregs->pr_fsr = current->thread.fsr;
Dptrace_32.c233 &target->thread.fsr, in fpregs32_get()
275 &target->thread.fsr, in fpregs32_set()
330 unsigned long fsr; member
391 &fps->fsr); in arch_ptrace()
412 &fps->fsr); in arch_ptrace()
Dentry.h39 void fpsave(unsigned long *fpregs, unsigned long *fsr,
41 void fpload(unsigned long *fpregs, unsigned long *fsr);
Dfpu_traps.S187 ldx [%g6 + TI_XFSR], %fsr
214 stx %fsr, [%g6 + TI_XFSR]
334 stx %fsr, [%g6 + TI_XFSR]
Dsignal_32.c33 extern void fpsave(unsigned long *fpregs, unsigned long *fsr,
35 extern void fpload(unsigned long *fpregs, unsigned long *fsr);
Dtraps_64.c2176 unsigned long fsr = current_thread_info()->xfsr[0]; in do_fpe_common() local
2188 if ((fsr & 0x1c000) == (1 << 14)) { in do_fpe_common()
2189 if (fsr & 0x10) in do_fpe_common()
2191 else if (fsr & 0x08) in do_fpe_common()
2193 else if (fsr & 0x04) in do_fpe_common()
2195 else if (fsr & 0x02) in do_fpe_common()
2197 else if (fsr & 0x01) in do_fpe_common()
Dentry.S1085 st %fsr, [%o1] ! this can trap on us if fpu is in bogon state
1096 st %fsr, [%o1]
1131 st %fsr, [%o1]
1135 st %fsr, [%o1]
1157 ld [%o1], %fsr
Drtrap_64.S323 ldx [%o1 + %o5], %fsr
/linux-4.4.14/arch/arm/mach-bcm/
Dbcm_5301x.c18 static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr, in bcm5301x_abort_handler() argument
21 if ((fsr == 0x1406 || fsr == 0x1c06) && first_fault) { in bcm5301x_abort_handler()
30 addr, fsr); in bcm5301x_abort_handler()
/linux-4.4.14/arch/sparc/include/asm/
Dpsr.h54 unsigned int fsr = 0; in get_fsr() local
59 : "=r" (fsr) in get_fsr()
62 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.h20 fpsave(&(prv)->thread.float_regs[0], &(prv)->thread.fsr, \
102 void fpsave(unsigned long *fpregs, unsigned long *fsr,
Dprocessor_32.h61 unsigned long fsr; member
/linux-4.4.14/drivers/iommu/
Dmsm_iommu.c611 unsigned int fsr = GET_FSR(base, ctx); in print_ctx_regs() local
614 pr_err("FSR = %08x [%s%s%s%s%s%s%s%s%s%s]\n", fsr, in print_ctx_regs()
615 (fsr & 0x02) ? "TF " : "", in print_ctx_regs()
616 (fsr & 0x04) ? "AFF " : "", in print_ctx_regs()
617 (fsr & 0x08) ? "APF " : "", in print_ctx_regs()
618 (fsr & 0x10) ? "TLBMF " : "", in print_ctx_regs()
619 (fsr & 0x20) ? "HTWDEEF " : "", in print_ctx_regs()
620 (fsr & 0x40) ? "HTWSEEF " : "", in print_ctx_regs()
621 (fsr & 0x80) ? "MHF " : "", in print_ctx_regs()
622 (fsr & 0x10000) ? "SL " : "", in print_ctx_regs()
[all …]
Darm-smmu.c630 u32 fsr, far, fsynr, resume; in arm_smmu_context_fault() local
639 fsr = readl_relaxed(cb_base + ARM_SMMU_CB_FSR); in arm_smmu_context_fault()
641 if (!(fsr & FSR_FAULT)) in arm_smmu_context_fault()
644 if (fsr & FSR_IGN) in arm_smmu_context_fault()
647 fsr); in arm_smmu_context_fault()
671 writel(fsr, cb_base + ARM_SMMU_CB_FSR); in arm_smmu_context_fault()
674 if (fsr & FSR_SS) in arm_smmu_context_fault()
/linux-4.4.14/arch/arm64/kvm/
Dinject_fault.c75 u32 *far, *fsr; in inject_abt32() local
81 fsr = &vcpu_cp15(vcpu, c5_IFSR); in inject_abt32()
85 fsr = &vcpu_cp15(vcpu, c5_DFSR); in inject_abt32()
95 *fsr = 1 << 9 | 0x34; in inject_abt32()
97 *fsr = 0x14; in inject_abt32()
/linux-4.4.14/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-4.4.14/arch/sparc/lib/
DVISsave.S30 stx %fsr, [%g6 + TI_XFSR]
37 stx %fsr, [%g6 + TI_XFSR]
54 stx %fsr, [%g2 + TI_XFSR]
/linux-4.4.14/arch/arm/plat-iop/
Dpci.c173 iop3xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in iop3xx_pci_abort() argument
176 addr, fsr, regs->ARM_pc, regs->ARM_lr); in iop3xx_pci_abort()
182 if (fsr & (1 << 10)) in iop3xx_pci_abort()
/linux-4.4.14/arch/unicore32/include/asm/
Dtraps.h19 extern void do_DataAbort(unsigned long addr, unsigned int fsr,
Dtlbflush.h190 extern void do_bad_area(unsigned long addr, unsigned int fsr,
/linux-4.4.14/drivers/mtd/spi-nor/
Dspi-nor.c224 int fsr = read_fsr(nor); in spi_nor_fsr_ready() local
225 if (fsr < 0) in spi_nor_fsr_ready()
226 return fsr; in spi_nor_fsr_ready()
228 return fsr & FSR_READY; in spi_nor_fsr_ready()
233 int sr, fsr; in spi_nor_ready() local
237 fsr = nor->flags & SNOR_F_USE_FSR ? spi_nor_fsr_ready(nor) : 1; in spi_nor_ready()
238 if (fsr < 0) in spi_nor_ready()
239 return fsr; in spi_nor_ready()
240 return sr && fsr; in spi_nor_ready()
/linux-4.4.14/arch/ia64/include/asm/
Dfpswa.h58 unsigned long *fsr, unsigned long *isr, unsigned long *preds,
/linux-4.4.14/arch/microblaze/include/asm/
Dexceptions.h67 int fsr, int addr);
Dthread_info.h59 __u32 fsr; member
/linux-4.4.14/arch/arm/mach-ks8695/
Dpci.c127 static int ks8695_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in ks8695_pci_fault() argument
136 addr, fsr, regs->ARM_pc, regs->ARM_lr, in ks8695_pci_fault()
/linux-4.4.14/arch/arm/include/asm/
Dkprobes.h49 int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);
/linux-4.4.14/drivers/mmc/host/
Dwbsd.c421 int i, fsr, fifo; in wbsd_empty_fifo() local
435 while (!((fsr = inb(host->base + WBSD_FSR)) & WBSD_FIFO_EMPTY)) { in wbsd_empty_fifo()
440 if (fsr & WBSD_FIFO_FULL) in wbsd_empty_fifo()
442 else if (fsr & WBSD_FIFO_FUTHRE) in wbsd_empty_fifo()
483 int i, fsr, fifo; in wbsd_fill_fifo() local
498 while (!((fsr = inb(host->base + WBSD_FSR)) & WBSD_FIFO_FULL)) { in wbsd_fill_fifo()
503 if (fsr & WBSD_FIFO_EMPTY) in wbsd_fill_fifo()
505 else if (fsr & WBSD_FIFO_EMTHRE) in wbsd_fill_fifo()
/linux-4.4.14/arch/microblaze/include/uapi/asm/
Dptrace.h53 microblaze_reg_t fsr; member
/linux-4.4.14/arch/arm/mach-cns3xxx/
Dpcie.c257 static int cns3xxx_pcie_abort_handler(unsigned long addr, unsigned int fsr, in cns3xxx_pcie_abort_handler() argument
260 if (fsr & (1 << 10)) in cns3xxx_pcie_abort_handler()
/linux-4.4.14/arch/arm/kernel/
Dhw_breakpoint.c691 static void watchpoint_handler(unsigned long addr, unsigned int fsr, in watchpoint_handler() argument
739 access = (fsr & ARM_FSR_ACCESS_MASK) ? in watchpoint_handler()
854 static int hw_breakpoint_pending(unsigned long addr, unsigned int fsr, in hw_breakpoint_pending() argument
876 watchpoint_handler(addr, fsr, regs); in hw_breakpoint_pending()
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dcommon-pci.c294 static int abort_handler(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in abort_handler() argument
312 if (fsr & (1 << 10)) in abort_handler()
/linux-4.4.14/drivers/bus/
Dbrcmstb_gisb.c221 static int brcmstb_bus_error_handler(unsigned long addr, unsigned int fsr, in brcmstb_bus_error_handler() argument
234 if (fsr & (1 << 10)) in brcmstb_bus_error_handler()
/linux-4.4.14/arch/frv/include/uapi/asm/
Dregisters.h195 unsigned long fsr[1]; member
/linux-4.4.14/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_iio.h78 unsigned int fsr:2; member
Dinv_mpu_core.c61 .fsr = INV_MPU6050_FSR_2000DPS,
383 *val2 = gyro_scale_6050[st->chip_config.fsr]; in inv_mpu6050_read_raw()
426 st->chip_config.fsr = i; in inv_mpu6050_write_gyro_scale()
/linux-4.4.14/drivers/usb/misc/sisusbvga/
Dsisusb_con.c1231 unsigned char ovr, vde, fsr; in sisusbcon_do_font_op() local
1254 sisusb_getidxreg(sisusb, SISCR, 0x09, &fsr); in sisusbcon_do_font_op()
1255 fsr = (fsr & 0xe0) | (fh - 1); in sisusbcon_do_font_op()
1256 sisusb_setidxreg(sisusb, SISCR, 0x09, fsr); in sisusbcon_do_font_op()
/linux-4.4.14/arch/frv/kernel/
Dasm-offsets.c77 DEF_FREG(__FPMEDIA_FSR0, f.fsr[0]); in foo()
Dgdb-stub.c1665 ptr = mem2hex(&__debug_user_context->f.fsr[0], ptr, 4, 0); in gdbstub()
1733 ptr = hex2mem(ptr, &__debug_user_context->f.fsr[0], 4); in gdbstub()
1841 __debug_user_context->f.fsr[0] = temp; in gdbstub()
/linux-4.4.14/drivers/video/console/
Dvgacon.c1216 unsigned char ovr, vde, fsr; in vgacon_adjust_height() local
1236 fsr = inb_p(vga_video_port_val); in vgacon_adjust_height()
1242 fsr = (fsr & 0xe0) + (fontheight - 1); /* Font size register */ in vgacon_adjust_height()
1248 outb_p(fsr, vga_video_port_val); in vgacon_adjust_height()
/linux-4.4.14/drivers/mtd/nand/
Ddavinci_nand.c385 u32 fsr = davinci_nand_readl(info, NANDFSR_OFFSET); in nand_davinci_correct_4bit() local
387 switch ((fsr >> 8) & 0x0f) { in nand_davinci_correct_4bit()
396 num_errors = 1 + ((fsr >> 16) & 0x03); in nand_davinci_correct_4bit()
/linux-4.4.14/arch/arm/mach-iop13xx/
Dpci.c483 iop13xx_pci_abort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in iop13xx_pci_abort() argument
487 addr, fsr, regs->ARM_pc, regs->ARM_lr); in iop13xx_pci_abort()
496 if (fsr & (1 << 10)) in iop13xx_pci_abort()
/linux-4.4.14/arch/arm/probes/kprobes/
Dcore.c344 int __kprobes kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr) in kprobe_fault_handler() argument
383 if (cur->fault_handler && cur->fault_handler(cur, regs, fsr)) in kprobe_fault_handler()
/linux-4.4.14/arch/arm/mach-integrator/
Dpci_v3.c513 v3_pci_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) in v3_pci_fault() argument
521 …addr, fsr, pc, instr, __raw_readl(ap_syscon_base + INTEGRATOR_SC_LBFADDR_OFFSET), __raw_readl(ap_s… in v3_pci_fault()
/linux-4.4.14/drivers/pci/host/
Dpci-keystone.c238 static int keystone_pcie_fault(unsigned long addr, unsigned int fsr, in keystone_pcie_fault() argument
Dpci-imx6.c207 unsigned int fsr, struct pt_regs *regs) in imx6q_pcie_abort_handler() argument
/linux-4.4.14/drivers/video/fbdev/
Dcg14.c105 u8 fsr; /* Fault Status Reg */ member