Lines Matching defs:fb
45 struct vmw_framebuffer *fb;
97 struct drm_framebuffer *fb = NULL;
115 fb = entry->base.crtc.fb;
117 vmw_kms_write_svga(dev_priv, w, h, fb->pitch,
118 fb->bits_per_pixel, fb->depth);
125 fb = entry->base.crtc.fb;
127 vmw_kms_write_svga(dev_priv, fb->width, fb->height, fb->pitch,
128 fb->bits_per_pixel, fb->depth);
167 BUG_ON(!ld->fb);
168 if (ld->fb->unpin)
169 ld->fb->unpin(ld->fb);
170 ld->fb = NULL;
184 BUG_ON(!ld->num_active && ld->fb);
185 if (vfb != ld->fb) {
186 if (ld->fb && ld->fb->unpin)
187 ld->fb->unpin(ld->fb);
190 ld->fb = vfb;
219 struct drm_framebuffer *fb;
231 vfb = set->fb ? vmw_framebuffer_to_vfb(set->fb) : NULL;
246 /* ldu only supports one fb active at the time */
247 if (dev_priv->ldu_priv->fb && vfb &&
250 dev_priv->ldu_priv->fb != vfb) {
260 if (set->num_connectors == 0 || !set->mode || !set->fb) {
264 crtc->fb = NULL;
276 fb = set->fb;
278 if (set->x + mode->hdisplay > fb->width ||
279 set->y + mode->vdisplay > fb->height) {
286 crtc->fb = fb;
558 dev_priv->ldu_priv->fb = NULL;