Lines Matching refs:mode

101 				const struct drm_display_mode *mode,  in mga_crtc_mode_fixup()  argument
881 struct drm_display_mode *mode, in mga_crtc_mode_set() argument
966 if (mode->flags & DRM_MODE_FLAG_NHSYNC) in mga_crtc_mode_set()
968 if (mode->flags & DRM_MODE_FLAG_NVSYNC) in mga_crtc_mode_set()
1010 hdisplay = mode->hdisplay / 8 - 1; in mga_crtc_mode_set()
1011 hsyncstart = mode->hsync_start / 8 - 1; in mga_crtc_mode_set()
1012 hsyncend = mode->hsync_end / 8 - 1; in mga_crtc_mode_set()
1013 htotal = mode->htotal / 8 - 1; in mga_crtc_mode_set()
1019 vdisplay = mode->vdisplay - 1; in mga_crtc_mode_set()
1020 vsyncstart = mode->vsync_start - 1; in mga_crtc_mode_set()
1021 vsyncend = mode->vsync_end - 1; in mga_crtc_mode_set()
1022 vtotal = mode->vtotal - 2; in mga_crtc_mode_set()
1094 mga_crtc_set_plls(mdev, mode->clock); in mga_crtc_mode_set()
1117 memcpy(&mdev->mode, mode, sizeof(struct drm_display_mode)); in mga_crtc_mode_set()
1152 mb = (mode->clock * bpp) / 1000; in mga_crtc_mode_set()
1238 static void mga_crtc_dpms(struct drm_crtc *crtc, int mode) in mga_crtc_dpms() argument
1244 switch (mode) { in mga_crtc_dpms()
1265 if (mode == DRM_MODE_DPMS_OFF) { in mga_crtc_dpms()
1280 if (mode == DRM_MODE_DPMS_ON && mdev->suspended == true) { in mga_crtc_dpms()
1483 const struct drm_display_mode *mode, in mga_encoder_mode_fixup() argument
1490 struct drm_display_mode *mode, in mga_encoder_mode_set() argument
1563 static uint32_t mga_vga_calculate_mode_bandwidth(struct drm_display_mode *mode, in mga_vga_calculate_mode_bandwidth() argument
1572 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth()
1575 active_area = mode->hdisplay * mode->vdisplay; in mga_vga_calculate_mode_bandwidth()
1576 total_area = mode->htotal * mode->vtotal; in mga_vga_calculate_mode_bandwidth()
1578 pixels_per_second = active_area * mode->clock * 1000; in mga_vga_calculate_mode_bandwidth()
1590 struct drm_display_mode *mode) in mga_vga_mode_valid() argument
1598 if (mode->hdisplay > 1600) in mga_vga_mode_valid()
1600 if (mode->vdisplay > 1200) in mga_vga_mode_valid()
1602 if (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid()
1606 if (mode->hdisplay > 1920) in mga_vga_mode_valid()
1608 if (mode->vdisplay > 1200) in mga_vga_mode_valid()
1610 if (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid()
1615 if (mode->hdisplay > 1280) in mga_vga_mode_valid()
1617 if (mode->vdisplay > 1024) in mga_vga_mode_valid()
1619 if (mga_vga_calculate_mode_bandwidth(mode, in mga_vga_mode_valid()
1623 (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid()
1627 (mga_vga_calculate_mode_bandwidth(mode, bpp) in mga_vga_mode_valid()
1631 (mga_vga_calculate_mode_bandwidth(mode, in mga_vga_mode_valid()
1636 if ((mode->hdisplay % 8) != 0 || (mode->hsync_start % 8) != 0 || in mga_vga_mode_valid()
1637 (mode->hsync_end % 8) != 0 || (mode->htotal % 8) != 0) { in mga_vga_mode_valid()
1641 if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || in mga_vga_mode_valid()
1642 mode->crtc_hsync_end > 4096 || mode->crtc_htotal > 4096 || in mga_vga_mode_valid()
1643 mode->crtc_vdisplay > 2048 || mode->crtc_vsync_start > 4096 || in mga_vga_mode_valid()
1644 mode->crtc_vsync_end > 4096 || mode->crtc_vtotal > 4096) { in mga_vga_mode_valid()
1654 if ((mode->hdisplay * mode->vdisplay * (bpp/8)) > mdev->mc.vram_size) { in mga_vga_mode_valid()