/linux-4.1.27/drivers/video/fbdev/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.h | 18 extern void round_off_xres (u32 *xres); 19 extern void round_off_yres (u32 *xres, u32 *yres); 23 struct i810fb_par *par, u32 xres, u32 yres);
|
D | i810_main.c | 144 static int xres; variable 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 …]
|
/linux-4.1.27/drivers/video/fbdev/via/ |
D | via_utility.c | 50 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres) in viafb_lcd_get_support_expand_state() argument 56 if ((xres < 640) && (yres < 480)) in viafb_lcd_get_support_expand_state() 61 if ((xres < 800) && (yres < 600)) in viafb_lcd_get_support_expand_state() 66 if ((xres < 1024) && (yres < 768)) in viafb_lcd_get_support_expand_state() 71 if ((xres < 1280) && (yres < 768)) in viafb_lcd_get_support_expand_state() 76 if ((xres < 1280) && (yres < 1024)) in viafb_lcd_get_support_expand_state() 81 if ((xres < 1400) && (yres < 1050)) in viafb_lcd_get_support_expand_state() 86 if ((xres < 1600) && (yres < 1200)) in viafb_lcd_get_support_expand_state() 91 if ((xres < 1366) && (yres < 768)) in viafb_lcd_get_support_expand_state() 96 if ((xres < 1024) && (yres < 600)) in viafb_lcd_get_support_expand_state() [all …]
|
D | viafbdev.c | 192 htotal = var->left_margin + var->xres + var->right_margin in get_var_refresh() 215 if (!viafb_get_best_mode(var->xres, var->yres, 60)) { in viafb_check_var() 218 var->xres, var->yres, var->bits_per_pixel); in viafb_check_var() 242 if (var->xres_virtual < var->xres) in viafb_check_var() 243 var->xres_virtual = var->xres; in viafb_check_var() 253 refresh = viafb_get_refresh(var->xres, var->yres, in viafb_check_var() 258 viafb_get_best_mode(var->xres, var->yres, refresh)); in viafb_check_var() 274 viafb_update_device_setting(viafbinfo->var.xres, viafbinfo->var.yres, in viafb_set_par() 278 viafb_update_device_setting(viafbinfo1->var.xres, in viafb_set_par() 427 return put_user(viafb_ioctl_hotplug(info->var.xres, in viafb_ioctl() [all …]
|
D | ioctl.h | 96 unsigned short xres, yres; member 117 u32 xres; member
|
D | via_utility.h | 27 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres);
|
D | hw.c | 1474 u16 dx = (var->xres - cxres) / 2, dy = (var->yres - cyres) / 2; in var_to_timing() 1495 cxres ? cxres : var->xres, cyres ? cyres : var->yres); in viafb_fill_crtc_timing() 1502 viafb_load_fetch_count_reg(var->xres, var->bits_per_pixel / 8, iga); in viafb_fill_crtc_timing() 1505 viafb_load_FIFO_reg(iga, var->xres, var->yres); in viafb_fill_crtc_timing() 1853 && viafbinfo->var.xres == 1024 && viafbinfo->var.yres == 768) { in viafb_setmode() 1885 cxres = viafbinfo->var.xres; in viafb_setmode() 1903 if (viafbinfo->var.xres % 8) { in viafb_setmode() 1961 viafb_hotplug_Xres = viafbinfo->var.xres; in viafb_setmode() 2125 var->xres = mode->xres; in viafb_fill_var_timing_info()
|
/linux-4.1.27/arch/arm/mach-omap1/ |
D | lcd_dma.c | 61 int rotate, data_type, xres, yres; member 75 lcd_dma.xres = fb_xres; in omap_set_lcd_dma_b1() 159 vxres = lcd_dma.vxres ? lcd_dma.vxres : lcd_dma.xres; in set_b1_regs() 162 BUG_ON(vxres < lcd_dma.xres); in set_b1_regs() 172 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs() 179 fi = PIXSTEP(lcd_dma.xres - 1, 0, 0, 1); in set_b1_regs() 181 top = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() 184 fi = PIXSTEP(0, 0, lcd_dma.xres - 1, 1); in set_b1_regs() 186 en = lcd_dma.xres; in set_b1_regs() 192 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs() [all …]
|
/linux-4.1.27/drivers/video/fbdev/core/ |
D | fbcvt.c | 36 u32 xres; member 190 u32 xres = cvt->xres; in fb_cvt_aspect_ratio() local 194 if (xres == (yres * 4)/3 && !((yres * 4) % 3)) in fb_cvt_aspect_ratio() 196 else if (xres == (yres * 16)/9 && !((yres * 16) % 9)) in fb_cvt_aspect_ratio() 198 else if (xres == (yres * 16)/10 && !((yres * 16) % 10)) in fb_cvt_aspect_ratio() 200 else if (xres == (yres * 5)/4 && !((yres * 5) % 4)) in fb_cvt_aspect_ratio() 202 else if (xres == (yres * 15)/9 && !((yres * 15) % 9)) in fb_cvt_aspect_ratio() 223 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; in fb_cvt_print_name() 224 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; in fb_cvt_print_name() 228 cvt->xres, cvt->yres, cvt->refresh); in fb_cvt_print_name() [all …]
|
D | modedb.c | 24 ((v).xres == (x) && (v).yres == (y)) 606 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 607 var->xres = mode->xres; in fb_try_mode() 609 var->xres_virtual = mode->xres; in fb_try_mode() 699 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 760 xres = simple_strtol(name, NULL, 10); in fb_find_mode() 768 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 775 cvt_mode.xres = xres; in fb_find_mode() 796 xres, yres); in fb_find_mode() 820 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode() [all …]
|
D | fbmon.c | 381 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument 389 var->xres = xres; in calc_mode_timings() 393 mode->xres = xres; in calc_mode_timings() 512 int xres, yres = 0, refresh, ratio; in get_std_timing() local 514 xres = (block[0] + 31) * 8; in get_std_timing() 515 if (xres <= 256) in get_std_timing() 523 yres = xres; in get_std_timing() 525 yres = (xres * 10)/16; in get_std_timing() 528 yres = (xres * 3)/4; in get_std_timing() 531 yres = (xres * 4)/5; in get_std_timing() [all …]
|
D | svgalib.c | 173 pr_debug("fb%d: var.xres : %d\n", node, var->xres); 447 var->xres = (var->xres+7)&~7; in svga_check_timings() 453 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings() 458 value = var->xres; in svga_check_timings() 465 value = var->xres + var->right_margin; in svga_check_timings() 517 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 522 value = var->xres; in svga_set_timings() 527 value = var->xres; in svga_set_timings() 532 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 537 value = var->xres + var->right_margin; in svga_set_timings() [all …]
|
/linux-4.1.27/drivers/staging/xgifb/ |
D | XGI_main_26.c | 242 && (XGIbios_mode[i].xres <= xgifb_info->lvds_data.LVDSHDE)) { in XGIfb_GetXG21DefaultLVDSModeIdx() 243 if ((XGIbios_mode[i].xres == xgifb_info->lvds_data.LVDSHDE) in XGIfb_GetXG21DefaultLVDSModeIdx() 257 unsigned int xres; in XGIfb_search_mode() local 262 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode() 269 if (XGIbios_mode[i].xres == xres && in XGIfb_search_mode() 304 u16 xres, yres; in XGIfb_validate_mode() local 310 xres = xgifb_info->lvds_data.LVDSHDE; in XGIfb_validate_mode() 312 if (XGIbios_mode[myindex].xres > xres) in XGIfb_validate_mode() 316 if ((XGIbios_mode[myindex].xres < xres) && in XGIfb_validate_mode() 338 xres = 640; in XGIfb_validate_mode() [all …]
|
D | XGI_main.h | 74 u16 xres; member 182 u16 xres; member
|
D | vb_setmode.c | 1002 xres; in XGI_SetCRT1ModeRegs() local 1023 xres = XGI330_ModeResInfo[resindex].HTotal; /* xres->ax */ in XGI_SetCRT1ModeRegs() 1027 if (xres == 1024) in XGI_SetCRT1ModeRegs() 1029 else if (xres == 1280) in XGI_SetCRT1ModeRegs() 1176 unsigned short resindex, xres, yres, modeflag; in XGI_GetLVDSResInfo() local 1184 xres = XGI330_ModeResInfo[resindex].HTotal; in XGI_GetLVDSResInfo() 1188 xres <<= 1; in XGI_GetLVDSResInfo() 1193 if (xres == 720) in XGI_GetLVDSResInfo() 1194 xres = 640; in XGI_GetLVDSResInfo() 1196 pVBInfo->VGAHDE = xres; in XGI_GetLVDSResInfo() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | atafb.c | 618 int xres = var->xres; in tt_decode_var() local 625 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var() 628 xres = sttt_xres * 2; in tt_decode_var() 632 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var() 635 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var() 638 xres = sttt_xres / 2; in tt_decode_var() 642 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var() 644 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var() 646 xres = sttt_xres; in tt_decode_var() 651 xres = sttt_xres / 2; in tt_decode_var() [all …]
|
D | bfin_adv7393fb.h | 66 u16 xres; /* Active Horizonzal Pixels */ member 168 .xres = 720, 184 .xres = 720, 200 .xres = 640, 216 .xres = 640, 232 .xres = 720, 248 .xres = 720,
|
D | arcfb.c | 52 #define floorXres(a,xres) (a&(~(xres - 1))) argument 55 #define ceilXres(a,xres) (a|(xres - 1)) argument 93 .xres = 128, 262 linesize = par->info->var.xres/8; in arcfb_lcd_update_page() 450 unsigned int xres; in arcfb_write() local 454 xres = info->var.xres; in arcfb_write() 455 fbmemlength = (xres * info->var.yres)/8; in arcfb_write() 477 startpos = floorXres(bitppos, xres); in arcfb_write() 478 endpos = ceilXres((bitppos + (count*8)), xres); in arcfb_write() 481 x = startpos % xres; in arcfb_write() [all …]
|
D | sh_mipi_dsi.c | 148 linelength = mode->xres * 3; in sh_mipi_setup() 154 linelength = mode->xres * 2; in sh_mipi_setup() 160 linelength = mode->xres * 3; in sh_mipi_setup() 166 linelength = (mode->xres * 18 + 7) / 8; in sh_mipi_setup() 172 linelength = mode->xres * 3; in sh_mipi_setup() 178 linelength = mode->xres * 2; in sh_mipi_setup() 184 linelength = mode->xres * 3; in sh_mipi_setup() 190 linelength = (mode->xres * 18 + 7) / 8; in sh_mipi_setup() 196 linelength = mode->xres * 2; in sh_mipi_setup() 202 linelength = mode->xres * 2; in sh_mipi_setup() [all …]
|
D | macmodes.c | 271 var->xres = mode->xres; in mac_vmode_to_var() 273 var->xres_virtual = mode->xres; in mac_vmode_to_var() 324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() 326 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) in mac_var_to_vmode() 342 if (mode->xres != clk_mode->xres || mode->yres != clk_mode->yres) in mac_var_to_vmode()
|
D | ps3fb.c | 267 long xres, yres, left_margin, right_margin, upper_margin, lower_margin; in ps3fb_cmp_mode() local 271 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode() 282 xres = max(var->xres, 1U); in ps3fb_cmp_mode() 292 dx = ((long)vmode->left_margin + (long)vmode->xres + in ps3fb_cmp_mode() 294 (left_margin + xres + right_margin); in ps3fb_cmp_mode() 309 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode() 343 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode() 349 __func__, id, vmode->left_margin, vmode->xres, in ps3fb_find_mode() 370 *ddr_line_length = vmode->xres * BPP; in ps3fb_find_mode() 373 if (!var->xres) in ps3fb_find_mode() [all …]
|
D | goldfishfb.c | 100 if ((var->xres != info->var.yres) || in goldfish_fb_check_var() 101 (var->yres != info->var.xres) || in goldfish_fb_check_var() 103 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() 104 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var() 108 if ((var->xres != info->var.xres) || in goldfish_fb_check_var() 110 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 128 info->fix.line_length = info->var.xres * 2; in goldfish_fb_set_par() 145 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, in goldfish_fb_pan_display() 229 fb->fb.var.xres = width; in goldfish_fb_probe()
|
D | bfin_adv7393fb.c | 72 .xres = 720, 149 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 160 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 164 (fbdev->modes[mode].xres - fbdev->modes[mode].boeft_blank + in dma_desc_list() 172 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 186 fbdev->modes[mode].xres + fbdev->modes[mode].boeft_blank; in dma_desc_list() 192 (fbdev->modes[mode].xres - fbdev->modes[mode].boeft_blank + in dma_desc_list() 237 bfin_write_PPI_COUNT(fbdev->modes[mode].xres + in bfin_config_ppi() 402 mem * fbdev->modes[mode].xres * fbdev->modes[mode].xres * in bfin_adv7393_fb_probe() 406 fbdev->modes[mode].xres * (fbdev->modes[mode].bpp / 8); in bfin_adv7393_fb_probe() [all …]
|
D | w100fb.c | 190 …memset_io(remapped_fbuf + (W100_FB_BASE-MEM_WINDOW_BASE), 0, (par->xres * par->yres * BITS_PER_PIX… in w100fb_clear_screen() 298 writel(par->xres, remapped_regs + mmDST_PITCH); in w100_init_graphic_engine() 300 writel(par->xres, remapped_regs + mmSRC_PITCH); in w100_init_graphic_engine() 304 writel((par->yres << 16) | par->xres, remapped_regs + mmSC_BOTTOM_RIGHT); in w100_init_graphic_engine() 442 if (modelist[i].xres >= *x && modelist[i].yres >= *y && in w100fb_get_mode() 443 modelist[i].xres < best_x && modelist[i].yres < best_y) { in w100fb_get_mode() 444 best_x = modelist[i].xres; in w100fb_get_mode() 447 } else if(modelist[i].xres >= *y && modelist[i].yres >= *x && in w100fb_get_mode() 448 modelist[i].xres < best_y && modelist[i].yres < best_x) { in w100fb_get_mode() 450 best_y = modelist[i].xres; in w100fb_get_mode() [all …]
|
D | amba-clcd-versatile.c | 11 .xres = 640, 35 .xres = 1024, 60 .xres = 320, 84 .xres = 240, 109 .xres = 176,
|
D | fsl-diu-fb.c | 63 .xres = 1024, 77 .xres = 320, 91 .xres = 640, 105 .xres = 640, 119 .xres = 640, 133 .xres = 640, 147 .xres = 640, 161 .xres = 800, 175 .xres = 800, 189 .xres = 854, [all …]
|
D | fb-puv3.c | 73 .xres = 640, 124 int screen_width = info->var.xres; in unifb_prim_fillrect() 147 int right = info->var.xres - 1; in unifb_prim_fillrect() 212 int screen_width = info->var.xres; in unifb_prim_copyarea() 237 int right = info->var.xres; in unifb_prim_copyarea() 362 if (!var->xres) in unifb_check_var() 363 var->xres = 1; in unifb_check_var() 366 if (var->xres > var->xres_virtual) in unifb_check_var() 367 var->xres_virtual = var->xres; in unifb_check_var() 383 if (var->xres_virtual < var->xoffset + var->xres) in unifb_check_var() [all …]
|
D | g364fb.c | 156 *(unsigned int *) TOP_REG = var->yoffset * info->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 | auo_k1901fb.c | 129 int xres = par->info->var.xres; in auok1901_update_region() local 142 1, y1+1, xres, y2-y1, mode); in auok1901_update_region() 147 args[2] = xres; in auok1901_update_region() 159 args[3] = xres; in auok1901_update_region()
|
D | au1100fb.h | 76 u32 xres; /* Maximum horizontal resolution */ member 274 .xres = 800, 287 .xres = 240, 298 .xres = 320, 325 .xres = 320, 347 .xres = 640, 359 .xres = 640,
|
D | hitfb.c | 242 var->xres = info->var.xres; in hitfb_check_var() 243 var->xres_virtual = info->var.xres; in hitfb_check_var() 252 maxy = info->fix.smem_len / var->xres; in hitfb_check_var() 295 info->fix.line_length = info->var.xres; in hitfb_set_par() 300 info->fix.line_length = info->var.xres*2; in hitfb_set_par() 349 hitfb_var.xres = lcdclor; in hitfb_probe() 353 hitfb_var.xres = lcdclor / 2; in hitfb_probe() 360 hitfb_var.xres_virtual = hitfb_var.xres; in hitfb_probe()
|
D | 68328fb.c | 151 if (!var->xres) in mc68x328fb_check_var() 152 var->xres = 1; in mc68x328fb_check_var() 155 if (var->xres > var->xres_virtual) in mc68x328fb_check_var() 156 var->xres_virtual = var->xres; in mc68x328fb_check_var() 172 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var() 173 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var() 375 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display() 441 mc68x328fb_default.xres = LXMAX; in mc68x328fb_init() 443 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init()
|
D | sh_mobile_meram.c | 320 unsigned int xres, unsigned int yres, in meram_plane_init() argument 324 unsigned long total_byte_count = MERAM_CALC_BYTECOUNT(xres, yres); in meram_plane_init() 332 lcdc_pitch = (xres - 1) | 1023; in meram_plane_init() 341 *out_pitch = xres; in meram_plane_init() 345 xpitch = xres; in meram_plane_init() 368 plane->cache->cache_unit = xres * save_lines; in meram_plane_init() 369 plane->marker->cache_unit = xres * save_lines; in meram_plane_init() 468 unsigned int xres, unsigned int yres, in sh_mobile_meram_cache_alloc() argument 485 dev_dbg(&pdev->dev, "registering %dx%d (%s)", xres, yres, in sh_mobile_meram_cache_alloc() 489 if (xres > 8192) { in sh_mobile_meram_cache_alloc() [all …]
|
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 | auo_k1900fb.c | 90 int xres = par->info->var.xres; in auok1900_update_region() local 103 1, y1+1, xres, y2-y1, mode); in auok1900_update_region() 108 args[2] = xres; in auok1900_update_region()
|
D | efifb.c | 164 efifb_defined.xres = screen_info.lfb_width; in efifb_probe() 233 efifb_defined.xres, efifb_defined.yres, in efifb_probe() 237 efifb_defined.xres_virtual = efifb_defined.xres; in efifb_probe() 244 efifb_defined.pixclock = 10000000 / efifb_defined.xres * in efifb_probe() 246 efifb_defined.left_margin = (efifb_defined.xres / 8) & 0xf8; in efifb_probe() 247 efifb_defined.hsync_len = (efifb_defined.xres / 8) & 0xf8; in efifb_probe()
|
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 …]
|
D | controlfb.c | 61 int xres, yres; member 85 return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) in PAR_EQUAL() 90 return (!DIRTY(bits_per_pixel) && !DIRTY(xres) in VAR_MATCH() 272 if (xoffset+par->xres > par->vxres || in controlfb_pan_display() 465 vyres = (p->total_vram - CTRLFB_OFF) / (var.xres << cmode); in init_control() 539 p->par.xres, p->par.yres, in control_set_hardware() 890 par->xres = (var->xres + hstep) & ~hstep; in control_var_to_par() 893 if (par->vxres < par->xres) in control_var_to_par() 894 par->vxres = par->xres; in control_var_to_par() 908 if (par->xoffset + par->xres > par->vxres) in control_var_to_par() [all …]
|
D | sa1100fb.c | 376 if (var->xres < MIN_XRES) in sa1100fb_check_var() 377 var->xres = MIN_XRES; in sa1100fb_check_var() 380 if (var->xres > fbi->inf->xres) in sa1100fb_check_var() 381 var->xres = fbi->inf->xres; in sa1100fb_check_var() 384 var->xres_virtual = max(var->xres_virtual, var->xres); in sa1100fb_check_var() 621 var->xres, var->hsync_len, in sa1100fb_activate_var() 628 if (var->xres < 16 || var->xres > 1024) in sa1100fb_activate_var() 630 fbi->fb.fix.id, var->xres); in sa1100fb_activate_var() 659 LCCR1_DisWdth(var->xres) + in sa1100fb_activate_var() 689 half_screen_size = half_screen_size * var->xres * var->yres / 16; in sa1100fb_activate_var() [all …]
|
D | vfb.c | 82 .xres = 640, 180 if (!var->xres) in vfb_check_var() 181 var->xres = 1; in vfb_check_var() 184 if (var->xres > var->xres_virtual) in vfb_check_var() 185 var->xres_virtual = var->xres; in vfb_check_var() 201 if (var->xres_virtual < var->xoffset + var->xres) in vfb_check_var() 202 var->xres_virtual = var->xoffset + var->xres; in vfb_check_var() 397 if (var->xoffset + info->var.xres > info->var.xres_virtual || in vfb_pan_display()
|
D | asiliantfb.c | 176 unsigned hd = p->var.xres / 8; in asiliant_set_timing() 177 unsigned hs = (p->var.xres + p->var.right_margin) / 8; in asiliant_set_timing() 178 unsigned he = (p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 179 unsigned ht = (p->var.left_margin + p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 186 if ((p->var.xres == 640) && (p->var.yres == 480) && (p->var.pixclock == 39722)) { in asiliant_set_timing() 218 if (p->var.xres == 640) { in asiliant_set_timing() 240 var->xres_virtual = var->xres; in asiliantfb_check_var() 296 p->fix.line_length = p->var.xres * (p->var.bits_per_pixel >> 3); in asiliantfb_set_par() 487 .xres = 640,
|
D | acornfb.c | 129 vidc.h_display_end = vidc.h_display_start + var->xres; in acornfb_set_timing() 205 words_per_line = var->xres * var->bits_per_pixel / 32; in acornfb_set_timing() 227 printk(KERN_DEBUG "VIDC registers for %dx%dx%d:\n", var->xres, in acornfb_set_timing() 325 var->xres = (var->xres + 1) & ~1; in acornfb_adjust_timing() 330 var->xres_virtual = var->xres; in acornfb_adjust_timing() 345 font_line_len = var->xres * var->bits_per_pixel * fontht / 8; in acornfb_adjust_timing() 346 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing() 430 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing() 557 info->fix.line_length = (info->var.xres * info->var.bits_per_pixel) / 8; in acornfb_set_par() 679 .xres = 640, [all …]
|
D | neofb.c | 155 static int neoFindMode(int xres, int yres, int depth) in neoFindMode() argument 185 if (xres <= mode[i].x_res) { in neoFindMode() 263 int hsync_end = var->xres + var->right_margin + var->hsync_len; in vgaHWInit() 290 par->CRTC[1] = (var->xres >> 3) - 1; in vgaHWInit() 291 par->CRTC[2] = (var->xres >> 3) - 1; in vgaHWInit() 293 par->CRTC[4] = ((var->xres + var->right_margin) >> 3); in vgaHWInit() 599 ((var->xres > par->NeoPanelWidth) || in neofb_check_var() 603 var->xres, var->yres, par->NeoPanelWidth, in neofb_check_var() 612 switch (var->xres) { in neofb_check_var() 635 var->xres, var->yres); in neofb_check_var() [all …]
|
D | sh_mobile_lcdcfb.c | 197 unsigned int xres; member 548 ch->display.mode.xres, ch->display.mode.yres, in sh_mobile_lcdc_must_reconfigure() 549 new_mode->xres, new_mode->yres); in sh_mobile_lcdc_must_reconfigure() 836 h_total = mode->xres + mode->hsync_len + mode->left_margin in sh_mobile_lcdc_geometry() 839 tmp |= (min(mode->xres, ch->xres) / 8) << 16; /* HDCN */ in sh_mobile_lcdc_geometry() 842 hsync_pos = mode->xres + mode->right_margin; in sh_mobile_lcdc_geometry() 858 display_h_total = mode->xres + mode->hsync_len + mode->left_margin in sh_mobile_lcdc_geometry() 860 tmp = ((mode->xres & 7) << 24) | ((display_h_total & 7) << 16) in sh_mobile_lcdc_geometry() 942 (ovl->xres << LDBBSSZR_BHSS_SHIFT)); in sh_mobile_lcdc_overlay_setup() 1250 if (var->xres > MAX_XRES || var->yres > MAX_YRES) in __sh_mobile_lcdc_check_var() [all …]
|
D | smscufx.c | 687 h_total = var->xres + var->right_margin + var->hsync_len + var->left_margin; in ufx_set_vid_mode() 688 h_active = var->xres; in ufx_set_vid_mode() 689 h_blank_start = var->xres + var->right_margin; in ufx_set_vid_mode() 690 h_blank_end = var->xres + var->right_margin + var->hsync_len; in ufx_set_vid_mode() 691 h_sync_start = var->xres + var->right_margin; in ufx_set_vid_mode() 692 h_sync_end = var->xres + var->right_margin + var->hsync_len; in ufx_set_vid_mode() 733 temp = var->xres * var->yres * 2; in ufx_set_vid_mode() 838 cmd[10] = cpu_to_le16(0x4000 | dev->info->var.xres); in ufx_raw_rect() 859 (x + width > dev->info->var.xres) || in ufx_handle_damage() 914 ufx_handle_damage(dev, 0, start, info->var.xres, lines); in ufx_ops_write() [all …]
|
D | tmiofb.c | 334 tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT); in tmiofb_hw_mode() 335 tmio_iowrite16(mode->xres, par->lcr + LCR_HNP); in tmiofb_hw_mode() 440 TMIOFB_ACC_DSADR((rect->dy * fbi->mode->xres + rect->dx) * 2), in tmiofb_fillrect() 460 TMIOFB_ACC_DSADR((area->dy * fbi->mode->xres + area->dx) * 2), in tmiofb_copyarea() 463 TMIOFB_ACC_SSADR((area->sy * fbi->mode->xres + area->sx) * 2), in tmiofb_copyarea() 482 .width = info->mode->xres, in tmiofb_clearscreen() 567 if (mode->xres >= var->xres && mode->yres >= var->yres in tmiofb_find_mode() 568 && (!best || (mode->xres < best->xres in tmiofb_find_mode() 588 var->xres_virtual = mode->xres; in tmiofb_check_var() 589 var->yres_virtual = info->screen_size / (mode->xres * 2); in tmiofb_check_var() [all …]
|
D | pxa168fb.c | 173 var->xres = mode->xres; in set_mode() 175 var->xres_virtual = max(var->xres, var->xres_virtual); in set_mode() 213 if (var->xoffset + var->xres > var->xres_virtual) in pxa168fb_check_var() 217 if (var->xres + var->right_margin + in pxa168fb_check_var() 396 x = v->xres + v->right_margin + v->hsync_len + v->left_margin; in set_dumb_screen_dimensions() 431 writel((var->yres << 16) | var->xres, in pxa168fb_set_par() 452 writel((var->yres << 16) | var->xres, in pxa168fb_set_par() 454 writel((var->yres << 16) | var->xres, in pxa168fb_set_par() 584 var->xres_virtual = var->xres; in pxa168fb_init_mode() 588 var->xres, var->yres); in pxa168fb_init_mode() [all …]
|
D | xen-fbfront.c | 204 xenfb_refresh(info, 0, miny, fb_info->var.xres, maxy - miny + 1); in xenfb_deferred_io() 287 if (var->xres == video[KPARAM_WIDTH] && in xenfb_check_var() 296 if (var->xres > video[KPARAM_WIDTH] || var->yres > video[KPARAM_HEIGHT]) in xenfb_check_var() 299 required_mem_len = var->xres * var->yres * xenfb_info->page->depth / 8; in xenfb_check_var() 301 var->xres <= info->fix.line_length / (XENFB_DEPTH / 8) && in xenfb_check_var() 303 var->xres_virtual = var->xres; in xenfb_check_var() 319 xenfb_info->resize.width = info->var.xres; in xenfb_set_par() 426 fb_info->var.xres_virtual = fb_info->var.xres = video[KPARAM_WIDTH]; in xenfb_probe() 440 fb_info->fix.line_length = fb_info->var.xres * XENFB_DEPTH / 8; in xenfb_probe() 557 info->page->width = fb_info->var.xres; in xenfb_init_shared_page()
|
D | ep93xx-fb.c | 239 hclks_total = info->var.xres + info->var.left_margin + in ep93xxfb_set_timing() 287 ep93xxfb_writel(fbi, ((info->var.xres * info->var.bits_per_pixel) in ep93xxfb_set_par() 303 var->xres = max_t(unsigned int, var->xres, EP93XXFB_MIN_XRES); in ep93xxfb_check_var() 304 var->xres = min_t(unsigned int, var->xres, EP93XXFB_MAX_XRES); in ep93xxfb_check_var() 305 var->xres_virtual = max(var->xres_virtual, var->xres); in ep93xxfb_check_var() 435 size = mode->xres * mode->yres * mach_info->bpp / 8; in ep93xxfb_calc_fbsize() 586 info->var.xres, info->var.yres, info->var.bits_per_pixel); in ep93xxfb_probe()
|
D | pxafb.c | 373 if (modelist[i].xres >= var->xres && in pxafb_getmode() 375 modelist[i].xres < best_x && in pxafb_getmode() 378 best_x = modelist[i].xres; in pxafb_getmode() 390 var->xres = mode->xres; in pxafb_setmode() 413 var->xres = max_t(int, var->xres, MIN_XRES); in pxafb_adjust_timing() 426 line_length = var->xres * var->bits_per_pixel / 8; in pxafb_adjust_timing() 428 var->xres = line_length * 8 / var->bits_per_pixel; in pxafb_adjust_timing() 431 var->xres_virtual = var->xres; in pxafb_adjust_timing() 439 if (var->xres > MAX_XRES || var->yres > MAX_YRES) in pxafb_adjust_timing() 752 ofb->fb.var.xres = ofb->fb.var.xres_virtual = 0; in overlayfb_release() [all …]
|
D | i740fb.c | 410 u32 xres, right, hslen, left, xtotal; in i740fb_decode_var() local 418 var->xres, var->yres, var->xres_virtual, var->xres_virtual); in i740fb_decode_var() 471 xres = ALIGN(var->xres, 8); in i740fb_decode_var() 473 if (vxres < xres) in i740fb_decode_var() 474 vxres = xres; in i740fb_decode_var() 477 if (xres + xoffset > vxres) in i740fb_decode_var() 478 xoffset = vxres - xres; in i740fb_decode_var() 507 xtotal = xres + right + hslen + left; in i740fb_decode_var() 511 par->crtc[VGA_CRTC_H_DISP] = (xres >> 3) - 1; in i740fb_decode_var() 512 par->crtc[VGA_CRTC_H_BLANK_START] = ((xres + right) >> 3) - 1; in i740fb_decode_var() [all …]
|
D | pm3fb.c | 731 const u32 xres = (info->var.xres + 31) & ~31; in pm3fb_write_mode() local 732 const u32 htotal = xres + hbend; in pm3fb_write_mode() 966 if (var->xres != var->xres_virtual) { in pm3fb_check_var() 988 var->xres = (var->xres + 31) & ~31; /* could sometimes be 8 */ in pm3fb_check_var() 989 lpitch = var->xres * ((var->bits_per_pixel + 7) >> 3); in pm3fb_check_var() 991 if (var->xres < 200 || var->xres > 2048) { in pm3fb_check_var() 992 DPRINTK("width not supported: %u\n", var->xres); in pm3fb_check_var() 1003 var->xres, var->yres_virtual, var->bits_per_pixel); in pm3fb_check_var() 1016 var->xres, var->yres, var->bits_per_pixel); in pm3fb_check_var() 1023 const u32 xres = (info->var.xres + 31) & ~31; in pm3fb_set_par() local [all …]
|
D | grvga.c | 89 if (!var->xres) in grvga_check_var() 90 var->xres = 1; in grvga_check_var() 104 var->xres_virtual = var->xres; in grvga_check_var() 155 __raw_writel(((info->var.yres - 1) << 16) | (info->var.xres - 1), in grvga_set_par() 165 (info->var.xres + info->var.right_margin + info->var.left_margin + info->var.hsync_len - 1), in grvga_set_par() 288 screendata->xres = screendata->xres_virtual = simple_strtoul(this_opt, NULL, 0); in grvga_parse_custom() 483 info->node, info->var.xres, info->var.yres, info->var.bits_per_pixel, in grvga_probe()
|
D | clps711x-fb.c | 83 val = DIV_ROUND_UP(var->xres, 16) - 1; in clps711x_fb_check_var() 87 val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128); in clps711x_fb_check_var() 111 size = (info->var.xres * info->var.yres * info->var.bits_per_pixel) / 8; in clps711x_fb_set_par() 127 info->fix.line_length = info->var.xres * info->var.bits_per_pixel / 8; in clps711x_fb_set_par() 130 lcdcon = (info->var.xres * info->var.yres * in clps711x_fb_set_par() 132 lcdcon |= ((info->var.xres / 16) - 1) << 13; in clps711x_fb_set_par()
|
D | nuc900fb.c | 104 if (var->xres == default_display->xres && in nuc900fb_check_var() 110 if (var->xres == mach_info->displays[i].xres && in nuc900fb_check_var() 119 var->xres, var->yres, var->bits_per_pixel); in nuc900fb_check_var() 124 var->xres_virtual = display->xres; in nuc900fb_check_var() 612 unsigned long smem_len = mach_info->displays[i].xres; in nuc900fb_probe() 629 fbinfo->var.xres = display->xres; in nuc900fb_probe()
|
D | gxt4500.c | 164 .xres = 1280, 285 if (var->xres + var->xoffset > var->xres_virtual || in gxt4500_var_to_par() 427 htot = var->xres + var->left_margin + var->right_margin + in gxt4500_set_par() 430 writereg(par, DTG_HORIZ_DISPLAY, var->xres - 1); in gxt4500_set_par() 431 writereg(par, DTG_HSYNC_START, var->xres + var->right_margin - 1); in gxt4500_set_par() 433 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par() 435 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par() 471 writereg(par, REFRESH_SIZE, (var->xres << 16) | var->yres); in gxt4500_set_par() 553 if (var->xoffset + info->var.xres > info->var.xres_virtual || in gxt4500_pan_display()
|
D | vesafb.c | 249 vesafb_defined.xres = screen_info.lfb_width; in vesafb_probe() 313 …vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, s… in vesafb_probe() 353 vesafb_defined.xres_virtual = vesafb_defined.xres; in vesafb_probe() 365 vesafb_defined.pixclock = 10000000 / vesafb_defined.xres * 1000 / vesafb_defined.yres; in vesafb_probe() 366 vesafb_defined.left_margin = (vesafb_defined.xres / 8) & 0xf8; in vesafb_probe() 367 vesafb_defined.hsync_len = (vesafb_defined.xres / 8) & 0xf8; in vesafb_probe()
|
D | broadsheetfb.c | 106 .xres = DPY_W, 782 int xres = par->info->var.xres; in broadsheet_init_display() local 802 broadsheet_write_reg32(par, 0x310, xres*yres*2); in broadsheet_init_display() 877 args[3] = cpu_to_le16(par->info->var.xres); in broadsheetfb_dpy_update_pages() 884 buf += y1 * par->info->var.xres; in broadsheetfb_dpy_update_pages() 885 broadsheet_burst_write(par, ((1 + y2 - y1) * par->info->var.xres)/2, in broadsheetfb_dpy_update_pages() 939 u16 xres = info->var.xres; in broadsheetfb_dpy_deferred_io() local 942 h_inc = DIV_ROUND_UP(PAGE_SIZE , xres); in broadsheetfb_dpy_deferred_io() 948 y1 = (cur->index << PAGE_SHIFT) / xres; in broadsheetfb_dpy_deferred_io() 957 y1 = (cur->index << PAGE_SHIFT) / xres; in broadsheetfb_dpy_deferred_io() [all …]
|
D | s3c2410fb.c | 138 var->xres == default_display->xres && in s3c2410fb_check_var() 145 var->xres == mach_info->displays[i].xres && in s3c2410fb_check_var() 153 var->xres, var->yres, var->bits_per_pixel); in s3c2410fb_check_var() 158 var->xres_virtual = display->xres; in s3c2410fb_check_var() 257 int hs = var->xres >> 2; in s3c2410fb_calculate_stn_lcd_regs() 363 S3C2410_LCDCON3_HOZVAL(var->xres - 1); in s3c2410fb_calculate_tft_lcd_regs() 383 dprintk("%s: var->xres = %d\n", __func__, var->xres); in s3c2410fb_activate_var() 944 unsigned long smem_len = mach_info->displays[i].xres; in s3c24xxfb_probe() 963 fbinfo->var.xres = display->xres; in s3c24xxfb_probe()
|
D | imxfb.c | 356 if (var->xres < MIN_XRES) in imxfb_check_var() 357 var->xres = MIN_XRES; in imxfb_check_var() 365 var->xres = imxfb_mode->mode.xres; in imxfb_check_var() 376 var->xres_virtual = max(var->xres_virtual, var->xres); in imxfb_check_var() 563 var->xres, var->hsync_len, in imxfb_activate_var() 570 if (var->xres < 16 || var->xres > 1024) in imxfb_activate_var() 572 info->fix.id, var->xres); in imxfb_activate_var() 597 writel(VPW_VPW(var->xres * var->bits_per_pixel / 8 / 4), in imxfb_activate_var() 610 writel(SIZE_XMAX(var->xres) | (var->yres & ymax_mask), in imxfb_activate_var() 890 m->mode.xres * m->mode.yres * bytes_per_pixel); in imxfb_probe()
|
D | sstfb.c | 353 int hSyncOff = var->xres + var->right_margin + var->left_margin; in sstfb_check_var() 386 if (var->xres <= 1 || yDim <= 0 || var->hsync_len <= 1 || in sstfb_check_var() 394 tiles_in_X = (var->xres + 63 ) / 64 * 2; in sstfb_check_var() 396 if (var->xres > POW2(11) || yDim >= POW2(11)) { in sstfb_check_var() 398 var->xres, var->yres); in sstfb_check_var() 411 tiles_in_X = (var->xres + 63 ) / 64; in sstfb_check_var() 418 if (var->xres > POW2(10) || var->yres >= POW2(10)) { in sstfb_check_var() 420 var->xres, var->yres); in sstfb_check_var() 484 par->hSyncOff = info->var.xres + info->var.right_margin + info->var.left_margin; in sstfb_set_par() 506 par->tiles_in_X = (info->var.xres + 63 ) / 64 * 2; in sstfb_set_par() [all …]
|
D | mxsfb.c | 275 if (var->xres < MIN_XRES) in mxsfb_check_var() 276 var->xres = MIN_XRES; in mxsfb_check_var() 280 var->xres_virtual = var->xres; in mxsfb_check_var() 417 line_size = fb_info->var.xres * (fb_info->var.bits_per_pixel >> 3); in mxsfb_set_par() 477 TRANSFER_COUNT_SET_HCOUNT(fb_info->var.xres), in mxsfb_set_par() 504 fb_info->var.xres), in mxsfb_set_par() 513 vdctrl4 = SET_DOTCLK_H_VALID_DATA_CNT(fb_info->var.xres); in mxsfb_set_par() 651 vmode->xres = TRANSFER_COUNT_GET_HCOUNT(transfer_count); in mxsfb_restore_mode() 673 vmode->hsync_len - vmode->left_margin - vmode->xres; in mxsfb_restore_mode() 690 vmode->xres, vmode->yres, vmode->hsync_len, vmode->left_margin, in mxsfb_restore_mode() [all …]
|
D | imsttfb.c | 470 compute_imstt_regvals_ibm(struct imstt_par *par, int xres, int yres) in compute_imstt_regvals_ibm() argument 475 switch (xres) { in compute_imstt_regvals_ibm() 508 init->hsb = init->heb + (xres >> 3); in compute_imstt_regvals_ibm() 516 init->pitch = xres; in compute_imstt_regvals_ibm() 521 compute_imstt_regvals_tvp(struct imstt_par *par, int xres, int yres) in compute_imstt_regvals_tvp() argument 525 switch (xres) { in compute_imstt_regvals_tvp() 555 compute_imstt_regvals (struct imstt_par *par, u_int xres, u_int yres) in compute_imstt_regvals() argument 558 return compute_imstt_regvals_ibm(par, xres, yres); in compute_imstt_regvals() 560 return compute_imstt_regvals_tvp(par, xres, yres); in compute_imstt_regvals() 787 || var->xres_virtual < var->xres || var->yres_virtual < var->yres in imsttfb_check_var() [all …]
|
D | tdfxfb.c | 113 .xres = 640, 465 if (var->xres != var->xres_virtual) in tdfxfb_check_var() 466 var->xres_virtual = var->xres; in tdfxfb_check_var() 495 var->xres = (var->xres + 15) & ~15; /* could sometimes be 8 */ in tdfxfb_check_var() 496 lpitch = var->xres * ((var->bits_per_pixel + 7) >> 3); in tdfxfb_check_var() 498 if (var->xres < 320 || var->xres > 2048) { in tdfxfb_check_var() 499 DPRINTK("width not supported: %u\n", var->xres); in tdfxfb_check_var() 512 var->xres, var->yres_virtual, in tdfxfb_check_var() 557 var->xres, var->yres, var->bits_per_pixel); in tdfxfb_check_var() 564 u32 hdispend = info->var.xres; in tdfxfb_set_par() [all …]
|
D | s1d13xxxfb.c | 249 info->fix.line_length = info->var.xres * info->var.bits_per_pixel; in s1d13xxxfb_set_par() 458 stride = bpp * info->var.xres; in s1d13xxxfb_bitblt_copyarea() 545 screen_stride = (bpp * info->var.xres); in s1d13xxxfb_bitblt_solidfill() 556 info->var.xres, info->var.yres, in s1d13xxxfb_bitblt_solidfill() 652 u32 xres, yres; in s1d13xxxfb_fetch_hw_state() local 698 xres = (s1d13xxxfb_readreg(par, S1DREG_LCD_DISP_HWIDTH) + 1) * 8; in s1d13xxxfb_fetch_hw_state() 705 xres = (s1d13xxxfb_readreg(par, S1DREG_CRT_DISP_HWIDTH) + 1) * 8; in s1d13xxxfb_fetch_hw_state() 715 var->xres = xres; in s1d13xxxfb_fetch_hw_state() 732 xres, yres, xres_virtual, yres_virtual, is_color, is_dual, is_tft); in s1d13xxxfb_fetch_hw_state()
|
D | vga16fb.c | 69 .xres = 640, 316 u32 xres, right, hslen, left, xtotal; in vga16fb_check_var() local 354 xres = (var->xres + 7) & ~7; in vga16fb_check_var() 361 if (vxres < xres) in vga16fb_check_var() 362 vxres = xres; in vga16fb_check_var() 363 if (xres + xoffset > vxres) in vga16fb_check_var() 364 xoffset = vxres - xres; in vga16fb_check_var() 366 var->xres = xres; in vga16fb_check_var() 373 xres >>= shift; in vga16fb_check_var() 378 xtotal = xres + right + hslen + left; in vga16fb_check_var() [all …]
|
D | bf54x-lq043fb.c | 352 if (info->var.xres != var->xres || info->var.yres != var->yres || in bfin_bf54x_fb_check_var() 356 __func__, var->xres, var->yres); in bfin_bf54x_fb_check_var() 561 fbinfo->var.xres = info->mach_info->xres.defval; in bfin_bf54x_probe() 562 fbinfo->var.xres_virtual = info->mach_info->xres.defval; in bfin_bf54x_probe() 583 fbinfo->fix.smem_len = info->mach_info->xres.max * in bfin_bf54x_probe()
|
D | igafb.c | 78 .xres = 640, 102 .xres = 1024, 125 .xres = 1152, 148 .xres = 1280, 521 igafb_fix.line_length = default_var.xres*(default_var.bits_per_pixel/8); in igafb_init()
|
D | xilinxfb.c | 91 u32 xres, yres; /* resolution of screen in pixels */ member 104 .xres = 640, 330 drvdata->info.var.xres = pdata->xres; in xilinxfb_assign() 462 pdata.xres = prop[0]; in xilinxfb_of_probe()
|
D | valkyriefb.c | 80 int xres, yres; member 476 var->xres, var->yres, var->bits_per_pixel); in valkyrie_var_to_par() 491 if (var->xres_virtual > var->xres || var->yres_virtual > var->yres in valkyrie_var_to_par() 512 par->xres = var->xres; in valkyrie_var_to_par() 514 par->vxres = par->xres; in valkyrie_var_to_par()
|
D | macfb.c | 574 macfb_defined.xres = mac_bi_data.dimensions & 0xFFFF; in macfb_init() 598 macfb_defined.xres, macfb_defined.yres, in macfb_init() 602 macfb_defined.xres_virtual = macfb_defined.xres; in macfb_init() 605 macfb_defined.width = PIXEL_TO_MM(macfb_defined.xres); in macfb_init() 608 macfb_defined.pixclock = 10000000 / macfb_defined.xres * in macfb_init() 610 macfb_defined.left_margin = (macfb_defined.xres / 8) & 0xf8; in macfb_init() 611 macfb_defined.hsync_len = (macfb_defined.xres / 8) & 0xf8; in macfb_init()
|
D | sh_mobile_hdmi.c | 409 htotal = mode->xres + mode->right_margin + mode->left_margin in sh_hdmi_external_video_param() 832 mode->left_margin, mode->xres, in sh_hdmi_rate_error() 942 } else if (f_width != mode->xres || f_height != mode->yres) { in sh_hdmi_read_edid() 988 if (!found && hdmi->entity.def_mode.xres != 0) { in sh_hdmi_read_edid() 998 if (found->xres == 640 && found->yres == 480 && found->refresh == 60) in sh_hdmi_read_edid() 1000 else if (found->xres == 720 && found->yres == 480 && found->refresh == 60) in sh_hdmi_read_edid() 1002 else if (found->xres == 720 && found->yres == 576 && found->refresh == 50) in sh_hdmi_read_edid() 1004 else if (found->xres == 1280 && found->yres == 720 && found->refresh == 60) in sh_hdmi_read_edid() 1006 else if (found->xres == 1920 && found->yres == 1080 && found->refresh == 24) in sh_hdmi_read_edid() 1008 else if (found->xres == 1920 && found->yres == 1080 && found->refresh == 50) in sh_hdmi_read_edid() [all …]
|
D | da8xx-fb.c | 203 .xres = 320, 218 .xres = 480, 233 .xres = 320, 248 .xres = 320, 820 ret = lcd_cfg_frame_buffer(par, (unsigned int)panel->xres, in lcd_init() 1032 if (var->xres > var->xres_virtual) in fb_check_var() 1033 var->xres = var->xres_virtual; in fb_check_var() 1035 if (var->xres + var->xoffset > var->xres_virtual) in fb_check_var() 1036 var->xoffset = var->xres_virtual - var->xres; in fb_check_var() 1282 info->fix.line_length = (par->mode.xres * par->cfg.bpp) / 8; in da8xxfb_set_par() [all …]
|
D | gbefb.c | 96 .xres = 640, 127 .xres = 1600, 159 .xres = 640, 174 .xres = 1600, 514 timing->width = var->xres; in compute_gbe_timing() 521 timing->htotal = var->left_margin + var->xres + in compute_gbe_timing() 527 timing->hblank_start = var->xres; in compute_gbe_timing() 530 timing->hsync_start = var->xres + var->right_margin + 1; in compute_gbe_timing() 927 if ((var->xres * var->yres * var->bits_per_pixel) & 4095) in gbefb_check_var() 938 if (var->xres > var->xres_virtual || (!ywrap && !ypan)) in gbefb_check_var() [all …]
|
D | udlfb.c | 228 xde = xds + var->xres; in dlfb_set_vid_cmds() 249 wrptr = dlfb_set_register_16(wrptr, 0x0F, var->xres); in dlfb_set_vid_cmds() 594 (x + width > dev->info->var.xres) || in dlfb_handle_damage() 657 dlfb_handle_damage(dev, 0, start, info->var.xres, in dlfb_ops_write() 826 if (area.x > info->var.xres) in dlfb_ops_ioctl() 827 area.x = info->var.xres; in dlfb_ops_ioctl() 1014 if (mode->xres * mode->yres > dev->sku_pixel_limit) { in dlfb_is_valid_mode() 1016 mode->xres, mode->yres); in dlfb_is_valid_mode() 1020 pr_info("%dx%d @ %d Hz valid mode\n", mode->xres, mode->yres, in dlfb_is_valid_mode() 1044 if ((var->xres * var->yres * 2) > info->fix.smem_len) in dlfb_ops_check_var() [all …]
|
D | atmel_lcdfb.c | 173 dma2dcfg = (info->var.xres_virtual - info->var.xres) in atmel_lcdfb_update_dma2d() 336 unsigned long xres) in compute_hozval() argument 342 return xres; in compute_hozval() 345 value = xres; in compute_hozval() 508 dev_dbg(dev, " resolution: %ux%u\n", var->xres, var->yres); in atmel_lcdfb_check_var() 519 if (var->xres > var->xres_virtual) in atmel_lcdfb_check_var() 520 var->xres_virtual = var->xres; in atmel_lcdfb_check_var() 526 var->xres = (var->xres + 3) & ~3UL; in atmel_lcdfb_check_var() 657 info->var.xres, info->var.yres, in atmel_lcdfb_set_par() 677 value = (info->var.yres * info->var.xres * info->var.bits_per_pixel) / 32; in atmel_lcdfb_set_par() [all …]
|
D | stifb.c | 499 SET_ATTR_SIZE(fb, fb->info.var.xres, fb->info.var.yres); in ngleSetupAttrPlanes() 524 0xff, fb->info.var.xres * fb->info.var.bits_per_pixel/8); in rattlerSetupPlanes() 684 packed_len = (fb->info.var.xres << 16) | fb->info.var.yres; in ngleResetAttrPlanes() 734 packed_len = (fb->info.var.xres << 16) | fb->info.var.yres; in ngleClearOverlayPlanes() 1089 int bpp, xres, yres; in stifb_init_fb() local 1140 xres = sti_onscreen_x(fb->sti); in stifb_init_fb() 1168 xres = fb->ngle_rom.x_size_visible; in stifb_init_fb() 1253 var->xres = var->xres_virtual = xres; in stifb_init_fb() 1288 var->xres, in stifb_init_fb()
|
D | jz4740_fb.c | 281 if (mode->xres == var->xres && mode->yres == var->yres) in jzfb_get_mode() 373 hde = hds + mode->xres; in jzfb_set_par() 431 rate = mode->refresh * (vt + 2 * mode->xres) * ht; in jzfb_set_par() 562 if (max_videosize < mode->xres * mode->yres) in jzfb_alloc_devmem() 563 max_videosize = mode->xres * mode->yres; in jzfb_alloc_devmem() 686 fb->fix.line_length = fb->var.bits_per_pixel * fb->var.xres / 8; in jzfb_probe()
|
D | ocfb.c | 126 (var->right_margin - 1) << 16 | (var->xres - 1)); in ocfb_setupfb() 134 var->xres; in ocfb_setupfb() 218 fix->line_length = var->xres * var->bits_per_pixel/8; in ocfb_init_fix() 236 var->xres_virtual = var->xres; in ocfb_init_var()
|
D | s3c-fb.c | 250 var->xres_virtual = max(var->xres_virtual, var->xres); in s3c_fb_check_var() 529 info->fix.xpanstep = info->var.xres_virtual > info->var.xres ? 1 : 0; in s3c_fb_set_par() 548 pagewidth = (var->xres * var->bits_per_pixel) >> 3; in s3c_fb_set_par() 562 var->xres - 1)) | in s3c_fb_set_par() 565 var->xres - 1)) | in s3c_fb_set_par() 570 data = var->xres * var->yres; in s3c_fb_set_par() 1066 mode->xres; in s3c_fb_missing_pixclock() 1092 real_size = windata->xres * windata->yres; in s3c_fb_alloc_memory() 1096 real_size, windata->xres, windata->yres, in s3c_fb_alloc_memory() 1202 WARN_ON(windata->xres == 0); in s3c_fb_probe_win() [all …]
|
D | vt8500lcdfb.c | 126 | (((info->var.xres - 1) & 0x3ff) << 8) in vt8500lcd_set_par() 133 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10); in vt8500lcd_set_par() 217 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20) in vt8500lcd_pan_display() 359 fb_mem_len = of_mode.xres * of_mode.yres * 2 * (bpp / 8); in vt8500lcd_probe() 407 fbi->fb.var.xres_virtual = of_mode.xres; in vt8500lcd_probe()
|
D | sm501fb.c | 51 .xres = 640, 122 return var->xres + var->left_margin + in h_total() 309 if ((var->xres + var->right_margin) > 4096) in sm501fb_check_var() 323 tmp = (var->xres * var->bits_per_pixel) / 8; in sm501fb_check_var() 442 __func__, var->xres, var->yres, var->bits_per_pixel, in sm501fb_set_par_common() 542 reg |= ((var->xres * var->bits_per_pixel)/8) << 16; in sm501fb_set_par_geometry() 550 reg |= (var->xres - 1); in sm501fb_set_par_geometry() 557 reg |= var->xres + var->right_margin - 1; in sm501fb_set_par_geometry() 864 reg = var->xres - 1; in sm501fb_set_par_pnl() 1345 smc501_writel((info->var.xres << 16) | info->var.xres, in sm501fb_copyarea() [all …]
|
D | sbuslib.c | 24 var->xres = of_getintprop_default(dp, "width", 1152); in sbusfb_fill_var() 26 var->xres_virtual = var->xres; in sbusfb_fill_var() 109 __put_user(info->var.xres, &f->fb_width) || in sbusfb_ioctl_helper()
|
D | wm8505fb.c | 74 writel(info->var.xres, fbi->regbase + WMT_GOVR_XRES); in wm8505fb_init_hw() 91 int h_end = h_start + info->var.xres; in wm8505fb_set_timing() 332 fb_mem_len = mode.xres * mode.yres * 2 * (bpp / 8); in wm8505fb_probe() 340 fbi->fb.var.xres_virtual = mode.xres; in wm8505fb_probe()
|
D | bf537-lq035.c | 430 .xres = LCD_X_RES, /*default portrait mode RGB*/ 535 if (info->var.xres != var->xres || in bfin_lq035_fb_check_var() 540 __func__, var->xres, var->yres); in bfin_lq035_fb_check_var() 729 bfin_lq035_fb_defined.xres = LCD_Y_RES; in bfin_lq035_probe()
|
D | mx3fb.c | 140 .xres = 240, 158 .xres = 240, 176 .xres = 640, 192 .xres = 640, 208 .xres = 640, 224 .xres = 640, 853 fbi->var.xres, fbi->var.yres, in __set_par() 873 video->out_width = fbi->var.xres; in __set_par() 936 if (var->xres_virtual < var->xres) in mx3fb_check_var() 937 var->xres_virtual = var->xres; in mx3fb_check_var() [all …]
|
D | bfin-t350mcqb-fb.c | 274 if (info->var.xres != var->xres || info->var.yres != var->yres || in bfin_t350mcqb_fb_check_var() 278 __func__, var->xres, var->yres); in bfin_t350mcqb_fb_check_var() 471 fbinfo->var.xres = LCD_X_RES; in bfin_t350mcqb_probe()
|
D | sunxvr1000.c | 91 var->xres = gp->width; in gfb_set_fbinfo() 93 var->xres_virtual = var->xres; in gfb_set_fbinfo()
|
D | hyperv_fb.c | 280 msg.situ.video_output[0].width_pixels = info->var.xres; in synthvid_send_situ() 338 msg.dirt.rect[0].x2 = info->var.xres; in synthvid_update() 560 if (var->xres < HVFB_WIDTH_MIN || var->yres < HVFB_HEIGHT_MIN || in hvfb_check_var() 561 var->xres > screen_width || var->yres > screen_height || in hvfb_check_var() 565 var->xres_virtual = var->xres; in hvfb_check_var() 811 info->var.xres_virtual = info->var.xres = screen_width; in hvfb_probe()
|
D | uvesafb.c | 278 var->xres = mode->x_res; in uvesafb_setup_var() 314 int xres, int yres, int depth, unsigned char flags) in uvesafb_vbe_find_mode() argument 319 h = abs(par->vbe_modes[i].x_res - xres) + in uvesafb_vbe_find_mode() 610 if (uvesafb_vbe_find_mode(info->par, mode->xres, mode->yres, 8, in uvesafb_is_valid_mode() 739 var.xres = mode->x_res; in uvesafb_vbe_getmonspecs() 896 info->var.xres = 640; in uvesafb_vbe_init_mode() 915 modeid = uvesafb_vbe_find_mode(par, info->var.xres, info->var.yres, in uvesafb_vbe_init_mode() 1238 i = uvesafb_vbe_find_mode(par, info->var.xres, info->var.yres, depth, in uvesafb_set_par() 1261 crtc->horiz_start = info->var.xres + info->var.right_margin; in uvesafb_set_par() 1363 if (mode->xres == var->xres && mode->yres == var->yres && in uvesafb_check_limits() [all …]
|
D | tridentfb.c | 882 if (par->flatpanel && nativex && var->xres > nativex) in tridentfb_check_var() 885 var->xres = (var->xres + 7) & ~0x7; in tridentfb_check_var() 886 if (var->xres > var->xres_virtual) in tridentfb_check_var() 887 var->xres_virtual = var->xres; in tridentfb_check_var() 1019 hdispend = var->xres / 8 - 1; in tridentfb_set_par() 1020 hsyncstart = (var->xres + var->right_margin) / 8; in tridentfb_set_par() 1021 hsyncend = (var->xres + var->right_margin + var->hsync_len) / 8; in tridentfb_set_par() 1022 htotal = (var->xres + var->left_margin + var->right_margin + in tridentfb_set_par() 1052 if (par->flatpanel && var->xres < nativex) { in tridentfb_set_par() 1526 info->node, info->fix.id, info->var.xres, in trident_pci_probe()
|
D | cyber2000fb.c | 576 Htotal = var->xres + var->right_margin + in cyber2000fb_decode_crtc() 583 hw->crtc[1] = (var->xres >> 3) - 1; in cyber2000fb_decode_crtc() 584 hw->crtc[2] = var->xres >> 3; in cyber2000fb_decode_crtc() 585 hw->crtc[4] = (var->xres + var->right_margin) >> 3; in cyber2000fb_decode_crtc() 592 Hsyncend = (var->xres + var->right_margin + var->hsync_len) >> 3; in cyber2000fb_decode_crtc() 848 if (var->xres > var->xres_virtual) in cyber2000fb_check_var() 849 var->xres = var->xres_virtual; in cyber2000fb_check_var() 1341 .xres = 640, 1591 h_sync = h_sync * 512 / (cfb->fb.var.xres + cfb->fb.var.left_margin + in cyberpro_common_probe() 1598 cfb->fb.var.xres, cfb->fb.var.yres, in cyberpro_common_probe()
|
D | au1200fb.c | 192 int xres; member 714 xsz = win->w[plane].xres; in au1200_setlocation() 716 if ((xpos + win->w[plane].xres) > panel->Xres) { in au1200_setlocation() 730 xsz = win->w[plane].xres + xpos; in au1200_setlocation() 1045 var->xres = win->w[plane].xres; in au1200fb_fb_check_var() 1049 var->xres_virtual = var->xres; in au1200fb_fb_check_var() 1676 if (win->w[plane].xres == 0) in au1200fb_drv_probe() 1677 win->w[plane].xres = panel->Xres; in au1200fb_drv_probe() 1694 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; in au1200fb_drv_probe()
|
D | au1100fb.c | 485 fbdev->fb_len = fbdev->panel->xres * fbdev->panel->yres * in au1100fb_drv_probe() 519 au1100fb_var.xres = fbdev->panel->xres; in au1100fb_drv_probe() 520 au1100fb_var.xres_virtual = au1100fb_var.xres; in au1100fb_drv_probe()
|
D | sunxvr2500.c | 95 var->xres = sp->width; in s3d_set_fbinfo() 97 var->xres_virtual = var->xres; in s3d_set_fbinfo()
|
D | clps711xfb.c | 240 info->var.xres = info->var.xres_virtual; in clps711x_guess_lcd_params() 244 size = info->var.xres * info->var.yres * info->var.bits_per_pixel / 8; in clps711x_guess_lcd_params()
|
D | chipsfb.c | 97 if (var->xres > 800 || var->yres > 600 in chipsfb_check_var() 104 var->xres = var->xres_virtual = 800; in chipsfb_check_var() 313 .xres = 800,
|
D | cg3.c | 272 if (var->xres != ww || in cg3_rdi_maybe_fixup_var() 274 var->xres = var->xres_virtual = ww; in cg3_rdi_maybe_fixup_var() 378 info->var.xres); in cg3_probe()
|
D | pmagb-b-fb.c | 154 info->var.xres = ((sfb_read(par, SFB_REG_VID_HOR) >> in pmagbbfb_screen_setup() 156 info->var.xres_virtual = info->var.xres; in pmagbbfb_screen_setup() 176 info->fix.line_length = info->var.xres; in pmagbbfb_screen_setup()
|
D | hpfb.c | 246 hpfb_defined.xres = (in_8(fb_regs + HPFB_DWMSB) << 8) | in_8(fb_regs + HPFB_DWLSB); in hpfb_init_one() 248 hpfb_defined.xres_virtual = hpfb_defined.xres; in hpfb_init_one() 255 hpfb_defined.xres, hpfb_defined.yres, hpfb_defined.bits_per_pixel, fb_info.fix.line_length); in hpfb_init_one()
|
D | sh7760fb.c | 212 if (par->rot && (vm->xres > 320)) { in sh7760fb_set_par() 218 hsynp = vm->right_margin + vm->xres; in sh7760fb_set_par() 221 hdcn = vm->xres; in sh7760fb_set_par() 396 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem()
|
D | carminefb.c | 91 .xres = 640, 95 .xres = 800, 132 if (car_modes[i].hdp == var->xres && in carmine_find_mode() 190 var->xres_virtual = var->xres; in carmine_check_var() 426 info->fix.line_length = info->var.xres * info->var.bits_per_pixel / 8; in carmine_set_par()
|
D | sh_mobile_lcdcfb.h | 80 unsigned int xres; member
|
D | platinumfb.c | 49 int xres, yres; member 454 printk(KERN_ERR "platinum_var_to_par: var->xres = %d\n", var->xres); in platinum_var_to_par() 482 pinfo->xres = vmode_attrs[vmode-1].hres; in platinum_var_to_par() 486 pinfo->vxres = pinfo->xres; in platinum_var_to_par()
|
/linux-4.1.27/drivers/staging/fbtft/ |
D | fb_agm1264k-fl.c | 264 if (src[(y * 8 + i) * par->info->var.xres + x]) in construct_line_bitmap() 282 signed short *convert_buf = kmalloc(par->info->var.xres * in write_vmem() 291 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 293 u16 pixel = vmem16[y * par->info->var.xres + x]; in write_vmem() 303 convert_buf[y * par->info->var.xres + x] = in write_vmem() 308 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 311 convert_buf[y * par->info->var.xres + x]; in write_vmem() 339 x + i >= par->info->var.xres in write_vmem() 343 (y + j) * par->info->var.xres + in write_vmem() 365 if (addr_win.xs < par->info->var.xres / 2) { in write_vmem() [all …]
|
D | fb_ra8875.c | 76 "display size %dx%d\n", par->info->var.xres, par->info->var.yres); in init_display() 80 if ((par->info->var.xres == 320) && (par->info->var.yres == 240)) { in init_display() 104 } else if ((par->info->var.xres == 480) && (par->info->var.yres == 272)) { in init_display() 128 } else if ((par->info->var.xres == 640) && (par->info->var.yres == 480)) { in init_display() 152 } else if ((par->info->var.xres == 800) && (par->info->var.yres == 480)) { in init_display()
|
D | fb_watterott.c | 90 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem() 96 for (j = 0; j < par->info->var.xres; j++) in write_vmem() 129 pos[2] = cpu_to_be16(par->info->var.xres); in write_vmem_8bit() 135 for (j = 0; j < par->info->var.xres; j++) { in write_vmem_8bit() 140 par->txbuf.buf, 10 + par->info->var.xres); in write_vmem_8bit()
|
D | fb_ssd1306.c | 182 for (x = 0; x < par->info->var.xres; x++) { in write_vmem() 186 *buf |= (vmem16[(y*8+i)*par->info->var.xres+x] ? 1 : 0) << i; in write_vmem() 194 par->info->var.xres*par->info->var.yres/8); in write_vmem()
|
D | fb_ssd1289.c | 98 write_reg(par, 0x4e, par->info->var.xres - 1 - xs); in set_addr_win() 107 write_reg(par, 0x4f, par->info->var.xres - 1 - xs); in set_addr_win()
|
/linux-4.1.27/drivers/video/fbdev/msm/ |
D | msm_fb.c | 64 int xres; member 150 msmfb->update_info.left = msmfb->xres + 1; in msmfb_start_dma() 154 if (unlikely(w > msmfb->xres || h > msmfb->yres || in msmfb_start_dma() 163 addr = ((msmfb->xres * (yoffset + y) + x) * 2); in msmfb_start_dma() 165 msmfb->xres * 2, w, h, x, y, &msmfb->dma_callback, in msmfb_start_dma() 254 if (left == 0 && top == 0 && eright == info->var.xres && in msmfb_pan_update() 326 if ((var->xres != info->var.xres) || in msmfb_check_var() 350 msmfb_pan_update(info, 0, 0, info->var.xres, info->var.yres, in msmfb_pan_display() 457 fb_info->fix.line_length = msmfb->xres * 2; in setup_fb_info() 459 fb_info->var.xres = msmfb->xres; in setup_fb_info() [all …]
|
/linux-4.1.27/drivers/video/fbdev/aty/ |
D | radeon_monitor.c | 8 .xres = 640, 185 rinfo->panel_info.xres = BIOS_IN16(tmp + 25); in radeon_get_panel_info_BIOS() 188 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS() 215 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && in radeon_get_panel_info_BIOS() 689 rinfo->panel_info.xres = var->xres; in radeon_var_to_panel_info() 716 var->xres = mode->xres; in radeon_videomode_to_var() 718 var->xres_virtual = mode->xres; in radeon_videomode_to_var() 783 if (var.xres >= rinfo->panel_info.xres && in radeon_check_modes() 802 var->xres = rinfo->panel_info.xres; in radeon_check_modes() 804 var->xres_virtual = rinfo->panel_info.xres; in radeon_check_modes() [all …]
|
D | radeon_base.c | 795 var->xres, var->yres, var->bits_per_pixel); in radeonfb_check_var() 801 if (v.xres_virtual < v.xres) in radeonfb_check_var() 802 v.xres_virtual = v.xres; in radeonfb_check_var() 819 if (v.xres_virtual < v.xres) in radeonfb_check_var() 820 v.xres = v.xres_virtual; in radeonfb_check_var() 822 if (v.xoffset > v.xres_virtual - v.xres) in radeonfb_check_var() 823 v.xoffset = v.xres_virtual - v.xres - 1; in radeonfb_check_var() 843 if ((var->xoffset + info->var.xres > info->var.xres_virtual) in radeonfb_pan_display() 1556 hSyncStart = mode->xres + mode->right_margin; in radeonfb_set_par() 1570 if (rinfo->panel_info.xres < mode->xres) in radeonfb_set_par() [all …]
|
D | aty128fb.c | 126 .xres = 640, 1057 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp, dst; in aty128_var_to_crtc() local 1065 xres = var->xres; in aty128_var_to_crtc() 1092 xres = (xres + 7) & ~7; in aty128_var_to_crtc() 1095 if (vxres < xres + xoffset) in aty128_var_to_crtc() 1096 vxres = xres + xoffset; in aty128_var_to_crtc() 1118 h_disp = (xres >> 3) - 1; in aty128_var_to_crtc() 1119 h_total = (((xres + right + hslen + left) >> 3) - 1) & 0xFFFFL; in aty128_var_to_crtc() 1247 u32 xres, yres, left, right, upper, lower, hslen, vslen, sync; in aty128_crtc_to_var() local 1268 xres = (h_disp + 1) << 3; in aty128_crtc_to_var() [all …]
|
D | atyfb_base.c | 574 par->pll.ct.xres = 0; in atyfb_get_pixclock() 578 par->pll.ct.xres = var->xres; in atyfb_get_pixclock() 795 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp; in aty_var_to_crtc() local 803 xres = (var->xres + 7) & ~7; in aty_var_to_crtc() 816 if (vxres < xres + xoffset) in aty_var_to_crtc() 817 vxres = xres + xoffset; in aty_var_to_crtc() 818 h_disp = xres; in aty_var_to_crtc() 865 if ((xres > 1920) || (yres > 1200)) { in aty_var_to_crtc() 901 ((xres > par->lcd_width) || (yres > par->lcd_height))) { in aty_var_to_crtc() 1050 if (xres < par->lcd_width && crtc->lcd_gen_cntl & LCD_ON) { in aty_var_to_crtc() [all …]
|
D | mach64_ct.c | 141 if (pll->xres != 0) { in aty_dsp_gt() 145 divider = divider * pll->xres & ~7; in aty_dsp_gt() 148 ras_divider = ras_divider * pll->xres & ~7; in aty_dsp_gt() 269 if(pll->ct.xres > 0) { in aty_pll_to_var_ct() 271 ret /= pll->ct.xres; in aty_pll_to_var_ct()
|
/linux-4.1.27/arch/arm/mach-pxa/ |
D | am200epd.c | 47 .xres = 1200, 61 .xres = 1088, 75 .xres = 832, 150 if ((info->var.xres != am200_fb_info.modes->xres) in am200_share_video_mem() 228 fw = am200_fb_info.modes->xres; in am200_presetup_fb() 250 am200_fb_info.modes->xres /= 2; in am200_presetup_fb()
|
D | cm-x2xx.c | 202 .xres = 320, 227 .xres = 640, 251 .xres = 640, 275 .xres = 800, 299 .xres = 320, 322 .xres = 640,
|
D | lpd270.c | 292 .xres = 320, 314 .xres = 800, 336 .xres = 320, 358 .xres = 640, 380 .xres = 640, 402 .xres = 240,
|
D | zylonite.c | 141 .xres = 240, 155 .xres = 640, 175 .xres = 240, 188 .xres = 480,
|
D | himalaya.c | 43 .xres = 240, 66 .xres = 240,
|
D | eseries.c | 258 .xres = 240, 390 .xres = 240, 586 .xres = 240, 794 .xres = 480, 817 .xres = 240, 864 if (par->mode->xres == 480) in e800_tg_change()
|
D | vpac270.c | 482 .xres = 640, 498 .xres = 640, 514 .xres = 800, 530 .xres = 1024,
|
D | palm27x.c | 89 .xres = 320, 104 .xres = 320, 119 .xres = 320,
|
D | littleton.c | 153 .xres = 480, 167 .xres = 240,
|
/linux-4.1.27/arch/arm/mach-sa1100/ |
D | lart.c | 35 .xres = 320, .yres = 240, 51 .xres = 320, .yres = 240, 64 .xres = 640, .yres = 480, 80 .xres = 640, .yres = 480,
|
D | shannon.c | 62 .xres = 640, .yres = 480,
|
/linux-4.1.27/drivers/video/fbdev/omap/ |
D | omapfb_main.c | 208 var->xres, var->yres, plane->color_mode); in ctrl_change_mode() 220 var->xres, var->yres, in ctrl_change_mode() 508 var->xres = panel->x_res; in set_fb_var() 519 var->xres = panel->y_res; in set_fb_var() 527 if (var->xres < xres_min) in set_fb_var() 528 var->xres = xres_min; in set_fb_var() 531 if (var->xres > xres_max) in set_fb_var() 532 var->xres = xres_max; in set_fb_var() 536 if (var->xres_virtual < var->xres) in set_fb_var() 537 var->xres_virtual = var->xres; in set_fb_var() [all …]
|
D | lcdc.c | 58 int xres; member 195 (lcdc.xres & 1)) in setup_lcd_dma() 199 xelem = lcdc.xres * lcdc.bpp / 8 / esize; in setup_lcd_dma() 210 yelem = lcdc.xres; in setup_lcd_dma() 318 lcdc.xres = width; in omap_lcdc_setup_plane()
|
/linux-4.1.27/drivers/video/fbdev/geode/ |
D | display_gx.c | 55 int gx_line_delta(int xres, int bpp) in gx_line_delta() argument 58 return (xres * (bpp >> 3) + 7) & ~0x7; in gx_line_delta() 108 ((info->var.xres * info->var.bits_per_pixel/8) >> 3) + 2); in gx_set_mode() 133 hactive = info->var.xres; in gx_set_mode()
|
D | gx1fb_core.c | 87 static int gx1_line_delta(int xres, int bpp) in gx1_line_delta() argument 89 int line_delta = xres * (bpp >> 3); in gx1_line_delta() 105 if (var->xres > 1280 || var->yres > 1024) in gx1fb_check_var() 108 if (par->panel_x && (var->xres > par->panel_x || var->yres > par->panel_y)) in gx1fb_check_var() 126 if (gx1_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gx1fb_check_var() 143 info->fix.line_length = gx1_line_delta(info->var.xres, info->var.bits_per_pixel); in gx1fb_set_par()
|
D | gxfb_core.c | 141 if (var->xres > 1600 || var->yres > 1200) in gxfb_check_var() 143 if ((var->xres > 1280 || var->yres > 1024) && var->bits_per_pixel > 16) in gxfb_check_var() 163 if (gx_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gxfb_check_var() 178 info->fix.line_length = gx_line_delta(info->var.xres, info->var.bits_per_pixel); in gxfb_set_par()
|
D | display_gx1.c | 139 writel(((info->var.xres * info->var.bits_per_pixel/8) >> 3) + 2, in gx1_set_mode() 151 hactive = info->var.xres; in gx1_set_mode()
|
D | lxfb.h | 60 static inline unsigned int lx_get_pitch(unsigned int xres, int bpp) in lx_get_pitch() argument 62 return (((xres * (bpp >> 3)) + 7) & ~7); in lx_get_pitch()
|
/linux-4.1.27/arch/arm/mach-s3c64xx/ |
D | mach-mini6410.c | 149 .xres = 480, 161 .xres = 480, 168 .xres = 800, 180 .xres = 800, 329 mini6410_lcd_pdata[features.lcd_index].win[0]->xres, in mini6410_machine_init()
|
D | mach-real6410.c | 113 .xres = 480, 130 .xres = 800, 142 .xres = 800, 299 real6410_lcd_pdata[features.lcd_index].win[0]->xres, in real6410_machine_init()
|
D | mach-smartq5.c | 114 .xres = 800, 125 .xres = 800,
|
D | mach-smartq7.c | 130 .xres = 800, 141 .xres = 800,
|
D | mach-anw6410.c | 139 .xres = 800, 150 .xres = 800,
|
D | mach-hmt.c | 135 .xres = 800, 146 .xres = 800,
|
/linux-4.1.27/include/linux/amba/ |
D | clcd.h | 197 val = ((var->xres / 16) - 1) << 2; in clcdfb_decode() 284 var->xres_virtual = var->xres = (var->xres + 15) & ~15; in clcdfb_check() 291 var->xres > 4096 || in clcdfb_check() 312 (CHECK(xres) || in clcdfb_check()
|
/linux-4.1.27/arch/arm/mach-nspire/ |
D | clcd.c | 22 .xres = 320, 46 .xres = 320, 90 panel_size = ((panel->mode.xres * panel->mode.yres) * panel->bpp) / 8; in nspire_clcd_setup()
|
/linux-4.1.27/arch/sh/boards/mach-migor/ |
D | lcd_qvga.c | 118 unsigned long xres = 320; in migor_lcd_qvga_setup() local 141 write_reg16(sohandle, so, 0x0053, xres - 1); in migor_lcd_qvga_setup() 154 for (k = 0; k < (xres * 256); k++) /* yes, 256 words per line */ in migor_lcd_qvga_setup()
|
/linux-4.1.27/arch/avr32/boards/atngw100/ |
D | evklcd10x.c | 37 .xres = 640, .yres = 480, 75 .xres = 320, .yres = 240, 113 .xres = 320, .yres = 240,
|
D | mrmt.c | 64 .xres = 480, .yres = 272, 107 .xres = 480, .yres = 272,
|
/linux-4.1.27/drivers/staging/sm750fb/ |
D | sm750_hw.c | 337 modparm.horizontal_display_end = var->xres; in hw_sm750_crtc_setMode() 339 modparm.horizontal_sync_start = var->xres + var->right_margin; in hw_sm750_crtc_setMode() 340 modparm.horizontal_total = var->xres + var->left_margin + var->right_margin + var->hsync_len; in hw_sm750_crtc_setMode() 366 reg = var->xres * (var->bits_per_pixel >> 3); in hw_sm750_crtc_setMode() 375 FIELD_VALUE(0, PANEL_WINDOW_WIDTH, WIDTH, var->xres -1)| in hw_sm750_crtc_setMode() 386 FIELD_VALUE(0, PANEL_PLANE_BR,RIGHT, var->xres - 1)); in hw_sm750_crtc_setMode() 398 reg = var->xres * (var->bits_per_pixel >> 3); in hw_sm750_crtc_setMode() 623 if ((var->xoffset + var->xres > var->xres_virtual) || in hw_sm750_pan_display()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 590 ivtv_window.width = var->xres; in ivtvfb_set_var() 614 var->xres, var->yres, in ivtvfb_set_var() 723 if (var->xres > IVTV_OSD_MAX_WIDTH || var->yres > osd_height_limit) { in _ivtvfb_check_var() 725 var->xres, var->yres); in _ivtvfb_check_var() 732 var->xres_virtual < var->xres || in _ivtvfb_check_var() 742 if (var->xres & 3) { in _ivtvfb_check_var() 743 IVTVFB_DEBUG_WARN("Invalid resolution for 8bpp: %d\n", var->xres); in _ivtvfb_check_var() 753 if (var->xres & 1) { in _ivtvfb_check_var() 754 IVTVFB_DEBUG_WARN("Invalid resolution for 16bpp: %d\n", var->xres); in _ivtvfb_check_var() 787 if (var->left_margin + var->xres > IVTV_OSD_MAX_WIDTH + 1) in _ivtvfb_check_var() [all …]
|
/linux-4.1.27/drivers/gpu/drm/bochs/ |
D | bochs_hw.c | 155 bochs->xres = mode->hdisplay; in bochs_hw_setmode() 162 bochs->xres, bochs->yres, bochs->bpp, in bochs_hw_setmode() 169 bochs_dispi_write(bochs, VBE_DISPI_INDEX_XRES, bochs->xres); in bochs_hw_setmode() 172 bochs_dispi_write(bochs, VBE_DISPI_INDEX_VIRT_WIDTH, bochs->xres); in bochs_hw_setmode()
|
/linux-4.1.27/include/video/ |
D | sh_mobile_meram.h | 47 unsigned int xres, unsigned int yres, 72 unsigned int xres, unsigned int yres, in sh_mobile_meram_cache_alloc() argument
|
D | w100fb.h | 71 unsigned int xres; member 138 unsigned int xres; member
|
D | sa1100fb.h | 34 u_short xres; member
|
D | mbxfb.h | 17 struct mbxfb_val xres; member
|
D | omapvrfb.h | 30 u16 xres; member
|
/linux-4.1.27/drivers/video/fbdev/matrox/ |
D | matroxfb_base.c | 450 int xres, int bpp) in matroxfb_test_and_set_rounding() argument 458 case 0: return xres; in matroxfb_test_and_set_rounding() 476 over = xres % rounding; in matroxfb_test_and_set_rounding() 478 xres += rounding-over; in matroxfb_test_and_set_rounding() 479 return xres; in matroxfb_test_and_set_rounding() 482 static int matroxfb_pitch_adjust(const struct matrox_fb_info *minfo, int xres, in matroxfb_pitch_adjust() argument 490 if (!bpp) return xres; in matroxfb_pitch_adjust() 496 if ((*width >= xres) && (matroxfb_test_and_set_rounding(minfo, *width, bpp) == *width)) { in matroxfb_pitch_adjust() 503 xres_new = matroxfb_test_and_set_rounding(minfo, xres, bpp); in matroxfb_pitch_adjust() 572 if (var->xres_virtual < var->xres) in matroxfb_decode_var() [all …]
|
D | matroxfb_crtc2.c | 207 if (var->xres_virtual < var->xres) in matroxfb_dh_decode_var() 208 var->xres_virtual = var->xres; in matroxfb_dh_decode_var() 215 if (var->xoffset + var->xres > var->xres_virtual) in matroxfb_dh_decode_var() 216 var->xoffset = var->xres_virtual - var->xres; in matroxfb_dh_decode_var() 220 var->xres &= ~7; in matroxfb_dh_decode_var()
|
/linux-4.1.27/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-main.c | 392 var->xres_virtual = var->xres; in check_fb_res_bounds() 400 if (var->xres < xres_min) in check_fb_res_bounds() 401 var->xres = xres_min; in check_fb_res_bounds() 404 if (var->xres > xres_max) in check_fb_res_bounds() 405 var->xres = xres_max; in check_fb_res_bounds() 409 if (var->xres > var->xres_virtual) in check_fb_res_bounds() 410 var->xres = var->xres_virtual; in check_fb_res_bounds() 441 if (var->xres > var->xres_virtual) in shrink_width() 442 var->xres = var->xres_virtual; in shrink_width() 538 else if (vrfb->xres != var->xres_virtual || in setup_vrfb_rotation() [all …]
|
/linux-4.1.27/drivers/staging/sm7xxfb/ |
D | sm7xxfb.c | 62 .xres = 1024, 589 sfb->fb.fix.line_length = sfb->fb.var.xres * 4; in smtcfb_setmode() 599 sfb->fb.fix.line_length = sfb->fb.var.xres * 3; in smtcfb_setmode() 609 sfb->fb.fix.line_length = sfb->fb.var.xres; in smtcfb_setmode() 620 sfb->fb.fix.line_length = sfb->fb.var.xres * 2; in smtcfb_setmode() 630 sfb->width = sfb->fb.var.xres; in smtcfb_setmode() 639 if (var->xres_virtual < var->xres) in smtc_check_var() 640 var->xres_virtual = var->xres; in smtc_check_var() 802 sfb->fb.var.xres = smtc_scr_info.lfb_width; in smtcfb_pci_probe() 807 sfb->fb.var.xres = SCREEN_X_RES; in smtcfb_pci_probe() [all …]
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fb.c | 143 if ((var->xoffset + var->xres) > par->max_width || in vmw_fb_check_var() 150 var->xres * var->bits_per_pixel/8, in vmw_fb_check_var() 165 info->fix.line_length = info->var.xres * info->var.bits_per_pixel/8; in vmw_fb_set_par() 167 ret = vmw_kms_write_svga(vmw_priv, info->var.xres, info->var.yres, in vmw_fb_set_par() 180 vmw_write(vmw_priv, SVGA_REG_DISPLAY_WIDTH, info->var.xres); in vmw_fb_set_par() 233 w = min(par->dirty.x2, info->var.xres) - x; in vmw_fb_dirty_flush() 319 par->dirty.x2 = info->var.xres; in vmw_deferred_io() 518 info->var.xres = initial_width; in vmw_fb_init() 655 vmw_fb_dirty_mark(par, 0, 0, info->var.xres, info->var.yres); in vmw_fb_on()
|
/linux-4.1.27/arch/arm/mach-davinci/ |
D | board-dm365-evm.c | 385 .xres = 720, 397 .xres = 720, 413 .xres = 720, 425 .xres = 720, 437 .xres = 1280, 453 .xres = 1920,
|
D | board-dm644x-evm.c | 627 .xres = 720, 639 .xres = 720, 655 .xres = 720, 667 .xres = 720,
|
D | board-dm355-evm.c | 254 .xres = 720, 266 .xres = 720,
|
/linux-4.1.27/arch/arm/mach-imx/ |
D | eukrea_mbimxsd35-baseboard.c | 48 .xres = 320, 64 .xres = 640, 81 .xres = 800,
|
D | mach-vpr200.c | 58 .xres = 800, 74 .xres = 800,
|
D | mach-pcm043.c | 48 .xres = 240, 64 .xres = 240,
|
D | mach-pcm037.c | 449 .xres = 240, 466 .xres = 240, 482 .xres = 240,
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
D | mach-qt2410.c | 116 .xres = 640, 138 .xres = 480, 160 .xres = 240,
|
D | mach-smdk2416.c | 153 .xres = 800, 166 .xres = 800,
|
D | mach-bast.c | 423 .xres = 640, 441 .xres = 640, 459 .xres = 640,
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
D | sis_main.c | 150 unsigned int j = 0, xres = 0, yres = 0, depth = 0, rate = 0; in sisfb_search_mode() local 180 if(sscanf(strbuf1, "%u %u %u %u", &xres, &yres, &depth, &rate) == 4) { in sisfb_search_mode() 184 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode() 187 } else if(sscanf(strbuf1, "%u %u %u", &xres, &yres, &depth) == 3) { in sisfb_search_mode() 188 sprintf(strbuf, "%ux%ux%u", xres, yres, depth); in sisfb_search_mode() 191 xres = 0; in sisfb_search_mode() 192 if((sscanf(strbuf1, "%u %u", &xres, &yres) == 2) && (xres != 0)) { in sisfb_search_mode() 193 sprintf(strbuf, "%ux%ux8", xres, yres); in sisfb_search_mode() 404 int i, j, xres, yres, refresh, index; in sisfb_interpret_edid() local 472 xres = (buffer[index] + 31) * 8; in sisfb_interpret_edid() [all …]
|
D | sis_main.h | 32 .xres = 0, 156 u16 xres; member 317 u16 xres; member 411 u16 xres; member
|
/linux-4.1.27/drivers/video/fbdev/intelfb/ |
D | intelfbdrv.c | 958 int xtot = var->xres + var->left_margin + var->right_margin + in var_to_refresh() 984 var->xres = screen_info.lfb_width; in get_initial_mode() 1001 var->xres, var->yres, var->bits_per_pixel, in get_initial_mode() 1005 var->left_margin = (var->xres / 8) & 0xf8; in get_initial_mode() 1009 var->hsync_len = (var->xres / 8) & 0xf8; in get_initial_mode() 1012 xtot = var->xres + var->left_margin + in get_initial_mode() 1094 INF_MSG("Initial video mode is %dx%d-%d@%d.\n", var->xres, var->yres, in intelfb_init_var() 1101 var->xres_virtual = var->xres; in intelfb_init_var() 1103 dinfo->fb.size / 2 / (var->bits_per_pixel * var->xres); in intelfb_init_var() 1161 dinfo->xres = var->xres; in update_dinfo() [all …]
|
/linux-4.1.27/lib/fonts/ |
D | fonts.c | 116 const struct font_desc *get_default_font(int xres, int yres, u32 font_w, in get_default_font() argument 133 if (MACH_IS_MAC && xres < 640 && f->idx == VGA6x11_IDX) in get_default_font()
|
/linux-4.1.27/arch/x86/platform/efi/ |
D | early_printk.c | 202 u16 xres, yres; in early_efi_setup() local 206 xres = si->lfb_width; in early_efi_setup() 216 font = get_default_font(xres, yres, -1, -1); in early_efi_setup()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | ioport.c | 92 struct resource xres; /* Must be first */ member 181 struct xresource *xres; in _sparc_alloc_io() local 189 if ((xres = xres_alloc()) != NULL) { in _sparc_alloc_io() 190 tack = xres->xname; in _sparc_alloc_io() 191 res = &xres->xres; in _sparc_alloc_io()
|
/linux-4.1.27/drivers/video/fbdev/nvidia/ |
D | nvidia.c | 97 .xres = 640, 307 int h_display = info->var.xres / 8 - 1; in nvidia_calc_regs() 308 int h_start = (info->var.xres + info->var.right_margin) / 8 - 1; in nvidia_calc_regs() 309 int h_end = (info->var.xres + info->var.right_margin + in nvidia_calc_regs() 311 int h_total = (info->var.xres + info->var.right_margin + in nvidia_calc_regs() 420 info->var.xres, info->var.yres_virtual, in nvidia_calc_regs() 427 if (!par->fpScaler || (par->fpWidth <= info->var.xres) in nvidia_calc_regs() 494 state->displayV = info->var.xres; in nvidia_calc_regs() 693 info->var.xres, info->var.yres, in nvidiafb_set_par() 778 var->xres &= ~7; in nvidiafb_check_var() [all …]
|
/linux-4.1.27/drivers/video/fbdev/mb862xx/ |
D | mb862xxfbdrv.c | 48 return var->xres + var->left_margin + in h_total() 60 return var->xres + var->right_margin - 1; in hsp() 70 return var->xres * var->bits_per_pixel / 8; in d_pitch() 123 if ((var->xres + var->right_margin) >= 4096) in mb862xxfb_check_var() 160 tmp = (var->xres * var->bits_per_pixel) / 8; in mb862xxfb_check_var() 211 mb862xxfb_init_accel(fbi, fbi->var.xres); in mb862xxfb_set_par() 241 reg = pack(fbi->var.yres - 1, fbi->var.xres); in mb862xxfb_set_par() 255 reg = pack(fbi->var.xres - 1, fbi->var.xres - 1); in mb862xxfb_set_par() 453 fbi->var.xres = (inreg(disp, GC_HDB_HDP) & 0x0fff) + 1; in mb862xxfb_init_fbinfo() 457 fbi->var.xres_virtual = fbi->var.xres; in mb862xxfb_init_fbinfo() [all …]
|
/linux-4.1.27/drivers/video/fbdev/mbx/ |
D | mbxfb.c | 83 .xres = 640, 188 if (var->xres < MIN_XRES) in mbxfb_check_var() 189 var->xres = MIN_XRES; in mbxfb_check_var() 192 if (var->xres > MAX_XRES) in mbxfb_check_var() 196 var->xres_virtual = max(var->xres_virtual, var->xres); in mbxfb_check_var() 272 gsctrl |= Gsctrl_Width(info->var.xres) | in mbxfb_set_par() 277 gsadr |= Gsadr_Srcstride(info->var.xres * info->var.bits_per_pixel / in mbxfb_set_par() 289 hfps = has + var->xres; in mbxfb_set_par() 755 gsctrl = GSCTRL_GAMMA_EN | Gsctrl_Width(fbi->var.xres) | in setup_graphics()
|
/linux-4.1.27/Documentation/fb/ |
D | intel810.txt | 58 b. "xres:<value>" 67 is enabled, this will be ignored and computed as 3*xres/4. (This 167 o. <xres>x<yres>[-<bpp>][@<refresh>] 169 is specified, the options 'xres' and 'yres' will be ignored. See 184 append="video=i810fb:vram:2,xres:1024,yres:768,bpp:8,hsync1:30,hsync2:55, \ 211 modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \ 216 options i810fb vram=2 xres=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
|
D | sm501.txt | 10 "<xres>x<yres>[-<bpp>][@<refresh>]"
|
D | modedb.txt | 23 <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd] 26 with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string. 34 specified, add margins to the calculation (1.8% of xres rounded down to 8 97 where: pix = total amount of pixels in MB (xres x yres) 131 video=<driver>:<xres>x<yres>[-<bpp>][@refresh]
|
/linux-4.1.27/arch/arm/mach-integrator/ |
D | impd1.c | 80 .xres = 640, 108 .xres = 800, 136 .xres = 640, 168 .xres = 640,
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | radeon_legacy_crtc.c | 51 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() local 114 if (xres > native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 115 xres = native_mode->hdisplay; in radeon_legacy_rmx_mode_set() 119 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 129 fp_horz_stretch |= ((xres/8-1) << 16); in radeon_legacy_rmx_mode_set() 132 scale = ((xres + inc) * RADEON_HORZ_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set() 153 fp_horz_stretch |= ((xres/8-1) << 16); in radeon_legacy_rmx_mode_set() 194 fp_horz_stretch |= ((xres/8-1) << 16); in radeon_legacy_rmx_mode_set()
|
/linux-4.1.27/drivers/video/fbdev/kyro/ |
D | fbdev.c | 52 .xres = 640, 318 info->var.xres, info->var.yres, in kyro_dev_video_mode_set() 330 deviceInfo.ulNextFreeVidMem = info->var.xres * info->var.yres * in kyro_dev_video_mode_set() 481 par->XRES = info->var.xres; in kyrofb_set_par() 489 lineclock = (info->var.pixclock * (info->var.xres + in kyrofb_set_par() 740 info->var.xres, info->var.yres, info->var.bits_per_pixel, in kyrofb_probe()
|
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/ |
D | bf54x-lq043.h | 27 struct bfin_bf54xfb_val xres; member
|
/linux-4.1.27/include/linux/platform_data/ |
D | video_s3c.h | 21 unsigned short xres; member
|
D | video-nuc900fb.h | 51 unsigned short xres; member
|
D | cyttsp4.h | 60 int (*xres)(struct cyttsp4_core_platform_data *pdata, member
|
/linux-4.1.27/drivers/video/fbdev/riva/ |
D | fbdev.c | 226 .xres = 640, 694 hDisplaySize = info->var.xres; in riva_load_video_mode() 835 var->xres = var->xres_virtual = modedb->xres; in riva_update_var() 874 int xres, yres; in rivafb_do_maximize() member 890 for (i = 0; modes[i].xres != -1; i++) { in rivafb_do_maximize() 891 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize() 895 if (modes[i].xres == -1) { in rivafb_do_maximize() 901 var->xres_virtual = modes[i].xres; in rivafb_do_maximize() 923 var->xres, var->yres, var->bits_per_pixel); in rivafb_do_maximize() 936 if (var->xres_virtual < var->xres) { in rivafb_do_maximize() [all …]
|
/linux-4.1.27/arch/powerpc/include/uapi/asm/ |
D | ps3fb.h | 38 __u32 xres; /* frame buffer x_size */ member
|
/linux-4.1.27/include/media/davinci/ |
D | vpbe_types.h | 73 unsigned int xres; member
|
/linux-4.1.27/drivers/input/ |
D | mousedev.c | 41 static int xres = CONFIG_INPUT_MOUSEDEV_SCREEN_X; variable 42 module_param(xres, uint, 0644); 43 MODULE_PARM_DESC(xres, "Horizontal screen resolution"); 182 size = xres ? : 1; in mousedev_abs_event() 186 mousedev->packet.x = ((value - min) * xres) / size; in mousedev_abs_event() 295 0 : (client->pos_x >= xres ? xres : client->pos_x); in mousedev_notify_readers() 554 client->pos_x = xres / 2; in mousedev_open()
|
/linux-4.1.27/arch/arm/plat-samsung/include/plat/ |
D | fb-s3c2410.h | 33 unsigned short xres; member
|
/linux-4.1.27/include/linux/ |
D | font.h | 54 extern const struct font_desc *get_default_font(int xres, int yres,
|
/linux-4.1.27/arch/avr32/boards/merisc/ |
D | display.c | 21 .xres = 640,
|
/linux-4.1.27/arch/sh/boards/ |
D | board-sh7785lcr.c | 146 .xres = 640, 159 .xres = 640,
|
/linux-4.1.27/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 244 mode->xres = videomode->xres; in fbmode_to_mmpmode() 270 videomode->xres = mode->xres; in mmpmode_to_fbmode() 297 if (var->xoffset + var->xres > var->xres_virtual) in mmpfb_check_var() 403 win.xsrc = win.xdst = fbi->mode.xres; in mmpfb_set_win()
|
/linux-4.1.27/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 631 if (var->xres > VML_MAX_XRES || var->yres > VML_MAX_YRES) { in vmlfb_check_var_locked() 653 pitch = ALIGN((var->xres * var->bits_per_pixel) >> 3, 0x40); in vmlfb_check_var_locked() 794 var->xres + var->right_margin + var->hsync_len + var->left_margin; in vmlfb_set_par_locked() 795 hactive = var->xres; in vmlfb_set_par_locked() 796 hblank_start = var->xres; in vmlfb_set_par_locked() 855 ((var->yres - 1) << 16) | (var->xres - 1)); in vmlfb_set_par_locked() 861 ((var->xres - 1) << 16) | (var->yres - 1)); in vmlfb_set_par_locked()
|
/linux-4.1.27/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 852 var->xres = var->xres_virtual = modedb->xres; in savage_update_var() 933 (var->xres > par->SavagePanelWidth || in savagefb_check_var() 936 "(%dx%d)\n", var->xres, var->yres, in savagefb_check_var() 944 if (var->xres_virtual < var->xres) in savagefb_check_var() 945 var->xres_virtual = var->xres; in savagefb_check_var() 962 if (var->xres_virtual < var->xres) in savagefb_check_var() 963 var->xres = var->xres_virtual; in savagefb_check_var() 964 if (var->xoffset + var->xres > var->xres_virtual) in savagefb_check_var() 965 var->xoffset = var->xres_virtual - var->xres; in savagefb_check_var() 992 timings.HDisplay = var->xres; in savagefb_decode_var() [all …]
|
/linux-4.1.27/drivers/video/console/ |
D | fbcon.c | 991 font = get_default_font(info->var.xres, in fbcon_startup() 1003 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup() 1004 rows = FBCON_SWAP(ops->rotate, info->var.yres, info->var.xres); in fbcon_startup() 1011 DPRINTK("res: %dx%d-%d\n", info->var.xres, in fbcon_startup() 1064 font = get_default_font(info->var.xres, in fbcon_init() 1101 new_cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_init() 1102 new_rows = FBCON_SWAP(ops->rotate, info->var.yres, info->var.xres); in fbcon_init() 1390 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_set_disp() 1391 rows = FBCON_SWAP(ops->rotate, info->var.yres, info->var.xres); in fbcon_set_disp() 2074 int yres = FBCON_SWAP(ops->rotate, info->var.yres, info->var.xres); in updatescrollmode() [all …]
|