Lines Matching refs:fb
400 struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, val); in drm_atomic_plane_set_property() local
401 drm_atomic_set_fb_for_plane(state, fb); in drm_atomic_plane_set_property()
402 if (fb) in drm_atomic_plane_set_property()
403 drm_framebuffer_unreference(fb); in drm_atomic_plane_set_property()
451 *val = (state->fb) ? state->fb->base.id : 0; in drm_atomic_plane_get_property()
498 if (WARN_ON(state->crtc && !state->fb)) { in drm_atomic_plane_check()
501 } else if (WARN_ON(state->fb && !state->crtc)) { in drm_atomic_plane_check()
517 ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format); in drm_atomic_plane_check()
520 drm_get_format_name(state->fb->pixel_format)); in drm_atomic_plane_check()
535 fb_width = state->fb->width << 16; in drm_atomic_plane_check()
536 fb_height = state->fb->height << 16; in drm_atomic_plane_check()
794 struct drm_framebuffer *fb) in drm_atomic_set_fb_for_plane() argument
796 if (plane_state->fb) in drm_atomic_set_fb_for_plane()
797 drm_framebuffer_unreference(plane_state->fb); in drm_atomic_set_fb_for_plane()
798 if (fb) in drm_atomic_set_fb_for_plane()
799 drm_framebuffer_reference(fb); in drm_atomic_set_fb_for_plane()
800 plane_state->fb = fb; in drm_atomic_set_fb_for_plane()
802 if (fb) in drm_atomic_set_fb_for_plane()
804 fb->base.id, plane_state); in drm_atomic_set_fb_for_plane()
1261 plane->old_fb = plane->fb; in drm_mode_atomic_ioctl()
1333 struct drm_framebuffer *new_fb = plane->state->fb; in drm_mode_atomic_ioctl()
1336 plane->fb = new_fb; in drm_mode_atomic_ioctl()