Lines Matching full:fb

143 dc_parse_drm_format(struct tegra_fb *fb, struct dc_window *win)  in dc_parse_drm_format()  argument
151 switch (fb->drm_fb.pixel_format) { in dc_parse_drm_format()
207 switch (fb->rotation) { in dc_parse_drm_format()
214 if (!fb->block_linear) in dc_parse_drm_format()
227 fb->block_linear ? SURFACE_KIND_BL_16B2: SURFACE_KIND_PITCH; in dc_parse_drm_format()
228 win->block_height = fb->block_height; in dc_parse_drm_format()
229 switch (fb->rotation) { in dc_parse_drm_format()
254 win->flip_x ^= fb->flip_x; in dc_parse_drm_format()
255 win->flip_y ^= fb->flip_y; in dc_parse_drm_format()
259 win->bits_per_pixel = fb->drm_fb.bits_per_pixel; in dc_parse_drm_format()
263 nplanes = drm_format_num_planes(fb->drm_fb.pixel_format); in dc_parse_drm_format()
265 bo = fb->planes[i]; in dc_parse_drm_format()
266 win->base[i] = bo->pbase + fb->drm_fb.offsets[i]; in dc_parse_drm_format()
267 win->stride[i] = fb->drm_fb.pitches[i]; in dc_parse_drm_format()
508 struct tegra_fb *fb; in dc_plane_update() local
514 fb = container_of(drm_fb, struct tegra_fb, drm_fb); in dc_plane_update()
528 rv = dc_parse_drm_format(fb, &win); in dc_plane_update()
531 fb->drm_fb.pixel_format); in dc_plane_update()
610 dc_set_base(struct dc_softc *sc, int x, int y, struct tegra_fb *fb) in dc_set_base() argument
618 win.src_w = fb->drm_fb.width; in dc_set_base()
619 win.src_h = fb->drm_fb.height; in dc_set_base()
622 win.dst_w = fb->drm_fb.width; in dc_set_base()
623 win.dst_h = fb->drm_fb.height; in dc_set_base()
625 rv = dc_parse_drm_format(fb, &win); in dc_set_base()
628 fb->drm_fb.pixel_format); in dc_set_base()
643 struct tegra_fb *fb; in dc_crtc_mode_set() local
650 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set()
698 rv = dc_parse_drm_format(fb, &win); in dc_crtc_mode_set()
701 drm_crtc->fb->pixel_format); in dc_crtc_mode_set()
717 struct tegra_fb *fb; in dc_crtc_mode_set_base() local
721 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_crtc_mode_set_base()
724 rv = dc_set_base(sc, x, y, fb); in dc_crtc_mode_set_base()
874 struct tegra_fb *fb; in dc_finish_page_flip() local
881 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_finish_page_flip()
899 bo = tegra_fb_get_plane(fb, 0); in dc_finish_page_flip()
900 if (base == (bo->pbase + fb->drm_fb.offsets[0])) { in dc_finish_page_flip()
941 struct tegra_fb *fb; in dc_page_flip() local
946 fb = container_of(drm_crtc->fb, struct tegra_fb, drm_fb); in dc_page_flip()
958 dc_set_base(sc, drm_crtc->x, drm_crtc->y, fb); in dc_page_flip()
959 drm_crtc->fb = drm_fb; in dc_page_flip()