Lines Matching refs:mode

600 		       const struct fb_videomode *mode, unsigned int bpp)  in fb_try_mode()  argument
605 mode->name ? mode->name : "noname", in fb_try_mode()
606 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
607 var->xres = mode->xres; in fb_try_mode()
608 var->yres = mode->yres; in fb_try_mode()
609 var->xres_virtual = mode->xres; in fb_try_mode()
610 var->yres_virtual = mode->yres; in fb_try_mode()
615 var->pixclock = mode->pixclock; in fb_try_mode()
616 var->left_margin = mode->left_margin; in fb_try_mode()
617 var->right_margin = mode->right_margin; in fb_try_mode()
618 var->upper_margin = mode->upper_margin; in fb_try_mode()
619 var->lower_margin = mode->lower_margin; in fb_try_mode()
620 var->hsync_len = mode->hsync_len; in fb_try_mode()
621 var->vsync_len = mode->vsync_len; in fb_try_mode()
622 var->sync = mode->sync; in fb_try_mode()
623 var->vmode = mode->vmode; in fb_try_mode()
903 void fb_var_to_videomode(struct fb_videomode *mode, in fb_var_to_videomode() argument
908 mode->name = NULL; in fb_var_to_videomode()
909 mode->xres = var->xres; in fb_var_to_videomode()
910 mode->yres = var->yres; in fb_var_to_videomode()
911 mode->pixclock = var->pixclock; in fb_var_to_videomode()
912 mode->hsync_len = var->hsync_len; in fb_var_to_videomode()
913 mode->vsync_len = var->vsync_len; in fb_var_to_videomode()
914 mode->left_margin = var->left_margin; in fb_var_to_videomode()
915 mode->right_margin = var->right_margin; in fb_var_to_videomode()
916 mode->upper_margin = var->upper_margin; in fb_var_to_videomode()
917 mode->lower_margin = var->lower_margin; in fb_var_to_videomode()
918 mode->sync = var->sync; in fb_var_to_videomode()
919 mode->vmode = var->vmode & FB_VMODE_MASK; in fb_var_to_videomode()
920 mode->flag = FB_MODE_IS_FROM_VAR; in fb_var_to_videomode()
921 mode->refresh = 0; in fb_var_to_videomode()
939 mode->refresh = hfreq/vtotal; in fb_var_to_videomode()
948 const struct fb_videomode *mode) in fb_videomode_to_var() argument
950 var->xres = mode->xres; in fb_videomode_to_var()
951 var->yres = mode->yres; in fb_videomode_to_var()
952 var->xres_virtual = mode->xres; in fb_videomode_to_var()
953 var->yres_virtual = mode->yres; in fb_videomode_to_var()
956 var->pixclock = mode->pixclock; in fb_videomode_to_var()
957 var->left_margin = mode->left_margin; in fb_videomode_to_var()
958 var->right_margin = mode->right_margin; in fb_videomode_to_var()
959 var->upper_margin = mode->upper_margin; in fb_videomode_to_var()
960 var->lower_margin = mode->lower_margin; in fb_videomode_to_var()
961 var->hsync_len = mode->hsync_len; in fb_videomode_to_var()
962 var->vsync_len = mode->vsync_len; in fb_videomode_to_var()
963 var->sync = mode->sync; in fb_videomode_to_var()
964 var->vmode = mode->vmode & FB_VMODE_MASK; in fb_videomode_to_var()
1013 struct fb_videomode *mode, *best = NULL; in fb_find_best_mode() local
1020 mode = &modelist->mode; in fb_find_best_mode()
1022 if (mode->xres >= var->xres && mode->yres >= var->yres) { in fb_find_best_mode()
1023 d = (mode->xres - var->xres) + in fb_find_best_mode()
1024 (mode->yres - var->yres); in fb_find_best_mode()
1027 best = mode; in fb_find_best_mode()
1029 mode->refresh > best->refresh) in fb_find_best_mode()
1030 best = mode; in fb_find_best_mode()
1046 const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, in fb_find_nearest_mode() argument
1058 cmode = &modelist->mode; in fb_find_nearest_mode()
1060 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode()
1061 abs(cmode->yres - mode->yres); in fb_find_nearest_mode()
1064 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1067 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1091 struct fb_videomode *m, mode; in fb_match_mode() local
1093 fb_var_to_videomode(&mode, var); in fb_match_mode()
1096 m = &modelist->mode; in fb_match_mode()
1097 if (fb_mode_is_equal(m, &mode)) in fb_match_mode()
1111 int fb_add_videomode(const struct fb_videomode *mode, struct list_head *head) in fb_add_videomode() argument
1120 m = &modelist->mode; in fb_add_videomode()
1121 if (fb_mode_is_equal(m, mode)) { in fb_add_videomode()
1132 modelist->mode = *mode; in fb_add_videomode()
1146 void fb_delete_videomode(const struct fb_videomode *mode, in fb_delete_videomode() argument
1155 m = &modelist->mode; in fb_delete_videomode()
1156 if (fb_mode_is_equal(m, mode)) { in fb_delete_videomode()
1211 m = &modelist->mode; in fb_find_best_display()