Lines Matching refs:primary
33 struct drm_framebuffer *fb = crtc->primary->fb; in mga_crtc_load_lut()
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()