Home
last modified time | relevance | path

Searched refs:fpc (Results 1 – 16 of 16) sorted by relevance

/linux/arch/s390/include/asm/
H A Dfpu-insn.h85 static __always_inline void fpu_lfpc(unsigned int *fpc) in fpu_lfpc() argument
87 instrument_read(fpc, sizeof(*fpc)); in fpu_lfpc()
90 : [fpc] "Q" (*fpc) in fpu_lfpc()
103 static inline void fpu_lfpc_safe(unsigned int *fpc) in fpu_lfpc_safe() argument
105 instrument_read(fpc, sizeof(*fpc)); in fpu_lfpc_safe()
111 : [fpc] "Q" (*fpc) in fpu_lfpc_safe()
124 static __always_inline void fpu_sfpc(unsigned int fpc) in fpu_sfpc() argument
128 : [fpc] "d" (fpc) in fpu_sfpc()
132 static __always_inline void fpu_stfpc(unsigned int *fpc) in fpu_stfpc() argument
134 instrument_write(fpc, sizeof(*fpc)); in fpu_stfpc()
[all …]
H A Dfpu-types.h15 u32 fpc; member
21 u32 fpc; member
/linux/arch/s390/kernel/
H A Dtraps.c129 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap()
134 if ((fpc & 0x00000300) == 0) { in do_fp_trap()
136 if (fpc & 0x8000) /* invalid fp operation */ in do_fp_trap()
138 else if (fpc & 0x4000) /* div by 0 */ in do_fp_trap()
140 else if (fpc & 0x2000) /* overflow */ in do_fp_trap()
142 else if (fpc & 0x1000) /* underflow */ in do_fp_trap()
144 else if (fpc & 0x0800) /* inexact */ in do_fp_trap()
198 /* get vector interrupt code from fpc */ in vector_exception()
200 vic = (current->thread.ufpu.fpc & 0xf00) >> 8; in vector_exception()
226 if (current->thread.ufpu.fpc in data_exception()
127 do_fp_trap(struct pt_regs * regs,__u32 fpc) do_fp_trap() argument
[all...]
H A Dfpu.c26 fpu_stfpc(&state->hdr.fpc); in __kernel_fpu_begin()
75 fpu_lfpc(&state->hdr.fpc); in __kernel_fpu_end()
118 fpu_lfpc_safe(&state->fpc); in load_fpu_state()
160 fpu_stfpc(&state->fpc); in save_fpu_state()
H A Dptrace.c254 } else if (addr == offsetof(struct user, regs.fp_regs.fpc)) { in __peek_user()
258 tmp = child->thread.ufpu.fpc; in __peek_user()
401 } else if (addr == offsetof(struct user, regs.fp_regs.fpc)) { in __poke_user()
407 child->thread.ufpu.fpc = data >> (BITS_PER_LONG - 32); in __poke_user()
584 fp_regs.fpc = target->thread.ufpu.fpc; in s390_fpregs_set()
602 u32 ufpc[2] = { target->thread.ufpu.fpc, 0 };
609 target->thread.ufpu.fpc = ufpc[0];
H A Dcrash_dump.c49 u32 fpc; member
97 memcpy(&sa->fpc, &lc->fpt_creg_save_area, sizeof(sa->fpc)); in save_area_add_regs()
309 memcpy(&nt_fpregset.fpc, &sa->fpc, sizeof(sa->fpc)); in fill_cpu_elf_notes()
H A Dprocess.c181 current->thread.ufpu.fpc = 0; in execve_tail()
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Ddfp.c49 static inline bool is_fpc_off(uint32_t fpc) in is_fpc_off() argument
51 return ((fpc & (FP_TG_CONTROL_ON | FP_TG_CONTROL_OFF)) == in is_fpc_off()
118 uint32_t *fpc; in nv04_dfp_update_fp_control() local
122 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control()
124 if (is_fpc_off(*fpc)) { in nv04_dfp_update_fp_control()
127 * fpc's most recent change was by below "off" code in nv04_dfp_update_fp_control()
129 *fpc = nv_crtc->dpms_saved_fp_control; in nv04_dfp_update_fp_control()
133 NVWriteRAMDAC(dev, nv_crtc->index, NV_PRAMDAC_FP_TG_CONTROL, *fpc); in nv04_dfp_update_fp_control()
137 fpc = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].fp_control; in nv04_dfp_update_fp_control()
140 if (!is_fpc_off(*fpc) in nv04_dfp_update_fp_control()
[all...]
/linux/drivers/media/platform/ti/omap3isp/
H A Dispccdc.c567 isp_reg_writel(isp, ccdc->fpc.dma, OMAP3_ISP_IOMEM_CCDC, in ccdc_configure_fpc()
570 isp_reg_writel(isp, (ccdc->fpc.fpnum << ISPCCDC_FPC_FPNUM_SHIFT), in ccdc_configure_fpc()
572 isp_reg_writel(isp, (ccdc->fpc.fpnum << ISPCCDC_FPC_FPNUM_SHIFT) | in ccdc_configure_fpc()
707 struct omap3isp_ccdc_fpc fpc; in ccdc_config() local
718 if (copy_from_user(&fpc, ccdc_struct->fpc, sizeof(fpc))) in ccdc_config()
721 size = fpc.fpnum * 4; in ccdc_config()
727 fpc_new.fpnum = fpc.fpnum; in ccdc_config()
735 (__force void __user *)(long)fpc in ccdc_config()
[all...]
H A Dispccdc.h143 struct ispccdc_fpc fpc; member
/linux/tools/testing/selftests/kvm/s390/
H A Dresets.c151 TEST_ASSERT(sync_regs->fpc == 0, "fpc == 0 (sync_regs)"); in assert_initial()
163 TEST_ASSERT(!fpu.fpc, "fpc == 0"); in assert_initial()
/linux/tools/arch/s390/include/uapi/asm/
H A Dkvm.h520 __u32 fpc; member
596 __u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */ member
/linux/arch/s390/kvm/s390/
H A Ds390.h37 fpu_stfpc(&run->s.regs.fpc); in kvm_s390_fpu_store()
46 fpu_lfpc_safe(&run->s.regs.fpc); in kvm_s390_fpu_load()
H A Ds390.c4069 vcpu->run->s.regs.fpc = 0; in kvm_arch_vcpu_ioctl_initial_reset()
4143 vcpu->run->s.regs.fpc = fpu->fpc; in kvm_arch_vcpu_ioctl_get_sregs()
4163 fpu->fpc = vcpu->run->s.regs.fpc; in kvm_arch_vcpu_ioctl_get_fpu()
5121 &vcpu->run->s.regs.fpc, 4); in kvm_s390_store_status_unloaded()
H A Dinterrupt.c611 rc |= put_guest_lc(vcpu, vcpu->run->s.regs.fpc, in __write_machine_check()
/linux/include/uapi/linux/
H A Domap3isp.h441 struct omap3isp_ccdc_fpc __user *fpc; member