Lines Matching refs:rgrp

321 static void rcar_du_plane_write(struct rcar_du_group *rgrp,  in rcar_du_plane_write()  argument
324 rcar_du_write(rgrp->dev, rgrp->mmio_offset + index * PLANE_OFF + reg, in rcar_du_plane_write()
328 static void rcar_du_plane_setup_scanout(struct rcar_du_group *rgrp, in rcar_du_plane_setup_scanout() argument
365 rcar_du_plane_write(rgrp, index, PnMWR, in rcar_du_plane_setup_scanout()
382 rcar_du_plane_write(rgrp, index, PnSPXR, src_x); in rcar_du_plane_setup_scanout()
383 rcar_du_plane_write(rgrp, index, PnSPYR, src_y * in rcar_du_plane_setup_scanout()
386 rcar_du_plane_write(rgrp, index, PnDSA0R, dma[0]); in rcar_du_plane_setup_scanout()
391 rcar_du_plane_write(rgrp, index, PnMWR, pitch); in rcar_du_plane_setup_scanout()
393 rcar_du_plane_write(rgrp, index, PnSPXR, src_x); in rcar_du_plane_setup_scanout()
394 rcar_du_plane_write(rgrp, index, PnSPYR, src_y * in rcar_du_plane_setup_scanout()
397 rcar_du_plane_write(rgrp, index, PnDSA0R, dma[1]); in rcar_du_plane_setup_scanout()
401 static void rcar_du_plane_setup_mode(struct rcar_du_group *rgrp, in rcar_du_plane_setup_mode() argument
419 rcar_du_plane_write(rgrp, index, PnALPHAR, PnALPHAR_ABIT_0); in rcar_du_plane_setup_mode()
421 rcar_du_plane_write(rgrp, index, PnALPHAR, in rcar_du_plane_setup_mode()
438 rcar_du_plane_write(rgrp, index, PnMR, pnmr); in rcar_du_plane_setup_mode()
445 rcar_du_plane_write(rgrp, index, PnTC2R, colorkey); in rcar_du_plane_setup_mode()
453 rcar_du_plane_write(rgrp, index, PnTC2R, colorkey); in rcar_du_plane_setup_mode()
458 rcar_du_plane_write(rgrp, index, PnTC3R, in rcar_du_plane_setup_mode()
464 static void rcar_du_plane_setup_format_gen2(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format_gen2() argument
478 rcar_du_plane_setup_mode(rgrp, index, state); in rcar_du_plane_setup_format_gen2()
495 rcar_du_plane_write(rgrp, index, PnDDCR2, ddcr2); in rcar_du_plane_setup_format_gen2()
501 rcar_du_plane_write(rgrp, index, PnDDCR4, ddcr4); in rcar_du_plane_setup_format_gen2()
504 static void rcar_du_plane_setup_format_gen3(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format_gen3() argument
508 rcar_du_plane_write(rgrp, index, PnMR, in rcar_du_plane_setup_format_gen3()
511 rcar_du_plane_write(rgrp, index, PnDDCR4, in rcar_du_plane_setup_format_gen3()
515 static void rcar_du_plane_setup_format(struct rcar_du_group *rgrp, in rcar_du_plane_setup_format() argument
519 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_plane_setup_format()
523 rcar_du_plane_setup_format_gen2(rgrp, index, state); in rcar_du_plane_setup_format()
525 rcar_du_plane_setup_format_gen3(rgrp, index, state); in rcar_du_plane_setup_format()
528 rcar_du_plane_write(rgrp, index, PnDSXR, drm_rect_width(dst)); in rcar_du_plane_setup_format()
529 rcar_du_plane_write(rgrp, index, PnDSYR, drm_rect_height(dst)); in rcar_du_plane_setup_format()
530 rcar_du_plane_write(rgrp, index, PnDPXR, dst->x1); in rcar_du_plane_setup_format()
531 rcar_du_plane_write(rgrp, index, PnDPYR, dst->y1); in rcar_du_plane_setup_format()
535 rcar_du_plane_write(rgrp, index, PnWASPR, 0); in rcar_du_plane_setup_format()
536 rcar_du_plane_write(rgrp, index, PnWAMWR, 4095); in rcar_du_plane_setup_format()
537 rcar_du_plane_write(rgrp, index, PnBTR, 0); in rcar_du_plane_setup_format()
538 rcar_du_plane_write(rgrp, index, PnMLR, 0); in rcar_du_plane_setup_format()
542 void __rcar_du_plane_setup(struct rcar_du_group *rgrp, in __rcar_du_plane_setup() argument
545 struct rcar_du_device *rcdu = rgrp->dev; in __rcar_du_plane_setup()
547 rcar_du_plane_setup_format(rgrp, state->hwindex, state); in __rcar_du_plane_setup()
549 rcar_du_plane_setup_format(rgrp, (state->hwindex + 1) % 8, in __rcar_du_plane_setup()
553 rcar_du_plane_setup_scanout(rgrp, state); in __rcar_du_plane_setup()
556 unsigned int vspd1_sink = rgrp->index ? 2 : 0; in __rcar_du_plane_setup()
753 int rcar_du_planes_init(struct rcar_du_group *rgrp) in rcar_du_planes_init() argument
755 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_planes_init()
764 rgrp->num_planes = rgrp->num_crtcs + 7; in rcar_du_planes_init()
766 crtcs = ((1 << rcdu->num_crtcs) - 1) & (3 << (2 * rgrp->index)); in rcar_du_planes_init()
768 for (i = 0; i < rgrp->num_planes; ++i) { in rcar_du_planes_init()
769 enum drm_plane_type type = i < rgrp->num_crtcs in rcar_du_planes_init()
772 struct rcar_du_plane *plane = &rgrp->planes[i]; in rcar_du_planes_init()
774 plane->group = rgrp; in rcar_du_planes_init()