/linux/drivers/gpu/drm/selftests/ |
A D | test-drm_plane_helper.c | 18 plane_state->src_x = src_x; in set_src() 19 plane_state->src_y = src_y; in set_src() 20 plane_state->src_w = src_w; in set_src() 21 plane_state->src_h = src_h; in set_src() 28 if (plane_state->src.x1 < 0) { in check_src_eq() 33 if (plane_state->src.y1 < 0) { in check_src_eq() 54 plane_state->crtc_x = crtc_x; in set_crtc() 55 plane_state->crtc_y = crtc_y; in set_crtc() 56 plane_state->crtc_w = crtc_w; in set_crtc() 57 plane_state->crtc_h = crtc_h; in set_crtc() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_surface.c | 42 plane_state->ctx = ctx; in dc_plane_construct() 88 plane_state->blend_tf); in dc_plane_destruct() 106 struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state), in dc_create_plane_state() local 109 if (NULL == plane_state) in dc_create_plane_state() 115 return plane_state; in dc_create_plane_state() 136 if (!plane_state || in dc_plane_get_status() 137 !plane_state->ctx || in dc_plane_get_status() 138 !plane_state->ctx->dc) { in dc_plane_get_status() 154 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() 166 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() [all …]
|
A D | dc_debug.c | 80 plane_state->visible, in pre_surface_trace() 82 plane_state->address.type, in pre_surface_trace() 103 plane_state->src_rect.x, in pre_surface_trace() 104 plane_state->src_rect.y, in pre_surface_trace() 107 plane_state->dst_rect.x, in pre_surface_trace() 108 plane_state->dst_rect.y, in pre_surface_trace() 111 plane_state->clip_rect.x, in pre_surface_trace() 112 plane_state->clip_rect.y, in pre_surface_trace() 164 plane_state->dcc.enable, in pre_surface_trace() 165 plane_state->format, in pre_surface_trace() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_cursor.c | 105 plane_state, 0); in intel_cursor_check_surface() 158 plane_state->uapi.src = src; in intel_check_cursor() 159 plane_state->uapi.dst = dst; in intel_check_cursor() 251 plane_state->ctl = i845_cursor_ctl(crtc_state, plane_state); in i845_check_cursor() 264 if (plane_state && plane_state->uapi.visible) { in i845_update_cursor() 268 cntl = plane_state->ctl | in i845_update_cursor() 480 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor() 486 plane_state->ctl = i9xx_cursor_ctl(crtc_state, plane_state); in i9xx_check_cursor() 500 if (plane_state && plane_state->uapi.visible) { in i9xx_update_cursor() 504 cntl = plane_state->ctl | in i9xx_update_cursor() [all …]
|
A D | intel_sprite.c | 458 chv_update_csc(plane_state); in vlv_update_plane() 481 vlv_update_clrc(plane_state); in vlv_update_plane() 482 vlv_update_gamma(plane_state); in vlv_update_plane() 905 ivb_update_gamma(plane_state); in ivb_update_plane() 1227 g4x_update_gamma(plane_state); in g4x_update_plane() 1229 ilk_update_gamma(plane_state); in g4x_update_plane() 1382 if (!plane_state->uapi.visible) in g4x_sprite_check() 1394 plane_state->ctl = ivb_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1396 plane_state->ctl = g4x_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1440 if (!plane_state->uapi.visible) in vlv_sprite_check() [all …]
|
A D | skl_universal_plane.c | 1105 plane_state->cus_ctl); in skl_program_plane() 1156 if (plane_state->decrypt) { in skl_program_plane() 1204 if (plane_state->planar_linked_plane && !plane_state->planar_slave) in skl_update_plane() 1435 plane_state, in skl_check_main_ccs_coordinates() 1610 plane_state, in skl_check_nv12_aux_surface() 1621 plane_state, in skl_check_nv12_aux_surface() 1675 plane_state, in skl_check_ccs_aux_surface() 1695 if (!plane_state->uapi.visible) in skl_check_plane_surface() 1788 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check() 1792 plane_state); in skl_plane_check() [all …]
|
A D | intel_atomic_plane.c | 50 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset() 54 plane_state->scaler_id = -1; in intel_plane_state_reset() 66 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc() 67 if (!plane_state) { in intel_plane_alloc() 136 if (plane_state->hw.fb) in intel_plane_destroy_state() 138 kfree(plane_state); in intel_plane_destroy_state() 176 &plane_state->uapi.dst, in intel_plane_pixel_rate() 268 if (plane_state->hw.fb) in intel_plane_clear_hw_state() 271 memset(&plane_state->hw, 0, sizeof(plane_state->hw)); in intel_plane_clear_hw_state() 289 if (plane_state->hw.fb) in intel_plane_copy_uapi_to_hw_state() [all …]
|
A D | intel_plane_initial.c | 25 struct intel_plane_state *plane_state = in intel_reuse_initial_plane_obj() local 31 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj() 35 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj() 36 *vma = plane_state->ggtt_vma; in intel_reuse_initial_plane_obj() 216 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj() 224 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj() 225 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj() 229 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj() 230 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj() 237 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj() [all …]
|
A D | i9xx_plane.c | 159 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl() 231 to_i915(plane_state->uapi.plane->dev); in i9xx_check_plane_surface() 241 if (!plane_state->uapi.visible) in i9xx_check_plane_surface() 245 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface() 246 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface() 256 plane_state, 0); in i9xx_check_plane_surface() 324 struct intel_plane_state *plane_state) in i9xx_plane_check() argument 344 if (!plane_state->uapi.visible) in i9xx_plane_check() 351 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check() 430 int crtc_x = plane_state->uapi.dst.x1; in i9xx_update_plane() [all …]
|
A D | intel_fb_pin.c | 210 int intel_plane_pin_fb(struct intel_plane_state *plane_state) in intel_plane_pin_fb() argument 214 struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_pin_fb() 222 &plane_state->view.gtt, in intel_plane_pin_fb() 223 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb() 224 &plane_state->flags); in intel_plane_pin_fb() 228 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 236 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 239 &plane_state->flags, intel_fb->dpt_vm); in intel_plane_pin_fb() 242 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb() 246 plane_state->dpt_vma = vma; in intel_plane_pin_fb() [all …]
|
A D | skl_scaler.c | 217 to_intel_plane(plane_state->uapi.plane); in skl_update_scaler_plane() 231 &plane_state->scaler_id, in skl_update_scaler_plane() 234 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane() 240 if (ret || plane_state->scaler_id < 0) in skl_update_scaler_plane() 244 if (plane_state->ckey.flags) { in skl_update_scaler_plane() 463 int scaler_id = plane_state->scaler_id; in skl_program_plane_scaler() 466 int crtc_x = plane_state->uapi.dst.x1; in skl_program_plane_scaler() 467 int crtc_y = plane_state->uapi.dst.y1; in skl_program_plane_scaler() 476 &plane_state->uapi.dst, in skl_program_plane_scaler() 479 &plane_state->uapi.dst, in skl_program_plane_scaler() [all …]
|
A D | intel_atomic_plane.h | 24 const struct intel_plane_state *plane_state); 27 const struct intel_plane_state *plane_state); 28 void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state, 31 void intel_plane_copy_hw_state(struct intel_plane_state *plane_state, 35 const struct intel_plane_state *plane_state); 56 struct intel_plane_state *plane_state); 60 int intel_atomic_plane_check_clipping(struct intel_plane_state *plane_state, 65 struct intel_plane_state *plane_state);
|
A D | intel_fbc.c | 71 stride = plane_state->view.color_plane[0].stride; in intel_fbc_plane_stride() 798 !plane_state->ggtt_vma->fence); in intel_fbc_update_state_cache() 800 if (plane_state->flags & PLANE_HAS_FENCE && in intel_fbc_update_state_cache() 801 plane_state->ggtt_vma->fence) in intel_fbc_update_state_cache() 1070 const struct intel_plane_state *plane_state = in intel_fbc_pre_update() local 1077 if (!plane->has_fbc || !plane_state) in intel_fbc_pre_update() 1178 if (!plane->has_fbc || !plane_state) in intel_fbc_post_update() 1260 struct intel_plane_state *plane_state; in intel_fbc_choose_crtc() local 1285 if (!plane_state->uapi.visible) in intel_fbc_choose_crtc() 1325 if (!plane->has_fbc || !plane_state) in intel_fbc_enable() [all …]
|
A D | intel_fb.c | 720 if (!plane_state->uapi.visible) in intel_plane_needs_remap() 723 if (!intel_plane_can_remap(plane_state)) in intel_plane_needs_remap() 1065 to_i915(plane_state->uapi.plane->dev); in intel_plane_remap_gtt() 1078 src_x = plane_state->uapi.src.x1 >> 16; in intel_plane_remap_gtt() 1079 src_y = plane_state->uapi.src.y1 >> 16; in intel_plane_remap_gtt() 1091 drm_rect_rotate(&plane_state->uapi.src, in intel_plane_remap_gtt() 1121 &plane_state->view); in intel_plane_remap_gtt() 1222 if (intel_plane_can_remap(plane_state) && in intel_plane_check_stride() 1223 !plane_state->uapi.visible) in intel_plane_check_stride() 1251 intel_plane_remap_gtt(plane_state); in intel_plane_compute_gtt() [all …]
|
A D | intel_sprite.h | 38 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state); 39 int chv_plane_check_rotation(const struct intel_plane_state *plane_state); 48 const struct intel_plane_state *plane_state); 50 const struct intel_plane_state *plane_state); 52 const struct intel_plane_state *plane_state);
|
/linux/drivers/gpu/drm/ |
A D | drm_gem_atomic_helper.c | 175 struct drm_plane_state *plane_state) in drm_gem_simple_display_pipe_prepare_fb() argument 226 struct drm_plane_state *plane_state = plane->state; in drm_gem_duplicate_shadow_plane_state() local 229 if (!plane_state) in drm_gem_duplicate_shadow_plane_state() 264 struct drm_plane_state *plane_state) in drm_gem_destroy_shadow_plane_state() argument 267 to_drm_shadow_plane_state(plane_state); in drm_gem_destroy_shadow_plane_state() 332 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_prepare_shadow_fb() 359 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_cleanup_shadow_fb() 384 struct drm_plane_state *plane_state) in drm_gem_simple_kms_prepare_shadow_fb() argument 401 struct drm_plane_state *plane_state) in drm_gem_simple_kms_cleanup_shadow_fb() argument 403 drm_gem_cleanup_shadow_fb(&pipe->plane, plane_state); in drm_gem_simple_kms_cleanup_shadow_fb() [all …]
|
A D | drm_atomic_helper.c | 93 if (plane_state->crtc) { in drm_atomic_helper_plane_changed() 804 WARN_ON(plane_state->crtc && plane_state->crtc != crtc_state->crtc); in drm_atomic_helper_check_plane_state() 844 if (!plane_state->visible) in drm_atomic_helper_check_plane_state() 2905 if (IS_ERR(plane_state)) { in drm_atomic_helper_update_plane() 2918 plane_state->src_x = src_x; in drm_atomic_helper_update_plane() 2919 plane_state->src_y = src_y; in drm_atomic_helper_update_plane() 2920 plane_state->src_w = src_w; in drm_atomic_helper_update_plane() 2921 plane_state->src_h = src_h; in drm_atomic_helper_update_plane() 2956 if (IS_ERR(plane_state)) { in drm_atomic_helper_disable_plane() 2961 if (plane_state->crtc && plane_state->crtc->cursor == plane) in drm_atomic_helper_disable_plane() [all …]
|
A D | drm_damage_helper.c | 67 struct drm_plane_state *plane_state) in drm_atomic_helper_check_plane_damage() argument 71 if (plane_state->crtc) { in drm_atomic_helper_check_plane_damage() 73 plane_state->crtc); in drm_atomic_helper_check_plane_damage() 79 drm_property_blob_put(plane_state->fb_damage_clips); in drm_atomic_helper_check_plane_damage() 80 plane_state->fb_damage_clips = NULL; in drm_atomic_helper_check_plane_damage() 159 struct drm_plane_state *plane_state; in drm_atomic_helper_dirtyfb() local 170 plane_state = drm_atomic_get_plane_state(state, plane); in drm_atomic_helper_dirtyfb() 171 if (IS_ERR(plane_state)) { in drm_atomic_helper_dirtyfb() 172 ret = PTR_ERR(plane_state); in drm_atomic_helper_dirtyfb() 176 drm_property_replace_blob(&plane_state->fb_damage_clips, in drm_atomic_helper_dirtyfb()
|
/linux/drivers/gpu/drm/amd/display/dc/dce60/ |
A D | dce60_hw_sequencer.c | 101 if (!pipe_ctx->plane_state) in dce60_should_enable_fbc() 188 if (!pipe_ctx->plane_state->visible) in dce60_program_surface_visibility() 274 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dce60_program_front_end_for_pipe() local 318 plane_state->format, in dce60_program_front_end_for_pipe() 319 &plane_state->tiling_info, in dce60_program_front_end_for_pipe() 320 &plane_state->plane_size, in dce60_program_front_end_for_pipe() 321 plane_state->rotation, in dce60_program_front_end_for_pipe() 330 plane_state->format, in dce60_program_front_end_for_pipe() 331 &plane_state->tiling_info, in dce60_program_front_end_for_pipe() 332 plane_state->rotation); in dce60_program_front_end_for_pipe() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/basics/ |
A D | dc_common.c | 54 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_lower_pipe_tree_visible() 63 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_upper_pipe_tree_visible() 72 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_pipe_tree_visible() 82 const struct dc_plane_state *plane_state) in build_prescale_params() argument 84 if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN in build_prescale_params() 85 && plane_state->format != SURFACE_PIXEL_FORMAT_INVALID in build_prescale_params() 86 && plane_state->input_csc_color_matrix.enable_adjustment in build_prescale_params() 87 && plane_state->coeff_reduction_factor.value != 0) { in build_prescale_params() 89 dc_fixpt_mul(plane_state->coeff_reduction_factor, in build_prescale_params()
|
/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
A D | dcn20_hwseq.c | 1264 if (!old_pipe->plane_state && !new_pipe->plane_state) in dcn20_detect_pipe_changes() 1267 if (!old_pipe->plane_state && new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1283 if (old_pipe->plane_state && !new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1289 if (old_pipe->plane_state != new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1410 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_dchubp_dpp() local 1552 &plane_state->dcc, in dcn20_update_dchubp_dpp() 2070 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 2072 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 2099 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_plane_addr() local 2114 plane_state->status.requested_address = plane_state->address; in dcn20_update_plane_addr() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dcn201/ |
A D | dcn201_hwseq.c | 59 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 61 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 69 plane_state->address.grph_stereo.left_addr = in patch_address_for_sbs_tb_stereo() 77 plane_state->address.grph_stereo.left_addr; in patch_address_for_sbs_tb_stereo() 135 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn201_update_plane_addr() local 139 if (plane_state == NULL) in dcn201_update_plane_addr() 149 plane_state->flip_immediate); in dcn201_update_plane_addr() 151 plane_state->status.requested_address = plane_state->address; in dcn201_update_plane_addr() 153 if (plane_state->flip_immediate) in dcn201_update_plane_addr() 154 plane_state->status.current_address = plane_state->address; in dcn201_update_plane_addr() [all …]
|
/linux/include/drm/ |
A D | drm_gem_atomic_helper.h | 19 struct drm_plane_state *plane_state); 74 struct drm_plane_state *plane_state); 88 int drm_gem_prepare_shadow_fb(struct drm_plane *plane, struct drm_plane_state *plane_state); 89 void drm_gem_cleanup_shadow_fb(struct drm_plane *plane, struct drm_plane_state *plane_state); 104 struct drm_plane_state *plane_state); 106 struct drm_plane_state *plane_state); 111 struct drm_plane_state *plane_state);
|
/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_hw_sequencer.c | 1650 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 1652 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 1679 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_plane_addr() local 1691 plane_state->status.requested_address = plane_state->address; in dcn10_update_plane_addr() 1694 plane_state->status.current_address = plane_state->address; in dcn10_update_plane_addr() 2430 if (top->plane_state && top->plane_state->layer_index == 0) in dcn10_is_rear_mpo_fix_required() 2489 plane_state->format, in dcn10_update_dpp() 2613 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_dchubp_dpp() local 2750 plane_state->format, in dcn10_update_dchubp_dpp() 2754 &plane_state->dcc, in dcn10_update_dchubp_dpp() [all …]
|
/linux/drivers/gpu/drm/mediatek/ |
A D | mtk_drm_crtc.c | 304 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_hw_init() local 312 plane_state, NULL); in mtk_crtc_ddp_hw_init() 391 if (!plane_state->pending.config) in mtk_crtc_ddp_config() 399 plane_state, in mtk_crtc_ddp_config() 421 plane_state, in mtk_crtc_ddp_config() 447 struct mtk_plane_state *plane_state; in mtk_drm_crtc_update_config() local 450 if (plane_state->pending.dirty) { in mtk_drm_crtc_update_config() 451 plane_state->pending.config = true; in mtk_drm_crtc_update_config() 452 plane_state->pending.dirty = false; in mtk_drm_crtc_update_config() 581 struct mtk_plane_state *plane_state; in mtk_drm_crtc_atomic_disable() local [all …]
|