Lines Matching defs:fb
25 struct drm_framebuffer **fb)
45 *fb = plane_state->hw.fb;
140 struct drm_framebuffer *fb = &plane_config->fb->base;
143 switch (fb->modifier) {
152 fb->modifier);
156 mode_cmd.pixel_format = fb->format->format;
157 mode_cmd.width = fb->width;
158 mode_cmd.height = fb->height;
159 mode_cmd.pitches[0] = fb->pitches[0];
160 mode_cmd.modifier[0] = fb->modifier;
167 if (intel_framebuffer_init(to_intel_framebuffer(fb),
169 drm_dbg_kms(&dev_priv->drm, "intel fb init failed\n");
172 /* Reference handed over to fb */
194 struct drm_framebuffer *fb;
202 if (!plane_config->fb)
206 fb = &plane_config->fb->base;
207 else if (!intel_reuse_initial_plane_obj(crtc, plane_configs, &fb))
211 intel_fb_fill_view(to_intel_framebuffer(fb),
214 vma = intel_pin_and_fence_fb_obj(fb, false, &plane_state->view.gtt,
222 plane_state->uapi.src_w = fb->width << 16;
223 plane_state->uapi.src_h = fb->height << 16;
227 plane_state->uapi.crtc_w = fb->width;
228 plane_state->uapi.crtc_h = fb->height;
230 plane_state->uapi.fb = fb;
231 drm_framebuffer_get(fb);
236 atomic_or(plane->frontbuffer_bit, &to_intel_frontbuffer(fb)->bits);
262 if (plane_config->fb) {
263 struct drm_framebuffer *fb = &plane_config->fb->base;
266 if (drm_framebuffer_read_refcount(fb))
267 drm_framebuffer_put(fb);
269 kfree(fb);
286 * Note that reserving the BIOS fb up front prevents us
290 * fb is large enough for the active pipe configuration.
295 * If the fb is shared between multiple heads, we'll