Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpu/drm/renesas/rcar-du/
Drcar_du_kms.c374 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_gem_prime_import_sg_table() local
379 if (!rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_gem_prime_import_sg_table()
409 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_dumb_create() local
417 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create()
431 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_fb_create() local
445 if (rcdu->info->gen < 3) { in rcar_du_fb_create()
455 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create()
503 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_check() local
510 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_atomic_check()
519 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.c35 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read() local
37 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
42 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write() local
44 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
49 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr() local
51 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
52 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
57 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set() local
59 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set()
60 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.c623 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local
625 return drm_mode_config_helper_suspend(&rcdu->ddev); in rcar_du_pm_suspend()
630 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local
632 return drm_mode_config_helper_resume(&rcdu->ddev); in rcar_du_pm_resume()
644 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_remove() local
645 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove()
655 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_shutdown() local
657 drm_atomic_helper_shutdown(&rcdu->ddev); in rcar_du_shutdown()
662 struct rcar_du_device *rcdu; in rcar_du_probe() local
670 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver, in rcar_du_probe()
[all …]
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_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_vsp.c55 struct rcar_du_device *rcdu = crtc->dev; in rcar_du_vsp_enable() local
82 if (rcdu->info->gen >= 3) in rcar_du_vsp_enable()
261 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb() local
294 ret = dma_get_sgtable(rcdu->dev, sgt, gem->vaddr, in rcar_du_vsp_map_fb()
467 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init() local
481 ret = drmm_add_action_or_reset(&rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init()
489 num_planes = rcdu->info->num_rpf; in rcar_du_vsp_init()
503 if (rcdu->info->gen < 4) { in rcar_du_vsp_init()
514 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);