Lines Matching full:fb

116 	 *     1. kern.vt.fb.modes.$connector_name  in fb_get_options()
117 * 2. kern.vt.fb.default_mode in fb_get_options()
120 * kern.vt.fb.modes.LVDS="1024x768" in fb_get_options()
124 * kern.vt.fb.default_mode="640x480" in fb_get_options()
126 snprintf(tunable, sizeof(tunable), "kern.vt.fb.modes.%s", in fb_get_options()
130 DRM_INFO(" - kern.vt.fb.default_mode\n"); in fb_get_options()
133 *option = kern_getenv("kern.vt.fb.default_mode"); in fb_get_options()
141 * The fb helper functions are useful to provide an fbdev on top of a drm kernel
279 mode_set->fb,
290 /* Find the real fb for a given fb helper CRTC */
298 return c->fb;
309 struct drm_framebuffer *fb;
316 fb = drm_mode_config_fb(crtc);
321 if (!fb) {
322 DRM_ERROR("no fb to restore??\n");
327 funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x,
420 .help_msg = "force-fb(V)",
438 * For each CRTC in this fb, turn the connectors on/off.
447 /* Walk the connectors & encoders on this fb turning them on/off */
575 struct drm_framebuffer *fb = fb_helper->fb;
602 if (fb->bits_per_pixel == 16) {
605 if (fb->depth == 16 && regno > 63)
607 if (fb->depth == 15 && regno > 31)
610 if (fb->depth == 16) {
630 if (fb->depth != 16)
678 struct drm_framebuffer *fb = fb_helper->fb;
684 /* Need to resize the fb object !!! */
685 if (var->bits_per_pixel > fb->bits_per_pixel ||
686 var->xres > fb->width || var->yres > fb->height ||
687 var->xres_virtual > fb->width || var->yres_virtual > fb->height) {
688 DRM_DEBUG("fb userspace requested width/height/bpp is greater than current fb "
692 fb->width, fb->height, fb->bits_per_pixel);
929 /* set the fb pointer */ in drm_fb_helper_single_fb_probe()
931 fb_helper->crtc_info[i].mode_set.fb = fb_helper->fb; in drm_fb_helper_single_fb_probe()
972 dev_info(fb_helper->dev->dev, "fb%d: %s frame buffer device\n", in drm_fb_helper_single_fb_probe()
1009 struct drm_framebuffer *fb = fb_helper->fb; in drm_fb_helper_fill_var() local
1013 info->fb_width = fb->width; in drm_fb_helper_fill_var()
1014 info->fb_height = fb->height; in drm_fb_helper_fill_var()
1015 info->fb_depth = fb->bits_per_pixel; in drm_fb_helper_fill_var()
1436 * probing all the outputs attached to the fb
1455 if (!fb_helper->fb) in drm_fb_helper_hotplug_event()
1460 if (crtc->fb) in drm_fb_helper_hotplug_event()
1462 if (crtc->fb == fb_helper->fb) in drm_fb_helper_hotplug_event()
1473 max_width = fb_helper->fb->width; in drm_fb_helper_hotplug_event()
1474 max_height = fb_helper->fb->height; in drm_fb_helper_hotplug_event()
1475 bpp_sel = fb_helper->fb->bits_per_pixel; in drm_fb_helper_hotplug_event()