Lines Matching refs:fb
170 set->fb = NULL; in remove_from_modeset()
255 mode_set->fb, in drm_fb_helper_debug_enter()
274 return c->primary->fb; in drm_mode_config_fb()
289 struct drm_framebuffer *fb; in drm_fb_helper_debug_leave() local
296 fb = drm_mode_config_fb(crtc); in drm_fb_helper_debug_leave()
301 if (!fb) { in drm_fb_helper_debug_leave()
307 funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x, in drm_fb_helper_debug_leave()
462 if (crtc->primary->fb) in drm_fb_helper_is_bound()
464 if (crtc->primary->fb == fb_helper->fb) in drm_fb_helper_is_bound()
691 struct drm_framebuffer *fb = fb_helper->fb; in setcolreg() local
726 if (fb->bits_per_pixel == 16) { in setcolreg()
729 if (fb->depth == 16 && regno > 63) in setcolreg()
731 if (fb->depth == 15 && regno > 31) in setcolreg()
734 if (fb->depth == 16) { in setcolreg()
754 if (fb->depth != 16) in setcolreg()
824 struct drm_framebuffer *fb = fb_helper->fb; in drm_fb_helper_check_var() local
831 if (var->bits_per_pixel > fb->bits_per_pixel || in drm_fb_helper_check_var()
832 var->xres > fb->width || var->yres > fb->height || in drm_fb_helper_check_var()
833 var->xres_virtual > fb->width || var->yres_virtual > fb->height) { in drm_fb_helper_check_var()
838 fb->width, fb->height, fb->bits_per_pixel); in drm_fb_helper_check_var()
1102 fb_helper->crtc_info[i].mode_set.fb = fb_helper->fb; in drm_fb_helper_single_fb_probe()
1175 struct drm_framebuffer *fb = fb_helper->fb; in drm_fb_helper_fill_var() local
1177 info->var.xres_virtual = fb->width; in drm_fb_helper_fill_var()
1178 info->var.yres_virtual = fb->height; in drm_fb_helper_fill_var()
1179 info->var.bits_per_pixel = fb->bits_per_pixel; in drm_fb_helper_fill_var()
1187 switch (fb->depth) { in drm_fb_helper_fill_var()
1682 modeset->fb = NULL; in drm_setup_crtcs()
1702 modeset->fb = fb_helper->fb; in drm_setup_crtcs()
1712 BUG_ON(modeset->fb); in drm_setup_crtcs()
1795 if (!fb_helper->fb || !drm_fb_helper_is_bound(fb_helper)) { in drm_fb_helper_hotplug_event()
1802 max_width = fb_helper->fb->width; in drm_fb_helper_hotplug_event()
1803 max_height = fb_helper->fb->height; in drm_fb_helper_hotplug_event()