/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 …]
|
/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 …]
|
/drivers/staging/xgifb/ |
D | XGI_main_26.c | 239 && (XGIbios_mode[i].xres <= xgifb_info->lvds_data.LVDSHDE)) { in XGIfb_GetXG21DefaultLVDSModeIdx() 240 if ((XGIbios_mode[i].xres == xgifb_info->lvds_data.LVDSHDE) in XGIfb_GetXG21DefaultLVDSModeIdx() 254 unsigned int xres; in XGIfb_search_mode() local 259 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode() 266 if (XGIbios_mode[i].xres == xres && in XGIfb_search_mode() 301 u16 xres, yres; in XGIfb_validate_mode() local 307 xres = xgifb_info->lvds_data.LVDSHDE; in XGIfb_validate_mode() 309 if (XGIbios_mode[myindex].xres > xres) in XGIfb_validate_mode() 313 if ((XGIbios_mode[myindex].xres < xres) && in XGIfb_validate_mode() 335 xres = 640; in XGIfb_validate_mode() [all …]
|
/drivers/video/fbdev/core/ |
D | modedb.c | 24 ((v).xres == (x) && (v).yres == (y)) 549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode() 550 var->xres = mode->xres; in fb_try_mode() 552 var->xres_virtual = mode->xres; in fb_try_mode() 642 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local 712 xres = simple_strtol(name, NULL, 10); in fb_find_mode() 720 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode() 727 cvt_mode.xres = xres; in fb_find_mode() 748 xres, yres); in fb_find_mode() 772 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode() [all …]
|
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 | 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 …]
|
/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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | goldfishfb.c | 148 if ((var->xres != info->var.yres) || in goldfish_fb_check_var() 149 (var->yres != info->var.xres) || in goldfish_fb_check_var() 151 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() 152 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var() 156 if ((var->xres != info->var.xres) || in goldfish_fb_check_var() 158 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 177 info->fix.line_length = info->var.xres * in goldfish_fb_set_par() 196 fb->fb.var.xres * in goldfish_fb_pan_display() 293 fb->fb.var.xres = width; in goldfish_fb_probe()
|
D | amba-clcd-versatile.c | 11 .xres = 640, 35 .xres = 1024, 60 .xres = 320, 84 .xres = 240, 109 .xres = 176,
|
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 | 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 | 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 …]
|
/drivers/staging/fbtft/ |
D | fb_agm1264k-fl.c | 257 if (src[(y * 8 + i) * par->info->var.xres + x]) in construct_line_bitmap() 275 signed short *convert_buf = kmalloc(par->info->var.xres * in write_vmem() 282 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 284 u16 pixel = vmem16[y * par->info->var.xres + x]; in write_vmem() 294 convert_buf[y * par->info->var.xres + x] = in write_vmem() 299 for (x = 0; x < par->info->var.xres; ++x) in write_vmem() 302 convert_buf[y * par->info->var.xres + x]; in write_vmem() 330 x + i >= par->info->var.xres in write_vmem() 334 (y + j) * par->info->var.xres + in write_vmem() 356 if (addr_win.xs < par->info->var.xres / 2) { in write_vmem() [all …]
|
/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 …]
|
/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() 503 var->xres = panel->x_res; in set_fb_var() 514 var->xres = panel->y_res; in set_fb_var() 522 if (var->xres < xres_min) in set_fb_var() 523 var->xres = xres_min; in set_fb_var() 526 if (var->xres > xres_max) in set_fb_var() 527 var->xres = xres_max; in set_fb_var() 531 if (var->xres_virtual < var->xres) in set_fb_var() 532 var->xres_virtual = var->xres; in set_fb_var() [all …]
|