Lines Matching refs:newstate
1264 struct drm_plane_state *newstate = drm_atomic_get_new_plane_state(state, in ltdc_plane_atomic_update() local
1266 struct drm_framebuffer *fb = newstate->fb; in ltdc_plane_atomic_update()
1268 u32 x0 = newstate->crtc_x; in ltdc_plane_atomic_update()
1269 u32 x1 = newstate->crtc_x + newstate->crtc_w - 1; in ltdc_plane_atomic_update()
1270 u32 y0 = newstate->crtc_y; in ltdc_plane_atomic_update()
1271 u32 y1 = newstate->crtc_y + newstate->crtc_h - 1; in ltdc_plane_atomic_update()
1277 if (!newstate->crtc || !fb) { in ltdc_plane_atomic_update()
1283 src_x = newstate->src_x >> 16; in ltdc_plane_atomic_update()
1284 src_y = newstate->src_y >> 16; in ltdc_plane_atomic_update()
1285 src_w = newstate->src_w >> 16; in ltdc_plane_atomic_update()
1286 src_h = newstate->src_h >> 16; in ltdc_plane_atomic_update()
1291 newstate->crtc_w, newstate->crtc_h, in ltdc_plane_atomic_update()
1292 newstate->crtc_x, newstate->crtc_y); in ltdc_plane_atomic_update()
1327 val = newstate->alpha >> 8; in ltdc_plane_atomic_update()
1341 val |= (newstate->normalized_zpos << 16); in ltdc_plane_atomic_update()
1350 paddr = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 0); in ltdc_plane_atomic_update()
1352 if (newstate->rotation & DRM_MODE_REFLECT_X) in ltdc_plane_atomic_update()
1355 if (newstate->rotation & DRM_MODE_REFLECT_Y) in ltdc_plane_atomic_update()
1365 if (newstate->rotation & DRM_MODE_REFLECT_Y) in ltdc_plane_atomic_update()
1384 paddr1 = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 1); in ltdc_plane_atomic_update()
1386 if (newstate->rotation & DRM_MODE_REFLECT_X) in ltdc_plane_atomic_update()
1389 if (newstate->rotation & DRM_MODE_REFLECT_Y) in ltdc_plane_atomic_update()
1396 paddr1 = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 1); in ltdc_plane_atomic_update()
1397 paddr2 = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 2); in ltdc_plane_atomic_update()
1399 if (newstate->rotation & DRM_MODE_REFLECT_X) { in ltdc_plane_atomic_update()
1404 if (newstate->rotation & DRM_MODE_REFLECT_Y) { in ltdc_plane_atomic_update()
1414 paddr1 = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 2); in ltdc_plane_atomic_update()
1415 paddr2 = (u32)drm_fb_dma_get_gem_addr(fb, newstate, 1); in ltdc_plane_atomic_update()
1417 if (newstate->rotation & DRM_MODE_REFLECT_X) { in ltdc_plane_atomic_update()
1422 if (newstate->rotation & DRM_MODE_REFLECT_Y) { in ltdc_plane_atomic_update()
1437 if (newstate->rotation & DRM_MODE_REFLECT_Y) in ltdc_plane_atomic_update()
1474 if (newstate->rotation & DRM_MODE_REFLECT_X) in ltdc_plane_atomic_update()