/drivers/gpu/drm/ |
D | drm_plane_helper.c | 402 struct drm_plane_state *plane_state, in drm_plane_helper_commit() argument 416 crtc[1] = crtc[0] != plane_state->crtc ? plane_state->crtc : NULL; in drm_plane_helper_commit() 422 ret = plane_funcs->atomic_check(plane, plane_state); in drm_plane_helper_commit() 427 if (plane_funcs->prepare_fb && plane_state->fb && in drm_plane_helper_commit() 428 plane_state->fb != old_fb) { in drm_plane_helper_commit() 430 plane_state); in drm_plane_helper_commit() 436 swap(plane->state, plane_state); in drm_plane_helper_commit() 447 if (drm_atomic_plane_disabling(plane, plane_state) && in drm_plane_helper_commit() 449 plane_funcs->atomic_disable(plane, plane_state); in drm_plane_helper_commit() 451 plane_funcs->atomic_update(plane, plane_state); in drm_plane_helper_commit() [all …]
|
D | drm_atomic_helper.c | 58 struct drm_plane_state *plane_state, in drm_atomic_helper_plane_changed() argument 72 if (plane_state->crtc) { in drm_atomic_helper_plane_changed() 74 state->crtc_states[drm_crtc_index(plane_state->crtc)]; in drm_atomic_helper_plane_changed() 493 struct drm_plane_state *plane_state; in drm_atomic_helper_check_planes() local 496 for_each_plane_in_state(state, plane, plane_state, i) { in drm_atomic_helper_check_planes() 501 drm_atomic_helper_plane_changed(state, plane_state, plane); in drm_atomic_helper_check_planes() 506 ret = funcs->atomic_check(plane, plane_state); in drm_atomic_helper_check_planes() 897 struct drm_plane_state *plane_state; in wait_for_fences() local 900 for_each_plane_in_state(state, plane, plane_state, i) { in wait_for_fences() 1133 struct drm_plane_state *plane_state = state->plane_states[i]; in drm_atomic_helper_prepare_planes() local [all …]
|
D | drm_atomic.c | 529 struct drm_plane_state *plane_state; in drm_atomic_get_plane_state() local 531 plane_state = drm_atomic_get_existing_plane_state(state, plane); in drm_atomic_get_plane_state() 532 if (plane_state) in drm_atomic_get_plane_state() 533 return plane_state; in drm_atomic_get_plane_state() 539 plane_state = plane->funcs->atomic_duplicate_state(plane); in drm_atomic_get_plane_state() 540 if (!plane_state) in drm_atomic_get_plane_state() 543 state->plane_states[index] = plane_state; in drm_atomic_get_plane_state() 545 plane_state->state = state; in drm_atomic_get_plane_state() 548 plane->base.id, plane_state, state); in drm_atomic_get_plane_state() 550 if (plane_state->crtc) { in drm_atomic_get_plane_state() [all …]
|
D | drm_crtc_helper.c | 991 struct drm_plane_state *plane_state; in drm_helper_crtc_mode_set_base() local 995 plane_state = plane->funcs->atomic_duplicate_state(plane); in drm_helper_crtc_mode_set_base() 997 plane_state = drm_atomic_helper_plane_duplicate_state(plane); in drm_helper_crtc_mode_set_base() 999 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in drm_helper_crtc_mode_set_base() 1000 if (!plane_state) in drm_helper_crtc_mode_set_base() 1002 plane_state->plane = plane; in drm_helper_crtc_mode_set_base() 1004 plane_state->crtc = crtc; in drm_helper_crtc_mode_set_base() 1005 drm_atomic_set_fb_for_plane(plane_state, crtc->primary->fb); in drm_helper_crtc_mode_set_base() 1006 plane_state->crtc_x = 0; in drm_helper_crtc_mode_set_base() 1007 plane_state->crtc_y = 0; in drm_helper_crtc_mode_set_base() [all …]
|
D | drm_fb_helper.c | 355 struct drm_plane_state *plane_state; in restore_fbdev_mode_atomic() local 357 plane_state = drm_atomic_get_plane_state(state, plane); in restore_fbdev_mode_atomic() 358 if (IS_ERR(plane_state)) { in restore_fbdev_mode_atomic() 359 ret = PTR_ERR(plane_state); in restore_fbdev_mode_atomic() 363 plane_state->rotation = BIT(DRM_ROTATE_0); in restore_fbdev_mode_atomic() 372 ret = __drm_atomic_helper_disable_plane(plane, plane_state); in restore_fbdev_mode_atomic()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_kms.c | 279 struct rcar_du_plane_state *plane_state; in rcar_du_atomic_check() local 287 plane_state = to_rcar_plane_state(state->plane_states[i]); in rcar_du_atomic_check() 296 if (!plane_state->format) { in rcar_du_atomic_check() 301 plane_state->hwindex = -1; in rcar_du_atomic_check() 308 if (rcar_du_plane_needs_realloc(plane, plane_state)) { in rcar_du_atomic_check() 316 plane_state->hwindex = -1; in rcar_du_atomic_check() 341 struct rcar_du_plane_state *plane_state; in rcar_du_atomic_check() local 363 plane_state = to_rcar_plane_state(plane->plane.state); in rcar_du_atomic_check() 364 used_planes |= rcar_du_plane_hwmask(plane_state); in rcar_du_atomic_check() 370 plane_state->format ? in rcar_du_atomic_check() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_atomic.c | 138 struct intel_plane_state *plane_state = NULL; in intel_atomic_setup_scalers() local 221 plane_state = to_intel_plane_state(drm_state->plane_states[i]); in intel_atomic_setup_scalers() 222 scaler_id = &plane_state->scaler_id; in intel_atomic_setup_scalers()
|
D | intel_fbc.c | 709 struct intel_plane_state *plane_state = in intel_fbc_get_plane_source_size() local 713 if (intel_rotation_90_or_270(plane_state->base.rotation)) { in intel_fbc_get_plane_source_size() 714 w = drm_rect_height(&plane_state->src) >> 16; in intel_fbc_get_plane_source_size() 715 h = drm_rect_width(&plane_state->src) >> 16; in intel_fbc_get_plane_source_size() 717 w = drm_rect_width(&plane_state->src) >> 16; in intel_fbc_get_plane_source_size() 718 h = drm_rect_height(&plane_state->src) >> 16; in intel_fbc_get_plane_source_size()
|
D | intel_display.c | 2275 const struct drm_plane_state *plane_state) in intel_fill_fb_ggtt_view() argument 2282 if (!plane_state) in intel_fill_fb_ggtt_view() 2285 if (!intel_rotation_90_or_270(plane_state->rotation)) in intel_fill_fb_ggtt_view() 2333 const struct drm_plane_state *plane_state, in intel_pin_and_fence_fb_obj() argument 2370 ret = intel_fill_fb_ggtt_view(&view, fb, plane_state); in intel_pin_and_fence_fb_obj() 2434 const struct drm_plane_state *plane_state) in intel_unpin_fb_obj() argument 2442 ret = intel_fill_fb_ggtt_view(&view, fb, plane_state); in intel_unpin_fb_obj() 2610 struct drm_plane_state *plane_state = primary->state; in intel_find_initial_plane_obj() local 2656 to_intel_plane_state(plane_state)->visible = false; in intel_find_initial_plane_obj() 2664 plane_state->src_x = 0; in intel_find_initial_plane_obj() [all …]
|
D | intel_sprite.c | 963 struct drm_plane_state *plane_state; in intel_sprite_set_colorkey() local 990 plane_state = drm_atomic_get_plane_state(state, plane); in intel_sprite_set_colorkey() 991 ret = PTR_ERR_OR_ZERO(plane_state); in intel_sprite_set_colorkey() 993 to_intel_plane_state(plane_state)->ckey = *set; in intel_sprite_set_colorkey()
|
D | intel_drv.h | 1070 const struct drm_plane_state *plane_state, 1094 struct drm_plane_state *plane_state);
|
D | i915_debugfs.c | 2835 struct drm_plane_state *plane_state = crtc->primary->state; in intel_crtc_info() local 2836 struct drm_framebuffer *fb = plane_state->fb; in intel_crtc_info() 2840 fb->base.id, plane_state->src_x >> 16, in intel_crtc_info() 2841 plane_state->src_y >> 16, fb->width, fb->height); in intel_crtc_info()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_crtc.c | 422 struct drm_plane_state *plane_state; in omap_crtc_atomic_set_property() local 430 plane_state = drm_atomic_get_plane_state(state->state, plane); in omap_crtc_atomic_set_property() 431 if (!plane_state) in omap_crtc_atomic_set_property() 434 return drm_atomic_plane_set_property(plane, plane_state, property, val); in omap_crtc_atomic_set_property()
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_crtc.c | 363 struct plane_state { struct 370 struct plane_state *pa = (struct plane_state *)a; in pstate_cmp() argument 371 struct plane_state *pb = (struct plane_state *)b; in pstate_cmp() 382 struct plane_state pstates[STAGE_MAX + 1]; in mdp5_crtc_atomic_check()
|
D | mdp5_kms.c | 85 struct drm_plane_state *plane_state = state->plane_states[i]; in mdp5_complete_commit() local 90 mdp5_plane_complete_commit(plane, plane_state); in mdp5_complete_commit()
|
/drivers/gpu/drm/vc4/ |
D | vc4_crtc.c | 334 struct drm_plane_state *plane_state = in vc4_crtc_atomic_check() local 340 if (!plane_state) in vc4_crtc_atomic_check() 341 plane_state = plane->state; in vc4_crtc_atomic_check() 343 dlist_count += vc4_plane_dlist_size(plane_state); in vc4_crtc_atomic_check()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_drv.c | 76 struct drm_plane_state *plane_state; in exynos_atomic_commit_complete() local 98 for_each_plane_in_state(state, plane, plane_state, i) { in exynos_atomic_commit_complete()
|
/drivers/gpu/drm/tegra/ |
D | dc.c | 514 struct tegra_plane_state *plane_state = to_tegra_plane_state(state); in tegra_plane_atomic_check() local 515 struct tegra_bo_tiling *tiling = &plane_state->tiling; in tegra_plane_atomic_check() 524 err = tegra_dc_format(state->fb->pixel_format, &plane_state->format, in tegra_plane_atomic_check() 525 &plane_state->swap); in tegra_plane_atomic_check()
|