Home
last modified time | relevance | path

Searched refs:rgrp (Results 1 – 7 of 7) sorted by relevance

/drivers/gpu/drm/rcar-du/
Drcar_du_group.c37 u32 rcar_du_group_read(struct rcar_du_group *rgrp, u32 reg) in rcar_du_group_read() argument
39 return rcar_du_read(rgrp->dev, rgrp->mmio_offset + reg); in rcar_du_group_read()
42 void rcar_du_group_write(struct rcar_du_group *rgrp, u32 reg, u32 data) in rcar_du_group_write() argument
44 rcar_du_write(rgrp->dev, rgrp->mmio_offset + reg, data); in rcar_du_group_write()
47 static void rcar_du_group_setup_defr8(struct rcar_du_group *rgrp) in rcar_du_group_setup_defr8() argument
54 if (rgrp->dev->info->routes[RCAR_DU_OUTPUT_DPAD0].possible_crtcs > 1 && in rcar_du_group_setup_defr8()
55 rgrp->index == 0) in rcar_du_group_setup_defr8()
56 defr8 |= DEFR8_DRGBS_DU(rgrp->dev->dpad0_source); in rcar_du_group_setup_defr8()
58 rcar_du_group_write(rgrp, DEFR8, defr8); in rcar_du_group_setup_defr8()
61 static void rcar_du_group_setup(struct rcar_du_group *rgrp) in rcar_du_group_setup() argument
[all …]
Drcar_du_plane.c31 static u32 rcar_du_plane_read(struct rcar_du_group *rgrp, in rcar_du_plane_read() argument
34 return rcar_du_read(rgrp->dev, in rcar_du_plane_read()
35 rgrp->mmio_offset + index * PLANE_OFF + reg); in rcar_du_plane_read()
38 static void rcar_du_plane_write(struct rcar_du_group *rgrp, in rcar_du_plane_write() argument
41 rcar_du_write(rgrp->dev, rgrp->mmio_offset + index * PLANE_OFF + reg, in rcar_du_plane_write()
50 struct rcar_du_group *rgrp = plane->group; in rcar_du_plane_setup_fb() local
72 rcar_du_plane_write(rgrp, index, PnMWR, mwr); in rcar_du_plane_setup_fb()
86 rcar_du_plane_write(rgrp, index, PnSPXR, src_x); in rcar_du_plane_setup_fb()
87 rcar_du_plane_write(rgrp, index, PnSPYR, src_y * in rcar_du_plane_setup_fb()
91 rcar_du_plane_write(rgrp, index, PnDSA0R, gem->paddr + fb->offsets[0]); in rcar_du_plane_setup_fb()
[all …]
Drcar_du_group.h52 u32 rcar_du_group_read(struct rcar_du_group *rgrp, u32 reg);
53 void rcar_du_group_write(struct rcar_du_group *rgrp, u32 reg, u32 data);
55 int rcar_du_group_get(struct rcar_du_group *rgrp);
56 void rcar_du_group_put(struct rcar_du_group *rgrp);
57 void rcar_du_group_start_stop(struct rcar_du_group *rgrp, bool start);
58 void rcar_du_group_restart(struct rcar_du_group *rgrp);
59 int rcar_du_group_set_routing(struct rcar_du_group *rgrp);
Drcar_du_kms.c775 struct rcar_du_group *rgrp = &rcdu->groups[i]; in rcar_du_modeset_init() local
777 mutex_init(&rgrp->lock); in rcar_du_modeset_init()
779 rgrp->dev = rcdu; in rcar_du_modeset_init()
780 rgrp->mmio_offset = mmio_offsets[i]; in rcar_du_modeset_init()
781 rgrp->index = i; in rcar_du_modeset_init()
782 rgrp->num_crtcs = min(rcdu->num_crtcs - 2 * i, 2U); in rcar_du_modeset_init()
788 rgrp->dptsr_planes = rgrp->num_crtcs > 1 ? 0xf0 : 0; in rcar_du_modeset_init()
790 ret = rcar_du_planes_init(rgrp); in rcar_du_modeset_init()
797 struct rcar_du_group *rgrp = &rcdu->groups[i / 2]; in rcar_du_modeset_init() local
799 ret = rcar_du_crtc_create(rgrp, i); in rcar_du_modeset_init()
Drcar_du_crtc.c587 int rcar_du_crtc_create(struct rcar_du_group *rgrp, unsigned int index) in rcar_du_crtc_create() argument
593 struct rcar_du_device *rcdu = rgrp->dev; in rcar_du_crtc_create()
631 rcrtc->group = rgrp; in rcar_du_crtc_create()
637 &rgrp->planes[index % 2].plane, in rcar_du_crtc_create()
Drcar_du_plane.h67 int rcar_du_planes_init(struct rcar_du_group *rgrp);
Drcar_du_crtc.h76 int rcar_du_crtc_create(struct rcar_du_group *rgrp, unsigned int index);