| /linux/drivers/pwm/ |
| H A D | pwm-fsl-ftm.c | 61 static void ftm_clear_write_protection(struct fsl_pwm_chip *fpc) in ftm_clear_write_protection() argument 65 regmap_read(fpc->regmap, FTM_FMS, &val); in ftm_clear_write_protection() 67 regmap_set_bits(fpc->regmap, FTM_MODE, FTM_MODE_WPDIS); in ftm_clear_write_protection() 70 static void ftm_set_write_protection(struct fsl_pwm_chip *fpc) in ftm_set_write_protection() argument 72 regmap_set_bits(fpc->regmap, FTM_FMS, FTM_FMS_WPEN); in ftm_set_write_protection() 90 struct fsl_pwm_chip *fpc = to_fsl_chip(chip); in fsl_pwm_request() local 92 ret = clk_prepare_enable(fpc->ipg_clk); in fsl_pwm_request() 93 if (!ret && fpc->soc->has_enable_bits) in fsl_pwm_request() 94 regmap_set_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16)); in fsl_pwm_request() 101 struct fsl_pwm_chip *fpc = to_fsl_chip(chip); in fsl_pwm_free() local [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | fpu-insn.h | 84 static __always_inline void fpu_lfpc(unsigned int *fpc) in fpu_lfpc() argument 86 instrument_read(fpc, sizeof(*fpc)); in fpu_lfpc() 89 : [fpc] "Q" (*fpc) in fpu_lfpc() 102 static inline void fpu_lfpc_safe(unsigned int *fpc) in fpu_lfpc_safe() argument 104 instrument_read(fpc, sizeof(*fpc)); in fpu_lfpc_safe() 110 : [fpc] "Q" (*fpc) in fpu_lfpc_safe() 123 static __always_inline void fpu_sfpc(unsigned int fpc) in fpu_sfpc() argument 127 : [fpc] "d" (fpc) in fpu_sfpc() 131 static __always_inline void fpu_stfpc(unsigned int *fpc) in fpu_stfpc() argument 133 instrument_write(fpc, sizeof(*fpc)); in fpu_stfpc() [all …]
|
| H A D | fpu-types.h | 15 u32 fpc; member 21 u32 fpc; member
|
| H A D | fpu.h | 280 fpregs->fpc = fpu->fpc; in fpregs_store() 286 fpu->fpc = fpregs->fpc; in fpregs_load()
|
| /linux/arch/s390/kernel/ |
| H A D | traps.c | 112 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap() argument 117 if ((fpc & 0x00000300) == 0) { in do_fp_trap() 119 if (fpc & 0x8000) /* invalid fp operation */ in do_fp_trap() 121 else if (fpc & 0x4000) /* div by 0 */ in do_fp_trap() 123 else if (fpc & 0x2000) /* overflow */ in do_fp_trap() 125 else if (fpc & 0x1000) /* underflow */ in do_fp_trap() 127 else if (fpc & 0x0800) /* inexact */ in do_fp_trap() 183 vic = (current->thread.ufpu.fpc & 0xf00) >> 8; in vector_exception() 209 if (current->thread.ufpu.fpc & FPC_DXC_MASK) in data_exception() 210 do_fp_trap(regs, current->thread.ufpu.fpc); in data_exception()
|
| H A D | fpu.c | 26 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 D | ptrace.c | 244 } else if (addr == offsetof(struct user, regs.fp_regs.fpc)) { in __peek_user() 248 tmp = child->thread.ufpu.fpc; in __peek_user() 384 } else if (addr == offsetof(struct user, regs.fp_regs.fpc)) { in __poke_user() 390 child->thread.ufpu.fpc = data >> (BITS_PER_LONG - 32); in __poke_user() 567 fp_regs.fpc = target->thread.ufpu.fpc; in s390_fpregs_get() 585 u32 ufpc[2] = { target->thread.ufpu.fpc, 0 }; in s390_fpregs_set() 592 target->thread.ufpu.fpc = ufpc[0]; in s390_fpregs_set()
|
| H A D | crash_dump.c | 49 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 D | process.c | 182 current->thread.ufpu.fpc = 0; in execve_tail()
|
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H A D | dfp.c | 49 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() 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) && !nv_crtc->fp_users) { in nv04_dfp_update_fp_control() 141 nv_crtc->dpms_saved_fp_control = *fpc; in nv04_dfp_update_fp_control() [all …]
|
| /linux/drivers/media/platform/ti/omap3isp/ |
| H A D | ispccdc.c | 567 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.fpcaddr, in ccdc_config() 742 fpc_old = ccdc->fpc; in ccdc_config() 743 ccdc->fpc = fpc_new; in ccdc_config() [all …]
|
| H A D | ispccdc.h | 143 struct ispccdc_fpc fpc; member
|
| /linux/arch/s390/include/uapi/asm/ |
| H A D | sigcontext.h | 44 unsigned int fpc; member
|
| H A D | kvm.h | 519 __u32 fpc; member 595 __u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */ member
|
| H A D | ptrace.h | 140 __u32 fpc; member
|
| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | resets.c | 151 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 D | kvm.h | 519 __u32 fpc; member 595 __u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */ member
|
| /linux/arch/s390/kvm/ |
| H A D | kvm-s390.h | 37 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 D | kvm-s390.c | 4002 vcpu->run->s.regs.fpc = 0; in kvm_arch_vcpu_ioctl_initial_reset() 4076 vcpu->run->s.regs.fpc = fpu->fpc; in kvm_arch_vcpu_ioctl_set_fpu() 4096 fpu->fpc = vcpu->run->s.regs.fpc; in kvm_arch_vcpu_ioctl_get_fpu() 5037 &vcpu->run->s.regs.fpc, 4); in kvm_s390_store_status_unloaded()
|
| H A D | interrupt.c | 597 rc |= put_guest_lc(vcpu, vcpu->run->s.regs.fpc, in __write_machine_check()
|
| /linux/include/uapi/linux/ |
| H A D | omap3isp.h | 441 struct omap3isp_ccdc_fpc __user *fpc; member
|