Lines Matching refs:fsl_dev

27 	struct fsl_dcu_drm_device *fsl_dev = dev->dev_private;  in fsl_dcu_drm_crtc_atomic_flush()  local
30 regmap_write(fsl_dev->regmap, in fsl_dcu_drm_crtc_atomic_flush()
51 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_disable() local
58 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_disable()
61 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_disable()
63 clk_disable_unprepare(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_disable()
70 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_enable() local
72 clk_prepare_enable(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_enable()
73 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_enable()
76 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_enable()
85 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_mode_set_nofb() local
86 struct drm_connector *con = &fsl_dev->connector.base; in fsl_dcu_drm_crtc_mode_set_nofb()
91 clk_set_rate(fsl_dev->pix_clk, mode->clock * 1000); in fsl_dcu_drm_crtc_mode_set_nofb()
105 regmap_write(fsl_dev->regmap, DCU_HSYN_PARA, in fsl_dcu_drm_crtc_mode_set_nofb()
109 regmap_write(fsl_dev->regmap, DCU_VSYN_PARA, in fsl_dcu_drm_crtc_mode_set_nofb()
113 regmap_write(fsl_dev->regmap, DCU_DISP_SIZE, in fsl_dcu_drm_crtc_mode_set_nofb()
116 regmap_write(fsl_dev->regmap, DCU_SYN_POL, pol); in fsl_dcu_drm_crtc_mode_set_nofb()
117 regmap_write(fsl_dev->regmap, DCU_BGND, DCU_BGND_R(0) | in fsl_dcu_drm_crtc_mode_set_nofb()
119 regmap_write(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_mode_set_nofb()
121 regmap_write(fsl_dev->regmap, DCU_THRESHOLD, in fsl_dcu_drm_crtc_mode_set_nofb()
138 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_enable_vblank() local
141 regmap_read(fsl_dev->regmap, DCU_INT_MASK, &value); in fsl_dcu_drm_crtc_enable_vblank()
143 regmap_write(fsl_dev->regmap, DCU_INT_MASK, value); in fsl_dcu_drm_crtc_enable_vblank()
151 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_disable_vblank() local
154 regmap_read(fsl_dev->regmap, DCU_INT_MASK, &value); in fsl_dcu_drm_crtc_disable_vblank()
156 regmap_write(fsl_dev->regmap, DCU_INT_MASK, value); in fsl_dcu_drm_crtc_disable_vblank()
170 int fsl_dcu_drm_crtc_create(struct fsl_dcu_drm_device *fsl_dev) in fsl_dcu_drm_crtc_create() argument
173 struct drm_crtc *crtc = &fsl_dev->crtc; in fsl_dcu_drm_crtc_create()
176 fsl_dcu_drm_init_planes(fsl_dev->drm); in fsl_dcu_drm_crtc_create()
178 primary = fsl_dcu_drm_primary_create_plane(fsl_dev->drm); in fsl_dcu_drm_crtc_create()
182 ret = drm_crtc_init_with_planes(fsl_dev->drm, crtc, primary, NULL, in fsl_dcu_drm_crtc_create()