Lines Matching refs:primary
33 struct drm_framebuffer *fb = crtc->primary->fb; in mga_crtc_load_lut()
746 mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_do_set_base()
809 bppshift = mdev->bpp_shifts[(crtc->primary->fb->bits_per_pixel >> 3) - 1]; in mga_crtc_mode_set()
847 switch (crtc->primary->fb->bits_per_pixel) { in mga_crtc_mode_set()
852 if (crtc->primary->fb->depth == 15) in mga_crtc_mode_set()
900 pitch = crtc->primary->fb->pitches[0] / (crtc->primary->fb->bits_per_pixel / 8); in mga_crtc_mode_set()
901 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
978 if (crtc->primary->fb->bits_per_pixel == 24) in mga_crtc_mode_set()
1038 if (crtc->primary->fb->bits_per_pixel > 16) in mga_crtc_mode_set()
1040 else if (crtc->primary->fb->bits_per_pixel > 8) in mga_crtc_mode_set()
1281 if (crtc->primary->fb) { in mga_crtc_disable()
1282 struct mga_framebuffer *mga_fb = to_mga_framebuffer(crtc->primary->fb); in mga_crtc_disable()
1291 crtc->primary->fb = NULL; in mga_crtc_disable()