/linux-2.4.37.9/drivers/video/ |
D | atafb.c | 490 int xres=var->xres; in tt_decode_var() local 497 if (bpp > 1 || xres > sttt_xres*2 || yres >tt_yres*2) in tt_decode_var() 500 xres=sttt_xres*2; in tt_decode_var() 504 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 507 if (xres > sttt_xres/2 || yres > tt_yres) in tt_decode_var() 510 xres=sttt_xres/2; in tt_decode_var() 515 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var() 517 if (xres > sttt_xres/2 || yres > st_yres/2) { in tt_decode_var() 519 xres=sttt_xres; in tt_decode_var() 525 xres=sttt_xres/2; in tt_decode_var() [all …]
|
D | sa1100fb.c | 226 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(64) + in sa1100fb_check_shadow() 252 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(5) + in sa1100fb_check_shadow() 272 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(3) + in sa1100fb_check_shadow() 285 shadow.lccr1 = LCCR1_DisWdth(var->xres) + in sa1100fb_check_shadow() 301 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(1) + in sa1100fb_check_shadow() 316 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(2) + in sa1100fb_check_shadow() 348 LCCR1_DisWdth(var->xres) + LCCR1_HorSnchWdth(9) + in sa1100fb_check_shadow() 362 LCCR1_HorSnchWdth(1) + LCCR1_DisWdth(var->xres); in sa1100fb_check_shadow() 374 LCCR1_DisWdth(var->xres) + in sa1100fb_check_shadow() 416 var->xres, var->hsync_len, in sa1100fb_check_shadow() [all …]
|
D | it8181fb.c | 500 int xres, rm, hsync, lm; in it8181fb_decode_var() local 512 if (!((var->xres == 640 && var->yres == 480) || in it8181fb_decode_var() 513 (var->xres == 800 && var->yres == 600) || in it8181fb_decode_var() 514 (var->xres == 1024 && var->yres == 768))) { in it8181fb_decode_var() 516 var->xres, var->yres); in it8181fb_decode_var() 544 par->var.xres_virtual = par->var.xres; in it8181fb_decode_var() 568 xres = var->xres; in it8181fb_decode_var() 578 par->HorizRes = xres; in it8181fb_decode_var() 579 par->HorizTotal = (xres + rm + hsync + lm) / 8 - 5; in it8181fb_decode_var() 580 par->HorizDispEnd = xres / 8 - 1; in it8181fb_decode_var() [all …]
|
D | modedb.c | 27 ((v).xres == (x) && (v).yres == (y)) 281 mode->xres, mode->yres, bpp, mode->refresh); in __fb_try_mode() 282 var->xres = mode->xres; in __fb_try_mode() 284 var->xres_virtual = mode->xres; in __fb_try_mode() 360 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 396 xres = my_atoi(name); in fb_find_mode() 405 (res_specified && res_matches(db[j], xres, yres))) && in fb_find_mode()
|
D | au1100fb.c | 202 if (var->xres != p_lcd->xres || in au1100_decode_var() 204 var->xres != p_lcd->xres || in au1100_decode_var() 458 words = (p_lcd->xres * p_lcd->yres * p_lcd->bpp) / 32; in au1100_setmode() 463 words = (p_lcd->xres * p_lcd->bpp) / 8; in au1100_setmode() 515 p_lcd->xres = in au1100fb_init() 524 p_lcd->xres = in au1100fb_init() 534 if (((p_lcd->xres * p_lcd->bpp) % 32) != 0) in au1100fb_init() 540 fb_info.fb_size = (p_lcd->xres * p_lcd->yres * p_lcd->bpp) / 8; in au1100fb_init() 542 current_par.var.xres = p_lcd->xres; in au1100fb_init() 543 current_par.var.xres_virtual = p_lcd->xres; in au1100fb_init() [all …]
|
D | epson1355fb.c | 120 u32 xres; member 183 bytes_per_line = (par->xres * bpp) >> 3; in e1355_set_bpp() 207 if (var->xres != par->xres || in e1355_decode_var() 209 var->xres != var->xres_virtual || in e1355_decode_var() 273 u32 xres, xres_virtual, yres; in e1355_encode_var() local 295 xres = e1355_read_reg(0x04) + 1; in e1355_encode_var() 298 xres *= 8; in e1355_encode_var() 307 var->xres = xres; in e1355_encode_var()
|
D | g364fb.c | 200 if (var->xres > fb_var.xres || var->yres > fb_var.yres || in g364fb_set_var() 212 *(unsigned int *)TOP_REG = var->yoffset * var->xres; in g364fb_set_var() 234 *(unsigned int *)TOP_REG = var->yoffset * var->xres; in g364fb_pan_display() 283 unsigned int xres, yres; in g364fb_init() local 290 xres = (*((volatile unsigned int*)DISPLAY_REG) & 0x00ffffff) * 4; in g364fb_init() 322 fb_var.xres = fb_var.xres_virtual = xres; in g364fb_init() 325 fb_fix.line_length = (xres / 8) * fb_var.bits_per_pixel; in g364fb_init() 340 fb_var.yres_virtual = fb_fix.smem_len / xres; in g364fb_init() 424 *(unsigned int *)TOP_REG = var->yoffset * var->xres; in g364fbcon_updatevar()
|
D | pvr2fb.c | 128 int xres; member 372 oldxres = display->var.xres; in pvr2fb_set_var() 378 if (oldxres != var->xres || oldyres != var->yres || in pvr2fb_set_var() 445 if (var->xoffset+fb_display[con].var.xres > in pvr2fb_pan_display() 660 if ((par->xres = var->xres) < 320) in pvr2_decode_var() 661 par->xres = 320; in pvr2_decode_var() 664 if ((par->vxres = var->xres_virtual) < par->xres) in pvr2_decode_var() 665 par->vxres = par->xres; in pvr2_decode_var() 698 par->hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2_decode_var() 748 if (par->xres < 640) in pvr2_decode_var() [all …]
|
D | vga16fb.c | 244 u32 xres, right, hslen, left, xtotal; in vga16fb_decode_var() local 253 xres = (var->xres + 7) & ~7; in vga16fb_decode_var() 260 if (vxres < xres) in vga16fb_decode_var() 261 vxres = xres; in vga16fb_decode_var() 262 if (xres + xoffset > vxres) in vga16fb_decode_var() 263 xoffset = vxres - xres; in vga16fb_decode_var() 265 par->var.xres = xres; in vga16fb_decode_var() 272 xres >>= 3; in vga16fb_decode_var() 277 xtotal = xres + right + hslen + left; in vga16fb_decode_var() 285 par->crtc[VGA_CRTC_H_BLANK_START] = xres - 1; in vga16fb_decode_var() [all …]
|
D | neofb.c | 142 static int neoFindMode (int xres, int yres, int depth) in neoFindMode() argument 174 if (xres <= mode[i].x_res) in neoFindMode() 1063 timings.HDisplay = var->xres; in neofb_decode_var() 1077 if ((var->xres > info->NeoPanelWidth) || in neofb_decode_var() 1081 var->xres, in neofb_decode_var() 1089 switch (var->xres) in neofb_decode_var() 1112 var->xres, var->yres); in neofb_decode_var() 1153 if (var->xres_virtual < var->xres) in neofb_decode_var() 1154 var->xres_virtual = var->xres; in neofb_decode_var() 1167 if (var->xres_virtual < var->xres) in neofb_decode_var() [all …]
|
D | macmodes.c | 438 var->xres = mode->xres; in mac_vmode_to_var() 440 var->xres_virtual = mode->xres; in mac_vmode_to_var() 487 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() 489 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode()
|
D | pm2fb.c | 474 static u32 partprod(u32 xres) { in partprod() argument 477 for (i=0; pp_table[i].width && pp_table[i].width!=xres; i++); in partprod() 479 DPRINTK("invalid width %u\n", xres); in partprod() 694 u32 xres; in set_screen() local 701 xres=(p->width+31)&~31; in set_screen() 737 pm2_WR(i, PM2R_FB_READ_MODE, partprod(xres)); in set_screen() 738 pm2_WR(i, PM2R_LB_READ_MODE, partprod(xres)); in set_screen() 739 pm2_WR(i, PM2R_TEXTURE_MAP_FORMAT, txtmap|partprod(xres)); in set_screen() 1278 sx, 0, (p->var.xres-sx), p->var.yres_virtual, c); in pm2fb_clear_margins8() 1331 sx, 0, (p->var.xres-sx), p->var.yres_virtual, c); in pm2fb_clear_margins16() [all …]
|
D | imsttfb.c | 497 compute_imstt_regvals_ibm (struct fb_info_imstt *p, int xres, int yres) in compute_imstt_regvals_ibm() argument 502 switch (xres) { in compute_imstt_regvals_ibm() 535 init->hsb = init->heb + (xres >> 3); in compute_imstt_regvals_ibm() 543 init->pitch = xres; in compute_imstt_regvals_ibm() 549 compute_imstt_regvals_tvp (struct fb_info_imstt *p, int xres, int yres) in compute_imstt_regvals_tvp() argument 553 switch (xres) { in compute_imstt_regvals_tvp() 584 compute_imstt_regvals (struct fb_info_imstt *p, u_int xres, u_int yres) in compute_imstt_regvals() argument 587 return compute_imstt_regvals_ibm(p, xres, yres); in compute_imstt_regvals() 589 return compute_imstt_regvals_tvp(p, xres, yres); in compute_imstt_regvals() 1190 display_info.width = disp->var.xres; in set_display_info() [all …]
|
D | cyberfb.c | 435 par->var.xres = var->xres; in Cyber_decode_var() 478 var->xres = par->var.xres; in Cyber_encode_var() 927 oldxres = fb_display[con].var.xres; in cyberfb_set_var() 934 if (oldxres != var->xres || oldyres != var->yres || in cyberfb_set_var() 1043 cyberfb_default.xres, in cyberfb_setup() 1844 int xres, hfront, hsync, hback; local 1874 xres = video_mode->xres; 1919 HBS = hmul * (xres / 8); 1920 HBE = hmul * ((xres/8) + (hfront/8) + (hsync/8) + (hback/8) - 2); 1921 HSS = hmul * ((xres/8) + (hfront/8) + 2); [all …]
|
D | controlfb.c | 66 int xres, yres; member 90 return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) in PAR_EQUAL() 95 return (!DIRTY(bits_per_pixel) && !DIRTY(xres) in VAR_MATCH() 368 if (xoffset+par->xres > par->vxres || in control_pan_display() 663 vyres = (p->total_vram - CTRLFB_OFF) / (var.xres << cmode); in init_control() 744 display_info.width = p->par.xres; in control_set_hardware() 760 p->par.xres, p->par.yres, in control_set_hardware() 1071 par->xres = (var->xres + hstep) & ~hstep; in control_var_to_par() 1074 if (par->vxres < par->xres) in control_var_to_par() 1075 par->vxres = par->xres; in control_var_to_par() [all …]
|
D | vfb.c | 194 if (!var->xres) in vfb_set_var() 195 var->xres = 1; in vfb_set_var() 198 if (var->xres > var->xres_virtual) in vfb_set_var() 199 var->xres_virtual = var->xres; in vfb_set_var() 228 oldxres = display->var.xres; in vfb_set_var() 234 if (oldxres != var->xres || oldyres != var->yres || in vfb_set_var() 320 if (var->xoffset+fb_display[con].var.xres > in vfb_pan_display()
|
D | acornfb.c | 252 display_end = display_start + var->xres; in acornfb_set_timing() 316 printk(KERN_DEBUG "VIDC registers for %dx%dx%d:\n", var->xres, in acornfb_set_timing() 395 vidc.h_display_end = vidc.h_display_start + var->xres; in acornfb_set_timing() 471 words_per_line = var->xres * var->bits_per_pixel / 32; in acornfb_set_timing() 493 printk(KERN_DEBUG "VIDC registers for %dx%dx%d:\n", var->xres, in acornfb_set_timing() 560 var->xres = (var->xres + 1) & ~1; in acornfb_adjust_timing() 565 var->xres_virtual = var->xres; in acornfb_adjust_timing() 591 font_line_len = var->xres * var->bits_per_pixel * fontht / 8; in acornfb_adjust_timing() 592 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing() 684 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing() [all …]
|
D | tx3912fb.c | 173 if (!var->xres) in tx3912fb_set_var() 174 var->xres = 1; in tx3912fb_set_var() 177 if (var->xres > var->xres_virtual) in tx3912fb_set_var() 178 var->xres_virtual = var->xres; in tx3912fb_set_var() 223 oldxres = display->var.xres; in tx3912fb_set_var() 230 if (oldxres != var->xres || oldyres != var->yres || in tx3912fb_set_var()
|
D | fonts.c | 103 struct fbcon_font_desc *fbcon_get_default_font(int xres, int yres) in fbcon_get_default_font() argument 119 if (MACH_IS_MAC && xres < 640 && f->idx == VGA6x11_IDX) in fbcon_get_default_font()
|
D | retz3fb.c | 60 int xres; member 393 int xres, hfront, hsync, hback; in retz3_set_video() local 415 xres = var->xres * bpp / 4; in retz3_set_video() 442 data.h_total = (hback / 8) + (xres / 8) in retz3_set_video() 444 data.h_dispend = ((xres + bpp - 1)/ 8) - 1; in retz3_set_video() 445 data.h_bstart = xres / 8 - 1 /* + 1 */; in retz3_set_video() 448 data.h_sstart = (xres / 8) + (hfront / 8) + 1; in retz3_set_video() 449 data.h_sstop = (xres / 8) + (hfront / 8) + (hsync / 8) + 1; in retz3_set_video() 819 par->xres = var->xres; in retz3_decode_var() 857 var->xres = par->xres; in retz3_encode_var() [all …]
|
D | virgefb.c | 1026 par->var.xres = var->xres; in virgefb_decode_var() 1031 par->var.xres = (par->var.xres+7) & ~7; in virgefb_decode_var() 1033 if (par->var.xres_virtual < par->var.xres) in virgefb_decode_var() 1034 par->var.xres_virtual = par->var.xres; in virgefb_decode_var() 1091 var->xres = par->var.xres; in virgefb_encode_var() 1393 clip = ((0 << 16) | (var->xres - 1)); in virgefb_set_video() 1597 oldxres = fb_display[con].var.xres; in virgefb_set_var() 1604 if (oldxres != var->xres || oldyres != var->yres || in virgefb_set_var() 1723 printk(KERN_INFO "mode : xres=%d, yres=%d, bpp=%d\n", virgefb_default.xres, in virgefb_setup() 2229 int xres, xres_virtual, hfront, hsync, hback; in virgefb_load_video_mode() local [all …]
|
/linux-2.4.37.9/drivers/video/sis/ |
D | sis_main.c | 190 unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0; in sisfb_search_mode() local 220 if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) { in sisfb_search_mode() 224 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode() 227 } else if(sscanf(strbuf1, "%u %u %u", &xres, &yres, &depth) == 3) { in sisfb_search_mode() 228 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode() 231 xres = 0; in sisfb_search_mode() 232 if((sscanf(strbuf1, "%u %u", &xres, &yres) == 2) && (xres != 0)) { in sisfb_search_mode() 233 sprintf(strbuf, "%ux%ux8", xres, yres); in sisfb_search_mode() 378 int i, j, xres, yres, refresh, index; in sisfb_interpret_edid() local 445 xres = (buffer[index] + 31) * 8; in sisfb_interpret_edid() [all …]
|
/linux-2.4.37.9/drivers/video/matrox/ |
D | matroxfb_base.c | 452 if (var->xoffset+dsp->var.xres > dsp->var.xres_virtual || in matroxfb_pan_display() 490 static int matroxfb_test_and_set_rounding(CPMINFO int xres, int bpp) { in matroxfb_test_and_set_rounding() argument 497 case 0: return xres; in matroxfb_test_and_set_rounding() 515 over = xres % rounding; in matroxfb_test_and_set_rounding() 517 xres += rounding-over; in matroxfb_test_and_set_rounding() 518 return xres; in matroxfb_test_and_set_rounding() 521 static int matroxfb_pitch_adjust(CPMINFO int xres, int bpp) { in matroxfb_pitch_adjust() argument 527 if (!bpp) return xres; in matroxfb_pitch_adjust() 533 if ((*width >= xres) && (matroxfb_test_and_set_rounding(PMINFO *width, bpp) == *width)) { in matroxfb_pitch_adjust() 540 xres_new = matroxfb_test_and_set_rounding(PMINFO xres, bpp); in matroxfb_pitch_adjust() [all …]
|
/linux-2.4.37.9/arch/sh64/mm/ |
D | ioremap.c | 197 struct resource xres; /* Must be first */ member 241 struct xresource *xres; in shmedia_alloc_io() local 248 if ((xres = xres_alloc()) != 0) { in shmedia_alloc_io() 249 tack = xres->xname; in shmedia_alloc_io() 250 res = &xres->xres; in shmedia_alloc_io()
|
/linux-2.4.37.9/drivers/video/intel/ |
D | intelfbdrv.c | 470 var->xres = screen_info.lfb_width; in get_initial_mode() 472 var->xres_virtual = var->xres; in get_initial_mode() 497 var->xres, var->yres, var->bits_per_pixel, in get_initial_mode() 501 var->left_margin = (var->xres / 8) & 0xf8; in get_initial_mode() 505 var->hsync_len = (var->xres / 8) & 0xf8; in get_initial_mode() 508 xtot = var->xres + var->left_margin + in get_initial_mode() 860 var.xres, var.yres); in intelfb_pci_register() 863 var.xres, var.yres); in intelfb_pci_register() 993 int xtot = var->xres + var->left_margin + var->right_margin + in var_to_refresh() 1034 INF_MSG("Initial video mode is %dx%d-%d@%d.\n", dinfo->disp.var.xres, in intelfb_init_disp_var() [all …]
|