Home
last modified time | relevance | path

Searched refs:fsl_dev (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_drv.c56 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_irq_uninstall() local
58 regmap_write(fsl_dev->regmap, DCU_INT_STATUS, ~0); in fsl_dcu_irq_uninstall()
59 regmap_write(fsl_dev->regmap, DCU_INT_MASK, ~0); in fsl_dcu_irq_uninstall()
64 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_load() local
67 ret = fsl_dcu_drm_modeset_init(fsl_dev); in fsl_dcu_load()
79 ret = drm_irq_install(dev, fsl_dev->irq); in fsl_dcu_load()
117 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_irq() local
121 ret = regmap_read(fsl_dev->regmap, DCU_INT_STATUS, &int_status); in fsl_dcu_drm_irq()
130 regmap_write(fsl_dev->regmap, DCU_INT_STATUS, int_status); in fsl_dcu_drm_irq()
156 struct fsl_dcu_drm_device *fsl_dev = dev_get_drvdata(dev); in fsl_dcu_drm_pm_suspend() local
[all …]
Dfsl_dcu_drm_crtc.c27 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()
49 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_disable() local
56 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_disable()
59 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_disable()
61 clk_disable_unprepare(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_disable()
68 struct fsl_dcu_drm_device *fsl_dev = dev->dev_private; in fsl_dcu_drm_crtc_atomic_enable() local
70 clk_prepare_enable(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_enable()
71 regmap_update_bits(fsl_dev->regmap, DCU_DCU_MODE, in fsl_dcu_drm_crtc_atomic_enable()
74 regmap_write(fsl_dev->regmap, DCU_UPDATE_MODE, in fsl_dcu_drm_crtc_atomic_enable()
[all …]
Dfsl_dcu_drm_rgb.c21 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_drm_encoder_create() argument
24 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_drm_encoder_create()
30 if (fsl_dev->tcon) in fsl_dcu_drm_encoder_create()
31 fsl_tcon_bypass_enable(fsl_dev->tcon); in fsl_dcu_drm_encoder_create()
33 ret = drm_simple_encoder_init(fsl_dev->drm, encoder, in fsl_dcu_drm_encoder_create()
78 static int fsl_dcu_attach_panel(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_attach_panel() argument
81 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_attach_panel()
82 struct drm_connector *connector = &fsl_dev->connector.base; in fsl_dcu_attach_panel()
85 fsl_dev->connector.encoder = encoder; in fsl_dcu_attach_panel()
87 ret = drm_connector_init(fsl_dev->drm, connector, in fsl_dcu_attach_panel()
[all …]
Dfsl_dcu_drm_kms.c22 int fsl_dcu_drm_modeset_init(struct fsl_dcu_drm_device *fsl_dev) in fsl_dcu_drm_modeset_init() argument
26 drm_mode_config_init(fsl_dev->drm); in fsl_dcu_drm_modeset_init()
28 fsl_dev->drm->mode_config.min_width = 0; in fsl_dcu_drm_modeset_init()
29 fsl_dev->drm->mode_config.min_height = 0; in fsl_dcu_drm_modeset_init()
30 fsl_dev->drm->mode_config.max_width = 2031; in fsl_dcu_drm_modeset_init()
31 fsl_dev->drm->mode_config.max_height = 2047; in fsl_dcu_drm_modeset_init()
32 fsl_dev->drm->mode_config.funcs = &fsl_dcu_drm_mode_config_funcs; in fsl_dcu_drm_modeset_init()
34 ret = fsl_dcu_drm_crtc_create(fsl_dev); in fsl_dcu_drm_modeset_init()
38 ret = fsl_dcu_drm_encoder_create(fsl_dev, &fsl_dev->crtc); in fsl_dcu_drm_modeset_init()
42 ret = fsl_dcu_create_outputs(fsl_dev); in fsl_dcu_drm_modeset_init()
[all …]
Dfsl_dcu_drm_plane.c23 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_index() local
24 unsigned int total_layer = fsl_dev->soc->total_layer; in fsl_dcu_drm_plane_index()
31 dev_err(fsl_dev->dev, "No more layer left\n"); in fsl_dcu_drm_plane_index()
62 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_atomic_disable() local
70 regmap_read(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), &value); in fsl_dcu_drm_plane_atomic_disable()
72 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), value); in fsl_dcu_drm_plane_atomic_disable()
79 struct fsl_dcu_drm_device *fsl_dev = plane->dev->dev_private; in fsl_dcu_drm_plane_atomic_update() local
127 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 1), in fsl_dcu_drm_plane_atomic_update()
130 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 2), in fsl_dcu_drm_plane_atomic_update()
133 regmap_write(fsl_dev->regmap, in fsl_dcu_drm_plane_atomic_update()
[all …]
Dfsl_dcu_drm_output.h24 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev,
26 int fsl_dcu_create_outputs(struct fsl_dcu_drm_device *fsl_dev);
Dfsl_dcu_drm_crtc.h13 int fsl_dcu_drm_crtc_create(struct fsl_dcu_drm_device *fsl_dev);
Dfsl_dcu_drm_drv.h196 int fsl_dcu_drm_modeset_init(struct fsl_dcu_drm_device *fsl_dev);