Home
last modified time | relevance | path

Searched refs:rcdu (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_du_kms.c342 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_gem_prime_import_sg_table() local
347 if (!rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_gem_prime_import_sg_table()
377 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_dumb_create() local
385 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create()
399 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_fb_create() local
413 if (rcdu->info->gen < 3) { in rcar_du_fb_create()
423 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create()
471 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_check() local
478 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_atomic_check()
487 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_commit_tail() local
[all …]
Drcar_du_group.c58 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_group_setup_defr8() local
61 if (rcdu->info->gen < 3) { in rcar_du_group_setup_defr8()
70 defr8 |= DEFR8_DRGBS_DU(rcdu->dpad0_source); in rcar_du_group_setup_defr8()
80 if (rgrp->index == rcdu->dpad0_source / 2) in rcar_du_group_setup_defr8()
81 defr8 |= DEFR8_DRGBS_DU(rcdu->dpad0_source); in rcar_du_group_setup_defr8()
89 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_group_setup_didsr() local
103 if (rcdu->info->gen < 3 && rgrp->index == 0) { in rcar_du_group_setup_didsr()
108 rcrtc = rcdu->crtcs; in rcar_du_group_setup_didsr()
109 num_crtcs = rcdu->num_crtcs; in rcar_du_group_setup_didsr()
110 } else if (rcdu->info->gen == 3 && rgrp->num_crtcs > 1) { in rcar_du_group_setup_didsr()
[all …]
Drcar_du_crtc.c36 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read() local
38 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
43 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write() local
45 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
50 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr() local
52 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
53 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
58 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set() local
60 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set()
61 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) | set); in rcar_du_crtc_set()
[all …]
Drcar_du_encoder.c48 int rcar_du_encoder_init(struct rcar_du_device *rcdu, in rcar_du_encoder_init() argument
70 bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel, in rcar_du_encoder_init()
81 rcdu->lvds[output - RCAR_DU_OUTPUT_LVDS0] = bridge; in rcar_du_encoder_init()
85 rcdu->dsi[output - RCAR_DU_OUTPUT_DSI0] = bridge; in rcar_du_encoder_init()
95 if (rcdu->info->gen >= 3) { in rcar_du_encoder_init()
106 dev_dbg(rcdu->dev, "initializing encoder %pOF for output %s\n", in rcar_du_encoder_init()
109 renc = drmm_encoder_alloc(&rcdu->ddev, struct rcar_du_encoder, base, in rcar_du_encoder_init()
121 dev_err(rcdu->dev, in rcar_du_encoder_init()
128 connector = drm_bridge_connector_init(&rcdu->ddev, &renc->base); in rcar_du_encoder_init()
130 dev_err(rcdu->dev, in rcar_du_encoder_init()
Drcar_du_drv.c605 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local
607 return drm_mode_config_helper_suspend(&rcdu->ddev); in rcar_du_pm_suspend()
612 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local
614 return drm_mode_config_helper_resume(&rcdu->ddev); in rcar_du_pm_resume()
628 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_remove() local
629 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove()
641 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_shutdown() local
643 drm_atomic_helper_shutdown(&rcdu->ddev); in rcar_du_shutdown()
648 struct rcar_du_device *rcdu; in rcar_du_probe() local
656 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver, in rcar_du_probe()
[all …]
Drcar_du_drv.h128 static inline bool rcar_du_has(struct rcar_du_device *rcdu, in rcar_du_has() argument
131 return rcdu->info->features & feature; in rcar_du_has()
134 static inline bool rcar_du_needs(struct rcar_du_device *rcdu, in rcar_du_needs() argument
137 return rcdu->info->quirks & quirk; in rcar_du_needs()
140 static inline u32 rcar_du_read(struct rcar_du_device *rcdu, u32 reg) in rcar_du_read() argument
142 return ioread32(rcdu->mmio + reg); in rcar_du_read()
145 static inline void rcar_du_write(struct rcar_du_device *rcdu, u32 reg, u32 data) in rcar_du_write() argument
147 iowrite32(data, rcdu->mmio + reg); in rcar_du_write()
Drcar_du_plane.c132 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_check_planes() local
154 dev_dbg(rcdu->dev, "%s: checking plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes()
163 dev_dbg(rcdu->dev, "%s: plane is being disabled\n", in rcar_du_atomic_check_planes()
176 dev_dbg(rcdu->dev, "%s: plane needs reallocation\n", in rcar_du_atomic_check_planes()
201 struct rcar_du_group *group = &rcdu->groups[index]; in rcar_du_atomic_check_planes()
204 dev_dbg(rcdu->dev, "%s: finding free planes for group %u\n", in rcar_du_atomic_check_planes()
225 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes()
235 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes()
247 dev_dbg(rcdu->dev, "%s: group %u free planes mask 0x%02x\n", in rcar_du_atomic_check_planes()
265 dev_dbg(rcdu->dev, "%s: allocating plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes()
[all …]
Drcar_du_vsp.c54 struct rcar_du_device *rcdu = crtc->dev; in rcar_du_vsp_enable() local
81 if (rcdu->info->gen >= 3) in rcar_du_vsp_enable()
200 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb() local
233 ret = dma_get_sgtable(rcdu->dev, sgt, gem->vaddr, in rcar_du_vsp_map_fb()
406 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init() local
420 ret = drmm_add_action_or_reset(&rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init()
428 num_planes = rcdu->info->num_rpf; in rcar_du_vsp_init()
443 ret = drm_universal_plane_init(&rcdu->ddev, &plane->plane, in rcar_du_vsp_init()
Drcar_du_writeback.h18 int rcar_du_writeback_init(struct rcar_du_device *rcdu,
24 static inline int rcar_du_writeback_init(struct rcar_du_device *rcdu, in rcar_du_writeback_init() argument
Drcar_du_encoder.h25 int rcar_du_encoder_init(struct rcar_du_device *rcdu,
Drcar_du_kms.h35 int rcar_du_modeset_init(struct rcar_du_device *rcdu);
Drcar_du_writeback.c200 int rcar_du_writeback_init(struct rcar_du_device *rcdu, in rcar_du_writeback_init() argument
208 return drm_writeback_connector_init(&rcdu->ddev, wb_conn, in rcar_du_writeback_init()
Drcar_du_group.h63 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu);