| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_plane_helper_test.c | 82 static void check_src_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_src_eq() argument 88 KUNIT_ASSERT_GE_MSG(test, plane_state->src.x1, 0, in check_src_eq() 90 plane_state->src.x1, DRM_RECT_FP_ARG(&plane_state->src)); in check_src_eq() 92 KUNIT_ASSERT_GE_MSG(test, plane_state->src.y1, 0, in check_src_eq() 94 plane_state->src.y1, DRM_RECT_FP_ARG(&plane_state->src)); in check_src_eq() 96 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->src, &expected), in check_src_eq() 98 DRM_RECT_FP_ARG(&plane_state->src), DRM_RECT_FP_ARG(&expected)); in check_src_eq() 101 static void check_crtc_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_crtc_eq() argument 107 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->dst, &expected), in check_crtc_eq() 109 DRM_RECT_ARG(&plane_state->dst), DRM_RECT_ARG(&expected)); in check_crtc_eq() [all …]
|
| /linux/include/drm/ |
| H A D | drm_gem_atomic_helper.h | 100 struct drm_plane_state *plane_state); 114 int drm_gem_begin_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 115 void drm_gem_end_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 130 struct drm_plane_state *plane_state); 132 struct drm_plane_state *plane_state); 137 struct drm_plane_state *plane_state);
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_crtc.c | 306 struct mtk_plane_state *plane_state; in ddp_cmdq_cb() local 308 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() 310 plane_state->pending.config = false; in ddp_cmdq_cb() 318 struct mtk_plane_state *plane_state; in ddp_cmdq_cb() local 320 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() 322 plane_state->pending.async_config = false; in ddp_cmdq_cb() 419 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_hw_init() local 423 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_hw_init() 426 plane_state->pending.enable = false; in mtk_crtc_ddp_hw_init() 430 plane_state, NULL); in mtk_crtc_ddp_hw_init() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_plane_priv.h | 31 void dc_plane_construct(struct dc_context *ctx, struct dc_plane_state *plane_state); 32 void dc_plane_destruct(struct dc_plane_state *plane_state); 33 uint8_t dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane_state *plane_state);
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_plane_helper.c | 107 struct drm_plane_state plane_state = { in drm_plane_helper_check_update() local 128 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in drm_plane_helper_check_update() 135 *src = plane_state.src; in drm_plane_helper_check_update() 136 *dst = plane_state.dst; in drm_plane_helper_check_update() 137 *visible = plane_state.visible; in drm_plane_helper_check_update()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 840 .plane = pipes->plane_state, in dc_stream_set_gamut_remap() 1223 (pipe_ctx->plane_state || old_pipe_ctx->plane_state)) in apply_ctx_interdependent_lock() 1233 memcpy(&pipe_ctx->visual_confirm_color, &pipe_ctx->plane_state->visual_confirm_color, in dc_update_visual_confirm_color() 1281 struct dc_plane_state *plane_state = NULL; in dc_get_visual_confirm_for_stream() local 1302 plane_state = stream_status->plane_states[i]; in dc_get_visual_confirm_for_stream() 1304 if (!plane_state) in dc_get_visual_confirm_for_stream() 1310 if (pipe->plane_state == plane_state) { in dc_get_visual_confirm_for_stream() 1378 if (pipe->stream && pipe->plane_state) { in dc_stream_adjust_vmin_vmax() 1437 if (old_pipe->plane_state && !new_pipe->plane_state) in disable_dangling_plane() 1465 if (pipe->stream && pipe->plane_state) { in disable_dangling_plane() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/ |
| H A D | dml2_dc_resource_mgmt.c | 130 …if (state->res_ctx.pipe_ctx[i].plane_state && get_plane_id(ctx, state, state->res_ctx.pipe_ctx[i].… in find_master_pipe_of_plane() 151 if (!pipe->plane_state || !pipe->stream) in find_pipes_assigned_to_plane() 154 get_plane_id(ctx, state, pipe->plane_state, pipe->stream->stream_id, in find_pipes_assigned_to_plane() 158 && (!pipe->top_pipe || pipe->top_pipe->plane_state != pipe->plane_state)) { in find_pipes_assigned_to_plane() 167 if (mpc_pipe->plane_state != pipe->plane_state) in find_pipes_assigned_to_plane() 233 if (pipe->plane_state) in is_plane_using_pipe() 241 if (!pipe->plane_state && !pipe->stream) in is_pipe_free() 721 if (state->res_ctx.pipe_ctx[i].plane_state == plane && in free_unused_pipes_for_plane() 1175 if (pipe->plane_state) { in dml2_map_dc_pipes()
|
| H A D | dml2_wrapper_fpu.c | 184 if (pipe->plane_state) { in calculate_lowest_supported_state_for_temp_read() 292 if (pipe->plane_state) { in dml_mode_support_wrapper()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | sharp-memory.c | 227 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in sharp_memory_plane_atomic_check() local 234 return drm_atomic_helper_check_plane_state(plane_state, crtc_state, in sharp_memory_plane_atomic_check() 244 struct drm_plane_state *plane_state = plane->state; in sharp_memory_plane_atomic_update() local 245 struct drm_shadow_plane_state *shadow_plane_state = to_drm_shadow_plane_state(plane_state); in sharp_memory_plane_atomic_update() 253 if (drm_atomic_helper_damage_merged(old_state, plane_state, &rect)) in sharp_memory_plane_atomic_update() 254 sharp_memory_fb_dirty(plane_state->fb, shadow_plane_state->data, in sharp_memory_plane_atomic_update()
|
| H A D | appletbdrm.c | 481 struct drm_plane_state *plane_state = plane->state; in appletbdrm_primary_plane_helper_atomic_update() local 488 appletbdrm_flush_damage(adev, old_plane_state, plane_state); in appletbdrm_primary_plane_helper_atomic_update()
|
| H A D | arcpgu.c | 199 struct drm_plane_state *plane_state) in arc_pgu_enable() argument
|
| /linux/drivers/gpu/drm/sysfb/ |
| H A D | drm_sysfb_helper.h | 112 struct drm_plane_state *plane_state); 140 struct drm_plane_state *plane_state);
|
| /linux/drivers/gpu/drm/amd/display/dc/basics/ |
| H A D | dc_common.h | 40 const struct dc_plane_state *plane_state);
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 103 void amdgpu_dm_plane_fill_blending_from_plane_state(const struct drm_plane_state *plane_state, in amdgpu_dm_plane_fill_blending_from_plane_state() argument 113 if (plane_state->pixel_blend_mode == DRM_MODE_BLEND_PREMULTI || in amdgpu_dm_plane_fill_blending_from_plane_state() 114 plane_state->pixel_blend_mode == DRM_MODE_BLEND_COVERAGE) { in amdgpu_dm_plane_fill_blending_from_plane_state() 125 uint32_t format = plane_state->fb->format->format; in amdgpu_dm_plane_fill_blending_from_plane_state() 135 if (*per_pixel_alpha && plane_state->pixel_blend_mode == DRM_MODE_BLEND_COVERAGE) in amdgpu_dm_plane_fill_blending_from_plane_state() 139 if (plane_state->alpha < 0xffff) { in amdgpu_dm_plane_fill_blending_from_plane_state() 140 struct amdgpu_device *adev = drm_to_adev(plane_state->plane->dev); in amdgpu_dm_plane_fill_blending_from_plane_state() 149 *global_alpha_value = plane_state->alpha >> 4; in amdgpu_dm_plane_fill_blending_from_plane_state() 151 *global_alpha_value = plane_state->alpha >> 8; in amdgpu_dm_plane_fill_blending_from_plane_state() 1299 struct dc_plane_state *plane_state = in amdgpu_dm_plane_helper_prepare_fb() local [all …]
|
| H A D | amdgpu_dm.c | 2880 fill_plane_color_attributes(const struct drm_plane_state *plane_state, in fill_plane_color_attributes() argument 2889 if (plane_state->state && plane_state->state->plane_color_pipeline) in fill_plane_color_attributes() 2896 full_range = (plane_state->color_range == DRM_COLOR_YCBCR_FULL_RANGE); in fill_plane_color_attributes() 2898 switch (plane_state->color_encoding) { in fill_plane_color_attributes() 2930 const struct drm_plane_state *plane_state, in fill_dc_plane_info_and_addr() argument 2935 const struct drm_framebuffer *fb = plane_state->fb; in fill_dc_plane_info_and_addr() 2937 to_amdgpu_framebuffer(plane_state->fb); in fill_dc_plane_info_and_addr() 2998 switch (plane_state->rotation & DRM_MODE_ROTATE_MASK) { in fill_dc_plane_info_and_addr() 3020 plane_info->layer_index = plane_state->normalized_zpos; in fill_dc_plane_info_and_addr() 3022 ret = fill_plane_color_attributes(plane_state, plane_info->format, in fill_dc_plane_info_and_addr() [all …]
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | plane.c | 620 struct drm_plane_state *old, *plane_state; in tegra_plane_check_transparency() local 638 plane_state = drm_atomic_get_plane_state(state->base.state, in tegra_plane_check_transparency() 640 if (IS_ERR(plane_state)) in tegra_plane_check_transparency() 641 return PTR_ERR(plane_state); in tegra_plane_check_transparency()
|
| /linux/drivers/gpu/drm/aspeed/ |
| H A D | aspeed_gfx_crtc.c | 144 struct drm_plane_state *plane_state) in aspeed_gfx_pipe_enable() argument 164 struct drm_plane_state *plane_state) in aspeed_gfx_pipe_update() argument
|
| /linux/drivers/gpu/drm/imx/lcdc/ |
| H A D | imx-lcdc.c | 192 struct drm_plane_state *plane_state) in imx_lcdc_pipe_enable() argument 209 bpp = imx_lcdc_get_format(plane_state->fb->format->format); in imx_lcdc_pipe_enable() 276 struct drm_plane_state *plane_state, in imx_lcdc_pipe_check() argument
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce100/ |
| H A D | dce100_resource.c | 966 enum dc_status dce100_validate_plane(const struct dc_plane_state *plane_state, struct dc_caps *caps) in dce100_validate_plane() argument 970 if (plane_state->format < SURFACE_PIXEL_FORMAT_VIDEO_BEGIN) in dce100_validate_plane()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_hvs.c | 798 const struct drm_plane_state *plane_state; in vc4_hvs_atomic_check() local 808 drm_atomic_crtc_state_for_each_plane_state(plane, plane_state, crtc_state) { in vc4_hvs_atomic_check() 809 u32 plane_dlist_count = vc4_plane_dlist_size(plane_state); in vc4_hvs_atomic_check()
|