Lines Matching refs:fb
33 struct drm_framebuffer *fb = crtc->primary->fb; in mga_crtc_load_lut() local
41 if (fb && fb->bits_per_pixel == 16) { in mga_crtc_load_lut()
42 int inc = (fb->depth == 15) ? 8 : 4; in mga_crtc_load_lut()
45 if (fb->depth == 16) { in mga_crtc_load_lut()
824 struct drm_framebuffer *fb, in mga_crtc_do_set_base() argument
835 if (!atomic && fb) { in mga_crtc_do_set_base()
836 mga_fb = to_mga_framebuffer(fb); in mga_crtc_do_set_base()
846 mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_do_set_base()
909 bppshift = mdev->bpp_shifts[(crtc->primary->fb->bits_per_pixel >> 3) - 1]; in mga_crtc_mode_set()
948 switch (crtc->primary->fb->bits_per_pixel) { in mga_crtc_mode_set()
953 if (crtc->primary->fb->depth == 15) in mga_crtc_mode_set()
1004 pitch = crtc->primary->fb->pitches[0] / (crtc->primary->fb->bits_per_pixel / 8); in mga_crtc_mode_set()
1005 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
1082 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
1145 if (crtc->primary->fb->bits_per_pixel > 16) in mga_crtc_mode_set()
1147 else if (crtc->primary->fb->bits_per_pixel > 8) in mga_crtc_mode_set()
1388 if (crtc->primary->fb) { in mga_crtc_disable()
1389 struct mga_framebuffer *mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_disable()
1398 crtc->primary->fb = NULL; in mga_crtc_disable()