Lines Matching refs:primary
32 struct drm_framebuffer *fb = crtc->primary->fb; in mga_crtc_load_lut()
745 mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_do_set_base()
808 bppshift = mdev->bpp_shifts[(crtc->primary->fb->bits_per_pixel >> 3) - 1]; in mga_crtc_mode_set()
846 switch (crtc->primary->fb->bits_per_pixel) { in mga_crtc_mode_set()
851 if (crtc->primary->fb->depth == 15) in mga_crtc_mode_set()
899 pitch = crtc->primary->fb->pitches[0] / (crtc->primary->fb->bits_per_pixel / 8); in mga_crtc_mode_set()
900 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
977 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
1037 if (crtc->primary->fb->bits_per_pixel > 16) in mga_crtc_mode_set()
1039 else if (crtc->primary->fb->bits_per_pixel > 8) in mga_crtc_mode_set()
1280 if (crtc->primary->fb) { in mga_crtc_disable()
1281 struct mga_framebuffer *mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_disable()
1290 crtc->primary->fb = NULL; in mga_crtc_disable()