/Linux-v5.10/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 330 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_dumb_create() local 338 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create() 352 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_fb_create() local 366 if (rcdu->info->gen < 3) { in rcar_du_fb_create() 376 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create() 424 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_check() local 431 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_atomic_check() 440 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_commit_tail() local 449 rcdu->dpad1_source = -1; in rcar_du_atomic_commit_tail() 457 rcdu->dpad0_source = rcrtc->index; in rcar_du_atomic_commit_tail() [all …]
|
D | rcar_du_group.c | 58 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 …]
|
D | rcar_du_crtc.c | 37 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read() local 39 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read() 44 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write() local 46 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write() 51 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr() local 53 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr() 54 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr() 59 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set() local 61 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set() 62 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) | set); in rcar_du_crtc_set() [all …]
|
D | rcar_du_drv.h | 101 static inline bool rcar_du_has(struct rcar_du_device *rcdu, in rcar_du_has() argument 104 return rcdu->info->features & feature; in rcar_du_has() 107 static inline bool rcar_du_needs(struct rcar_du_device *rcdu, in rcar_du_needs() argument 110 return rcdu->info->quirks & quirk; in rcar_du_needs() 113 static inline u32 rcar_du_read(struct rcar_du_device *rcdu, u32 reg) in rcar_du_read() argument 115 return ioread32(rcdu->mmio + reg); in rcar_du_read() 118 static inline void rcar_du_write(struct rcar_du_device *rcdu, u32 reg, u32 data) in rcar_du_write() argument 120 iowrite32(data, rcdu->mmio + reg); in rcar_du_write()
|
D | rcar_du_plane.c | 131 struct rcar_du_device *rcdu = dev->dev_private; in rcar_du_atomic_check_planes() local 153 dev_dbg(rcdu->dev, "%s: checking plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes() 162 dev_dbg(rcdu->dev, "%s: plane is being disabled\n", in rcar_du_atomic_check_planes() 175 dev_dbg(rcdu->dev, "%s: plane needs reallocation\n", in rcar_du_atomic_check_planes() 200 struct rcar_du_group *group = &rcdu->groups[index]; in rcar_du_atomic_check_planes() 203 dev_dbg(rcdu->dev, "%s: finding free planes for group %u\n", in rcar_du_atomic_check_planes() 224 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes() 234 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes() 246 dev_dbg(rcdu->dev, "%s: group %u free planes mask 0x%02x\n", in rcar_du_atomic_check_planes() 264 dev_dbg(rcdu->dev, "%s: allocating plane (%u,%tu)\n", __func__, in rcar_du_atomic_check_planes() [all …]
|
D | rcar_du_encoder.c | 47 int rcar_du_encoder_init(struct rcar_du_device *rcdu, in rcar_du_encoder_init() argument 56 renc = devm_kzalloc(rcdu->dev, sizeof(*renc), GFP_KERNEL); in rcar_du_encoder_init() 60 rcdu->encoders[output] = renc; in rcar_du_encoder_init() 64 dev_dbg(rcdu->dev, "initializing encoder %pOF for output %u\n", in rcar_du_encoder_init() 82 bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel, in rcar_du_encoder_init() 100 if (rcdu->info->gen >= 3 && output == RCAR_DU_OUTPUT_LVDS1) { in rcar_du_encoder_init() 107 ret = drm_simple_encoder_init(rcdu->ddev, encoder, in rcar_du_encoder_init() 126 devm_kfree(rcdu->dev, renc); in rcar_du_encoder_init()
|
D | rcar_du_drv.c | 528 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local 530 return drm_mode_config_helper_suspend(rcdu->ddev); in rcar_du_pm_suspend() 535 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local 537 return drm_mode_config_helper_resume(rcdu->ddev); in rcar_du_pm_resume() 551 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_remove() local 552 struct drm_device *ddev = rcdu->ddev; in rcar_du_remove() 565 struct rcar_du_device *rcdu; in rcar_du_probe() local 571 rcdu = devm_kzalloc(&pdev->dev, sizeof(*rcdu), GFP_KERNEL); in rcar_du_probe() 572 if (rcdu == NULL) in rcar_du_probe() 575 rcdu->dev = &pdev->dev; in rcar_du_probe() [all …]
|
D | rcar_du_vsp.c | 51 struct rcar_du_device *rcdu = crtc->dev; in rcar_du_vsp_enable() local 78 if (rcdu->info->gen >= 3) in rcar_du_vsp_enable() 187 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb() local 195 ret = dma_get_sgtable(rcdu->dev, sgt, gem->vaddr, gem->paddr, in rcar_du_vsp_map_fb() 354 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init() local 367 ret = drmm_add_action(rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init() 379 vsp->num_planes = rcdu->info->gen >= 3 ? 5 : 4; in rcar_du_vsp_init() 381 vsp->planes = devm_kcalloc(rcdu->dev, vsp->num_planes, in rcar_du_vsp_init() 395 ret = drm_universal_plane_init(rcdu->ddev, &plane->plane, crtcs, in rcar_du_vsp_init()
|
D | rcar_du_writeback.h | 18 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
|
D | rcar_du_encoder.h | 27 int rcar_du_encoder_init(struct rcar_du_device *rcdu,
|
D | rcar_du_kms.h | 32 int rcar_du_modeset_init(struct rcar_du_device *rcdu);
|
D | rcar_du_writeback.c | 198 int rcar_du_writeback_init(struct rcar_du_device *rcdu, in rcar_du_writeback_init() argument 207 return drm_writeback_connector_init(rcdu->ddev, wb_conn, in rcar_du_writeback_init()
|
D | rcar_du_group.h | 63 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu);
|