Lines Matching refs:fb
201 crtc->primary->fb = NULL; in __drm_helper_disable_unused_functions()
488 BUG_ON(!set->mode && set->fb); in drm_crtc_helper_set_config()
489 BUG_ON(set->fb && set->num_connectors == 0); in drm_crtc_helper_set_config()
494 set->fb = NULL; in drm_crtc_helper_set_config()
496 if (set->fb) { in drm_crtc_helper_set_config()
498 set->crtc->base.id, set->fb->base.id, in drm_crtc_helper_set_config()
545 save_set.fb = set->crtc->primary->fb; in drm_crtc_helper_set_config()
549 if (set->crtc->primary->fb != set->fb) { in drm_crtc_helper_set_config()
551 if (set->crtc->primary->fb == NULL) { in drm_crtc_helper_set_config()
554 } else if (set->fb == NULL) { in drm_crtc_helper_set_config()
556 } else if (set->fb->pixel_format != in drm_crtc_helper_set_config()
557 set->crtc->primary->fb->pixel_format) { in drm_crtc_helper_set_config()
659 set->crtc->primary->fb = set->fb; in drm_crtc_helper_set_config()
662 save_set.fb)) { in drm_crtc_helper_set_config()
665 set->crtc->primary->fb = save_set.fb; in drm_crtc_helper_set_config()
680 set->crtc->primary->fb = set->fb; in drm_crtc_helper_set_config()
682 set->x, set->y, save_set.fb); in drm_crtc_helper_set_config()
686 set->crtc->primary->fb = save_set.fb; in drm_crtc_helper_set_config()
710 save_set.y, save_set.fb)) in drm_crtc_helper_set_config()
831 void drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb, in drm_helper_mode_fill_fb_struct() argument
836 fb->width = mode_cmd->width; in drm_helper_mode_fill_fb_struct()
837 fb->height = mode_cmd->height; in drm_helper_mode_fill_fb_struct()
839 fb->pitches[i] = mode_cmd->pitches[i]; in drm_helper_mode_fill_fb_struct()
840 fb->offsets[i] = mode_cmd->offsets[i]; in drm_helper_mode_fill_fb_struct()
841 fb->modifier[i] = mode_cmd->modifier[i]; in drm_helper_mode_fill_fb_struct()
843 drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth, in drm_helper_mode_fill_fb_struct()
844 &fb->bits_per_pixel); in drm_helper_mode_fill_fb_struct()
845 fb->pixel_format = mode_cmd->pixel_format; in drm_helper_mode_fill_fb_struct()
846 fb->flags = mode_cmd->flags; in drm_helper_mode_fill_fb_struct()
885 crtc->x, crtc->y, crtc->primary->fb); in drm_helper_resume_force_mode()
1014 drm_atomic_set_fb_for_plane(plane_state, crtc->primary->fb); in drm_helper_crtc_mode_set_base()