/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_kms.c | 584 dev_dbg(rcdu->dev, in rcar_du_encoders_init_one() 593 dev_warn(rcdu->dev, in rcar_du_encoders_init_one() 634 dev_warn(rcdu->dev, in rcar_du_encoders_init() 664 rcdu->props.colorkey = in rcar_du_properties_init() 731 rcdu->crtcs[i].vsp = &rcdu->vsps[j]; in rcar_du_vsps_init() 743 vsp->dev = rcdu; in rcar_du_vsps_init() 770 dev_err(rcdu->dev, in rcar_du_cmm_init() 783 dev_err(rcdu->dev, in rcar_du_cmm_init() 821 dev_err(rcdu->dev, in rcar_du_cmm_init() 881 rcdu->num_crtcs = hweight8(rcdu->info->channels_mask); in rcar_du_modeset_init() [all …]
|
H A D | rcar_du_group.c | 61 if (rcdu->info->gen < 3) { in rcar_du_group_setup_defr8() 108 rcrtc = rcdu->crtcs; in rcar_du_group_setup_didsr() 145 if (rcdu->info->gen < 3) { in rcar_du_group_setup() 152 if (rcdu->info->gen < 4) in rcar_du_group_setup() 155 if (rcdu->info->gen < 4) { in rcar_du_group_setup() 166 if (rcdu->info->gen >= 2) { in rcar_du_group_setup() 167 if (rcdu->info->gen < 4) in rcar_du_group_setup() 172 if (rcdu->info->gen >= 3) in rcar_du_group_setup() 289 if (rcdu->info->gen < 2) in rcar_du_set_dpad0_vsp1_routing() 299 index = rcdu->info->gen < 3 ? 0 : DIV_ROUND_UP(rcdu->num_crtcs, 2) - 1; in rcar_du_set_dpad0_vsp1_routing() [all …]
|
H A D | rcar_du_crtc.c | 35 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read() local 42 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write() local 49 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr() local 390 if (rcdu->info->gen < 3) { in rcar_du_crtc_update_planes() 913 if (rcdu->info->gen < 3) in rcar_du_crtc_crc_init() 1212 if (rcdu->info->gen < 3) { in rcar_du_crtc_irq() 1280 rcrtc->dev = rcdu; in rcar_du_crtc_create() 1295 rcdu->info->gen <= 2 ? in rcar_du_crtc_create() 1302 if (rcdu->cmms[swindex]) { in rcar_du_crtc_create() 1303 rcrtc->cmm = rcdu->cmms[swindex]; in rcar_du_crtc_create() [all …]
|
H A D | rcar_du_encoder.c | 48 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()
|
H A D | rcar_du_drv.c | 645 struct drm_device *ddev = &rcdu->ddev; in rcar_du_remove() 662 struct rcar_du_device *rcdu; in rcar_du_probe() local 672 if (IS_ERR(rcdu)) in rcar_du_probe() 673 return PTR_ERR(rcdu); in rcar_du_probe() 675 rcdu->dev = &pdev->dev; in rcar_du_probe() 677 rcdu->info = of_device_get_match_data(rcdu->dev); in rcar_du_probe() 679 platform_set_drvdata(pdev, rcdu); in rcar_du_probe() 683 if (IS_ERR(rcdu->mmio)) in rcar_du_probe() 684 return PTR_ERR(rcdu->mmio); in rcar_du_probe() 697 ret = rcar_du_modeset_init(rcdu); in rcar_du_probe() [all …]
|
H A D | rcar_du_drv.h | 128 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()
|
H A D | rcar_du_plane.c | 225 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes() 235 dev_dbg(rcdu->dev, in rcar_du_atomic_check_planes() 541 if (rcdu->info->gen < 3) in rcar_du_plane_setup_format() 552 if (rcdu->info->gen < 3) { in rcar_du_plane_setup_format() 571 if (rcdu->info->gen >= 3) in __rcar_du_plane_setup() 579 if (rcdu->vspd1_sink != vspd1_sink) { in __rcar_du_plane_setup() 580 rcdu->vspd1_sink = vspd1_sink; in __rcar_du_plane_setup() 581 rcar_du_set_dpad0_vsp1_routing(rcdu); in __rcar_du_plane_setup() 737 if (property == rcdu->props.colorkey) in rcar_du_plane_atomic_set_property() 753 if (property == rcdu->props.colorkey) in rcar_du_plane_atomic_get_property() [all …]
|
H A 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
|
H A D | rcar_du_vsp.c | 55 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()
|
H A D | rcar_du_encoder.h | 25 int rcar_du_encoder_init(struct rcar_du_device *rcdu,
|
H A D | rcar_du_kms.h | 35 int rcar_du_modeset_init(struct rcar_du_device *rcdu);
|
H A D | rcar_du_group.h | 63 int rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu);
|
H A D | rcar_du_writeback.c | 200 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()
|