Lines Matching refs:plane_state

266 			       const struct intel_plane_state *plane_state)  in icl_plane_min_cdclk()  argument
268 unsigned int pixel_rate = intel_plane_pixel_rate(crtc_state, plane_state); in icl_plane_min_cdclk()
275 glk_plane_ratio(const struct intel_plane_state *plane_state, in glk_plane_ratio() argument
278 const struct drm_framebuffer *fb = plane_state->hw.fb; in glk_plane_ratio()
290 const struct intel_plane_state *plane_state) in glk_plane_min_cdclk() argument
292 unsigned int pixel_rate = intel_plane_pixel_rate(crtc_state, plane_state); in glk_plane_min_cdclk()
295 glk_plane_ratio(plane_state, &num, &den); in glk_plane_min_cdclk()
302 skl_plane_ratio(const struct intel_plane_state *plane_state, in skl_plane_ratio() argument
305 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_ratio()
317 const struct intel_plane_state *plane_state) in skl_plane_min_cdclk() argument
319 unsigned int pixel_rate = intel_plane_pixel_rate(crtc_state, plane_state); in skl_plane_min_cdclk()
322 skl_plane_ratio(plane_state, &num, &den); in skl_plane_min_cdclk()
598 const struct intel_plane_state *plane_state) in icl_program_input_csc() argument
642 const u16 *csc = input_csc_matrix[plane_state->hw.color_encoding]; in icl_program_input_csc()
686 static u32 skl_plane_stride(const struct intel_plane_state *plane_state, in skl_plane_stride() argument
689 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_stride()
690 unsigned int rotation = plane_state->hw.rotation; in skl_plane_stride()
691 u32 stride = plane_state->view.color_plane[color_plane].scanout_stride; in skl_plane_stride()
889 static u32 skl_plane_ctl_alpha(const struct intel_plane_state *plane_state) in skl_plane_ctl_alpha() argument
891 if (!plane_state->hw.fb->format->has_alpha) in skl_plane_ctl_alpha()
894 switch (plane_state->hw.pixel_blend_mode) { in skl_plane_ctl_alpha()
902 MISSING_CASE(plane_state->hw.pixel_blend_mode); in skl_plane_ctl_alpha()
907 static u32 glk_plane_color_ctl_alpha(const struct intel_plane_state *plane_state) in glk_plane_color_ctl_alpha() argument
909 if (!plane_state->hw.fb->format->has_alpha) in glk_plane_color_ctl_alpha()
912 switch (plane_state->hw.pixel_blend_mode) { in glk_plane_color_ctl_alpha()
920 MISSING_CASE(plane_state->hw.pixel_blend_mode); in glk_plane_color_ctl_alpha()
1014 static u32 adlp_plane_ctl_arb_slots(const struct intel_plane_state *plane_state) in adlp_plane_ctl_arb_slots() argument
1016 const struct drm_framebuffer *fb = plane_state->hw.fb; in adlp_plane_ctl_arb_slots()
1055 const struct intel_plane_state *plane_state) in skl_plane_ctl() argument
1058 to_i915(plane_state->uapi.plane->dev); in skl_plane_ctl()
1059 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_ctl()
1060 unsigned int rotation = plane_state->hw.rotation; in skl_plane_ctl()
1061 const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; in skl_plane_ctl()
1067 plane_ctl |= skl_plane_ctl_alpha(plane_state); in skl_plane_ctl()
1070 if (plane_state->hw.color_encoding == DRM_COLOR_YCBCR_BT709) in skl_plane_ctl()
1073 if (plane_state->hw.color_range == DRM_COLOR_YCBCR_FULL_RANGE) in skl_plane_ctl()
1092 plane_ctl |= adlp_plane_ctl_arb_slots(plane_state); in skl_plane_ctl()
1115 const struct intel_plane_state *plane_state) in glk_plane_color_ctl() argument
1118 to_i915(plane_state->uapi.plane->dev); in glk_plane_color_ctl()
1119 const struct drm_framebuffer *fb = plane_state->hw.fb; in glk_plane_color_ctl()
1120 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in glk_plane_color_ctl()
1124 plane_color_ctl |= glk_plane_color_ctl_alpha(plane_state); in glk_plane_color_ctl()
1127 switch (plane_state->hw.color_encoding) { in glk_plane_color_ctl()
1139 if (plane_state->hw.color_range == DRM_COLOR_YCBCR_FULL_RANGE) in glk_plane_color_ctl()
1143 if (plane_state->hw.color_range == DRM_COLOR_YCBCR_FULL_RANGE) in glk_plane_color_ctl()
1147 if (plane_state->force_black) in glk_plane_color_ctl()
1153 static u32 skl_surf_address(const struct intel_plane_state *plane_state, in skl_surf_address() argument
1156 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in skl_surf_address()
1157 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_surf_address()
1158 u32 offset = plane_state->view.color_plane[color_plane].offset; in skl_surf_address()
1165 drm_WARN_ON(&i915->drm, plane_state->dpt_vma && in skl_surf_address()
1166 intel_dpt_offset(plane_state->dpt_vma)); in skl_surf_address()
1175 static u32 skl_plane_surf(const struct intel_plane_state *plane_state, in skl_plane_surf() argument
1180 plane_surf = intel_plane_ggtt_offset(plane_state) + in skl_plane_surf()
1181 skl_surf_address(plane_state, color_plane); in skl_plane_surf()
1183 if (plane_state->decrypt) in skl_plane_surf()
1189 static u32 skl_plane_aux_dist(const struct intel_plane_state *plane_state, in skl_plane_aux_dist() argument
1192 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in skl_plane_aux_dist()
1193 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_aux_dist()
1200 aux_dist = skl_surf_address(plane_state, aux_plane) - in skl_plane_aux_dist()
1201 skl_surf_address(plane_state, color_plane); in skl_plane_aux_dist()
1204 aux_dist |= PLANE_AUX_STRIDE(skl_plane_stride(plane_state, aux_plane)); in skl_plane_aux_dist()
1209 static u32 skl_plane_keyval(const struct intel_plane_state *plane_state) in skl_plane_keyval() argument
1211 const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; in skl_plane_keyval()
1216 static u32 skl_plane_keymax(const struct intel_plane_state *plane_state) in skl_plane_keymax() argument
1218 const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; in skl_plane_keymax()
1219 u8 alpha = plane_state->hw.alpha >> 8; in skl_plane_keymax()
1224 static u32 skl_plane_keymsk(const struct intel_plane_state *plane_state) in skl_plane_keymsk() argument
1226 const struct drm_intel_sprite_colorkey *key = &plane_state->ckey; in skl_plane_keymsk()
1227 u8 alpha = plane_state->hw.alpha >> 8; in skl_plane_keymsk()
1261 static int icl_plane_color_plane(const struct intel_plane_state *plane_state) in icl_plane_color_plane() argument
1264 if (plane_state->planar_linked_plane && !plane_state->planar_slave) in icl_plane_color_plane()
1273 const struct intel_plane_state *plane_state) in skl_plane_update_noarm() argument
1278 u32 stride = skl_plane_stride(plane_state, 0); in skl_plane_update_noarm()
1279 int crtc_x = plane_state->uapi.dst.x1; in skl_plane_update_noarm()
1280 int crtc_y = plane_state->uapi.dst.y1; in skl_plane_update_noarm()
1281 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_update_noarm()
1282 u32 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in skl_plane_update_noarm()
1285 if (plane_state->scaler_id >= 0) { in skl_plane_update_noarm()
1303 const struct intel_plane_state *plane_state) in skl_plane_update_arm() argument
1308 u32 x = plane_state->view.color_plane[0].x; in skl_plane_update_arm()
1309 u32 y = plane_state->view.color_plane[0].y; in skl_plane_update_arm()
1312 plane_ctl = plane_state->ctl | in skl_plane_update_arm()
1321 plane_color_ctl = plane_state->color_ctl | in skl_plane_update_arm()
1324 intel_de_write_fw(dev_priv, PLANE_KEYVAL(pipe, plane_id), skl_plane_keyval(plane_state)); in skl_plane_update_arm()
1325 intel_de_write_fw(dev_priv, PLANE_KEYMSK(pipe, plane_id), skl_plane_keymsk(plane_state)); in skl_plane_update_arm()
1326 intel_de_write_fw(dev_priv, PLANE_KEYMAX(pipe, plane_id), skl_plane_keymax(plane_state)); in skl_plane_update_arm()
1332 skl_plane_aux_dist(plane_state, 0)); in skl_plane_update_arm()
1335 PLANE_OFFSET_Y(plane_state->view.color_plane[1].y) | in skl_plane_update_arm()
1336 PLANE_OFFSET_X(plane_state->view.color_plane[1].x)); in skl_plane_update_arm()
1348 if (plane_state->scaler_id >= 0) in skl_plane_update_arm()
1349 skl_program_plane_scaler(plane, crtc_state, plane_state); in skl_plane_update_arm()
1358 skl_plane_surf(plane_state, 0)); in skl_plane_update_arm()
1363 const struct intel_plane_state *plane_state, in icl_plane_update_sel_fetch_noarm() argument
1375 clip = &plane_state->psr2_sel_fetch_area; in icl_plane_update_sel_fetch_noarm()
1378 y = max(0, plane_state->uapi.dst.y1 - crtc_state->psr2_su_area.y1); in icl_plane_update_sel_fetch_noarm()
1380 y = (clip->y1 + plane_state->uapi.dst.y1); in icl_plane_update_sel_fetch_noarm()
1382 val |= plane_state->uapi.dst.x1; in icl_plane_update_sel_fetch_noarm()
1385 x = plane_state->view.color_plane[color_plane].x; in icl_plane_update_sel_fetch_noarm()
1392 y = plane_state->view.color_plane[color_plane].y + clip->y1; in icl_plane_update_sel_fetch_noarm()
1394 y = plane_state->view.color_plane[color_plane].y + clip->y1 / 2; in icl_plane_update_sel_fetch_noarm()
1403 val |= (drm_rect_width(&plane_state->uapi.src) >> 16) - 1; in icl_plane_update_sel_fetch_noarm()
1410 const struct intel_plane_state *plane_state) in icl_plane_update_noarm() argument
1415 int color_plane = icl_plane_color_plane(plane_state); in icl_plane_update_noarm()
1416 u32 stride = skl_plane_stride(plane_state, color_plane); in icl_plane_update_noarm()
1417 const struct drm_framebuffer *fb = plane_state->hw.fb; in icl_plane_update_noarm()
1418 int crtc_x = plane_state->uapi.dst.x1; in icl_plane_update_noarm()
1419 int crtc_y = plane_state->uapi.dst.y1; in icl_plane_update_noarm()
1420 int x = plane_state->view.color_plane[color_plane].x; in icl_plane_update_noarm()
1421 int y = plane_state->view.color_plane[color_plane].y; in icl_plane_update_noarm()
1422 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in icl_plane_update_noarm()
1423 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in icl_plane_update_noarm()
1426 plane_color_ctl = plane_state->color_ctl | in icl_plane_update_noarm()
1430 if (plane_state->scaler_id >= 0) { in icl_plane_update_noarm()
1442 intel_de_write_fw(dev_priv, PLANE_KEYVAL(pipe, plane_id), skl_plane_keyval(plane_state)); in icl_plane_update_noarm()
1443 intel_de_write_fw(dev_priv, PLANE_KEYMSK(pipe, plane_id), skl_plane_keymsk(plane_state)); in icl_plane_update_noarm()
1444 intel_de_write_fw(dev_priv, PLANE_KEYMAX(pipe, plane_id), skl_plane_keymax(plane_state)); in icl_plane_update_noarm()
1451 lower_32_bits(plane_state->ccval)); in icl_plane_update_noarm()
1453 upper_32_bits(plane_state->ccval)); in icl_plane_update_noarm()
1459 skl_plane_aux_dist(plane_state, color_plane)); in icl_plane_update_noarm()
1463 plane_state->cus_ctl); in icl_plane_update_noarm()
1468 icl_program_input_csc(plane, crtc_state, plane_state); in icl_plane_update_noarm()
1476 if (plane_state->force_black) in icl_plane_update_noarm()
1479 icl_plane_update_sel_fetch_noarm(plane, crtc_state, plane_state, color_plane); in icl_plane_update_noarm()
1484 const struct intel_plane_state *plane_state) in icl_plane_update_sel_fetch_arm() argument
1492 if (drm_rect_height(&plane_state->psr2_sel_fetch_area) > 0) in icl_plane_update_sel_fetch_arm()
1502 const struct intel_plane_state *plane_state) in icl_plane_update_arm() argument
1507 int color_plane = icl_plane_color_plane(plane_state); in icl_plane_update_arm()
1510 plane_ctl = plane_state->ctl | in icl_plane_update_arm()
1520 if (plane_state->scaler_id >= 0) in icl_plane_update_arm()
1521 skl_program_plane_scaler(plane, crtc_state, plane_state); in icl_plane_update_arm()
1523 icl_plane_update_sel_fetch_arm(plane, crtc_state, plane_state); in icl_plane_update_arm()
1532 skl_plane_surf(plane_state, color_plane)); in icl_plane_update_arm()
1538 const struct intel_plane_state *plane_state, in skl_plane_async_flip() argument
1544 u32 plane_ctl = plane_state->ctl; in skl_plane_async_flip()
1553 skl_plane_surf(plane_state, 0)); in skl_plane_async_flip()
1569 const struct intel_plane_state *plane_state) in skl_plane_check_fb() argument
1571 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_plane_check_fb()
1573 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_check_fb()
1574 unsigned int rotation = plane_state->hw.rotation; in skl_plane_check_fb()
1641 plane_state->ckey.flags & I915_SET_COLORKEY_SOURCE && in skl_plane_check_fb()
1652 const struct intel_plane_state *plane_state) in skl_plane_check_dst_coordinates() argument
1655 to_i915(plane_state->uapi.plane->dev); in skl_plane_check_dst_coordinates()
1656 int crtc_x = plane_state->uapi.dst.x1; in skl_plane_check_dst_coordinates()
1657 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_plane_check_dst_coordinates()
1682 static int skl_plane_check_nv12_rotation(const struct intel_plane_state *plane_state) in skl_plane_check_nv12_rotation() argument
1684 struct drm_i915_private *i915 = to_i915(plane_state->uapi.plane->dev); in skl_plane_check_nv12_rotation()
1685 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_check_nv12_rotation()
1686 unsigned int rotation = plane_state->hw.rotation; in skl_plane_check_nv12_rotation()
1687 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_check_nv12_rotation()
1751 skl_check_main_ccs_coordinates(struct intel_plane_state *plane_state, in skl_check_main_ccs_coordinates() argument
1755 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_check_main_ccs_coordinates()
1756 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_check_main_ccs_coordinates()
1757 int aux_x = plane_state->view.color_plane[ccs_plane].x; in skl_check_main_ccs_coordinates()
1758 int aux_y = plane_state->view.color_plane[ccs_plane].y; in skl_check_main_ccs_coordinates()
1759 u32 aux_offset = plane_state->view.color_plane[ccs_plane].offset; in skl_check_main_ccs_coordinates()
1777 plane_state, in skl_check_main_ccs_coordinates()
1788 plane_state->view.color_plane[ccs_plane].offset = aux_offset; in skl_check_main_ccs_coordinates()
1789 plane_state->view.color_plane[ccs_plane].x = aux_x; in skl_check_main_ccs_coordinates()
1790 plane_state->view.color_plane[ccs_plane].y = aux_y; in skl_check_main_ccs_coordinates()
1796 int skl_calc_main_surface_offset(const struct intel_plane_state *plane_state, in skl_calc_main_surface_offset() argument
1799 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_calc_main_surface_offset()
1801 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_calc_main_surface_offset()
1803 u32 aux_offset = plane_state->view.color_plane[aux_plane].offset; in skl_calc_main_surface_offset()
1805 int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_calc_main_surface_offset()
1807 intel_add_fb_offsets(x, y, plane_state, 0); in skl_calc_main_surface_offset()
1808 *offset = intel_plane_compute_aligned_offset(x, y, plane_state, 0); in skl_calc_main_surface_offset()
1818 *offset = intel_plane_adjust_aligned_offset(x, y, plane_state, 0, in skl_calc_main_surface_offset()
1831 while ((*x + w) * cpp > plane_state->view.color_plane[0].mapping_stride) { in skl_calc_main_surface_offset()
1838 *offset = intel_plane_adjust_aligned_offset(x, y, plane_state, 0, in skl_calc_main_surface_offset()
1847 static int skl_check_main_surface(struct intel_plane_state *plane_state) in skl_check_main_surface() argument
1849 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_check_main_surface()
1851 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_check_main_surface()
1852 unsigned int rotation = plane_state->hw.rotation; in skl_check_main_surface()
1853 int x = plane_state->uapi.src.x1 >> 16; in skl_check_main_surface()
1854 int y = plane_state->uapi.src.y1 >> 16; in skl_check_main_surface()
1855 int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
1856 int h = drm_rect_height(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
1872 ret = skl_calc_main_surface_offset(plane_state, &x, &y, &offset); in skl_check_main_surface()
1882 while (!skl_check_main_ccs_coordinates(plane_state, x, y, in skl_check_main_surface()
1887 offset = intel_plane_adjust_aligned_offset(&x, &y, plane_state, 0, in skl_check_main_surface()
1891 if (x != plane_state->view.color_plane[aux_plane].x || in skl_check_main_surface()
1892 y != plane_state->view.color_plane[aux_plane].y) { in skl_check_main_surface()
1904 plane_state->view.color_plane[0].offset = offset; in skl_check_main_surface()
1905 plane_state->view.color_plane[0].x = x; in skl_check_main_surface()
1906 plane_state->view.color_plane[0].y = y; in skl_check_main_surface()
1912 drm_rect_translate_to(&plane_state->uapi.src, in skl_check_main_surface()
1918 static int skl_check_nv12_aux_surface(struct intel_plane_state *plane_state) in skl_check_nv12_aux_surface() argument
1920 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_check_nv12_aux_surface()
1922 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_check_nv12_aux_surface()
1923 unsigned int rotation = plane_state->hw.rotation; in skl_check_nv12_aux_surface()
1929 int x = plane_state->uapi.src.x1 >> 17; in skl_check_nv12_aux_surface()
1930 int y = plane_state->uapi.src.y1 >> 17; in skl_check_nv12_aux_surface()
1931 int w = drm_rect_width(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
1932 int h = drm_rect_height(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
1943 intel_add_fb_offsets(&x, &y, plane_state, uv_plane); in skl_check_nv12_aux_surface()
1945 plane_state, uv_plane); in skl_check_nv12_aux_surface()
1948 u32 aux_offset = plane_state->view.color_plane[ccs_plane].offset; in skl_check_nv12_aux_surface()
1953 plane_state, in skl_check_nv12_aux_surface()
1958 while (!skl_check_main_ccs_coordinates(plane_state, x, y, in skl_check_nv12_aux_surface()
1964 plane_state, in skl_check_nv12_aux_surface()
1969 if (x != plane_state->view.color_plane[ccs_plane].x || in skl_check_nv12_aux_surface()
1970 y != plane_state->view.color_plane[ccs_plane].y) { in skl_check_nv12_aux_surface()
1982 plane_state->view.color_plane[uv_plane].offset = offset; in skl_check_nv12_aux_surface()
1983 plane_state->view.color_plane[uv_plane].x = x; in skl_check_nv12_aux_surface()
1984 plane_state->view.color_plane[uv_plane].y = y; in skl_check_nv12_aux_surface()
1989 static int skl_check_ccs_aux_surface(struct intel_plane_state *plane_state) in skl_check_ccs_aux_surface() argument
1991 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_check_ccs_aux_surface()
1992 int src_x = plane_state->uapi.src.x1 >> 16; in skl_check_ccs_aux_surface()
1993 int src_y = plane_state->uapi.src.y1 >> 16; in skl_check_ccs_aux_surface()
2014 intel_add_fb_offsets(&x, &y, plane_state, ccs_plane); in skl_check_ccs_aux_surface()
2017 plane_state, in skl_check_ccs_aux_surface()
2020 plane_state->view.color_plane[ccs_plane].offset = offset; in skl_check_ccs_aux_surface()
2021 plane_state->view.color_plane[ccs_plane].x = (x * hsub + src_x % hsub) / main_hsub; in skl_check_ccs_aux_surface()
2022 plane_state->view.color_plane[ccs_plane].y = (y * vsub + src_y % vsub) / main_vsub; in skl_check_ccs_aux_surface()
2028 static int skl_check_plane_surface(struct intel_plane_state *plane_state) in skl_check_plane_surface() argument
2030 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_check_plane_surface()
2033 ret = intel_plane_compute_gtt(plane_state); in skl_check_plane_surface()
2037 if (!plane_state->uapi.visible) in skl_check_plane_surface()
2045 ret = skl_check_ccs_aux_surface(plane_state); in skl_check_plane_surface()
2052 ret = skl_check_nv12_aux_surface(plane_state); in skl_check_plane_surface()
2057 ret = skl_check_main_surface(plane_state); in skl_check_plane_surface()
2082 static void check_protection(struct intel_plane_state *plane_state) in check_protection() argument
2084 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in check_protection()
2086 const struct drm_framebuffer *fb = plane_state->hw.fb; in check_protection()
2092 plane_state->decrypt = intel_pxp_key_check(i915->pxp, obj, false) == 0; in check_protection()
2093 plane_state->force_black = i915_gem_object_is_protected(obj) && in check_protection()
2094 !plane_state->decrypt; in check_protection()
2098 struct intel_plane_state *plane_state) in skl_plane_check() argument
2100 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in skl_plane_check()
2102 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_check()
2107 ret = skl_plane_check_fb(crtc_state, plane_state); in skl_plane_check()
2112 if (!plane_state->ckey.flags && skl_fb_scalable(fb)) { in skl_plane_check()
2117 ret = intel_atomic_plane_check_clipping(plane_state, crtc_state, in skl_plane_check()
2122 ret = skl_check_plane_surface(plane_state); in skl_plane_check()
2126 if (!plane_state->uapi.visible) in skl_plane_check()
2129 ret = skl_plane_check_dst_coordinates(crtc_state, plane_state); in skl_plane_check()
2133 ret = intel_plane_check_src_coordinates(plane_state); in skl_plane_check()
2137 ret = skl_plane_check_nv12_rotation(plane_state); in skl_plane_check()
2141 check_protection(plane_state); in skl_plane_check()
2144 if (!(plane_state->hw.alpha >> 8)) in skl_plane_check()
2145 plane_state->uapi.visible = false; in skl_plane_check()
2147 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check()
2150 plane_state->color_ctl = glk_plane_color_ctl(crtc_state, in skl_plane_check()
2151 plane_state); in skl_plane_check()
2156 plane_state->cus_ctl = PLANE_CUS_ENABLE | in skl_plane_check()
2160 plane_state->cus_ctl = 0; in skl_plane_check()
2798 const struct intel_plane_state *plane_state = in skl_fixup_initial_plane_config() local
2804 if (!plane_state->uapi.visible) in skl_fixup_initial_plane_config()
2807 base = intel_plane_ggtt_offset(plane_state); in skl_fixup_initial_plane_config()