Lines Matching defs:fb
302 crtc->fb = NULL;
568 /* Enforce sane interface api - has been abused by the fb helper. */
569 BUG_ON(!set->mode && set->fb);
570 BUG_ON(set->fb && set->num_connectors == 0);
575 set->fb = NULL;
577 if (set->fb) {
579 set->crtc->base.id, set->fb->base.id,
633 save_set.fb = set->crtc->fb;
635 /* We should be able to check here if the fb has the same properties
637 if (set->crtc->fb != set->fb) {
638 /* If we have no fb then treat it as a full mode set */
639 if (set->crtc->fb == NULL) {
640 DRM_DEBUG_KMS("crtc has no fb, full mode set\n");
642 } else if (set->fb == NULL) {
644 } else if (set->fb->pixel_format !=
645 set->crtc->fb->pixel_format) {
748 old_fb = set->crtc->fb;
749 set->crtc->fb = set->fb;
755 set->crtc->fb = old_fb;
771 old_fb = set->crtc->fb;
772 if (set->crtc->fb != set->fb)
773 set->crtc->fb = set->fb;
777 set->crtc->fb = old_fb;
807 save_set.y, save_set.fb))
901 int drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb,
906 fb->width = mode_cmd->width;
907 fb->height = mode_cmd->height;
909 fb->pitches[i] = mode_cmd->pitches[i];
910 fb->offsets[i] = mode_cmd->offsets[i];
912 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth,
913 &fb->bits_per_pixel);
914 fb->pixel_format = mode_cmd->pixel_format;
933 crtc->x, crtc->y, crtc->fb);