/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 331 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_dumb_create() local 339 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_dumb_create() 353 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_fb_create() local 367 if (rcdu->info->gen < 3) { in rcar_du_fb_create() 377 if (rcar_du_needs(rcdu, RCAR_DU_QUIRK_ALIGN_128B)) in rcar_du_fb_create() 425 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_check() local 432 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_atomic_check() 441 struct rcar_du_device *rcdu = to_rcar_du_device(dev); in rcar_du_atomic_commit_tail() local 450 rcdu->dpad1_source = -1; in rcar_du_atomic_commit_tail() 458 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.c | 529 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_suspend() local 531 return drm_mode_config_helper_suspend(&rcdu->ddev); in rcar_du_pm_suspend() 536 struct rcar_du_device *rcdu = dev_get_drvdata(dev); in rcar_du_pm_resume() local 538 return drm_mode_config_helper_resume(&rcdu->ddev); in rcar_du_pm_resume() 552 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_remove() local 553 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove() 565 struct rcar_du_device *rcdu = platform_get_drvdata(pdev); in rcar_du_shutdown() local 567 drm_atomic_helper_shutdown(&rcdu->ddev); in rcar_du_shutdown() 572 struct rcar_du_device *rcdu; in rcar_du_probe() local 577 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver, in rcar_du_probe() [all …]
|
D | rcar_du_plane.c | 131 struct rcar_du_device *rcdu = to_rcar_du_device(dev); 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 | 52 int rcar_du_encoder_init(struct rcar_du_device *rcdu, in rcar_du_encoder_init() argument 74 bridge = devm_drm_panel_bridge_add_typed(rcdu->dev, panel, in rcar_du_encoder_init() 85 rcdu->lvds[output - RCAR_DU_OUTPUT_LVDS0] = 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 %u\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, "failed to attach bridge for output %u\n", in rcar_du_encoder_init() 127 connector = drm_bridge_connector_init(&rcdu->ddev, &renc->base); in rcar_du_encoder_init() 129 dev_err(rcdu->dev, in rcar_du_encoder_init()
|
D | rcar_du_drv.h | 107 static inline bool rcar_du_has(struct rcar_du_device *rcdu, in rcar_du_has() argument 110 return rcdu->info->features & feature; in rcar_du_has() 113 static inline bool rcar_du_needs(struct rcar_du_device *rcdu, in rcar_du_needs() argument 116 return rcdu->info->quirks & quirk; in rcar_du_needs() 119 static inline u32 rcar_du_read(struct rcar_du_device *rcdu, u32 reg) in rcar_du_read() argument 121 return ioread32(rcdu->mmio + reg); in rcar_du_read() 124 static inline void rcar_du_write(struct rcar_du_device *rcdu, u32 reg, u32 data) in rcar_du_write() argument 126 iowrite32(data, rcdu->mmio + reg); in rcar_du_write()
|
D | rcar_du_vsp.c | 53 struct rcar_du_device *rcdu = crtc->dev; in rcar_du_vsp_enable() local 80 if (rcdu->info->gen >= 3) in rcar_du_vsp_enable() 189 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_map_fb() local 197 ret = dma_get_sgtable(rcdu->dev, sgt, gem->vaddr, gem->paddr, in rcar_du_vsp_map_fb() 370 struct rcar_du_device *rcdu = vsp->dev; in rcar_du_vsp_init() local 384 ret = drmm_add_action_or_reset(&rcdu->ddev, rcar_du_vsp_cleanup, vsp); in rcar_du_vsp_init() 396 num_planes = rcdu->info->gen >= 3 ? 5 : 4; in rcar_du_vsp_init() 411 ret = drm_universal_plane_init(&rcdu->ddev, &plane->plane, 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_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_encoder.h | 25 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_group.h | 63 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu);
|