| /linux/drivers/video/fbdev/i810/ |
| H A D | i810_dvt.c | 195 void round_off_xres(u32 *xres) in round_off_xres() argument 197 if (*xres <= 640) in round_off_xres() 198 *xres = 640; in round_off_xres() 199 else if (*xres <= 800) in round_off_xres() 200 *xres = 800; in round_off_xres() 201 else if (*xres <= 1024) in round_off_xres() 202 *xres = 1024; in round_off_xres() 203 else if (*xres <= 1152) in round_off_xres() 204 *xres = 1152; in round_off_xres() 205 else if (*xres <= 1280) in round_off_xres() [all …]
|
| H A 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 …]
|
| H A 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);
|
| /linux/drivers/video/fbdev/via/ |
| H A D | via_utility.c | 36 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres) in viafb_lcd_get_support_expand_state() argument 42 if ((xres < 640) && (yres < 480)) in viafb_lcd_get_support_expand_state() 47 if ((xres < 800) && (yres < 600)) in viafb_lcd_get_support_expand_state() 52 if ((xres < 1024) && (yres < 768)) in viafb_lcd_get_support_expand_state() 57 if ((xres < 1280) && (yres < 768)) in viafb_lcd_get_support_expand_state() 62 if ((xres < 1280) && (yres < 1024)) in viafb_lcd_get_support_expand_state() 67 if ((xres < 1400) && (yres < 1050)) in viafb_lcd_get_support_expand_state() 72 if ((xres < 1600) && (yres < 1200)) in viafb_lcd_get_support_expand_state() 77 if ((xres < 1366) && (yres < 768)) in viafb_lcd_get_support_expand_state() 82 if ((xres < 1024) && (yres < 600)) in viafb_lcd_get_support_expand_state() [all …]
|
| /linux/drivers/staging/fbtft/ |
| H A D | fb_sh1106.c | 23 if (!par->info->var.xres || par->info->var.xres > WIDTH || in init_display() 111 u32 xres = par->info->var.xres; in write_vmem() local 116 page_start = offset / (8 * 2 * xres); in write_vmem() 117 page_end = DIV_ROUND_UP(offset + len, 8 * 2 * xres); in write_vmem() 123 memset(buf, 0, xres); in write_vmem() 124 for (x = 0; x < xres; x++) in write_vmem() 126 if (vmem16[(page * 8 + i) * xres + x]) in write_vmem() 130 ret = fbtft_write_buf_dc(par, buf, xres, 1); in write_vmem()
|
| H A D | fb_ssd1306.c | 145 if (par->info->var.xres == 64 && par->info->var.yres == 48) in set_addr_win() 174 u32 xres = par->info->var.xres; in write_vmem() local 180 for (x = 0; x < xres; x++) { in write_vmem() 184 if (vmem16[(y * 8 + i) * xres + x]) in write_vmem() 192 ret = par->fbtftops.write(par, par->txbuf.buf, xres * yres / 8); in write_vmem()
|
| H A D | fb_ssd1325.c | 135 for (x = 0; x < par->info->var.xres; x++) { in write_vmem() 139 n1 = rgb565_to_g16(vmem16[y * par->info->var.xres + x]); in write_vmem() 141 [y * par->info->var.xres + x + 1]); in write_vmem() 151 par->info->var.xres * par->info->var.yres / 2); in write_vmem()
|
| /linux/drivers/video/fbdev/core/ |
| H A 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() 225 pixcount = (cvt->xres * (cvt->yres/cvt->interlace))/1000000; in fb_cvt_print_name() 226 pixcount_mod = (cvt->xres * (cvt->yres/cvt->interlace)) % 1000000; in fb_cvt_print_name() 230 cvt->xres, cvt->yres, cvt->refresh); in fb_cvt_print_name() [all …]
|
| H A D | fbmon.c | 386 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument 394 var->xres = xres; in calc_mode_timings() 398 mode->xres = xres; in calc_mode_timings() 517 int xres, yres = 0, refresh, ratio; in get_std_timing() local 519 xres = (block[0] + 31) * 8; in get_std_timing() 520 if (xres <= 256) in get_std_timing() 528 yres = xres; in get_std_timing() 530 yres = (xres * 10)/16; in get_std_timing() 533 yres = (xres * 3)/4; in get_std_timing() 536 yres = (xres * 4)/5; in get_std_timing() [all …]
|
| H A D | fb_logo.c | 218 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo() 226 image->dx = info->var.xres - image->width - tmp; in fb_rotate_logo() 244 if (image->width > info->var.xres || image->height > info->var.yres) in fb_do_show_logo() 249 x < num && image->dx + image->width <= info->var.xres; in fb_do_show_logo() 326 int xres = info->var.xres; in fb_show_logo_line() local 330 xres = info->var.yres; in fb_show_logo_line() 331 yres = info->var.xres; in fb_show_logo_line() 334 while (n && (n * (logo->width + 8) - 8 > xres)) in fb_show_logo_line() 336 image.dx = (xres - (n * (logo->width + 8) - 8)) / 2; in fb_show_logo_line() 452 yres = info->var.xres; in fb_prepare_logo()
|
| H A D | svgalib.c | 174 pr_debug("fb%d: var.xres : %d\n", node, var->xres); 443 var->xres = (var->xres + 7) & ~7; in svga_check_timings() 449 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings() 454 value = var->xres; in svga_check_timings() 461 value = var->xres + var->right_margin; in svga_check_timings() 513 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 518 value = var->xres; in svga_set_timings() 523 value = var->xres; in svga_set_timings() 528 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 533 value = var->xres + var->right_margin; in svga_set_timings() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | arcfb.c | 53 #define floorXres(a,xres) (a&(~(xres - 1))) argument 56 #define ceilXres(a,xres) (a|(xres - 1)) argument 94 .xres = 128, 263 linesize = par->info->var.xres/8; in arcfb_lcd_update_page() 409 unsigned int xres = info->var.xres; in arcfb_damage_range() local 414 startpos = floorXres(bitppos, xres); in arcfb_damage_range() 415 endpos = ceilXres((bitppos + (len * 8)), xres); in arcfb_damage_range() 418 x = startpos % xres; in arcfb_damage_range() 419 y = startpos / xres; in arcfb_damage_range() 420 width = xres; in arcfb_damage_range() [all …]
|
| H A D | goldfishfb.c | 92 if ((var->xres != info->var.yres) || in goldfish_fb_check_var() 93 (var->yres != info->var.xres) || in goldfish_fb_check_var() 95 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() 96 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var() 100 if ((var->xres != info->var.xres) || in goldfish_fb_check_var() 102 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 121 info->fix.line_length = info->var.xres * 2; in goldfish_fb_set_par() 138 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, in goldfish_fb_pan_display() 216 fb->fb.var.xres = width; in goldfish_fb_probe()
|
| H A D | 68328fb.c | 148 if (!var->xres) in mc68x328fb_check_var() 149 var->xres = 1; in mc68x328fb_check_var() 152 if (var->xres > var->xres_virtual) in mc68x328fb_check_var() 153 var->xres_virtual = var->xres; in mc68x328fb_check_var() 169 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var() 170 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var() 372 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display() 426 mc68x328fb_default.xres = LXMAX; in mc68x328fb_init() 428 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init()
|
| H A D | hitfb.c | 257 var->xres = info->var.xres; in hitfb_check_var() 258 var->xres_virtual = info->var.xres; in hitfb_check_var() 267 maxy = info->fix.smem_len / var->xres; in hitfb_check_var() 310 info->fix.line_length = info->var.xres; in hitfb_set_par() 315 info->fix.line_length = info->var.xres*2; in hitfb_set_par() 366 hitfb_var.xres = lcdclor; in hitfb_probe() 370 hitfb_var.xres = lcdclor / 2; in hitfb_probe() 377 hitfb_var.xres_virtual = hitfb_var.xres; in hitfb_probe()
|
| H A D | g364fb.c | 133 *(unsigned int *) TOP_REG = var->yoffset * info->var.xres; in g364fb_pan_display() 185 fb_var.xres = in g364fb_init() 208 fb_var.xres_virtual = fb_var.xres; in g364fb_init() 214 fb_var.yres_virtual = fb_fix.smem_len / fb_var.xres; in g364fb_init()
|
| H A D | pm2fb.c | 119 .xres = 640, 221 static u32 partprod(u32 xres) in partprod() argument 225 for (i = 0; pp_table[i].width && pp_table[i].width != xres; i++) in partprod() 228 DPRINTK("invalid width %u\n", xres); in partprod() 575 if (var->xres != var->xres_virtual) { in pm2fb_check_var() 602 var->xres = (var->xres + 15) & ~15; /* could sometimes be 8 */ in pm2fb_check_var() 603 lpitch = var->xres * ((var->bits_per_pixel + 7) >> 3); in pm2fb_check_var() 605 if (var->xres < 320 || var->xres > 1600) { in pm2fb_check_var() 606 DPRINTK("width not supported: %u\n", var->xres); in pm2fb_check_var() 617 var->xres, var->yres_virtual, var->bits_per_pixel); in pm2fb_check_var() [all …]
|
| H A D | vfb.c | 45 .xres = 640, 133 if (!var->xres) in vfb_check_var() 134 var->xres = 1; in vfb_check_var() 137 if (var->xres > var->xres_virtual) in vfb_check_var() 138 var->xres_virtual = var->xres; in vfb_check_var() 154 if (var->xres_virtual < var->xoffset + var->xres) in vfb_check_var() 155 var->xres_virtual = var->xoffset + var->xres; in vfb_check_var() 365 if (var->xoffset + info->var.xres > info->var.xres_virtual || in vfb_pan_display()
|
| H A D | asiliantfb.c | 175 unsigned hd = p->var.xres / 8; in asiliant_set_timing() 176 unsigned hs = (p->var.xres + p->var.right_margin) / 8; in asiliant_set_timing() 177 unsigned he = (p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 178 unsigned ht = (p->var.left_margin + p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 185 if ((p->var.xres == 640) && (p->var.yres == 480) && (p->var.pixclock == 39722)) { in asiliant_set_timing() 217 if (p->var.xres == 640) { in asiliant_set_timing() 242 var->xres_virtual = var->xres; in asiliantfb_check_var() 298 p->fix.line_length = p->var.xres * (p->var.bits_per_pixel >> 3); in asiliantfb_set_par() 489 .xres = 640,
|
| H A D | acornfb.c | 125 vidc.h_display_end = vidc.h_display_start + var->xres; in acornfb_set_timing() 201 words_per_line = var->xres * var->bits_per_pixel / 32; in acornfb_set_timing() 223 printk(KERN_DEBUG "VIDC registers for %dx%dx%d:\n", var->xres, in acornfb_set_timing() 321 var->xres = (var->xres + 1) & ~1; in acornfb_adjust_timing() 326 var->xres_virtual = var->xres; in acornfb_adjust_timing() 341 font_line_len = var->xres * var->bits_per_pixel * fontht / 8; in acornfb_adjust_timing() 342 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing() 426 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing() 553 info->fix.line_length = (info->var.xres * info->var.bits_per_pixel) / 8; in acornfb_set_par() 673 .xres = 640, [all …]
|
| H A D | controlfb.c | 84 int xres, yres; member 108 return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) in PAR_EQUAL() 271 p->par.xres, p->par.yres, in control_set_hardware() 478 par->xres = (var->xres + hstep) & ~hstep; in control_var_to_par() 481 if (par->vxres < par->xres) in control_var_to_par() 482 par->vxres = par->xres; in control_var_to_par() 496 if (par->xoffset + par->xres > par->vxres) in control_var_to_par() 497 par->xoffset = par->vxres - par->xres; in control_var_to_par() 506 hperiod = ((var->left_margin + par->xres + var->right_margin in control_var_to_par() 542 if (par->xres >= 1280 && par->cmode >= CMODE_16) in control_var_to_par() [all …]
|
| /linux/drivers/video/fbdev/aty/ |
| H A D | radeon_monitor.c | 9 .xres = 640, 186 rinfo->panel_info.xres = BIOS_IN16(tmp + 25); in radeon_get_panel_info_BIOS() 189 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS() 216 if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && in radeon_get_panel_info_BIOS() 688 rinfo->panel_info.xres = var->xres; in radeon_var_to_panel_info() 715 var->xres = mode->xres; in radeon_videomode_to_var() 717 var->xres_virtual = mode->xres; in radeon_videomode_to_var() 782 if (var.xres >= rinfo->panel_info.xres && in radeon_check_modes() 801 var->xres = rinfo->panel_info.xres; in radeon_check_modes() 803 var->xres_virtual = rinfo->panel_info.xres; in radeon_check_modes() [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_cmdline_parser_test.c | 121 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res() 143 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_vesa() 165 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_vesa_rblank() 187 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_rblank() 209 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_bpp() 232 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_refresh() 255 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_bpp_refresh() 279 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_bpp_refresh_interlaced() 303 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_bpp_refresh_margins() 327 KUNIT_EXPECT_EQ(test, mode.xres, 720); in drm_test_cmdline_res_bpp_refresh_force_off() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | ioport.c | 81 struct resource xres; /* Must be first */ member 170 struct xresource *xres; in _sparc_alloc_io() local 178 if ((xres = xres_alloc()) != NULL) { in _sparc_alloc_io() 179 tack = xres->xname; in _sparc_alloc_io() 180 res = &xres->xres; in _sparc_alloc_io()
|
| /linux/drivers/video/fbdev/omap/ |
| H A D | omapfb_main.c | 193 var->xres, var->yres, plane->color_mode); in ctrl_change_mode() 205 var->xres, var->yres, in ctrl_change_mode() 491 var->xres = panel->x_res; in set_fb_var() 502 var->xres = panel->y_res; in set_fb_var() 510 if (var->xres < xres_min) in set_fb_var() 511 var->xres = xres_min; in set_fb_var() 514 if (var->xres > xres_max) in set_fb_var() 515 var->xres = xres_max; in set_fb_var() 519 if (var->xres_virtual < var->xres) in set_fb_var() 520 var->xres_virtual = var->xres; in set_fb_var() [all …]
|