Home
last modified time | relevance | path

Searched refs:plane_state (Results 1 – 25 of 55) sorted by relevance

123

/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c40 void dc_plane_construct(struct dc_context *ctx, struct dc_plane_state *plane_state) in dc_plane_construct() argument
42 plane_state->ctx = ctx; in dc_plane_construct()
44 plane_state->gamma_correction.is_identity = true; in dc_plane_construct()
46 plane_state->in_transfer_func.type = TF_TYPE_BYPASS; in dc_plane_construct()
48 plane_state->pre_multiplied_alpha = true; in dc_plane_construct()
51 plane_state->cm.shaper_func.type = TF_TYPE_BYPASS; in dc_plane_construct()
52 plane_state->cm.blend_func.type = TF_TYPE_BYPASS; in dc_plane_construct()
53 plane_state->cm.lut3d_func.state.raw = 0; in dc_plane_construct()
54 plane_state->cm.flags.all = 0; in dc_plane_construct()
57 void dc_plane_destruct(struct dc_plane_state *plane_state) in dc_plane_destruct() argument
[all …]
H A Ddc_resource.c1231 &pipe_ctx->plane_state->clip_rect); in calculate_recout()
1260 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in calculate_scaling_ratios()
1262 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1269 if (pipe_ctx->plane_state->rotation == ROTATION_ANGLE_90 || in calculate_scaling_ratios()
1270 pipe_ctx->plane_state->rotation == ROTATION_ANGLE_270) in calculate_scaling_ratios()
1275 plane_state->dst_rect.width); in calculate_scaling_ratios()
1278 plane_state->dst_rect.height); in calculate_scaling_ratios()
1376 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in calculate_inits_and_viewports()
1253 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; calculate_scaling_ratios() local
1369 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; calculate_inits_and_viewports() local
1567 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; resource_build_scaling_params() local
3274 add_plane_to_opp_head_pipes(struct pipe_ctx * otg_master_pipe,struct dc_plane_state * plane_state,struct dc_state * context) add_plane_to_opp_head_pipes() argument
3325 acquire_secondary_dpp_pipes_and_add_plane(struct pipe_ctx * otg_master_pipe,struct dc_plane_state * plane_state,struct dc_state * new_ctx,struct dc_state * cur_ctx,struct resource_pool * pool) acquire_secondary_dpp_pipes_and_add_plane() argument
3376 resource_append_dpp_pipes_for_plane_composition(struct dc_state * new_ctx,struct dc_state * cur_ctx,struct resource_pool * pool,struct pipe_ctx * otg_master_pipe,struct dc_plane_state * plane_state) resource_append_dpp_pipes_for_plane_composition() argument
3402 resource_remove_dpp_pipes_for_plane_composition(struct dc_state * context,const struct resource_pool * pool,const struct dc_plane_state * plane_state) resource_remove_dpp_pipes_for_plane_composition() argument
5582 dc_validate_plane(struct dc * dc,const struct dc_plane_state * plane_state) dc_validate_plane() argument
[all...]
H A Ddc.c842 .plane = pipes->plane_state, in dc_stream_set_gamut_remap()
1230 (pipe_ctx->plane_state || old_pipe_ctx->plane_state)) in dc_update_visual_confirm_color()
1242 memcpy(&pipe_ctx->visual_confirm_color, &pipe_ctx->plane_state->visual_confirm_color, in dc_update_visual_confirm_color()
1290 struct dc_plane_state *plane_state = NULL; in dc_get_visual_confirm_for_stream()
1311 plane_state = stream_status->plane_states[i]; in dc_get_visual_confirm_for_stream()
1313 if (!plane_state) in dc_get_visual_confirm_for_stream()
1319 if (pipe->plane_state == plane_state) {
1403 if (pipe->stream && pipe->plane_state) { in disable_dangling_plane()
1280 struct dc_plane_state *plane_state = NULL; dc_get_visual_confirm_for_stream() local
2153 should_update_pipe_for_plane(struct dc_state * context,struct pipe_ctx * pipe_ctx,struct dc_plane_state * plane_state) should_update_pipe_for_plane() argument
2813 is_surface_in_context(const struct dc_state * context,const struct dc_plane_state * plane_state) is_surface_in_context() argument
4558 struct dc_plane_state *plane_state = srf_updates[i].surface; dc_dmub_update_dirty_rect() local
4620 struct dc_plane_state *plane_state = srf_updates[i].surface; build_dmub_update_dirty_rect() local
4718 struct dc_plane_state *plane_state = srf_updates[i].surface; commit_plane_for_stream_offload_fams2_flip() local
4805 struct dc_plane_state *plane_state = srf_updates[i].surface; commit_planes_for_stream_fast() local
5058 struct dc_plane_state *plane_state = srf_updates[i].surface; commit_planes_for_stream() local
5156 struct dc_plane_state *plane_state = srf_updates[i].surface; commit_planes_for_stream() local
5175 struct dc_plane_state *plane_state = srf_updates[i].surface; commit_planes_for_stream() local
7865 struct dc_plane_state *plane_state = pipe_ctx->plane_state; dc_capture_register_software_state() local
[all...]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_cursor.c37 static u32 intel_cursor_surf_offset(const struct intel_plane_state *plane_state) in intel_cursor_surf_offset()
39 return plane_state->view.color_plane[0].offset; in intel_cursor_surf_offset()
43 const struct intel_plane_state *plane_state, in intel_cursor_position()
46 int x = plane_state->uapi.dst.x1; in intel_cursor_position()
47 int y = plane_state->uapi.dst.y1; in intel_cursor_position()
56 y = max(-1 * drm_rect_height(&plane_state->uapi.dst) + 1, in intel_cursor_position()
74 static bool intel_cursor_size_ok(const struct intel_plane_state *plane_state) in intel_cursor_size_ok()
77 &plane_state->uapi.plane->dev->mode_config; in intel_cursor_size_ok()
78 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
79 int height = drm_rect_height(&plane_state in intel_cursor_size_ok()
36 intel_cursor_surf_offset(const struct intel_plane_state * plane_state) intel_cursor_surf_offset() argument
42 intel_cursor_position(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state,bool early_tpt) intel_cursor_position() argument
73 intel_cursor_size_ok(const struct intel_plane_state * plane_state) intel_cursor_size_ok() argument
84 intel_cursor_check_surface(struct intel_plane_state * plane_state) intel_cursor_check_surface() argument
138 intel_check_cursor(struct intel_crtc_state * crtc_state,struct intel_plane_state * plane_state) intel_check_cursor() argument
208 i845_cursor_ctl(const struct intel_plane_state * plane_state) i845_cursor_ctl() argument
215 i845_cursor_size_ok(const struct intel_plane_state * plane_state) i845_cursor_size_ok() argument
227 i845_check_cursor(struct intel_crtc_state * crtc_state,struct intel_plane_state * plane_state) i845_check_cursor() argument
277 i845_cursor_update_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) i845_cursor_update_arm() argument
400 i9xx_cursor_ctl(const struct intel_plane_state * plane_state) i9xx_cursor_ctl() argument
433 i9xx_cursor_size_ok(const struct intel_plane_state * plane_state) i9xx_cursor_size_ok() argument
471 i9xx_check_cursor(struct intel_crtc_state * crtc_state,struct intel_plane_state * plane_state) i9xx_check_cursor() argument
549 wa_16021440873(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) wa_16021440873() argument
568 i9xx_cursor_update_sel_fetch_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) i9xx_cursor_update_sel_fetch_arm() argument
655 i9xx_cursor_update_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) i9xx_cursor_update_arm() argument
794 struct intel_plane_state *plane_state = intel_cursor_unpin_work() local
[all...]
H A Dskl_universal_plane.c268 const struct intel_plane_state *plane_state) in icl_plane_min_cdclk()
270 unsigned int pixel_rate = intel_plane_pixel_rate_cdclk(crtc_state, plane_state); in icl_plane_min_cdclk()
277 glk_plane_ratio(const struct intel_plane_state *plane_state, in glk_plane_ratio()
280 const struct drm_framebuffer *fb = plane_state->hw.fb; in glk_plane_ratio()
292 const struct intel_plane_state *plane_state) in glk_plane_min_cdclk()
294 unsigned int pixel_rate = intel_plane_pixel_rate_cdclk(crtc_state, plane_state); in glk_plane_min_cdclk()
297 glk_plane_ratio(plane_state, &num, &den); in glk_plane_min_cdclk()
304 skl_plane_ratio(const struct intel_plane_state *plane_state, in skl_plane_ratio()
307 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_ratio()
319 const struct intel_plane_state *plane_state) in skl_plane_min_cdclk()
267 icl_plane_min_cdclk(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) icl_plane_min_cdclk() argument
276 glk_plane_ratio(const struct intel_plane_state * plane_state,unsigned int * num,unsigned int * den) glk_plane_ratio() argument
291 glk_plane_min_cdclk(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) glk_plane_min_cdclk() argument
303 skl_plane_ratio(const struct intel_plane_state * plane_state,unsigned int * num,unsigned int * den) skl_plane_ratio() argument
318 skl_plane_min_cdclk(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) skl_plane_min_cdclk() argument
678 icl_program_input_csc(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_plane_state * plane_state) icl_program_input_csc() argument
766 skl_plane_stride(const struct intel_plane_state * plane_state,int color_plane) skl_plane_stride() argument
902 pixel_normalizer_value(const struct intel_plane_state * plane_state) pixel_normalizer_value() argument
1021 skl_plane_ctl_alpha(const struct intel_plane_state * plane_state) skl_plane_ctl_alpha() argument
1039 glk_plane_color_ctl_alpha(const struct intel_plane_state * plane_state) glk_plane_color_ctl_alpha() argument
1146 adlp_plane_ctl_arb_slots(const struct intel_plane_state * plane_state) adlp_plane_ctl_arb_slots() argument
1186 skl_plane_ctl(const struct intel_plane_state * plane_state) skl_plane_ctl() argument
1244 glk_plane_color_ctl(const struct intel_plane_state * plane_state) glk_plane_color_ctl() argument
1293 skl_surf_address(const struct intel_plane_state * plane_state,int color_plane) skl_surf_address() argument
1309 icl_plane_color_plane(const struct intel_plane_state * plane_state) icl_plane_color_plane() argument
1317 skl_plane_surf_offset(const struct intel_plane_state * plane_state) skl_plane_surf_offset() argument
1330 skl_plane_aux_dist(const struct intel_plane_state * plane_state,int color_plane) skl_plane_aux_dist() argument
1350 skl_plane_keyval(const struct intel_plane_state * plane_state) skl_plane_keyval() argument
1357 skl_plane_keymax(const struct intel_plane_state * plane_state) skl_plane_keymax() argument
1365 skl_plane_keymsk(const struct intel_plane_state * plane_state) skl_plane_keymsk() argument
1408 skl_plane_update_noarm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) skl_plane_update_noarm() argument
1439 skl_plane_update_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) skl_plane_update_arm() argument
1505 icl_plane_update_sel_fetch_noarm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state,int color_plane) icl_plane_update_sel_fetch_noarm() argument
1552 icl_plane_update_noarm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) icl_plane_update_noarm() argument
1633 icl_plane_update_sel_fetch_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) icl_plane_update_sel_fetch_arm() argument
1650 icl_plane_update_arm(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) icl_plane_update_arm() argument
1710 skl_plane_async_flip(struct intel_dsb * dsb,struct intel_plane * plane,const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state,bool async_flip) skl_plane_async_flip() argument
1747 skl_plane_check_fb(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) skl_plane_check_fb() argument
1846 skl_plane_check_dst_coordinates(const struct intel_crtc_state * crtc_state,const struct intel_plane_state * plane_state) skl_plane_check_dst_coordinates() argument
1877 skl_plane_check_nv12_rotation(const struct intel_plane_state * plane_state) skl_plane_check_nv12_rotation() argument
1957 skl_check_main_ccs_coordinates(struct intel_plane_state * plane_state,int main_x,int main_y,u32 main_offset,int ccs_plane) skl_check_main_ccs_coordinates() argument
2002 skl_calc_main_surface_offset(const struct intel_plane_state * plane_state,int * x,int * y,u32 * offset) skl_calc_main_surface_offset() argument
2054 skl_check_main_surface(struct intel_plane_state * plane_state) skl_check_main_surface() argument
2128 skl_check_nv12_aux_surface(struct intel_plane_state * plane_state) skl_check_nv12_aux_surface() argument
2215 skl_check_ccs_aux_surface(struct intel_plane_state * plane_state) skl_check_ccs_aux_surface() argument
2254 skl_check_plane_surface(struct intel_plane_state * plane_state) skl_check_plane_surface() argument
2312 check_protection(struct intel_plane_state * plane_state) check_protection() argument
2327 make_damage_viewport_relative(struct intel_plane_state * plane_state) make_damage_viewport_relative() argument
2351 clip_damage(struct intel_plane_state * plane_state) clip_damage() argument
2365 skl_plane_check(struct intel_crtc_state * crtc_state,struct intel_plane_state * plane_state) skl_plane_check() argument
3226 const struct intel_plane_state *plane_state = skl_fixup_initial_plane_config() local
[all...]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn50/
H A Ddcn50_hwseq.c91 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn50_update_dchubp_dpp() local
144 plane_state->update_bits.bpp_change || in dcn50_update_dchubp_dpp()
145 plane_state->update_bits.input_csc_change || in dcn50_update_dchubp_dpp()
146 plane_state->update_bits.color_space_change || in dcn50_update_dchubp_dpp()
147 plane_state->update_bits.coeff_reduction_change) { in dcn50_update_dchubp_dpp()
148 struct dc_bias_and_scale bns_params = plane_state->bias_and_scale; in dcn50_update_dchubp_dpp()
152 plane_state->format, in dcn50_update_dchubp_dpp()
154 plane_state->input_csc_color_matrix, in dcn50_update_dchubp_dpp()
155 plane_state in dcn50_update_dchubp_dpp()
263 struct dc_plane_state *plane_state = pipe_ctx->plane_state; dcn50_update_dchubp_dpp_sequence() local
[all...]
/linux/drivers/gpu/drm/tests/
H A Ddrm_plane_helper_test.c82 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/drivers/gpu/drm/ast/
H A Dast_cursor.c195 struct drm_plane_state *plane_state = &shadow_plane_state->base; in ast_cursor_plane_get_argb4444() local
196 struct drm_framebuffer *fb = plane_state->fb; in ast_cursor_plane_get_argb4444()
252 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in ast_cursor_plane_helper_atomic_update() local
253 struct drm_shadow_plane_state *shadow_plane_state = to_drm_shadow_plane_state(plane_state); in ast_cursor_plane_helper_atomic_update()
254 struct drm_framebuffer *fb = plane_state->fb; in ast_cursor_plane_helper_atomic_update()
270 if (drm_atomic_helper_damage_merged(old_plane_state, plane_state, &damage)) { in ast_cursor_plane_helper_atomic_update()
285 writel(plane_state->crtc_x, sig + AST_HWC_SIGNATURE_X); in ast_cursor_plane_helper_atomic_update()
286 writel(plane_state->crtc_y, sig + AST_HWC_SIGNATURE_Y); in ast_cursor_plane_helper_atomic_update()
291 if (plane_state->crtc_x < 0) { in ast_cursor_plane_helper_atomic_update()
292 x_offset = (-plane_state->crtc_x) + offset_x; in ast_cursor_plane_helper_atomic_update()
[all …]
/linux/include/drm/
H A Ddrm_gem_atomic_helper.h100 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);
138 struct drm_plane_state *plane_state);
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/
H A Damdgpu_dm_test.c442 struct drm_plane_state plane_state = { 0 }; in dm_test_fill_color_attr_bt2020_full()
447 plane_state.color_encoding = DRM_COLOR_YCBCR_BT709;
448 plane_state.color_range = DRM_COLOR_YCBCR_FULL_RANGE;
450 ret = fill_plane_color_attributes(NULL, &plane_state,
463 struct drm_plane_state plane_state = { 0 }; in dm_test_fill_color_attr_bt2020_limited()
467 plane_state.color_encoding = DRM_COLOR_YCBCR_BT601; in dm_test_fill_color_attr_bt2020_limited()
468 plane_state.color_range = DRM_COLOR_YCBCR_FULL_RANGE;
470 ret = fill_plane_color_attributes(NULL, &plane_state,
483 struct drm_plane_state plane_state = { 0 }; in dm_test_fill_color_attr_invalid_encoding()
487 plane_state in dm_test_fill_color_attr_invalid_encoding()
330 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_rgb_format() local
351 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt601_full() local
371 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt601_limited() local
392 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt709_full() local
412 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt709_limited() local
433 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt2020_full() local
454 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_bt2020_limited() local
475 struct drm_plane_state plane_state = { 0 }; dm_test_fill_color_attr_invalid_encoding() local
[all...]
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_crtc.c304 struct mtk_plane_state *plane_state; in ddp_cmdq_cb()
306 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() local
308 plane_state->pending.config = false; in ddp_cmdq_cb()
316 struct mtk_plane_state *plane_state; in ddp_cmdq_cb()
318 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() local
320 plane_state->pending.async_config = false; in ddp_cmdq_cb()
417 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_hw_init()
421 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_hw_init()
424 plane_state->pending.enable = false; in mtk_crtc_ddp_hw_init()
428 plane_state, NUL in mtk_crtc_ddp_hw_init()
419 struct mtk_plane_state *plane_state; mtk_crtc_ddp_hw_init() local
512 struct mtk_plane_state *plane_state; mtk_crtc_ddp_config() local
536 struct mtk_plane_state *plane_state; mtk_crtc_ddp_config() local
580 struct mtk_plane_state *plane_state; mtk_crtc_update_config() local
737 struct mtk_plane_state *plane_state = to_mtk_plane_state(plane->state); mtk_crtc_plane_disable() local
820 struct mtk_plane_state *plane_state; mtk_crtc_atomic_disable() local
[all...]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c1157 * @plane_state: the DRM plane state
1166 struct drm_plane_state *plane_state) in amdgpu_dm_verify_lut3d_size() argument
1168 struct dm_plane_state *dm_plane_state = to_dm_plane_state(plane_state); in amdgpu_dm_verify_lut3d_size()
1484 __set_dm_plane_degamma(struct drm_plane_state *plane_state, in __set_dm_plane_degamma() argument
1488 struct dm_plane_state *dm_plane_state = to_dm_plane_state(plane_state); in __set_dm_plane_degamma()
1499 drm_dbg(plane_state->state->dev, in __set_dm_plane_degamma()
1539 drm_err(plane_state->state->dev, in __set_dm_plane_degamma()
1591 __set_dm_plane_colorop_fixed_matrix(struct drm_plane_state *plane_state, in __set_dm_plane_colorop_degamma()
1597 struct drm_atomic_commit *state = plane_state->state; in __set_dm_plane_colorop_degamma()
1646 __set_dm_plane_colorop_degamma(struct drm_plane_state *plane_state, in __set_dm_plane_colorop_multiplier() argument
1576 __set_dm_plane_colorop_degamma(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state,struct drm_colorop * colorop) __set_dm_plane_colorop_degamma() argument
1604 __set_dm_plane_colorop_3x4_matrix(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state,struct drm_colorop * colorop) __set_dm_plane_colorop_3x4_matrix() argument
1676 __set_dm_plane_colorop_shaper(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state,struct drm_colorop * colorop) __set_dm_plane_colorop_shaper() argument
1789 __set_dm_plane_colorop_3dlut(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state,struct drm_colorop * colorop) __set_dm_plane_colorop_3dlut() argument
1849 __set_dm_plane_colorop_blend(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state,struct drm_colorop * colorop) __set_dm_plane_colorop_blend() argument
1919 amdgpu_dm_plane_set_color_properties(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state) amdgpu_dm_plane_set_color_properties() argument
1970 amdgpu_dm_plane_set_colorop_properties(struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state) amdgpu_dm_plane_set_colorop_properties() argument
2071 amdgpu_dm_update_plane_color_mgmt(struct dm_crtc_state * crtc,struct drm_plane_state * plane_state,struct dc_plane_state * dc_plane_state) amdgpu_dm_update_plane_color_mgmt() argument
[all...]
H A Damdgpu_dm_plane.c105 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()
115 if (plane_state->pixel_blend_mode == DRM_MODE_BLEND_PREMULTI || in amdgpu_dm_plane_fill_blending_from_plane_state()
116 plane_state->pixel_blend_mode == DRM_MODE_BLEND_COVERAGE) { in amdgpu_dm_plane_fill_blending_from_plane_state()
117 *per_pixel_alpha = plane_state->fb->format->has_alpha; in amdgpu_dm_plane_fill_blending_from_plane_state()
119 if (*per_pixel_alpha && plane_state->pixel_blend_mode == DRM_MODE_BLEND_COVERAGE) in amdgpu_dm_plane_fill_blending_from_plane_state()
123 if (plane_state->alpha < 0xffff) { in amdgpu_dm_plane_fill_blending_from_plane_state()
124 struct amdgpu_device *adev = drm_to_adev(plane_state->plane->dev); in amdgpu_dm_plane_fill_blending_from_plane_state()
134 *global_alpha_value = plane_state->alpha >> 4; in amdgpu_dm_plane_fill_blending_from_plane_state()
136 *global_alpha_value = plane_state->alpha >> 8; in amdgpu_dm_plane_fill_blending_from_plane_state()
1290 struct dc_plane_state *plane_state in amdgpu_dm_plane_helper_prepare_fb()
103 amdgpu_dm_plane_fill_blending_from_plane_state(const struct drm_plane_state * plane_state,bool * per_pixel_alpha,bool * pre_multiplied_alpha,bool * global_alpha,int * global_alpha_value) amdgpu_dm_plane_fill_blending_from_plane_state() argument
1281 struct dc_plane_state *plane_state = amdgpu_dm_plane_helper_prepare_fb() local
[all...]
/linux/drivers/gpu/drm/
H A Ddrm_atomic_state_helper.c221 * @plane_state: atomic plane state, must not be NULL in __drm_atomic_helper_crtc_destroy_state()
224 * Initializes the newly allocated @plane_state with default in __drm_atomic_helper_crtc_destroy_state()
227 void __drm_atomic_helper_plane_state_init(struct drm_plane_state *plane_state, in __drm_atomic_helper_crtc_destroy_state()
232 plane_state->plane = plane; in __drm_atomic_helper_crtc_destroy_state()
233 plane_state->rotation = DRM_MODE_ROTATE_0; in __drm_atomic_helper_crtc_destroy_state()
235 plane_state->alpha = DRM_BLEND_ALPHA_OPAQUE; in __drm_atomic_helper_crtc_destroy_state()
237 plane_state->pixel_blend_mode = DRM_MODE_BLEND_PREMULTI; in __drm_atomic_helper_crtc_destroy_state()
242 plane_state->pixel_blend_mode = val; in __drm_atomic_helper_crtc_destroy_state()
249 plane_state->color_encoding = val;
256 plane_state
272 __drm_atomic_helper_plane_state_init(struct drm_plane_state * plane_state,struct drm_plane * plane) __drm_atomic_helper_plane_state_init() argument
347 __drm_atomic_helper_plane_reset(struct drm_plane * plane,struct drm_plane_state * plane_state) __drm_atomic_helper_plane_reset() argument
[all...]
H A Ddrm_atomic_uapi.c177 * @plane_state: the plane whose incoming state to update
190 drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state, in drm_atomic_set_crtc_for_plane() argument
193 struct drm_plane *plane = plane_state->plane; in drm_atomic_set_crtc_for_plane()
196 if (plane_state->crtc == crtc) in drm_atomic_set_crtc_for_plane()
198 if (plane_state->crtc) { in drm_atomic_set_crtc_for_plane()
199 crtc_state = drm_atomic_get_crtc_state(plane_state->state, in drm_atomic_set_crtc_for_plane()
200 plane_state->crtc); in drm_atomic_set_crtc_for_plane()
207 plane_state->crtc = crtc; in drm_atomic_set_crtc_for_plane()
210 crtc_state = drm_atomic_get_crtc_state(plane_state->state, in drm_atomic_set_crtc_for_plane()
220 plane->base.id, plane->name, plane_state, in drm_atomic_set_crtc_for_plane()
242 drm_atomic_set_fb_for_plane(struct drm_plane_state * plane_state,struct drm_framebuffer * fb) drm_atomic_set_fb_for_plane() argument
272 drm_atomic_set_colorop_for_plane(struct drm_plane_state * plane_state,struct drm_colorop * colorop) drm_atomic_set_colorop_for_plane() argument
1263 struct drm_plane_state *plane_state; drm_atomic_set_property() local
1307 struct drm_plane_state *plane_state; drm_atomic_set_property() local
[all...]
H A Ddrm_plane_helper.c107 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/
H A Ddc_plane_priv.h31 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/amd/display/dc/hwss/dcn30/
H A Ddcn30_hwseq.c237 struct dpp *dpp, struct dc_plane_state *plane_state) in dcn30_set_blend_lut() argument
242 if (plane_state->cm.blend_func.type == TF_TYPE_HWPWL) in dcn30_set_blend_lut()
243 blend_lut = &plane_state->cm.blend_func.pwl; in dcn30_set_blend_lut()
244 else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn30_set_blend_lut()
246 &plane_state->cm.blend_func, in dcn30_set_blend_lut()
319 struct dc_plane_state *plane_state = params->plane_state; in dcn30_set_input_transfer_func() argument
324 if (dpp == NULL || plane_state == NULL) in dcn30_set_input_transfer_func()
329 if (plane_state->in_transfer_func.type == TF_TYPE_PREDEFINED) in dcn30_set_input_transfer_func()
330 tf = plane_state in dcn30_set_input_transfer_func()
[all...]
/linux/drivers/gpu/drm/tegra/
H A Ddc.c722 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); in tegra_plane_atomic_check() local
727 struct tegra_bo_tiling *tiling = &plane_state->tiling; in tegra_plane_atomic_check()
732 plane_state->peak_memory_bandwidth = 0; in tegra_plane_atomic_check()
733 plane_state->avg_memory_bandwidth = 0; in tegra_plane_atomic_check()
737 plane_state->total_peak_memory_bandwidth = 0; in tegra_plane_atomic_check()
742 &plane_state->format, in tegra_plane_atomic_check()
743 &plane_state->swap); in tegra_plane_atomic_check()
754 err = tegra_plane_setup_legacy_state(tegra, plane_state); in tegra_plane_atomic_check()
781 plane_state->reflect_x = true; in tegra_plane_atomic_check()
783 plane_state in tegra_plane_atomic_check()
972 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); tegra_cursor_atomic_check() local
2456 tegra_plane_overlap_mask(struct drm_crtc_state * state,const struct drm_plane_state * plane_state) tegra_plane_overlap_mask() argument
2504 const struct drm_plane_state *plane_state; tegra_crtc_calculate_memory_bandwidth() local
[all...]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/
H A Ddml2_dc_resource_mgmt.c
/linux/drivers/gpu/drm/tiny/
H A Dsharp-memory.c227 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()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_display.c515 struct drm_plane_state *plane_state) in qxl_primary_apply_cursor() argument
517 struct qxl_crtc *qcrtc = to_qxl_crtc(plane_state->crtc); in qxl_primary_apply_cursor()
541 cmd->u.set.position.x = plane_state->crtc_x + plane_state->hotspot_x; in qxl_primary_apply_cursor()
542 cmd->u.set.position.y = plane_state->crtc_y + plane_state->hotspot_y; in qxl_primary_apply_cursor()
560 struct drm_plane_state *plane_state) in qxl_primary_move_cursor() argument
562 struct qxl_crtc *qcrtc = to_qxl_crtc(plane_state->crtc); in qxl_primary_move_cursor()
584 cmd->u.position.x = plane_state->crtc_x + plane_state in qxl_primary_move_cursor()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c1814 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1815 != res_ctx->pipe_ctx[i].plane_state->dst_rect.width || in allow_pixel_rate_crb()
1816 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1817 != res_ctx->pipe_ctx[i].plane_state->dst_rect.height))) in allow_pixel_rate_crb()
1820 …pe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state != res_ctx->pipe_ctx[i].plane_sta… in allow_pixel_rate_crb()
1873 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1922 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1951 if (pipe_cnt == 1 && pipe->plane_state && !dc->debug.disable_z9_mpc) { in dcn315_populate_dml_pipes_from_context()
1952 if (is_dual_plane(pipe->plane_state->format) in dcn315_populate_dml_pipes_from_context()
1953 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1737 ASSERT(pri_pipe->plane_state); in dcn30_split_stream_for_mpc_or_odm()
1873 && pipe->plane_state && mpo_pipe in dcn30_internal_validate_bw()
1874 && memcmp(&mpo_pipe->plane_state->clip_rect, in dcn30_internal_validate_bw()
1877 ASSERT(mpo_pipe->plane_state != pipe->plane_state); in dcn30_internal_validate_bw()
1901 pipe->plane_state = NULL; in dcn30_internal_validate_bw()
1910 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn30_internal_validate_bw()
1920 pipe->plane_state = NULL; in dcn30_internal_validate_bw()
1943 if (!pipe->plane_state && !odm) in dcn30_internal_validate_bw()
1954 old_pipe->bottom_pipe->bottom_pipe->plane_state == old_pipe->plane_state) in dcn30_internal_validate_bw()
1957 old_pipe->bottom_pipe->plane_state == old_pipe->plane_state) in dcn30_internal_validate_bw()
[all …]
/linux/drivers/gpu/drm/sysfb/
H A Ddrm_sysfb_helper.h113 struct drm_plane_state *plane_state);
141 struct drm_plane_state *plane_state);

123