Lines Matching refs:rgrp

322 static void rcar_du_plane_write(struct rcar_du_group *rgrp,  in rcar_du_plane_write()  argument
325 rcar_du_write(rgrp->dev, rgrp->mmio_offset + index * PLANE_OFF + reg, in rcar_du_plane_write()
329 static void rcar_du_plane_setup_scanout(struct rcar_du_group *rgrp, in rcar_du_plane_setup_scanout() argument
366 rcar_du_plane_write(rgrp, index, PnMWR, in rcar_du_plane_setup_scanout()
383 rcar_du_plane_write(rgrp, index, PnSPXR, src_x); in rcar_du_plane_setup_scanout()
384 rcar_du_plane_write(rgrp, index, PnSPYR, src_y * in rcar_du_plane_setup_scanout()
387 rcar_du_plane_write(rgrp, index, PnDSA0R, dma[0]); in rcar_du_plane_setup_scanout()
392 rcar_du_plane_write(rgrp, index, PnMWR, pitch); in rcar_du_plane_setup_scanout()
394 rcar_du_plane_write(rgrp, index, PnSPXR, src_x); in rcar_du_plane_setup_scanout()
395 rcar_du_plane_write(rgrp, index, PnSPYR, src_y * in rcar_du_plane_setup_scanout()
398 rcar_du_plane_write(rgrp, index, PnDSA0R, dma[1]); in rcar_du_plane_setup_scanout()
402 static void rcar_du_plane_setup_mode(struct rcar_du_group *rgrp, in rcar_du_plane_setup_mode() argument
420 rcar_du_plane_write(rgrp, index, PnALPHAR, PnALPHAR_ABIT_0); in rcar_du_plane_setup_mode()
422 rcar_du_plane_write(rgrp, index, PnALPHAR, in rcar_du_plane_setup_mode()
439 rcar_du_plane_write(rgrp, index, PnMR, pnmr); in rcar_du_plane_setup_mode()
446 rcar_du_plane_write(rgrp, index, PnTC2R, colorkey); in rcar_du_plane_setup_mode()
454 rcar_du_plane_write(rgrp, index, PnTC2R, colorkey); in rcar_du_plane_setup_mode()
459 rcar_du_plane_write(rgrp, index, PnTC3R, in rcar_du_plane_setup_mode()
465 static void rcar_du_plane_setup_format_gen2(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format_gen2() argument
479 rcar_du_plane_setup_mode(rgrp, index, state); in rcar_du_plane_setup_format_gen2()
496 rcar_du_plane_write(rgrp, index, PnDDCR2, ddcr2); in rcar_du_plane_setup_format_gen2()
502 rcar_du_plane_write(rgrp, index, PnDDCR4, ddcr4); in rcar_du_plane_setup_format_gen2()
505 static void rcar_du_plane_setup_format_gen3(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format_gen3() argument
509 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_plane_setup_format_gen3()
517 rcar_du_plane_write(rgrp, index, PnMR, pnmr); in rcar_du_plane_setup_format_gen3()
519 rcar_du_plane_write(rgrp, index, PnDDCR4, in rcar_du_plane_setup_format_gen3()
531 rcar_du_plane_write(rgrp, index, PnALPHAR, 0); in rcar_du_plane_setup_format_gen3()
534 static void rcar_du_plane_setup_format(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format() argument
538 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_plane_setup_format()
542 rcar_du_plane_setup_format_gen2(rgrp, index, state); in rcar_du_plane_setup_format()
544 rcar_du_plane_setup_format_gen3(rgrp, index, state); in rcar_du_plane_setup_format()
547 rcar_du_plane_write(rgrp, index, PnDSXR, drm_rect_width(dst)); in rcar_du_plane_setup_format()
548 rcar_du_plane_write(rgrp, index, PnDSYR, drm_rect_height(dst)); in rcar_du_plane_setup_format()
549 rcar_du_plane_write(rgrp, index, PnDPXR, dst->x1); in rcar_du_plane_setup_format()
550 rcar_du_plane_write(rgrp, index, PnDPYR, dst->y1); in rcar_du_plane_setup_format()
554 rcar_du_plane_write(rgrp, index, PnWASPR, 0); in rcar_du_plane_setup_format()
555 rcar_du_plane_write(rgrp, index, PnWAMWR, 4095); in rcar_du_plane_setup_format()
556 rcar_du_plane_write(rgrp, index, PnBTR, 0); in rcar_du_plane_setup_format()
557 rcar_du_plane_write(rgrp, index, PnMLR, 0); in rcar_du_plane_setup_format()
561 void __rcar_du_plane_setup(struct rcar_du_group *rgrp, in __rcar_du_plane_setup() argument
564 struct rcar_du_device *rcdu = rgrp->dev; in __rcar_du_plane_setup()
566 rcar_du_plane_setup_format(rgrp, state->hwindex, state); in __rcar_du_plane_setup()
568 rcar_du_plane_setup_format(rgrp, (state->hwindex + 1) % 8, in __rcar_du_plane_setup()
574 rcar_du_plane_setup_scanout(rgrp, state); in __rcar_du_plane_setup()
577 unsigned int vspd1_sink = rgrp->index ? 2 : 0; in __rcar_du_plane_setup()
587 rgrp->need_restart = true; in __rcar_du_plane_setup()
784 int rcar_du_planes_init(struct rcar_du_group *rgrp) in rcar_du_planes_init() argument
786 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_planes_init()
795 rgrp->num_planes = rgrp->num_crtcs + 7; in rcar_du_planes_init()
797 crtcs = ((1 << rcdu->num_crtcs) - 1) & (3 << (2 * rgrp->index)); in rcar_du_planes_init()
799 for (i = 0; i < rgrp->num_planes; ++i) { in rcar_du_planes_init()
800 enum drm_plane_type type = i < rgrp->num_crtcs in rcar_du_planes_init()
803 struct rcar_du_plane *plane = &rgrp->planes[i]; in rcar_du_planes_init()
805 plane->group = rgrp; in rcar_du_planes_init()