/drivers/video/i810/ |
D | i810_dvt.c | 194 void round_off_xres(u32 *xres) in round_off_xres() argument 196 if (*xres <= 640) in round_off_xres() 197 *xres = 640; in round_off_xres() 198 else if (*xres <= 800) in round_off_xres() 199 *xres = 800; in round_off_xres() 200 else if (*xres <= 1024) in round_off_xres() 201 *xres = 1024; in round_off_xres() 202 else if (*xres <= 1152) in round_off_xres() 203 *xres = 1152; in round_off_xres() 204 else if (*xres <= 1280) in round_off_xres() [all …]
|
D | i810_gtf.c | 112 void round_off_xres(u32 *xres) { } in round_off_xres() argument 113 void round_off_yres(u32 *xres, u32 *yres) { } in round_off_yres() argument 125 struct i810fb_par *par, u32 xres, u32 yres) in i810fb_encode_registers() argument 133 n = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 139 par->regs.cr01 = (u8) ((xres >> 3) - 1); in i810fb_encode_registers() 142 blank_e = (xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 146 if (blank_s < (xres >> 3)) in i810fb_encode_registers() 147 blank_s = xres >> 3; in i810fb_encode_registers() 154 par->regs.cr04 = (u8) ((xres + var->right_margin) >> 3); in i810fb_encode_registers() 155 par->regs.cr05 |= (u8) (((xres + var->right_margin + in i810fb_encode_registers() [all …]
|
D | i810_main.c | 144 static int xres __devinitdata; 872 u32 xres, yres, vxres, vyres; in i810_round_off() local 878 xres = var->xres; in i810_round_off() 891 round_off_xres(&xres); in i810_round_off() 892 if (xres < 40) in i810_round_off() 893 xres = 40; in i810_round_off() 894 if (xres > 2048) in i810_round_off() 895 xres = 2048; in i810_round_off() 896 xres = (xres + 7) & ~7; in i810_round_off() 898 if (vxres < xres) in i810_round_off() [all …]
|
/drivers/video/via/ |
D | via_utility.c | 49 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres) in viafb_lcd_get_support_expand_state() argument 55 if ((xres < 640) && (yres < 480)) in viafb_lcd_get_support_expand_state() 60 if ((xres < 800) && (yres < 600)) in viafb_lcd_get_support_expand_state() 65 if ((xres < 1024) && (yres < 768)) in viafb_lcd_get_support_expand_state() 70 if ((xres < 1280) && (yres < 768)) in viafb_lcd_get_support_expand_state() 75 if ((xres < 1280) && (yres < 1024)) in viafb_lcd_get_support_expand_state() 80 if ((xres < 1400) && (yres < 1050)) in viafb_lcd_get_support_expand_state() 85 if ((xres < 1600) && (yres < 1200)) in viafb_lcd_get_support_expand_state() 90 if ((xres < 1366) && (yres < 768)) in viafb_lcd_get_support_expand_state() 95 if ((xres < 1024) && (yres < 600)) in viafb_lcd_get_support_expand_state() [all …]
|
/drivers/video/ |
D | modedb.c | 22 ((v).xres == (x) && (v).yres == (y)) 431 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 432 var->xres = mode->xres; in fb_try_mode() 434 var->xres_virtual = mode->xres; in fb_try_mode() 524 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 581 xres = my_atoi(name); in fb_find_mode() 589 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 595 cvt_mode.xres = xres; in fb_find_mode() 615 refresh_specified ? "" : " (ignoring refresh rate)", xres, yres); in fb_find_mode() 639 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode() [all …]
|
D | fbcvt.c | 35 u32 xres; member 189 u32 xres = cvt->xres; in fb_cvt_aspect_ratio() local 193 if (xres == (yres * 4)/3 && !((yres * 4) % 3)) in fb_cvt_aspect_ratio() 195 else if (xres == (yres * 16)/9 && !((yres * 16) % 9)) in fb_cvt_aspect_ratio() 197 else if (xres == (yres * 16)/10 && !((yres * 16) % 10)) in fb_cvt_aspect_ratio() 199 else if (xres == (yres * 5)/4 && !((yres * 5) % 4)) in fb_cvt_aspect_ratio() 201 else if (xres == (yres * 15)/9 && !((yres * 15) % 9)) in fb_cvt_aspect_ratio() 222 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; in fb_cvt_print_name() 223 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; in fb_cvt_print_name() 227 cvt->xres, cvt->yres, cvt->refresh); in fb_cvt_print_name() [all …]
|
D | atafb.c | 624 int xres = var->xres; in tt_decode_var() local 631 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 634 xres = sttt_xres * 2; in tt_decode_var() 638 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 641 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var() 644 xres = sttt_xres / 2; in tt_decode_var() 648 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var() 650 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var() 652 xres = sttt_xres; in tt_decode_var() 657 xres = sttt_xres / 2; in tt_decode_var() [all …]
|
D | ps3fb.c | 277 long xres, yres, left_margin, right_margin, upper_margin, lower_margin; in ps3fb_cmp_mode() local 281 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode() 292 xres = max(var->xres, 1U); in ps3fb_cmp_mode() 302 dx = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_cmp_mode() 304 (left_margin + xres + right_margin); in ps3fb_cmp_mode() 319 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode() 353 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode() 359 __func__, id, vmode->left_margin, vmode->xres, in ps3fb_find_mode() 380 *ddr_line_length = vmode->xres * BPP; in ps3fb_find_mode() 383 if (!var->xres) in ps3fb_find_mode() [all …]
|
D | arcfb.c | 54 #define floorXres(a,xres) (a&(~(xres - 1))) argument 57 #define ceilXres(a,xres) (a|(xres - 1)) argument 95 .xres = 128, 264 linesize = par->info->var.xres/8; in arcfb_lcd_update_page() 452 unsigned int xres; in arcfb_write() local 456 xres = info->var.xres; in arcfb_write() 457 fbmemlength = (xres * info->var.yres)/8; in arcfb_write() 479 startpos = floorXres(bitppos, xres); in arcfb_write() 480 endpos = ceilXres((bitppos + (count*8)), xres); in arcfb_write() 483 x = startpos % xres; in arcfb_write() [all …]
|
D | sa1100fb.c | 228 .xres = 320, .yres = 240, 242 .xres = 640, .yres = 512, 257 .xres = 320, .yres = 240, 273 .xres = 320, .yres = 240, 296 .xres = 320, .yres = 240, 314 .xres = 320, .yres = 240, 330 .xres = 320, .yres = 240, 346 .xres = 320, .yres = 240, 359 .xres = 640, .yres = 480, 375 .xres = 640, .yres = 480, [all …]
|
D | fbmon.c | 382 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument 390 var->xres = xres; in calc_mode_timings() 394 mode->xres = xres; in calc_mode_timings() 497 int xres, yres = 0, refresh, ratio, i; in get_std_timing() local 499 xres = (block[0] + 31) * 8; in get_std_timing() 500 if (xres <= 256) in get_std_timing() 506 yres = xres; in get_std_timing() 509 yres = (xres * 3)/4; in get_std_timing() 512 yres = (xres * 4)/5; in get_std_timing() 515 yres = (xres * 9)/16; in get_std_timing() [all …]
|
D | w100fb.c | 188 …memset_io(remapped_fbuf + (W100_FB_BASE-MEM_WINDOW_BASE), 0, (par->xres * par->yres * BITS_PER_PIX… in w100fb_clear_screen() 296 writel(par->xres, remapped_regs + mmDST_PITCH); in w100_init_graphic_engine() 298 writel(par->xres, remapped_regs + mmSRC_PITCH); in w100_init_graphic_engine() 302 writel((par->yres << 16) | par->xres, remapped_regs + mmSC_BOTTOM_RIGHT); in w100_init_graphic_engine() 440 if (modelist[i].xres >= *x && modelist[i].yres >= *y && in w100fb_get_mode() 441 modelist[i].xres < best_x && modelist[i].yres < best_y) { in w100fb_get_mode() 442 best_x = modelist[i].xres; in w100fb_get_mode() 445 } else if(modelist[i].xres >= *y && modelist[i].yres >= *x && in w100fb_get_mode() 446 modelist[i].xres < best_y && modelist[i].yres < best_x) { in w100fb_get_mode() 448 best_y = modelist[i].xres; in w100fb_get_mode() [all …]
|
D | cyblafb.c | 311 cyblafb_setup_GE(info->var.xres, in cyblafb_sync() 552 if ((displaytype == DISPLAY_FP) && nativex && var->xres > nativex) in cyblafb_check_var() 576 var->xres &= ~7; in cyblafb_check_var() 578 if (((var->xres + var->left_margin + var->right_margin + in cyblafb_check_var() 584 if ((var->xres > 1600) || (var->yres > 1200)) in cyblafb_check_var() 586 var->xres, var->yres); in cyblafb_check_var() 590 if (var->xres > var->xres_virtual) in cyblafb_check_var() 591 var->xres_virtual = var->xres; in cyblafb_check_var() 607 else if (var->xres_virtual > var->xres) in cyblafb_check_var() 806 var->xres, var->yres, var->xres_virtual, in cyblafb_set_par() [all …]
|
D | goldfishfb.c | 113 if((var->xres != info->var.yres) || in goldfish_fb_check_var() 114 (var->yres != info->var.xres) || in goldfish_fb_check_var() 116 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() 117 (var->yres_virtual < info->var.xres )) { in goldfish_fb_check_var() 122 if((var->xres != info->var.xres) || in goldfish_fb_check_var() 124 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 142 info->fix.line_length = info->var.xres * 2; in goldfish_fb_set_par() 158 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, fb->reg_base + FB_SET_BASE); in goldfish_fb_pan_display() 242 fb->fb.var.xres = width; in goldfish_fb_probe()
|
D | imxfb.c | 276 if (var->xres < MIN_XRES) in imxfb_check_var() 277 var->xres = MIN_XRES; in imxfb_check_var() 280 if (var->xres > fbi->max_xres) in imxfb_check_var() 281 var->xres = fbi->max_xres; in imxfb_check_var() 284 var->xres_virtual = max(var->xres_virtual, var->xres); in imxfb_check_var() 435 var->xres, var->hsync_len, in imxfb_activate_var() 442 if (var->xres < 16 || var->xres > 1024) in imxfb_activate_var() 444 info->fix.id, var->xres); in imxfb_activate_var() 478 writel(SIZE_XMAX(var->xres) | SIZE_YMAX(var->yres), in imxfb_activate_var() 551 fbi->max_xres = pdata->xres; in imxfb_init_fbinfo() [all …]
|
D | au1100fb.h | 76 u32 xres; /* Maximum horizontal resolution */ member 272 .xres = 800, 285 .xres = 240, 296 .xres = 320, 323 .xres = 320, 345 .xres = 640, 357 .xres = 640,
|
D | fsl-diu-fb.c | 47 .xres = 1024, 64 .xres = 1024, 79 .xres = 1024, 94 .xres = 1024, 109 .xres = 1280, 124 .xres = 1280, 139 .xres = 1280, 154 .xres = 320, 169 .xres = 1280, 479 base_plane_width = machine_data->fsl_diu_info[0]->var.xres; in adjust_aoi_size_position() [all …]
|
D | g364fb.c | 156 *(unsigned int *) TOP_REG = var->yoffset * var->xres; in g364fb_pan_display() 210 fb_var.xres = in g364fb_init() 233 fb_var.xres_virtual = fbvar.xres; in g364fb_init() 234 fb_fix.line_length = (xres / 8) * fb_var.bits_per_pixel; in g364fb_init() 239 fb_var.yres_virtual = fb_fix.smem_len / fb_var.xres; in g364fb_init()
|
D | hitfb.c | 246 var->xres = info->var.xres; in hitfb_check_var() 247 var->xres_virtual = info->var.xres; in hitfb_check_var() 256 maxy = info->fix.smem_len / var->xres; in hitfb_check_var() 299 info->fix.line_length = info->var.xres; in hitfb_set_par() 304 info->fix.line_length = info->var.xres*2; in hitfb_set_par() 351 hitfb_var.xres = lcdclor; in hitfb_probe() 355 hitfb_var.xres = lcdclor / 2; in hitfb_probe() 362 hitfb_var.xres_virtual = hitfb_var.xres; in hitfb_probe()
|
D | 68328fb.c | 158 if (!var->xres) in mc68x328fb_check_var() 159 var->xres = 1; in mc68x328fb_check_var() 162 if (var->xres > var->xres_virtual) in mc68x328fb_check_var() 163 var->xres_virtual = var->xres; in mc68x328fb_check_var() 179 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var() 180 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var() 382 if (var->xoffset + var->xres > info->var.xres_virtual || in mc68x328fb_pan_display() 448 mc68x328fb_default.xres = LXMAX; in mc68x328fb_init() 450 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init()
|
D | pvr2fb.c | 158 .xres = 640, 384 par->hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2fb_set_par() 417 par->borderstop_h = par->diwstart_h + var->xres + in pvr2fb_set_par() 424 if (info->var.xres < 640) in pvr2fb_set_par() 444 if (var->xres < 320) in pvr2fb_check_var() 445 var->xres = 320; in pvr2fb_check_var() 448 if (var->xres_virtual < var->xres) in pvr2fb_check_var() 449 var->xres_virtual = var->xres; in pvr2fb_check_var() 467 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var() 494 (par->diwstart_h + var->xres); in pvr2fb_check_var() [all …]
|
D | macmodes.c | 267 var->xres = mode->xres; in mac_vmode_to_var() 269 var->xres_virtual = mode->xres; in mac_vmode_to_var() 316 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() 318 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode()
|
D | pm2fb.c | 125 .xres = 640, 227 static u32 partprod(u32 xres) in partprod() argument 231 for (i = 0; pp_table[i].width && pp_table[i].width != xres; i++) in partprod() 234 DPRINTK("invalid width %u\n", xres); in partprod() 578 if (var->xres != var->xres_virtual) { in pm2fb_check_var() 605 var->xres = (var->xres + 15) & ~15; /* could sometimes be 8 */ in pm2fb_check_var() 606 lpitch = var->xres * ((var->bits_per_pixel + 7) >> 3); in pm2fb_check_var() 608 if (var->xres < 320 || var->xres > 1600) { in pm2fb_check_var() 609 DPRINTK("width not supported: %u\n", var->xres); in pm2fb_check_var() 620 var->xres, var->yres_virtual, var->bits_per_pixel); in pm2fb_check_var() [all …]
|
/drivers/video/aty/ |
D | radeon_monitor.c | 5 .xres = 640, 182 rinfo->panel_info.xres = BIOS_IN16(tmp + 25); in radeon_get_panel_info_BIOS() 185 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS() 212 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && in radeon_get_panel_info_BIOS() 686 rinfo->panel_info.xres = var->xres; in radeon_var_to_panel_info() 713 var->xres = mode->xres; in radeon_videomode_to_var() 715 var->xres_virtual = mode->xres; in radeon_videomode_to_var() 761 if (var.xres >= rinfo->panel_info.xres && in radeon_check_modes() 780 var->xres = rinfo->panel_info.xres; in radeon_check_modes() 782 var->xres_virtual = rinfo->panel_info.xres; in radeon_check_modes() [all …]
|
/drivers/video/omap/ |
D | omapfb_main.c | 217 var->xres, var->yres, plane->color_mode); in ctrl_change_mode() 220 var->xres, var->yres, in ctrl_change_mode() 499 var->xres = panel->x_res; in set_fb_var() 510 var->xres = panel->y_res; in set_fb_var() 518 if (var->xres < xres_min) in set_fb_var() 519 var->xres = xres_min; in set_fb_var() 522 if (var->xres > xres_max) in set_fb_var() 523 var->xres = xres_max; in set_fb_var() 527 if (var->xres_virtual < var->xres) in set_fb_var() 528 var->xres_virtual = var->xres; in set_fb_var() [all …]
|