Lines Matching refs:fb
69 struct drm_framebuffer *fb; member
760 return active ? active->fb : NULL; in vop_win_last_pending_fb()
763 return last ? last->fb : NULL; in vop_win_last_pending_fb()
770 struct drm_framebuffer *fb, dma_addr_t yrgb_mst, in vop_win_queue_fb() argument
779 state->fb = fb; in vop_win_queue_fb()
790 struct drm_framebuffer *fb, int crtc_x, in vop_update_plane_event() argument
843 ret = drm_plane_helper_check_update(plane, crtc, fb, in vop_update_plane_event()
854 is_alpha = is_alpha_support(fb->pixel_format); in vop_update_plane_event()
855 rb_swap = has_rb_swapped(fb->pixel_format); in vop_update_plane_event()
856 is_yuv = is_yuv_support(fb->pixel_format); in vop_update_plane_event()
858 format = vop_convert_format(fb->pixel_format); in vop_update_plane_event()
862 obj = rockchip_fb_get_gem_obj(fb, 0); in vop_update_plane_event()
886 offset = (src.x1 >> 16) * drm_format_plane_cpp(fb->pixel_format, 0); in vop_update_plane_event()
887 offset += (src.y1 >> 16) * fb->pitches[0]; in vop_update_plane_event()
889 yrgb_mst = rk_obj->dma_addr + offset + fb->offsets[0]; in vop_update_plane_event()
890 y_vir_stride = fb->pitches[0] >> 2; in vop_update_plane_event()
893 int hsub = drm_format_horz_chroma_subsampling(fb->pixel_format); in vop_update_plane_event()
894 int vsub = drm_format_vert_chroma_subsampling(fb->pixel_format); in vop_update_plane_event()
895 int bpp = drm_format_plane_cpp(fb->pixel_format, 1); in vop_update_plane_event()
897 uv_obj = rockchip_fb_get_gem_obj(fb, 1); in vop_update_plane_event()
903 uv_vir_stride = fb->pitches[1] >> 2; in vop_update_plane_event()
906 offset += (src.y1 >> 16) * fb->pitches[1] / vsub; in vop_update_plane_event()
908 uv_mst = rk_uv_obj->dma_addr + offset + fb->offsets[1]; in vop_update_plane_event()
920 if (fb != vop_win_last_pending_fb(vop_win)) { in vop_update_plane_event()
928 drm_framebuffer_reference(fb); in vop_update_plane_event()
930 ret = vop_win_queue_fb(vop_win, fb, yrgb_mst, event); in vop_update_plane_event()
954 fb->pixel_format); in vop_update_plane_event()
990 struct drm_framebuffer *fb, int crtc_x, int crtc_y, in vop_update_plane() argument
995 return vop_update_plane_event(plane, crtc, fb, crtc_x, crtc_y, crtc_w, in vop_update_plane()
1005 crtc_w = crtc->primary->fb->width - crtc->x; in vop_update_primary_plane()
1006 crtc_h = crtc->primary->fb->height - crtc->y; in vop_update_primary_plane()
1008 return vop_update_plane_event(crtc->primary, crtc, crtc->primary->fb, in vop_update_primary_plane()
1166 int x, int y, struct drm_framebuffer *fb) in vop_crtc_mode_set() argument
1223 ret = vop_crtc_mode_set_base(crtc, x, y, fb); in vop_crtc_mode_set()
1260 struct drm_framebuffer *fb, in vop_crtc_page_flip() argument
1265 struct drm_framebuffer *old_fb = crtc->primary->fb; in vop_crtc_page_flip()
1274 crtc->primary->fb = fb; in vop_crtc_page_flip()
1278 crtc->primary->fb = old_fb; in vop_crtc_page_flip()
1317 if (state->fb) { in vop_win_state_is_active()
1338 struct drm_framebuffer *fb = state->fb; in vop_win_state_destroy() local
1340 if (fb) in vop_win_state_destroy()
1341 drm_framebuffer_unreference(fb); in vop_win_state_destroy()