Lines Matching refs:sstate

45 static void shmob_drm_plane_compute_base(struct shmob_drm_plane_state *sstate)  in shmob_drm_plane_compute_base()  argument
47 struct drm_framebuffer *fb = sstate->base.fb; in shmob_drm_plane_compute_base()
48 unsigned int x = sstate->base.src_x >> 16; in shmob_drm_plane_compute_base()
49 unsigned int y = sstate->base.src_y >> 16; in shmob_drm_plane_compute_base()
53 bpp = shmob_drm_format_is_yuv(sstate->format) ? 8 : sstate->format->bpp; in shmob_drm_plane_compute_base()
55 sstate->dma[0] = gem->dma_addr + fb->offsets[0] in shmob_drm_plane_compute_base()
58 if (shmob_drm_format_is_yuv(sstate->format)) { in shmob_drm_plane_compute_base()
59 bpp = sstate->format->bpp - 8; in shmob_drm_plane_compute_base()
61 sstate->dma[1] = gem->dma_addr + fb->offsets[1] in shmob_drm_plane_compute_base()
70 struct shmob_drm_plane_state *sstate = to_shmob_plane_state(state); in shmob_drm_primary_plane_setup() local
75 lcdc_write(sdev, LDDFR, sstate->format->lddfr | LDDFR_CF1); in shmob_drm_primary_plane_setup()
79 lcdc_write(sdev, LDDDSR, sstate->format->ldddsr); in shmob_drm_primary_plane_setup()
81 lcdc_write_mirror(sdev, LDSA1R, sstate->dma[0]); in shmob_drm_primary_plane_setup()
82 if (shmob_drm_format_is_yuv(sstate->format)) in shmob_drm_primary_plane_setup()
83 lcdc_write_mirror(sdev, LDSA2R, sstate->dma[1]); in shmob_drm_primary_plane_setup()
91 struct shmob_drm_plane_state *sstate = to_shmob_plane_state(state); in shmob_drm_overlay_plane_setup() local
98 sstate->format->ldbbsifr; in shmob_drm_overlay_plane_setup()
128 lcdc_write(sdev, LDBnBSAYR(splane->index), sstate->dma[0]); in shmob_drm_overlay_plane_setup()
129 if (shmob_drm_format_is_yuv(sstate->format)) in shmob_drm_overlay_plane_setup()
130 lcdc_write(sdev, LDBnBSACR(splane->index), sstate->dma[1]); in shmob_drm_overlay_plane_setup()
149 struct shmob_drm_plane_state *sstate = to_shmob_plane_state(new_plane_state); in shmob_drm_plane_atomic_check() local
161 sstate->format = NULL; in shmob_drm_plane_atomic_check()
177 sstate->format = NULL; in shmob_drm_plane_atomic_check()
181 sstate->format = shmob_drm_format_info(new_plane_state->fb->format->format); in shmob_drm_plane_atomic_check()
182 if (!sstate->format) { in shmob_drm_plane_atomic_check()
189 shmob_drm_plane_compute_base(sstate); in shmob_drm_plane_atomic_check()