Lines Matching refs:fb

586 		struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, val);  in drm_atomic_plane_set_property()  local
587 drm_atomic_set_fb_for_plane(state, fb); in drm_atomic_plane_set_property()
588 if (fb) in drm_atomic_plane_set_property()
589 drm_framebuffer_unreference(fb); in drm_atomic_plane_set_property()
637 *val = (state->fb) ? state->fb->base.id : 0; in drm_atomic_plane_get_property()
703 if (WARN_ON(state->crtc && !state->fb)) { in drm_atomic_plane_check()
706 } else if (WARN_ON(state->fb && !state->crtc)) { in drm_atomic_plane_check()
722 ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format); in drm_atomic_plane_check()
725 drm_get_format_name(state->fb->pixel_format)); in drm_atomic_plane_check()
740 fb_width = state->fb->width << 16; in drm_atomic_plane_check()
741 fb_height = state->fb->height << 16; in drm_atomic_plane_check()
1005 struct drm_framebuffer *fb) in drm_atomic_set_fb_for_plane() argument
1007 if (plane_state->fb) in drm_atomic_set_fb_for_plane()
1008 drm_framebuffer_unreference(plane_state->fb); in drm_atomic_set_fb_for_plane()
1009 if (fb) in drm_atomic_set_fb_for_plane()
1010 drm_framebuffer_reference(fb); in drm_atomic_set_fb_for_plane()
1011 plane_state->fb = fb; in drm_atomic_set_fb_for_plane()
1013 if (fb) in drm_atomic_set_fb_for_plane()
1015 fb->base.id, plane_state); in drm_atomic_set_fb_for_plane()
1460 struct drm_framebuffer *new_fb = plane->state->fb; in drm_atomic_clean_old_fb()
1463 plane->fb = new_fb; in drm_atomic_clean_old_fb()
1588 plane->old_fb = plane->fb; in drm_mode_atomic_ioctl()