Home
last modified time | relevance | path

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

/drivers/pwm/
Dpwm-fsl-ftm.c62 static void ftm_clear_write_protection(struct fsl_pwm_chip *fpc) in ftm_clear_write_protection() argument
66 regmap_read(fpc->regmap, FTM_FMS, &val); in ftm_clear_write_protection()
68 regmap_update_bits(fpc->regmap, FTM_MODE, FTM_MODE_WPDIS, in ftm_clear_write_protection()
72 static void ftm_set_write_protection(struct fsl_pwm_chip *fpc) in ftm_set_write_protection() argument
74 regmap_update_bits(fpc->regmap, FTM_FMS, FTM_FMS_WPEN, FTM_FMS_WPEN); in ftm_set_write_protection()
92 struct fsl_pwm_chip *fpc = to_fsl_chip(chip); in fsl_pwm_request() local
94 ret = clk_prepare_enable(fpc->ipg_clk); in fsl_pwm_request()
95 if (!ret && fpc->soc->has_enable_bits) { in fsl_pwm_request()
96 mutex_lock(&fpc->lock); in fsl_pwm_request()
97 regmap_update_bits(fpc->regmap, FTM_SC, BIT(pwm->hwpwm + 16), in fsl_pwm_request()
[all …]
/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 …]
/drivers/media/platform/omap3isp/
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.fpcaddr, in ccdc_config()
742 fpc_old = ccdc->fpc; in ccdc_config()
743 ccdc->fpc = fpc_new; in ccdc_config()
[all …]
Dispccdc.h143 struct ispccdc_fpc fpc; member