Lines Matching +full:- +full:70

2  *  linux/drivers/video/modedb.c -- Standard video mode database management
6 * 2001 - Documented with DocBook
7 * - Brad Douglas <brad@neruo.com>
38 /* 640x400 @ 70 Hz, 31.5 kHz hsync */
39 { NULL, 70, 640, 400, 39721, 40, 24, 39, 9, 96, 2, 0,
99 /* 1024x768 @ 70 Hz, 56.5 kHz hsync */
100 { NULL, 70, 1024, 768, 13333, 144, 24, 29, 3, 136, 6, 0,
115 /* 1152x864 @ 70 Hz, 62.4 kHz hsync */
116 { NULL, 70, 1152, 864, 10869, 106, 56, 20, 1, 160, 10, 0,
145 /* 1280x1024 @ 70 Hz, 74.59 kHz hsync */
146 { NULL, 70, 1280, 1024, 7905, 224, 32, 28, 8, 160, 8, 0,
170 /* 1600x1200 @ 70 Hz, 87.50 kHz hsync */
171 { NULL, 70, 1600, 1200, 5291, 304, 64, 46, 1, 192, 3, 0,
207 /* 1800x1440 @ 70Hz, 104.52 kHz hsync */
208 { NULL, 70, 1800, 1440, 4000, 304, 96, 46, 1, 192, 3,
220 /* 320x200 @ 70 Hz, 31.5 kHz hsync, 8:5 aspect ratio */
221 { NULL, 70, 320, 200, 79440, 16, 16, 20, 4, 48, 1, 0,
298 /* 0 640x350-85 VESA */
301 /* 1 640x400-85 VESA */
304 /* 2 720x400-85 VESA */
307 /* 3 640x480-60 VESA */
310 /* 4 640x480-72 VESA */
313 /* 5 640x480-75 VESA */
316 /* 6 640x480-85 VESA */
319 /* 7 800x600-56 VESA */
323 /* 8 800x600-60 VESA */
327 /* 9 800x600-72 VESA */
331 /* 10 800x600-75 VESA */
335 /* 11 800x600-85 VESA */
339 /* 12 1024x768i-43 VESA */
343 /* 13 1024x768-60 VESA */
346 /* 14 1024x768-70 VESA */
347 { NULL, 70, 1024, 768, 13333, 144, 24, 29, 3, 136, 6,
349 /* 15 1024x768-75 VESA */
353 /* 16 1024x768-85 VESA */
357 /* 17 1152x864-75 VESA */
361 /* 18 1280x960-60 VESA */
365 /* 19 1280x960-85 VESA */
369 /* 20 1280x1024-60 VESA */
373 /* 21 1280x1024-75 VESA */
377 /* 22 1280x1024-85 VESA */
381 /* 23 1600x1200-60 VESA */
385 /* 24 1600x1200-65 VESA */
389 /* 25 1600x1200-70 VESA */
390 { NULL, 70, 1600, 1200, 5291, 304, 64, 46, 1, 192, 3,
393 /* 26 1600x1200-75 VESA */
397 /* 27 1600x1200-85 VESA */
401 /* 28 1792x1344-60 VESA */
404 /* 29 1792x1344-75 VESA */
407 /* 30 1856x1392-60 VESA */
410 /* 31 1856x1392-75 VESA */
413 /* 32 1920x1440-60 VESA */
416 /* 33 1920x1440-75 VESA */
419 /* 34 1920x1200-60 RB VESA */
422 /* 35 1920x1200-60 VESA */
425 /* 36 1920x1200-75 VESA */
428 /* 37 1920x1200-85 VESA */
431 /* 38 2560x1600-60 RB VESA */
434 /* 39 2560x1600-60 VESA */
437 /* 40 2560x1600-75 VESA */
440 /* 41 2560x1600-85 VESA */
443 /* 42 2560x1600-120 RB VESA */
535 * fb_try_mode - test a video mode
552 DPRINTK("Trying mode %s %dx%d-%d@%d\n", in fb_try_mode()
553 mode->name ? mode->name : "noname", in fb_try_mode()
554 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
555 var->xres = mode->xres; in fb_try_mode()
556 var->yres = mode->yres; in fb_try_mode()
557 var->xres_virtual = mode->xres; in fb_try_mode()
558 var->yres_virtual = mode->yres; in fb_try_mode()
559 var->xoffset = 0; in fb_try_mode()
560 var->yoffset = 0; in fb_try_mode()
561 var->bits_per_pixel = bpp; in fb_try_mode()
562 var->activate |= FB_ACTIVATE_TEST; in fb_try_mode()
563 var->pixclock = mode->pixclock; in fb_try_mode()
564 var->left_margin = mode->left_margin; in fb_try_mode()
565 var->right_margin = mode->right_margin; in fb_try_mode()
566 var->upper_margin = mode->upper_margin; in fb_try_mode()
567 var->lower_margin = mode->lower_margin; in fb_try_mode()
568 var->hsync_len = mode->hsync_len; in fb_try_mode()
569 var->vsync_len = mode->vsync_len; in fb_try_mode()
570 var->sync = mode->sync; in fb_try_mode()
571 var->vmode = mode->vmode; in fb_try_mode()
572 if (info->fbops->fb_check_var) in fb_try_mode()
573 err = info->fbops->fb_check_var(var, info); in fb_try_mode()
574 var->activate &= ~FB_ACTIVATE_TEST; in fb_try_mode()
579 * fb_find_mode - finds a valid video mode
595 * <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][p][m]
599 * <name>[-<bpp>][@<refresh>]
612 * 1024x768MR-8@60m - Reduced blank with margins at 60Hz.
658 for (i = namelen-1; i >= 0; i--) { in fb_find_mode()
672 case '-': in fb_find_mode()
770 info->monspecs.vfmin && info->monspecs.vfmax && in fb_find_mode()
771 info->monspecs.hfmin && info->monspecs.hfmax && in fb_find_mode()
772 info->monspecs.dclkmax) { in fb_find_mode()
779 diff = -1; in fb_find_mode()
780 best = -1; in fb_find_mode()
787 int score = abs(db[i].refresh - refresh); in fb_find_mode()
790 score += abs(db_interlace - interlace); in fb_find_mode()
804 if (best != -1) { in fb_find_mode()
810 best = -1; in fb_find_mode()
811 DPRINTK("Trying best-fit modes\n"); in fb_find_mode()
815 tdiff = abs(db[i].xres - xres) + in fb_find_mode()
816 abs(db[i].yres - yres); in fb_find_mode()
831 if (best != -1) { in fb_find_mode()
851 * fb_var_to_videomode - convert fb_var_screeninfo to fb_videomode
860 mode->name = NULL; in fb_var_to_videomode()
861 mode->xres = var->xres; in fb_var_to_videomode()
862 mode->yres = var->yres; in fb_var_to_videomode()
863 mode->pixclock = var->pixclock; in fb_var_to_videomode()
864 mode->hsync_len = var->hsync_len; in fb_var_to_videomode()
865 mode->vsync_len = var->vsync_len; in fb_var_to_videomode()
866 mode->left_margin = var->left_margin; in fb_var_to_videomode()
867 mode->right_margin = var->right_margin; in fb_var_to_videomode()
868 mode->upper_margin = var->upper_margin; in fb_var_to_videomode()
869 mode->lower_margin = var->lower_margin; in fb_var_to_videomode()
870 mode->sync = var->sync; in fb_var_to_videomode()
871 mode->vmode = var->vmode & FB_VMODE_MASK; in fb_var_to_videomode()
872 mode->flag = FB_MODE_IS_FROM_VAR; in fb_var_to_videomode()
873 mode->refresh = 0; in fb_var_to_videomode()
875 if (!var->pixclock) in fb_var_to_videomode()
878 pixclock = PICOS2KHZ(var->pixclock) * 1000; in fb_var_to_videomode()
880 htotal = var->xres + var->right_margin + var->hsync_len + in fb_var_to_videomode()
881 var->left_margin; in fb_var_to_videomode()
882 vtotal = var->yres + var->lower_margin + var->vsync_len + in fb_var_to_videomode()
883 var->upper_margin; in fb_var_to_videomode()
885 if (var->vmode & FB_VMODE_INTERLACED) in fb_var_to_videomode()
887 if (var->vmode & FB_VMODE_DOUBLE) in fb_var_to_videomode()
894 mode->refresh = hfreq/vtotal; in fb_var_to_videomode()
898 * fb_videomode_to_var - convert fb_videomode to fb_var_screeninfo
905 var->xres = mode->xres; in fb_videomode_to_var()
906 var->yres = mode->yres; in fb_videomode_to_var()
907 var->xres_virtual = mode->xres; in fb_videomode_to_var()
908 var->yres_virtual = mode->yres; in fb_videomode_to_var()
909 var->xoffset = 0; in fb_videomode_to_var()
910 var->yoffset = 0; in fb_videomode_to_var()
911 var->pixclock = mode->pixclock; in fb_videomode_to_var()
912 var->left_margin = mode->left_margin; in fb_videomode_to_var()
913 var->right_margin = mode->right_margin; in fb_videomode_to_var()
914 var->upper_margin = mode->upper_margin; in fb_videomode_to_var()
915 var->lower_margin = mode->lower_margin; in fb_videomode_to_var()
916 var->hsync_len = mode->hsync_len; in fb_videomode_to_var()
917 var->vsync_len = mode->vsync_len; in fb_videomode_to_var()
918 var->sync = mode->sync; in fb_videomode_to_var()
919 var->vmode = mode->vmode & FB_VMODE_MASK; in fb_videomode_to_var()
923 * fb_mode_is_equal - compare 2 videomodes
933 return (mode1->xres == mode2->xres && in fb_mode_is_equal()
934 mode1->yres == mode2->yres && in fb_mode_is_equal()
935 mode1->pixclock == mode2->pixclock && in fb_mode_is_equal()
936 mode1->hsync_len == mode2->hsync_len && in fb_mode_is_equal()
937 mode1->vsync_len == mode2->vsync_len && in fb_mode_is_equal()
938 mode1->left_margin == mode2->left_margin && in fb_mode_is_equal()
939 mode1->right_margin == mode2->right_margin && in fb_mode_is_equal()
940 mode1->upper_margin == mode2->upper_margin && in fb_mode_is_equal()
941 mode1->lower_margin == mode2->lower_margin && in fb_mode_is_equal()
942 mode1->sync == mode2->sync && in fb_mode_is_equal()
943 mode1->vmode == mode2->vmode); in fb_mode_is_equal()
947 * fb_find_best_mode - find best matching videomode
956 * info->modelist are valid.
960 * var->xres and var->yres. If more than 1 videomode is found, will return
968 u32 diff = -1; in fb_find_best_mode()
972 mode = &modelist->mode; in fb_find_best_mode()
974 if (mode->xres >= var->xres && mode->yres >= var->yres) { in fb_find_best_mode()
975 d = (mode->xres - var->xres) + in fb_find_best_mode()
976 (mode->yres - var->yres); in fb_find_best_mode()
981 mode->refresh > best->refresh) in fb_find_best_mode()
989 * fb_find_nearest_mode - find closest videomode
1003 u32 diff = -1, diff_refresh = -1; in fb_find_nearest_mode()
1007 cmode = &modelist->mode; in fb_find_nearest_mode()
1009 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode()
1010 abs(cmode->yres - mode->yres); in fb_find_nearest_mode()
1013 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1016 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1028 * fb_match_mode - find a videomode which exactly matches the timings in var
1043 m = &modelist->mode; in fb_match_mode()
1051 * fb_add_videomode - adds videomode entry to modelist
1065 m = &modelist->mode; in fb_add_videomode()
1076 return -ENOMEM; in fb_add_videomode()
1077 modelist->mode = *mode; in fb_add_videomode()
1078 list_add(&modelist->list, head); in fb_add_videomode()
1084 * fb_delete_videomode - removed videomode entry from modelist
1100 m = &modelist->mode; in fb_delete_videomode()
1109 * fb_destroy_modelist - destroy modelist
1124 * fb_videomode_to_modelist - convert mode array to mode list
1149 if (!head->prev || !head->next || list_empty(head)) in fb_find_best_display()
1154 m = &modelist->mode; in fb_find_best_display()
1161 if (m->flag & FB_MODE_IS_FIRST) { in fb_find_best_display()
1168 if (specs->misc & FB_MISC_1ST_DETAIL) { in fb_find_best_display()
1174 if (specs->max_x && specs->max_y) { in fb_find_best_display()
1178 var.xres = (specs->max_x * 7200)/254; in fb_find_best_display()
1179 var.yres = (specs->max_y * 7200)/254; in fb_find_best_display()