Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/pwm/
Dpwm-fsl-ftm.c101 struct fsl_pwm_chip *fpc = to_fsl_chip(chip); in fsl_pwm_request() local
103 return clk_prepare_enable(fpc->clk[FSL_PWM_CLK_SYS]); in fsl_pwm_request()
108 struct fsl_pwm_chip *fpc = to_fsl_chip(chip); in fsl_pwm_free() local
110 clk_disable_unprepare(fpc->clk[FSL_PWM_CLK_SYS]); in fsl_pwm_free()
113 static int fsl_pwm_calculate_default_ps(struct fsl_pwm_chip *fpc, in fsl_pwm_calculate_default_ps() argument
119 sys_rate = clk_get_rate(fpc->clk[FSL_PWM_CLK_SYS]); in fsl_pwm_calculate_default_ps()
123 cnt_rate = clk_get_rate(fpc->clk[fpc->cnt_select]); in fsl_pwm_calculate_default_ps()
129 fpc->clk_ps = 1; in fsl_pwm_calculate_default_ps()
134 fpc->clk_ps = ratio; in fsl_pwm_calculate_default_ps()
139 fpc->clk_ps = ratio; in fsl_pwm_calculate_default_ps()
[all …]
/linux-4.4.14/arch/s390/kernel/
Dtraps.c154 static inline void do_fp_trap(struct pt_regs *regs, __u32 fpc) in do_fp_trap() argument
158 if ((fpc & 0x00000300) == 0) { in do_fp_trap()
160 if (fpc & 0x8000) /* invalid fp operation */ in do_fp_trap()
162 else if (fpc & 0x4000) /* div by 0 */ in do_fp_trap()
164 else if (fpc & 0x2000) /* overflow */ in do_fp_trap()
166 else if (fpc & 0x1000) /* underflow */ in do_fp_trap()
168 else if (fpc & 0x0800) /* inexact */ in do_fp_trap()
238 vic = (current->thread.fpu.fpc & 0xf00) >> 8; in vector_exception()
269 if (current->thread.fpu.fpc & FPC_DXC_MASK) in data_exception()
274 do_fp_trap(regs, current->thread.fpu.fpc); in data_exception()
Dprocess.c114 dst->thread.fpu.fpc = current->thread.fpu.fpc; in arch_dup_task_struct()
191 current->thread.fpu.fpc = 0; in execve_tail()
201 fpregs->fpc = current->thread.fpu.fpc; in dump_fpu()
Dptrace.c229 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user()
233 tmp = child->thread.fpu.fpc; in __peek_user()
371 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user()
378 child->thread.fpu.fpc = data >> (BITS_PER_LONG - 32); in __poke_user()
608 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat()
612 tmp = child->thread.fpu.fpc; in __peek_user_compat()
731 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __poke_user_compat()
737 child->thread.fpu.fpc = data; in __poke_user_compat()
948 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get()
968 u32 ufpc[2] = { target->thread.fpu.fpc, 0 }; in s390_fpregs_set()
[all …]
Dcompat_linux.h29 unsigned int fpc; member
Dasm-offsets.c33 OFFSET(__THREAD_FPU_fpc, thread_struct, fpu.fpc); in main()
Dsignal.c150 if (test_fp_ctl(user_sregs.fpregs.fpc)) in restore_sigregs()
Dcrash_dump.c302 memcpy(&nt_fpregset.fpc, &sa->fp_ctrl_reg, sizeof(sa->fp_ctrl_reg)); in nt_fpregset()
Dcompat_signal.c214 if (test_fp_ctl(user_sregs.fpregs.fpc)) in restore_sigregs32()
/linux-4.4.14/arch/s390/include/asm/fpu/
Dinternal.h51 fpregs->fpc = fpu->fpc; in fpregs_store()
61 fpu->fpc = fpregs->fpc; in fpregs_load()
Dapi.h13 static inline int test_fp_ctl(u32 fpc) in test_fp_ctl() argument
26 : "d" (fpc), "0" (-EINVAL)); in test_fp_ctl()
Dtypes.h14 __u32 fpc; /* Floating-point control */ member
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
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()
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-4.4.14/sound/oss/
Dopl3.c459 unsigned char data, fpc; in opl3_start_note() local
578 fpc = instr->operators[10]; in opl3_start_note()
582 fpc &= ~STEREO_BITS; in opl3_start_note()
584 fpc |= VOICE_TO_LEFT; in opl3_start_note()
587 fpc |= VOICE_TO_RIGHT; in opl3_start_note()
589 fpc |= (VOICE_TO_LEFT | VOICE_TO_RIGHT); in opl3_start_note()
592 if (!(fpc & 0x30)) in opl3_start_note()
593 fpc |= 0x30; /* in opl3_start_note()
596 opl3_command(map->ioaddr, FEEDBACK_CONNECTION + map->voice_num, fpc); in opl3_start_note()
636 fpc = instr->operators[OFFS_4OP + 10]; in opl3_start_note()
[all …]
/linux-4.4.14/arch/s390/include/uapi/asm/
Dkvm.h113 __u32 fpc; member
170 __u32 fpc; /* only valid with vector registers */ member
Dsigcontext.h55 unsigned int fpc; member
Dptrace.h201 __u32 fpc; member
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispccdc.c569 isp_reg_writel(isp, ccdc->fpc.dma, OMAP3_ISP_IOMEM_CCDC, in ccdc_configure_fpc()
572 isp_reg_writel(isp, (ccdc->fpc.fpnum << ISPCCDC_FPC_FPNUM_SHIFT), in ccdc_configure_fpc()
574 isp_reg_writel(isp, (ccdc->fpc.fpnum << ISPCCDC_FPC_FPNUM_SHIFT) | in ccdc_configure_fpc()
709 struct omap3isp_ccdc_fpc fpc; in ccdc_config() local
720 if (copy_from_user(&fpc, ccdc_struct->fpc, sizeof(fpc))) in ccdc_config()
723 size = fpc.fpnum * 4; in ccdc_config()
729 fpc_new.fpnum = fpc.fpnum; in ccdc_config()
737 (__force void __user *)fpc.fpcaddr, in ccdc_config()
744 fpc_old = ccdc->fpc; in ccdc_config()
745 ccdc->fpc = fpc_new; in ccdc_config()
[all …]
Dispccdc.h146 struct ispccdc_fpc fpc; member
/linux-4.4.14/arch/s390/kvm/
Dkvm-s390.c1275 vcpu->arch.host_fpregs.fpc = current->thread.fpu.fpc; in kvm_arch_vcpu_load()
1282 current->thread.fpu.fpc = vcpu->run->s.regs.fpc; in kvm_arch_vcpu_load()
1283 if (test_fp_ctl(current->thread.fpu.fpc)) in kvm_arch_vcpu_load()
1285 current->thread.fpu.fpc = 0; in kvm_arch_vcpu_load()
1300 vcpu->run->s.regs.fpc = current->thread.fpu.fpc; in kvm_arch_vcpu_put()
1303 current->thread.fpu.fpc = vcpu->arch.host_fpregs.fpc; in kvm_arch_vcpu_put()
1324 current->thread.fpu.fpc = 0; in kvm_s390_vcpu_initial_reset()
1695 if (test_fp_ctl(fpu->fpc)) in kvm_arch_vcpu_ioctl_set_fpu()
1697 current->thread.fpu.fpc = fpu->fpc; in kvm_arch_vcpu_ioctl_set_fpu()
1713 fpu->fpc = current->thread.fpu.fpc; in kvm_arch_vcpu_ioctl_get_fpu()
[all …]
/linux-4.4.14/drivers/media/platform/davinci/
Ddm644x_ccdc.c496 static void ccdc_config_fpc(struct ccdc_fault_pixel *fpc) in ccdc_config_fpc() argument
504 if (!fpc->enable) in ccdc_config_fpc()
508 regw(fpc->fpc_table_addr, CCDC_FPC_ADDR); in ccdc_config_fpc()
510 (fpc->fpc_table_addr)); in ccdc_config_fpc()
512 val = fpc->fp_num & CCDC_FPC_FPC_NUM_MASK; in ccdc_config_fpc()
/linux-4.4.14/include/uapi/linux/
Domap3isp.h413 struct omap3isp_ccdc_fpc __user *fpc; member