Lines Matching full:fb

3  * drm kms/fb dma helper functions
40 * @fb: The framebuffer
47 struct drm_gem_dma_object *drm_fb_dma_get_gem_obj(struct drm_framebuffer *fb, in drm_fb_dma_get_gem_obj() argument
52 gem = drm_gem_fb_get_obj(fb, plane); in drm_fb_dma_get_gem_obj()
64 * @fb: The framebuffer
71 dma_addr_t drm_fb_dma_get_gem_addr(struct drm_framebuffer *fb, in drm_fb_dma_get_gem_addr() argument
78 u32 block_w = drm_format_info_block_width(fb->format, plane); in drm_fb_dma_get_gem_addr()
79 u32 block_h = drm_format_info_block_height(fb->format, plane); in drm_fb_dma_get_gem_addr()
80 u32 block_size = fb->format->char_per_block[plane]; in drm_fb_dma_get_gem_addr()
86 obj = drm_fb_dma_get_gem_obj(fb, plane); in drm_fb_dma_get_gem_addr()
90 dma_addr = obj->dma_addr + fb->offsets[plane]; in drm_fb_dma_get_gem_addr()
93 h_div = fb->format->hsub; in drm_fb_dma_get_gem_addr()
94 v_div = fb->format->vsub; in drm_fb_dma_get_gem_addr()
102 dma_addr += fb->pitches[plane] * block_start_y; in drm_fb_dma_get_gem_addr()
125 const struct drm_format_info *finfo = state->fb->format; in drm_fb_dma_sync_non_coherent()
134 dma_obj = drm_fb_dma_get_gem_obj(state->fb, i); in drm_fb_dma_sync_non_coherent()
138 daddr = drm_fb_dma_get_gem_addr(state->fb, state, i); in drm_fb_dma_sync_non_coherent()
143 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
145 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
168 struct drm_framebuffer *fb; in drm_fb_dma_get_scanout_buffer() local
170 if (!plane->state || !plane->state->fb) in drm_fb_dma_get_scanout_buffer()
173 fb = plane->state->fb; in drm_fb_dma_get_scanout_buffer()
175 if (fb->modifier != DRM_FORMAT_MOD_LINEAR) in drm_fb_dma_get_scanout_buffer()
178 dma_obj = drm_fb_dma_get_gem_obj(fb, 0); in drm_fb_dma_get_scanout_buffer()
189 sb->format = fb->format; in drm_fb_dma_get_scanout_buffer()
190 sb->height = fb->height; in drm_fb_dma_get_scanout_buffer()
191 sb->width = fb->width; in drm_fb_dma_get_scanout_buffer()
192 sb->pitch[0] = fb->pitches[0]; in drm_fb_dma_get_scanout_buffer()