Lines Matching refs:rcdu

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()
67 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_dsysr_clr_set() local
70 rcar_du_write(rcdu, rcrtc->mmio_offset + DSYSR, rcrtc->dsysr); in rcar_du_crtc_dsysr_clr_set()
216 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set_display_timing() local
221 if (rcdu->info->dpll_mask & (1 << rcrtc->index)) { in rcar_du_crtc_set_display_timing()
264 } else if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index)) { in rcar_du_crtc_set_display_timing()
337 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_update_planes() local
383 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) { in rcar_du_crtc_update_planes()
384 if (rcdu->info->gen < 3) { in rcar_du_crtc_update_planes()
467 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_wait_page_flip() local
474 dev_warn(rcdu->dev, "page flip timeout\n"); in rcar_du_crtc_wait_page_flip()
607 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_disable_planes() local
629 dev_warn(rcdu->dev, "vertical blanking timeout\n"); in rcar_du_crtc_disable_planes()
717 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_atomic_enable() local
728 if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index) && in rcar_du_crtc_atomic_enable()
731 rcdu->encoders[RCAR_DU_OUTPUT_LVDS0 + rcrtc->index]; in rcar_du_crtc_atomic_enable()
755 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_atomic_disable() local
760 if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index) && in rcar_du_crtc_atomic_disable()
763 rcdu->encoders[RCAR_DU_OUTPUT_LVDS0 + rcrtc->index]; in rcar_du_crtc_atomic_disable()
838 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_mode_valid() local
842 if (interlaced && !rcar_du_has(rcdu, RCAR_DU_FEATURE_INTERLACED)) in rcar_du_crtc_mode_valid()
870 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_crc_init() local
876 if (rcdu->info->gen < 3) in rcar_du_crtc_crc_init()
1152 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_irq() local
1176 if (rcdu->info->gen < 3) { in rcar_du_crtc_irq()
1198 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_crtc_create() local
1199 struct platform_device *pdev = to_platform_device(rcdu->dev); in rcar_du_crtc_create()
1200 struct rcar_du_crtc *rcrtc = &rcdu->crtcs[swindex]; in rcar_du_crtc_create()
1211 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_CRTC_IRQ_CLOCK)) { in rcar_du_crtc_create()
1218 rcrtc->clock = devm_clk_get(rcdu->dev, name); in rcar_du_crtc_create()
1220 dev_err(rcdu->dev, "no clock for DU channel %u\n", hwindex); in rcar_du_crtc_create()
1225 clk = devm_clk_get(rcdu->dev, clk_name); in rcar_du_crtc_create()
1230 } else if (rcdu->info->dpll_mask & BIT(hwindex)) { in rcar_du_crtc_create()
1236 dev_err(rcdu->dev, "can't get dclkin.%u: %d\n", hwindex, ret); in rcar_du_crtc_create()
1244 rcrtc->dev = rcdu; in rcar_du_crtc_create()
1250 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_crtc_create()
1255 ret = drm_crtc_init_with_planes(rcdu->ddev, crtc, primary, NULL, in rcar_du_crtc_create()
1256 rcdu->info->gen <= 2 ? in rcar_du_crtc_create()
1263 if (rcdu->cmms[swindex]) { in rcar_du_crtc_create()
1264 rcrtc->cmm = rcdu->cmms[swindex]; in rcar_du_crtc_create()
1274 if (rcar_du_has(rcdu, RCAR_DU_FEATURE_CRTC_IRQ_CLOCK)) { in rcar_du_crtc_create()
1284 dev_err(rcdu->dev, "no IRQ for CRTC %u\n", swindex); in rcar_du_crtc_create()
1288 ret = devm_request_irq(rcdu->dev, irq, rcar_du_crtc_irq, irqflags, in rcar_du_crtc_create()
1289 dev_name(rcdu->dev), rcrtc); in rcar_du_crtc_create()
1291 dev_err(rcdu->dev, in rcar_du_crtc_create()