Home
last modified time | relevance | path

Searched refs:yres (Results 1 – 200 of 361) sorted by relevance

12

/linux-4.1.27/drivers/video/fbdev/via/
Dvia_utility.c50 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 …]
Dviafbdev.c194 vtotal = var->upper_margin + var->yres + var->lower_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()
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()
279 viafbinfo1->var.yres, viafbinfo1->var.bits_per_pixel, in viafb_set_par()
428 info->var.yres, in viafb_ioctl()
437 u.viamode.yres = (u32) viafb_hotplug_Yres; in viafb_ioctl()
525 u.active_dev.yres = viafb_hotplug_Yres; in viafb_ioctl()
[all …]
Dioctl.h96 unsigned short xres, yres; member
118 u32 yres; member
Dvia_utility.h27 bool viafb_lcd_get_support_expand_state(u32 xres, u32 yres);
/linux-4.1.27/drivers/video/fbdev/core/
Dfbcvt.c37 u32 yres; member
80 den = 2 * (cvt->yres/cvt->interlace + 2 * cvt->v_margin); in fb_cvt_hperiod()
83 den = 2 * (cvt->yres/cvt->interlace + cvt->v_margin * 2 in fb_cvt_hperiod()
164 u32 vtotal = cvt->yres/cvt->interlace; in fb_cvt_vtotal()
191 u32 yres = cvt->yres; 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()
[all …]
Dmodedb.c24 ((v).xres == (x) && (v).yres == (y))
606 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
608 var->yres = mode->yres; in fb_try_mode()
610 var->yres_virtual = mode->yres; in fb_try_mode()
699 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local
731 yres = simple_strtol(&name[i+1], NULL, in fb_find_mode()
768 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode()
776 cvt_mode.yres = yres; 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 …]
Dfbmon.c381 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument
390 var->yres = yres; in calc_mode_timings()
394 mode->yres = yres; in calc_mode_timings()
512 int xres, yres = 0, refresh, ratio; in get_std_timing() local
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()
534 yres = (xres * 9)/16; in get_std_timing()
538 DPRINTK(" %dx%d@%dHz\n", xres, yres, refresh); in get_std_timing()
[all …]
Dsvgalib.c174 pr_debug("fb%d: var.yres : %d\n", node, var->yres);
480 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
485 value = var->yres; in svga_check_timings()
492 value = var->yres + var->lower_margin; in svga_check_timings()
547 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
552 value = var->yres; in svga_set_timings()
557 value = var->yres; in svga_set_timings()
562 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
567 value = var->yres + var->lower_margin; in svga_set_timings()
572 value = var->yres + var->lower_margin + var->vsync_len; in svga_set_timings()
Dfbmem.c399 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo()
417 image->dy = info->var.yres - image->height - tmp; in fb_rotate_logo()
442 x < num && image->dy + image->height <= info->var.yres; in fb_do_show_logo()
544 unsigned int yres) in fb_prepare_extra_logos() argument
558 if (height > yres) { in fb_prepare_extra_logos()
582 unsigned int yres) in fb_prepare_extra_logos() argument
598 unsigned int yres; in fb_prepare_logo() local
627 yres = info->var.yres; in fb_prepare_logo()
629 yres = info->var.xres; in fb_prepare_logo()
631 if (fb_logo.logo->height > yres) { in fb_prepare_logo()
[all …]
/linux-4.1.27/drivers/staging/xgifb/
DXGI_main_26.c244 && (XGIbios_mode[i].yres == xgifb_info->lvds_data.LVDSVDE) in XGIfb_GetXG21DefaultLVDSModeIdx()
258 unsigned int yres; in XGIfb_search_mode() local
262 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode()
270 XGIbios_mode[i].yres == yres && in XGIfb_search_mode()
304 u16 xres, yres; in XGIfb_validate_mode() local
311 yres = xgifb_info->lvds_data.LVDSVDE; in XGIfb_validate_mode()
314 if (XGIbios_mode[myindex].yres > yres) in XGIfb_validate_mode()
317 (XGIbios_mode[myindex].yres < yres)) { in XGIfb_validate_mode()
339 yres = 480; in XGIfb_validate_mode()
343 yres = 600; in XGIfb_validate_mode()
[all …]
DXGI_main.h75 u16 yres; member
183 u16 yres; member
Dvb_setmode.c1176 unsigned short resindex, xres, yres, modeflag; in XGI_GetLVDSResInfo() local
1185 yres = XGI330_ModeResInfo[resindex].VTotal; in XGI_GetLVDSResInfo()
1191 yres <<= 1; in XGI_GetLVDSResInfo()
1198 pVBInfo->VGAVDE = yres; in XGI_GetLVDSResInfo()
1199 pVBInfo->VDE = yres; in XGI_GetLVDSResInfo()
2409 unsigned short xres, yres, modeflag, resindex; in XGI_GetCRT2ResInfo() local
2413 yres = XGI330_ModeResInfo[resindex].VTotal; /* yres->bx */ in XGI_GetCRT2ResInfo()
2421 yres *= 2; in XGI_GetCRT2ResInfo()
2428 if (yres == 1024) in XGI_GetCRT2ResInfo()
2429 yres = 1056; in XGI_GetCRT2ResInfo()
[all …]
/linux-4.1.27/drivers/video/fbdev/i810/
Di810_dvt.c210 inline void round_off_yres(u32 *xres, u32 *yres) in round_off_yres() argument
212 *yres = (*xres * 3) >> 2; in round_off_yres()
215 static int i810fb_find_best_mode(u32 xres, u32 yres, u32 pixclock) in i810fb_find_best_mode() argument
234 struct i810fb_par *par, u32 xres, u32 yres) in i810fb_encode_registers() argument
236 u32 i_best = i810fb_find_best_mode(xres, yres, par->regs.pixclock); in i810fb_encode_registers()
247 u32 total, xres, yres; in i810fb_fill_var_timings() local
251 yres = var->yres; in i810fb_fill_var_timings()
254 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings()
273 (std_modes[mode].cr32 & 0x0F) << 8) - yres; in i810fb_fill_var_timings()
276 var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); in i810fb_fill_var_timings()
Di810_gtf.c113 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
160 n = yres + var->lower_margin + var->vsync_len + var->upper_margin - 2; in i810fb_encode_registers()
165 n = yres + var->lower_margin; in i810fb_encode_registers()
169 par->regs.cr11 |= (u8) ((yres + var->lower_margin + in i810fb_encode_registers()
173 n = yres - 1; in i810fb_encode_registers()
178 blank_e = yres + var->lower_margin + var->vsync_len + in i810fb_encode_registers()
182 if (blank_s < yres) in i810fb_encode_registers()
183 blank_s = yres; in i810fb_encode_registers()
198 par->interlace = (1 << 7) | ((u8) (var->yres >> 4)); in i810fb_encode_registers()
Di810_main.c145 static int yres; variable
872 u32 xres, yres, vxres, vyres; in i810_round_off() local
879 yres = var->yres; in i810_round_off()
901 round_off_yres(&xres, &yres); in i810_round_off()
902 if (yres < 1) in i810_round_off()
903 yres = 1; in i810_round_off()
904 if (yres >= 2048) in i810_round_off()
905 yres = 2048; in i810_round_off()
907 if (vyres < yres) in i810_round_off()
908 vyres = yres; in i810_round_off()
[all …]
Di810_main.h19 extern void round_off_yres (u32 *xres, u32 *yres);
23 struct i810fb_par *par, u32 xres, u32 yres);
/linux-4.1.27/arch/arm/mach-omap1/
Dlcd_dma.c61 int rotate, data_type, xres, yres; member
76 lcd_dma.yres = fb_yres; in omap_set_lcd_dma_b1()
172 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
182 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
187 fn = lcd_dma.yres; in set_b1_regs()
191 top = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
194 fi = PIXSTEP(0, 0, 1, lcd_dma.yres - 1); in set_b1_regs()
196 top = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
199 fi = PIXSTEP(1, 0, 0, lcd_dma.yres - 1); in set_b1_regs()
201 en = lcd_dma.yres; in set_b1_regs()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datafb.c619 int yres = var->yres; in tt_decode_var() local
625 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var()
629 yres = tt_yres * 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()
639 yres = tt_yres; 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()
647 yres = tt_yres; in tt_decode_var()
652 yres = st_yres / 2; in tt_decode_var()
[all …]
Dbfin_adv7393fb.h67 u16 yres; /* Active Vertical Pixels */ member
169 .yres = 480,
185 .yres = 576,
201 .yres = 480,
217 .yres = 480,
233 .yres = 480,
249 .yres = 576,
Dmacmodes.c272 var->yres = mode->yres; in mac_vmode_to_var()
274 var->yres_virtual = mode->yres; 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()
Dps3fb.c267 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()
283 yres = max(var->yres, 1U); in ps3fb_cmp_mode()
298 dy = ((long)vmode->upper_margin + (long)vmode->yres + in ps3fb_cmp_mode()
300 (upper_margin + yres + lower_margin); in ps3fb_cmp_mode()
309 return (vmode->xres - xres) * (vmode->yres - yres); in ps3fb_cmp_mode()
344 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode()
351 vmode->yres, vmode->lower_margin, diff); in ps3fb_find_mode()
375 if (!var->yres) in ps3fb_find_mode()
376 var->yres = 1; in ps3fb_find_mode()
[all …]
Dfsl-diu-fb.c64 .yres = 768,
78 .yres = 240,
92 .yres = 480,
106 .yres = 480,
120 .yres = 480,
134 .yres = 480,
148 .yres = 480,
162 .yres = 480,
176 .yres = 600,
190 .yres = 480,
[all …]
Damba-clcd-versatile.c12 .yres = 480,
36 .yres = 768,
61 .yres = 240,
85 .yres = 320,
110 .yres = 220,
Dau1100fb.h77 u32 yres; /* Maximum vertical resolution */ member
275 .yres = 600,
288 .yres = 320,
299 .yres = 240,
326 .yres = 240,
348 .yres = 480,
360 .yres = 480,
Dsa1100fb.c378 if (var->yres < MIN_YRES) in sa1100fb_check_var()
379 var->yres = MIN_YRES; in sa1100fb_check_var()
382 if (var->yres > fbi->inf->yres) in sa1100fb_check_var()
383 var->yres = fbi->inf->yres; in sa1100fb_check_var()
385 var->yres_virtual = max(var->yres_virtual, var->yres); in sa1100fb_check_var()
615 u_int half_screen_size, yres, pcd; in sa1100fb_activate_var() local
624 var->yres, var->vsync_len, in sa1100fb_activate_var()
640 if (var->yres < 1 || var->yres > 1024) in sa1100fb_activate_var()
642 fbi->fb.fix.id, var->yres); in sa1100fb_activate_var()
668 yres = var->yres; in sa1100fb_activate_var()
[all …]
Dgoldfishfb.c100 if ((var->xres != info->var.yres) || in goldfish_fb_check_var()
101 (var->yres != info->var.xres) || in goldfish_fb_check_var()
102 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var()
109 (var->yres != info->var.yres) || in goldfish_fb_check_var()
111 (var->yres_virtual > info->var.yres * 2) || in goldfish_fb_check_var()
112 (var->yres_virtual < info->var.yres)) { in goldfish_fb_check_var()
230 fb->fb.var.yres = height; in goldfish_fb_probe()
Di740fb.c411 u32 yres, lower, vslen, upper, ytotal; in i740fb_decode_var() local
418 var->xres, var->yres, var->xres_virtual, var->xres_virtual); in i740fb_decode_var()
484 yres = var->yres; in i740fb_decode_var()
486 if (yres > vyres) in i740fb_decode_var()
487 vyres = yres; in i740fb_decode_var()
490 if (yres + yoffset > vyres) in i740fb_decode_var()
491 yoffset = vyres - yres; in i740fb_decode_var()
504 if (yoffset + yres > vyres) in i740fb_decode_var()
505 yoffset = vyres - yres; in i740fb_decode_var()
508 ytotal = yres + lower + vslen + upper; in i740fb_decode_var()
[all …]
Dfb-puv3.c74 .yres = 480,
146 int bottom = info->var.yres - 1; in unifb_prim_fillrect()
236 int bottom = info->var.yres; in unifb_prim_copyarea()
364 if (!var->yres) in unifb_check_var()
365 var->yres = 1; in unifb_check_var()
368 if (var->yres > var->yres_virtual) in unifb_check_var()
369 var->yres_virtual = var->yres; in unifb_check_var()
385 if (var->yres_virtual < var->yoffset + var->yres) in unifb_check_var()
386 var->yres_virtual = var->yoffset + var->yres; in unifb_check_var()
480 && info->var.yres == unifb_modes[i].yres in unifb_set_par()
[all …]
D68328fb.c153 if (!var->yres) in mc68x328fb_check_var()
154 var->yres = 1; in mc68x328fb_check_var()
157 if (var->yres > var->yres_virtual) in mc68x328fb_check_var()
158 var->yres_virtual = var->yres; in mc68x328fb_check_var()
174 if (var->yres_virtual < var->yoffset + var->yres) in mc68x328fb_check_var()
175 var->yres_virtual = var->yoffset + var->yres; in mc68x328fb_check_var()
376 var->yoffset + info->var.yres > info->var.yres_virtual) in mc68x328fb_pan_display()
442 mc68x328fb_default.yres = LYMAX+1; in mc68x328fb_init()
444 mc68x328fb_default.yres_virtual = mc68x328fb_default.yres; in mc68x328fb_init()
Dneofb.c155 static int neoFindMode(int xres, int yres, int depth) in neoFindMode() argument
190 if (yres <= mode[i].y_res) in neoFindMode()
265 int vsync_start = var->yres + var->lower_margin; in vgaHWInit()
298 | (((var->yres - 1) & 0x100) >> 7) in vgaHWInit()
300 | (((var->yres - 1) & 0x100) >> 5) in vgaHWInit()
302 | (((var->yres - 1) & 0x200) >> 3) in vgaHWInit()
305 par->CRTC[9] = (((var->yres - 1) & 0x200) >> 4) | 0x40; in vgaHWInit()
318 par->CRTC[18] = (var->yres - 1) & 0xFF; in vgaHWInit()
321 par->CRTC[21] = (var->yres - 1) & 0xFF; in vgaHWInit()
600 (var->yres > par->NeoPanelHeight))) { in neofb_check_var()
[all …]
Dacornfb.c136 vidc.v_display_end = vidc.v_display_start + var->yres; in acornfb_set_timing()
140 vcr = var->vsync_len + var->upper_margin + var->yres + in acornfb_set_timing()
228 var->yres, var->bits_per_pixel); in acornfb_set_timing()
346 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing()
383 if (var->yres > var->yres_virtual) in acornfb_adjust_timing()
384 var->yres = var->yres_virtual; in acornfb_adjust_timing()
390 if (var->yoffset + var->yres > var->yres_virtual) in acornfb_adjust_timing()
391 var->yoffset = var->yres_virtual - var->yres; in acornfb_adjust_timing()
432 (var->yres + var->upper_margin + var->lower_margin + var->vsync_len); in acornfb_validate_timing()
600 y_bottom += info->var.yres; in acornfb_pan_display()
[all …]
Dw100fb.c190 …memset_io(remapped_fbuf + (W100_FB_BASE-MEM_WINDOW_BASE), 0, (par->xres * par->yres * BITS_PER_PIX… in w100fb_clear_screen()
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()
445 best_y = modelist[i].yres; 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()
449 best_x = modelist[i].yres; in w100fb_get_mode()
473 if(!w100fb_get_mode(par, &var->xres, &var->yres, 1)) in w100fb_check_var()
476 if (par->mach->mem && ((var->xres*var->yres*BITS_PER_PIXEL/8) > (par->mach->mem->size+1))) in w100fb_check_var()
[all …]
Dsh_mobile_lcdcfb.c199 unsigned int yres; 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()
556 ch->display.mode.yres, new_mode->yres); in sh_mobile_lcdc_must_reconfigure()
848 tmp = mode->yres + mode->vsync_len + mode->upper_margin in sh_mobile_lcdc_geometry()
850 tmp |= min(mode->yres, ch->yres) << 16; /* VDLN */ in sh_mobile_lcdc_geometry()
853 tmp = mode->yres + mode->lower_margin; /* VSYNP */ in sh_mobile_lcdc_geometry()
941 (ovl->yres << LDBBSSZR_BVSS_SHIFT) | in sh_mobile_lcdc_overlay_setup()
1151 ch->pitch, ch->yres, pixelformat, in sh_mobile_lcdc_start()
1250 if (var->xres > MAX_XRES || var->yres > MAX_YRES) in __sh_mobile_lcdc_check_var()
[all …]
Dsmscufx.c707 v_total = var->upper_margin + var->yres + var->lower_margin + var->vsync_len; in ufx_set_vid_mode()
708 v_active = var->yres; in ufx_set_vid_mode()
709 v_blank_start = var->yres + var->lower_margin; in ufx_set_vid_mode()
710 v_blank_end = var->yres + var->lower_margin + var->vsync_len; in ufx_set_vid_mode()
711 v_sync_start = var->yres + var->lower_margin; in ufx_set_vid_mode()
712 v_sync_end = var->yres + var->lower_margin + var->vsync_len; in ufx_set_vid_mode()
733 temp = var->xres * var->yres * 2; in ufx_set_vid_mode()
841 cmd[11] = cpu_to_le16(dev->info->var.yres); in ufx_raw_rect()
860 (y + height > dev->info->var.yres)) in ufx_handle_damage()
912 (u32)info->var.yres); in ufx_ops_write()
[all …]
Dvfb.c83 .yres = 480,
182 if (!var->yres) in vfb_check_var()
183 var->yres = 1; in vfb_check_var()
186 if (var->yres > var->yres_virtual) in vfb_check_var()
187 var->yres_virtual = var->yres; in vfb_check_var()
203 if (var->yres_virtual < var->yoffset + var->yres) in vfb_check_var()
204 var->yres_virtual = var->yoffset + var->yres; in vfb_check_var()
398 var->yoffset + info->var.yres > info->var.yres_virtual) in vfb_pan_display()
Dpvr2fb.c159 .yres = 480,
386 par->vsync_total = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_set_par()
419 par->borderstop_v = par->diwstart_v + var->yres + in pvr2fb_set_par()
446 if (var->yres < 240) in pvr2fb_check_var()
447 var->yres = 240; in pvr2fb_check_var()
450 if (var->yres_virtual < var->yres) in pvr2fb_check_var()
451 var->yres_virtual = var->yres; in pvr2fb_check_var()
468 var->yoffset > var->yres_virtual - var->yres || in pvr2fb_check_var()
480 if (var->yres < 480 && video_output == VO_VGA) in pvr2fb_check_var()
501 (par->diwstart_v + var->yres); in pvr2fb_check_var()
[all …]
Dcontrolfb.c61 int xres, yres; member
85 return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) in PAR_EQUAL()
91 && !DIRTY(yres) && !DIRTY(xres_virtual) in VAR_MATCH()
273 var->yoffset+par->yres > par->vyres) in controlfb_pan_display()
466 if (vyres > var.yres) in init_control()
539 p->par.xres, p->par.yres, in control_set_hardware()
897 par->yres = var->yres; in control_var_to_par()
900 if (par->vyres < par->yres) in control_var_to_par()
901 par->vyres = par->yres; in control_var_to_par()
910 if (par->yoffset + par->yres > par->vyres) in control_var_to_par()
[all …]
Dpxa168fb.c174 var->yres = mode->yres; in set_mode()
180 var->yres_virtual = max(var->yres, var->yres_virtual); in set_mode()
215 if (var->yoffset + var->yres > var->yres_virtual) in pxa168fb_check_var()
220 if (var->yres + var->lower_margin + in pxa168fb_check_var()
397 y = v->yres + v->lower_margin + v->vsync_len + v->upper_margin; in set_dumb_screen_dimensions()
420 info->fix.ypanstep = var->yres; in pxa168fb_set_par()
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()
588 var->xres, var->yres); in pxa168fb_init_mode()
[all …]
Dnuc900fb.c57 vbaddr2 += info->fix.line_length * info->var.yres; in nuc900fb_set_lcdaddr()
105 var->yres == default_display->yres && in nuc900fb_check_var()
111 var->yres == mach_info->displays[i].yres && in nuc900fb_check_var()
119 var->xres, var->yres, var->bits_per_pixel); in nuc900fb_check_var()
125 var->yres_virtual = display->yres; in nuc900fb_check_var()
613 smem_len *= mach_info->displays[i].yres; in nuc900fb_probe()
630 fbinfo->var.yres = display->yres; in nuc900fb_probe()
Dep93xx-fb.c236 vlines_total = info->var.yres + info->var.upper_margin + in ep93xxfb_set_timing()
286 ep93xxfb_writel(fbi, info->var.yres - 1, EP93XXFB_SCREEN_LINES); in ep93xxfb_set_par()
307 var->yres = max_t(unsigned int, var->yres, EP93XXFB_MIN_YRES); in ep93xxfb_check_var()
308 var->yres = min_t(unsigned int, var->yres, EP93XXFB_MAX_YRES); in ep93xxfb_check_var()
309 var->yres_virtual = max(var->yres_virtual, var->yres); 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()
Defifb.c165 efifb_defined.yres = screen_info.lfb_height; in efifb_probe()
171 size_vmode = efifb_defined.yres * efifb_fix.line_length; in efifb_probe()
233 efifb_defined.xres, efifb_defined.yres, in efifb_probe()
241 efifb_defined.yres_virtual = efifb_defined.yres; in efifb_probe()
245 1000 / efifb_defined.yres; in efifb_probe()
Dgrvga.c91 if (!var->yres) in grvga_check_var()
92 var->yres = 1; in grvga_check_var()
105 var->yres_virtual = 2*var->yres; in grvga_check_var()
155 __raw_writel(((info->var.yres - 1) << 16) | (info->var.xres - 1), in grvga_set_par()
164 …__raw_writel(((info->var.yres + info->var.lower_margin + info->var.upper_margin + info->var.vsync_… in grvga_set_par()
304 screendata->yres = screendata->yres_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()
Ds3c2410fb.c78 saddr2 += info->fix.line_length * info->var.yres; in s3c2410fb_set_lcdaddr()
137 if (var->yres == default_display->yres && in s3c2410fb_check_var()
144 var->yres == mach_info->displays[i].yres && in s3c2410fb_check_var()
153 var->xres, var->yres, var->bits_per_pixel); in s3c2410fb_check_var()
159 var->yres_virtual = display->yres; in s3c2410fb_check_var()
292 regs->lcdcon2 = S3C2410_LCDCON2_LINEVAL(var->yres - 1); in s3c2410fb_calculate_stn_lcd_regs()
356 regs->lcdcon2 = S3C2410_LCDCON2_LINEVAL(var->yres - 1) | in s3c2410fb_calculate_tft_lcd_regs()
384 dprintk("%s: var->yres = %d\n", __func__, var->yres); in s3c2410fb_activate_var()
946 smem_len *= mach_info->displays[i].yres; in s3c24xxfb_probe()
964 fbinfo->var.yres = display->yres; in s3c24xxfb_probe()
Dpxafb.c374 modelist[i].yres >= var->yres && in pxafb_getmode()
376 modelist[i].yres < best_y && in pxafb_getmode()
379 best_y = modelist[i].yres; in pxafb_getmode()
391 var->yres = mode->yres; in pxafb_setmode()
414 var->yres = max_t(int, var->yres, MIN_YRES); in pxafb_adjust_timing()
436 var->yres_virtual = max(var->yres_virtual, var->yres); in pxafb_adjust_timing()
439 if (var->xres > MAX_XRES || var->yres > MAX_YRES) in pxafb_adjust_timing()
442 if (var->yres > var->yres_virtual) in pxafb_adjust_timing()
753 ofb->fb.var.yres = ofb->fb.var.yres_virtual = 0; in overlayfb_release()
804 (ypos + var->yres > base_var->yres)) in overlayfb_check_var()
[all …]
Dimsttfb.c470 compute_imstt_regvals_ibm(struct imstt_par *par, int xres, int yres) in compute_imstt_regvals_ibm() argument
494 MHz = yres == 960 ? 126 : 135; in compute_imstt_regvals_ibm()
512 init->vsb = init->veb + yres; in compute_imstt_regvals_ibm()
521 compute_imstt_regvals_tvp(struct imstt_par *par, int xres, int yres) in compute_imstt_regvals_tvp() argument
545 init = yres == 960 ? &tvp_reg_init_19 : &tvp_reg_init_20; 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()
792 if ((var->xres * var->yres) * (var->bits_per_pixel >> 3) > info->fix.smem_len in imsttfb_check_var()
[all …]
Dsh_mobile_meram.c320 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()
338 if (lcdc_pitch == 8192 && yres >= 1024) { in meram_plane_init()
346 line_cnt = yres; 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()
511 meram_plane_init(priv, &cache->planes[0], xres, yres, &out_pitch); in sh_mobile_meram_cache_alloc()
515 xres, (yres + 1) / 2, &out_pitch); in sh_mobile_meram_cache_alloc()
518 2 * xres, (yres + 1) / 2, &out_pitch); in sh_mobile_meram_cache_alloc()
Dxen-fbfront.c197 if (y2 >= fb_info->var.yres) in xenfb_deferred_io()
198 y2 = fb_info->var.yres - 1; in xenfb_deferred_io()
288 var->yres == video[KPARAM_HEIGHT] && 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()
304 var->yres_virtual = var->yres; in xenfb_check_var()
320 xenfb_info->resize.height = info->var.yres; in xenfb_set_par()
427 fb_info->var.yres_virtual = fb_info->var.yres = video[KPARAM_HEIGHT]; in xenfb_probe()
558 info->page->height = fb_info->var.yres; in xenfb_init_shared_page()
Dvesafb.c250 vesafb_defined.yres = screen_info.lfb_height; in vesafb_probe()
258 size_vmode = vesafb_defined.yres * vesafb_fix.line_length; in vesafb_probe()
313 …vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, s… in vesafb_probe()
355 if (ypan && vesafb_defined.yres_virtual > vesafb_defined.yres) { in vesafb_probe()
360 vesafb_defined.yres_virtual = vesafb_defined.yres; in vesafb_probe()
365 vesafb_defined.pixclock = 10000000 / vesafb_defined.xres * 1000 / vesafb_defined.yres; in vesafb_probe()
Dasiliantfb.c180 unsigned vd = p->var.yres; in asiliant_set_timing()
181 unsigned vs = p->var.yres + p->var.lower_margin; in asiliant_set_timing()
182 unsigned ve = p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing()
183 unsigned vt = p->var.upper_margin + p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing()
186 if ((p->var.xres == 640) && (p->var.yres == 480) && (p->var.pixclock == 39722)) { in asiliant_set_timing()
241 var->yres_virtual = var->yres; in asiliantfb_check_var()
488 .yres = 480,
Dvga16fb.c70 .yres = 480,
317 u32 yres, lower, vslen, upper, ytotal; in vga16fb_check_var() local
397 yres = var->yres; in vga16fb_check_var()
404 if (yres > vyres) in vga16fb_check_var()
405 vyres = yres; in vga16fb_check_var()
408 if (vyres < yres) in vga16fb_check_var()
411 if (yoffset + yres > vyres) in vga16fb_check_var()
412 yoffset = vyres - yres; in vga16fb_check_var()
413 var->yres = yres; in vga16fb_check_var()
421 yres <<= 1; in vga16fb_check_var()
[all …]
Dbf54x-lq043fb.c352 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()
563 fbinfo->var.yres = info->mach_info->yres.defval; in bfin_bf54x_probe()
564 fbinfo->var.yres_virtual = info->mach_info->yres.defval; in bfin_bf54x_probe()
584 info->mach_info->yres.max * info->mach_info->bpp.max / 8; in bfin_bf54x_probe()
Dimxfb.c358 if (var->yres < MIN_YRES) in imxfb_check_var()
359 var->yres = MIN_YRES; in imxfb_check_var()
366 var->yres = imxfb_mode->mode.yres; in imxfb_check_var()
377 var->yres_virtual = max(var->yres_virtual, var->yres); in imxfb_check_var()
566 var->yres, var->vsync_len, in imxfb_activate_var()
582 if (var->yres < 1 || var->yres > ymax_mask) in imxfb_activate_var()
584 info->fix.id, var->yres); 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()
Dgxt4500.c165 .yres = 1024,
286 var->yres + var->yoffset > var->yres_virtual || in gxt4500_var_to_par()
437 var->yres + var->upper_margin + var->lower_margin + in gxt4500_set_par()
439 writereg(par, DTG_VERT_DISPLAY, var->yres - 1); in gxt4500_set_par()
440 writereg(par, DTG_VSYNC_START, var->yres + var->lower_margin - 1); in gxt4500_set_par()
442 var->yres + var->lower_margin + var->vsync_len - 1); in gxt4500_set_par()
471 writereg(par, REFRESH_SIZE, (var->xres << 16) | var->yres); in gxt4500_set_par()
554 var->yoffset + info->var.yres > info->var.yres_virtual) in gxt4500_pan_display()
Dxilinxfb.c91 u32 xres, yres; /* resolution of screen in pixels */ member
105 .yres = 480,
331 drvdata->info.var.yres = pdata->yres; in xilinxfb_assign()
463 pdata.yres = prop[1]; in xilinxfb_of_probe()
Dvalkyriefb.c80 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()
513 par->yres = var->yres; in valkyrie_var_to_par()
515 par->vyres = par->yres; in valkyrie_var_to_par()
Dstifb.c499 SET_ATTR_SIZE(fb, fb->info.var.xres, fb->info.var.yres); in ngleSetupAttrPlanes()
522 for (y = 0; y < fb->info.var.yres; ++y) 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
1141 yres = sti_onscreen_y(fb->sti); in stifb_init_fb()
1169 yres = fb->ngle_rom.y_size_visible; in stifb_init_fb()
1224 if (fix->smem_len > yres*fix->line_length) in stifb_init_fb()
1225 fix->smem_len = yres*fix->line_length; in stifb_init_fb()
1254 var->yres = var->yres_virtual = yres; in stifb_init_fb()
[all …]
Dhitfb.c244 var->yres = info->var.yres; in hitfb_check_var()
249 if (var->yres_virtual < var->yres) in hitfb_check_var()
250 var->yres_virtual = var->yres; in hitfb_check_var()
359 hitfb_var.yres = ldvndr + 1; in hitfb_probe()
Dudlfb.c235 yde = yds + var->yres; in dlfb_set_vid_cmds()
252 yec = var->yres + var->upper_margin + var->lower_margin + in dlfb_set_vid_cmds()
263 wrptr = dlfb_set_register_16(wrptr, 0x17, var->yres); in dlfb_set_vid_cmds()
595 (y + height > dev->info->var.yres)) in dlfb_handle_damage()
655 (u32)info->var.yres); in dlfb_ops_write()
832 if (area.y > info->var.yres) in dlfb_ops_ioctl()
833 area.y = info->var.yres; 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()
[all …]
Dda8xx-fb.c204 .yres = 240,
219 .yres = 272,
234 .yres = 240,
249 .yres = 240,
821 (unsigned int)panel->yres, bpp, in lcd_init()
1029 if (var->yres > var->yres_virtual) in fb_check_var()
1030 var->yres = var->yres_virtual; in fb_check_var()
1037 if (var->yres + var->yoffset > var->yres_virtual) in fb_check_var()
1038 var->yoffset = var->yres_virtual - var->yres; in fb_check_var()
1243 end = start + fbi->var.yres * fix->line_length - 1; in da8xx_pan_display()
[all …]
Dgbefb.c97 .yres = 480,
128 .yres = 1024,
160 .yres = 480,
175 .yres = 1024,
515 timing->height = var->yres; in compute_gbe_timing()
523 timing->vtotal = var->upper_margin + var->yres + in compute_gbe_timing()
528 timing->vblank_start = var->yres; in compute_gbe_timing()
533 timing->vsync_start = var->yres + var->lower_margin + 1; in compute_gbe_timing()
927 if ((var->xres * var->yres * var->bits_per_pixel) & 4095) in gbefb_check_var()
940 if (var->yres > var->yres_virtual || (!ywrap && !ypan)) in gbefb_check_var()
[all …]
Dmxsfb.c277 if (var->yres < MIN_YRES) in mxsfb_check_var()
278 var->yres = MIN_YRES; in mxsfb_check_var()
282 var->yres_virtual = var->yres; in mxsfb_check_var()
476 writel(TRANSFER_COUNT_SET_VCOUNT(fb_info->var.yres) | in mxsfb_set_par()
497 fb_info->var.lower_margin + fb_info->var.yres, in mxsfb_set_par()
652 vmode->yres = TRANSFER_COUNT_GET_VCOUNT(transfer_count); in mxsfb_restore_mode()
678 vmode->upper_margin - vmode->yres; in mxsfb_restore_mode()
690 vmode->xres, vmode->yres, vmode->hsync_len, vmode->left_margin, in mxsfb_restore_mode()
701 fbsize = fb_info->fix.line_length * vmode->yres; in mxsfb_restore_mode()
Ds3c-fb.c251 var->yres_virtual = max(var->yres_virtual, var->yres); in s3c_fb_check_var()
530 info->fix.ypanstep = info->var.yres_virtual > info->var.yres ? 1 : 0; in s3c_fb_set_par()
545 data = info->fix.smem_start + info->fix.line_length * var->yres; in s3c_fb_set_par()
563 VIDOSDxB_BOTRIGHT_Y(var->yres - 1) | in s3c_fb_set_par()
566 VIDOSDxB_BOTRIGHT_Y_E(var->yres - 1); in s3c_fb_set_par()
570 data = var->xres * var->yres; in s3c_fb_set_par()
900 end_boff = start_boff + info->var.yres * info->fix.line_length; in s3c_fb_pan_display()
1068 mode->yres; 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()
[all …]
Ds1d13xxxfb.c388 if (var->yoffset + info->var.yres > info->var.yres_virtual) in s1d13xxxfb_pan_display()
556 info->var.xres, info->var.yres, in s1d13xxxfb_bitblt_solidfill()
652 u32 xres, yres; in s1d13xxxfb_fetch_hw_state() local
699 yres = (s1d13xxxfb_readreg(par, S1DREG_LCD_DISP_VHEIGHT0) + in s1d13xxxfb_fetch_hw_state()
706 yres = (s1d13xxxfb_readreg(par, S1DREG_CRT_DISP_VHEIGHT0) + in s1d13xxxfb_fetch_hw_state()
716 var->yres = yres; in s1d13xxxfb_fetch_hw_state()
732 xres, yres, xres_virtual, yres_virtual, is_color, is_dual, is_tft); in s1d13xxxfb_fetch_hw_state()
Dsh_mobile_hdmi.c418 vtotal = mode->yres + mode->upper_margin + mode->lower_margin in sh_hdmi_external_video_param()
834 mode->upper_margin, mode->yres, in sh_hdmi_rate_error()
942 } else if (f_width != mode->xres || f_height != mode->yres) { 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()
1010 else if (found->xres == 1920 && found->yres == 1080 && found->refresh == 60) in sh_hdmi_read_edid()
[all …]
Dmacfb.c575 macfb_defined.yres = mac_bi_data.dimensions >> 16; in macfb_init()
579 macfb_fix.smem_len = macfb_fix.line_length * macfb_defined.yres; in macfb_init()
598 macfb_defined.xres, macfb_defined.yres, in macfb_init()
603 macfb_defined.yres_virtual = macfb_defined.yres; in macfb_init()
604 macfb_defined.height = PIXEL_TO_MM(macfb_defined.yres); in macfb_init()
609 1000 / macfb_defined.yres; in macfb_init()
Duvesafb.c279 var->yres = mode->y_res; in uvesafb_setup_var()
314 int xres, int yres, int depth, unsigned char flags) in uvesafb_vbe_find_mode() argument
320 abs(par->vbe_modes[i].y_res - yres) + in uvesafb_vbe_find_mode()
610 if (uvesafb_vbe_find_mode(info->par, mode->xres, mode->yres, 8, in uvesafb_is_valid_mode()
740 var.yres = mode->y_res; in uvesafb_vbe_getmonspecs()
897 info->var.yres = 480; 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()
1265 crtc->vert_start = info->var.yres + info->var.lower_margin; in uvesafb_set_par()
1363 if (mode->xres == var->xres && mode->yres == var->yres && in uvesafb_check_limits()
[all …]
Dmx3fb.c141 .yres = 320,
159 .yres = 33,
177 .yres = 480,
193 .yres = 480,
209 .yres = 480,
225 .yres = 480,
853 fbi->var.xres, fbi->var.yres, in __set_par()
874 video->out_height = fbi->var.yres; in __set_par()
938 if (var->yres_virtual < var->yres) in mx3fb_check_var()
939 var->yres_virtual = var->yres; in mx3fb_check_var()
[all …]
Dbfin_adv7393fb.c73 .yres = 480,
450 bfin_adv7393_fb_defined.yres = fbdev->modes[mode].yres; in bfin_adv7393_fb_probe()
452 bfin_adv7393_fb_defined.yres_virtual = mem * fbdev->modes[mode].yres; in bfin_adv7393_fb_probe()
599 info->var.yres != var->yres || in bfin_adv7393_fb_check_var()
603 __func__, var->xres, var->yres); in bfin_adv7393_fb_check_var()
Docfb.c130 (var->lower_margin - 1) << 16 | (var->yres - 1)); in ocfb_setupfb()
137 var->yres; in ocfb_setupfb()
219 fix->smem_len = fix->line_length * var->yres; in ocfb_init_fix()
237 var->yres_virtual = var->yres; in ocfb_init_var()
Digafb.c79 .yres = 480,
103 .yres = 768,
126 .yres = 900,
149 .yres = 1024,
Dtdfxfb.c114 .yres = 480,
468 if (var->yres > var->yres_virtual) in tdfxfb_check_var()
469 var->yres_virtual = var->yres; in tdfxfb_check_var()
503 if (var->yres < 200 || var->yres > 2048) { in tdfxfb_check_var()
504 DPRINTK("height not supported: %u\n", var->yres); in tdfxfb_check_var()
510 if (var->yres_virtual < var->yres) { in tdfxfb_check_var()
557 var->xres, var->yres, var->bits_per_pixel); in tdfxfb_check_var()
606 vd = (info->var.yres << 1) - 1; in tdfxfb_set_par()
610 reg.screensize = info->var.xres | (info->var.yres << 13); in tdfxfb_set_par()
614 vd = info->var.yres - 1; in tdfxfb_set_par()
[all …]
Dtmiofb.c339 tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN); in tmiofb_hw_mode()
483 .height = info->mode->yres, in tmiofb_clearscreen()
505 if (vcount < vds || vcount > vds + mode->yres) in tmiofb_vblank()
567 if (mode->xres >= var->xres && mode->yres >= var->yres in tmiofb_find_mode()
569 && mode->yres < best->yres))) in tmiofb_find_mode()
591 if (var->yres_virtual < var->yres) in tmiofb_check_var()
Dau1100fb.c203 if (info->var.yres_virtual >= (info->var.yres << 1)) { in au1100fb_setmode()
485 fbdev->fb_len = fbdev->panel->xres * fbdev->panel->yres * in au1100fb_drv_probe()
521 au1100fb_var.yres = fbdev->panel->yres; in au1100fb_drv_probe()
522 au1100fb_var.yres_virtual = au1100fb_var.yres; in au1100fb_drv_probe()
Dbroadsheetfb.c107 .yres = DPY_H,
783 int yres = par->info->var.yres; in broadsheet_init_display() local
802 broadsheet_write_reg32(par, 0x310, xres*yres*2); in broadsheet_init_display()
938 u16 yres = info->var.yres; in broadsheetfb_dpy_deferred_io() local
964 if (h >= yres) { in broadsheetfb_dpy_deferred_io()
969 min((u16) (y1 + h), yres)); in broadsheetfb_dpy_deferred_io()
1114 broadsheetfb_var.yres = dpyh; in broadsheetfb_probe()
Dg364fb.c153 var->yoffset + info->var.yres > info->var.yres_virtual) in g364fb_pan_display()
212 fb_var.yres = in g364fb_init()
Dcyber2000fb.c597 Vdispend = var->yres - 1; in cyber2000fb_decode_crtc()
598 Vsyncstart = var->yres + var->lower_margin; in cyber2000fb_decode_crtc()
599 Vsyncend = var->yres + var->lower_margin + var->vsync_len; in cyber2000fb_decode_crtc()
600 Vtotal = var->yres + var->lower_margin + var->vsync_len + in cyber2000fb_decode_crtc()
606 Vblankstart = var->yres + 6; in cyber2000fb_decode_crtc()
846 if (var->yres > var->yres_virtual) in cyber2000fb_check_var()
847 var->yres = var->yres_virtual; in cyber2000fb_check_var()
1342 .yres = 480,
1579 if (cfb->fb.var.yres_virtual < cfb->fb.var.yres) in cyberpro_common_probe()
1580 cfb->fb.var.yres_virtual = cfb->fb.var.yres; in cyberpro_common_probe()
[all …]
Dcirrusfb.c533 int yres; in cirrusfb_check_var() local
587 if (var->yres_virtual < var->yres) in cirrusfb_check_var()
588 var->yres_virtual = var->yres; in cirrusfb_check_var()
601 if (var->yoffset > var->yres_virtual - var->yres) in cirrusfb_check_var()
602 var->yoffset = var->yres_virtual - var->yres - 1; in cirrusfb_check_var()
611 yres = var->yres; in cirrusfb_check_var()
613 yres *= 2; in cirrusfb_check_var()
615 yres = (yres + 1) / 2; in cirrusfb_check_var()
617 if (yres >= 1280) { in cirrusfb_check_var()
667 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local
[all …]
Dsbuslib.c25 var->yres = of_getintprop_default(dp, "height", 900); in sbusfb_fill_var()
27 var->yres_virtual = var->yres; in sbusfb_fill_var()
108 __put_user(info->var.yres, &f->fb_height) || in sbusfb_ioctl_helper()
Dbf537-lq035.c431 .yres = LCD_Y_RES,
536 info->var.yres != var->yres || in bfin_lq035_fb_check_var()
540 __func__, var->xres, var->yres); in bfin_lq035_fb_check_var()
730 bfin_lq035_fb_defined.yres = LCD_X_RES; in bfin_lq035_probe()
Djz4740_fb.c281 if (mode->xres == var->xres && mode->yres == var->yres) in jzfb_get_mode()
377 vde = vds + mode->yres; 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()
690 fb->fix.smem_len = fb->fix.line_length * fb->var.yres; in jzfb_probe()
Dauo_k190x.c293 u16 yres = info->var.yres; in auok190xfb_dpy_deferred_io() local
350 if (h >= yres) in auok190xfb_dpy_deferred_io()
354 par->update_partial(par, y1, min((u16) (y1 + h), yres)); in auok190xfb_dpy_deferred_io()
502 var->yres = panel->h; in auok190xfb_check_var()
507 var->yres = panel->w; in auok190xfb_check_var()
515 var->yres_virtual = var->yres; in auok190xfb_check_var()
1122 info->node, info->var.xres, info->var.yres, in auok190x_common_probe()
Dbfin-t350mcqb-fb.c274 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()
473 fbinfo->var.yres = LCD_Y_RES; in bfin_t350mcqb_probe()
Dsunxvr1000.c92 var->yres = gp->height; in gfb_set_fbinfo()
94 var->yres_virtual = var->yres; in gfb_set_fbinfo()
Dhyperv_fb.c281 msg.situ.video_output[0].height_pixels = info->var.yres; in synthvid_send_situ()
339 msg.dirt.rect[0].y2 = info->var.yres; 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()
566 var->yres_virtual = var->yres; in hvfb_check_var()
812 info->var.yres_virtual = info->var.yres = screen_height; in hvfb_probe()
Dau1200fb.c193 int yres; member
715 ysz = win->w[plane].yres; in au1200_setlocation()
722 if ((ypos + win->w[plane].yres) > panel->Yres) { in au1200_setlocation()
738 ysz = win->w[plane].yres + ypos; in au1200_setlocation()
1046 var->yres = win->w[plane].yres; in au1200fb_fb_check_var()
1050 var->yres_virtual = var->yres; in au1200fb_fb_check_var()
1678 if (win->w[plane].yres == 0) in au1200fb_drv_probe()
1679 win->w[plane].yres = panel->Yres; in au1200fb_drv_probe()
1694 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; in au1200fb_drv_probe()
Dvt8500lcdfb.c130 | (((info->var.yres - 1) & 0x3ff) << 8) in vt8500lcd_set_par()
132 writel((((info->var.yres - 1) & 0x400) << 2) in vt8500lcd_set_par()
359 fb_mem_len = of_mode.xres * of_mode.yres * 2 * (bpp / 8); in vt8500lcd_probe()
408 fbi->fb.var.yres_virtual = of_mode.yres * 2; in vt8500lcd_probe()
Dsstfb.c354 int vSyncOff = var->yres + var->lower_margin + var->upper_margin; in sstfb_check_var()
355 int vBackPorch = var->left_margin, yDim = var->yres; in sstfb_check_var()
398 var->xres, var->yres); 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()
486 par->yDim = info->var.yres; in sstfb_set_par()
488 par->vSyncOff = info->var.yres + info->var.lower_margin + info->var.upper_margin; in sstfb_set_par()
519 info->var.xres, info->var.yres, PICOS2KHZ(info->var.pixclock)); in sstfb_set_par()
806 sst_write(BLTCLIPY, info->var.yres);
Dsunxvr2500.c96 var->yres = sp->height; in s3d_set_fbinfo()
98 var->yres_virtual = var->yres; in s3d_set_fbinfo()
Dclps711xfb.c241 info->var.yres = info->var.yres_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()
Dchipsfb.c97 if (var->xres > 800 || var->yres > 600 in chipsfb_check_var()
105 var->yres = var->yres_virtual = 600; in chipsfb_check_var()
314 .yres = 600,
Dclps711x-fb.c87 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()
130 lcdcon = (info->var.xres * info->var.yres * in clps711x_fb_set_par()
Dcg3.c273 var->yres != hh) { in cg3_rdi_maybe_fixup_var()
275 var->yres = var->yres_virtual = hh; in cg3_rdi_maybe_fixup_var()
379 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in cg3_probe()
Dhpfb.c247 hpfb_defined.yres = (in_8(fb_regs + HPFB_DHMSB) << 8) | in_8(fb_regs + HPFB_DHLSB); in hpfb_init_one()
249 hpfb_defined.yres_virtual = hpfb_defined.yres; 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()
Dsh_mobile_lcdcfb.h82 unsigned int yres; member
Dplatinumfb.c49 int xres, yres; member
455 printk(KERN_ERR "platinum_var_to_par: var->yres = %d\n", var->yres); in platinum_var_to_par()
483 pinfo->yres = vmode_attrs[vmode-1].vres; in platinum_var_to_par()
487 pinfo->vyres = pinfo->yres; in platinum_var_to_par()
Damba-clcd.c63 lstart = ustart + fb->fb.var.yres * fb->fb.fix.line_length / 2; in clcdfb_set_start()
487 fb->fb.var.yres = fb->panel->mode.yres; in clcdfb_register()
489 fb->fb.var.yres_virtual = fb->panel->mode.yres; in clcdfb_register()
576 return snprintf(buf, size, "%ux%u@%u", mode->xres, mode->yres, in clcdfb_snprintf_mode()
762 framesize = fb->panel->mode.xres * fb->panel->mode.yres * in clcdfb_of_dma_setup()
Damifb.c717 int yres; /* vmode */ member
1148 if ((par->yres = var->yres) < 64) in ami_decode_var()
1149 par->yres = 64; in ami_decode_var()
1152 if ((par->vyres = var->yres_virtual) < par->yres) in ami_decode_var()
1153 par->vyres = par->yres; in ami_decode_var()
1215 yres_n = par->yres << line_shift; in ami_decode_var()
1219 down2(((var->upper_margin + par->yres + var->lower_margin + in ami_decode_var()
1493 par->yoffset < 0 || par->yoffset > par->vyres - par->yres) in ami_decode_var()
1522 var->yres = par->yres; in ami_encode_var()
1565 var->upper_margin = (par->vtotal>>line_shift) - var->yres - var->lower_margin - var->vsync_len; in ami_encode_var()
[all …]
Dwm8505fb.c96 int v_end = v_start + info->var.yres; in wm8505fb_set_timing()
332 fb_mem_len = mode.xres * mode.yres * 2 * (bpp / 8); in wm8505fb_probe()
341 fbi->fb.var.yres_virtual = mode.yres * 2; in wm8505fb_probe()
Dtridentfb.c888 if (var->yres > var->yres_virtual) in tridentfb_check_var()
889 var->yres_virtual = var->yres; in tridentfb_check_var()
890 if (var->xres_virtual > 4095 || var->yres > 2048) in tridentfb_check_var()
917 if (line_length * (var->yres_virtual - var->yres) > (4 << 20)) in tridentfb_check_var()
918 var->yres_virtual = ((4 << 20) / line_length) + var->yres; in tridentfb_check_var()
1027 vdispend = var->yres - 1; in tridentfb_set_par()
1028 vsyncstart = var->yres + var->lower_margin; in tridentfb_set_par()
1223 set_number_of_lines(par, info->var.yres); in tridentfb_set_par()
1527 info->var.yres, info->var.bits_per_pixel); in trident_pci_probe()
Dq40fb.c41 .yres = 512,
Dmaxinefb.c44 .yres = 768,
/linux-4.1.27/drivers/video/fbdev/aty/
Dradeon_monitor.c9 .yres = 480,
186 rinfo->panel_info.yres = BIOS_IN16(tmp + 27); in radeon_get_panel_info_BIOS()
188 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS()
216 (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) { in radeon_get_panel_info_BIOS()
690 rinfo->panel_info.yres = var->yres; in radeon_var_to_panel_info()
717 var->yres = mode->yres; in radeon_videomode_to_var()
719 var->yres_virtual = mode->yres; in radeon_videomode_to_var()
784 var.yres >= rinfo->panel_info.yres) in radeon_check_modes()
803 var->yres = rinfo->panel_info.yres; in radeon_check_modes()
805 var->yres_virtual = rinfo->panel_info.yres; in radeon_check_modes()
[all …]
Dradeon_base.c795 var->xres, var->yres, var->bits_per_pixel); in radeonfb_check_var()
799 if (v.yres_virtual < v.yres) in radeonfb_check_var()
800 v.yres_virtual = v.yres; in radeonfb_check_var()
825 if (v.yoffset > v.yres_virtual - v.yres) in radeonfb_check_var()
826 v.yoffset = v.yres_virtual - v.yres - 1; in radeonfb_check_var()
844 || (var->yoffset + info->var.yres > info->var.yres_virtual)) in radeonfb_pan_display()
1560 vSyncStart = mode->yres + mode->lower_margin; in radeonfb_set_par()
1572 if (rinfo->panel_info.yres < mode->yres) in radeonfb_set_par()
1573 mode->yres = rinfo->panel_info.yres; in radeonfb_set_par()
1579 vTotal = mode->yres + rinfo->panel_info.vblank; in radeonfb_set_par()
[all …]
Datyfb_base.c795 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp; in aty_var_to_crtc() local
804 yres = var->yres; in aty_var_to_crtc()
820 if (vyres < yres + yoffset) in aty_var_to_crtc()
821 vyres = yres + yoffset; in aty_var_to_crtc()
822 v_disp = yres; 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()
939 if (yres < par->lcd_height) { in aty_var_to_crtc()
940 VScan = par->lcd_height / yres; in aty_var_to_crtc()
978 vdisplay = yres; in aty_var_to_crtc()
[all …]
Daty128fb.c127 .yres = 480,
1057 u32 xres, yres, vxres, vyres, xoffset, yoffset, bpp, dst; in aty128_var_to_crtc() local
1066 yres = var->yres; in aty128_var_to_crtc()
1098 if (vyres < yres + yoffset) in aty128_var_to_crtc()
1099 vyres = yres + yoffset; in aty128_var_to_crtc()
1121 v_disp = yres - 1; in aty128_var_to_crtc()
1122 v_total = (yres + upper + vslen + lower - 1) & 0xFFFFL; in aty128_var_to_crtc()
1247 u32 xres, yres, left, right, upper, lower, hslen, vslen, sync; in aty128_crtc_to_var() local
1269 yres = v_disp + 1; in aty128_crtc_to_var()
1283 var->yres = yres; in aty128_crtc_to_var()
[all …]
/linux-4.1.27/arch/arm/mach-pxa/
Dam200epd.c48 .yres = 842,
62 .yres = 791,
76 .yres = 622,
151 || (info->var.yres != am200_fb_info.modes->yres)) in am200_share_video_mem()
229 fh = am200_fb_info.modes->yres; in am200_presetup_fb()
247 am200_fb_info.modes->yres = DIV_ROUND_UP(totalsize, fw); in am200_presetup_fb()
Dcm-x2xx.c203 .yres = 240,
228 .yres = 480,
252 .yres = 480,
276 .yres = 600,
300 .yres = 240,
323 .yres = 480,
Dlpd270.c293 .yres = 240,
315 .yres = 600,
337 .yres = 240,
359 .yres = 480,
381 .yres = 480,
403 .yres = 320,
Dzylonite.c142 .yres = 320,
156 .yres = 480,
176 .yres = 320,
189 .yres = 640,
Dhimalaya.c44 .yres = 320,
67 .yres = 320,
Dvpac270.c483 .yres = 480,
499 .yres = 480,
515 .yres = 600,
531 .yres = 768,
Dpalm27x.c90 .yres = 480,
105 .yres = 320,
120 .yres = 320,
Deseries.c259 .yres = 320,
391 .yres = 320,
587 .yres = 320,
795 .yres = 640,
818 .yres = 320,
Dlittleton.c154 .yres = 640,
168 .yres = 320,
Dpcm990-baseboard.c109 .yres = 480,
131 .yres = 480,
Dcolibri-pxa3xx.c82 .yres = 272,
/linux-4.1.27/drivers/staging/fbtft/
Dfb_ssd1306.c54 if (par->info->var.yres == 64) in init_display()
70 if (par->info->var.yres == 64) in init_display()
102 if (par->info->var.yres == 64) in init_display()
183 for (y = 0; y < par->info->var.yres/8; y++) { in write_vmem()
194 par->info->var.xres*par->info->var.yres/8); in write_vmem()
Dfb_ra8875.c76 "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()
Dfb_agm1264k-fl.c283 par->info->var.yres * sizeof(signed short), GFP_NOIO); in write_vmem()
292 for (y = 0; y < par->info->var.yres; ++y) { in write_vmem()
309 for (y = 0; y < par->info->var.yres; ++y) { in write_vmem()
340 || y + j >= par->info->var.yres) in write_vmem()
Dfbtft-core.c386 end_line = par->info->var.yres - 1; in fbtft_update_display()
388 if (start_line > par->info->var.yres - 1 || end_line > par->info->var.yres - 1) { in fbtft_update_display()
391 __func__, start_line, end_line, par->info->var.yres - 1); in fbtft_update_display()
393 end_line = par->info->var.yres - 1; in fbtft_update_display()
449 height = info->var.yres - 1; in fbtft_mkdirty()
477 par->dirty_lines_start = par->info->var.yres - 1; in fbtft_deferred_io()
490 if (y_high > info->var.yres - 1) in fbtft_deferred_io()
491 y_high = info->var.yres - 1; in fbtft_deferred_io()
810 info->var.yres = height; in fbtft_framebuffer_alloc()
812 info->var.yres_virtual = info->var.yres; in fbtft_framebuffer_alloc()
[all …]
Dfb_ssd1289.c99 write_reg(par, 0x4f, par->info->var.yres - 1 - ys); in set_addr_win()
102 write_reg(par, 0x4e, par->info->var.yres - 1 - ys); in set_addr_win()
/linux-4.1.27/drivers/video/fbdev/msm/
Dmsm_fb.c65 int yres; member
151 msmfb->update_info.top = msmfb->yres + 1; in msmfb_start_dma()
154 if (unlikely(w > msmfb->xres || h > msmfb->yres || in msmfb_start_dma()
255 ebottom == info->var.yres) { in msmfb_pan_update()
327 (var->yres != info->var.yres) || in msmfb_check_var()
350 msmfb_pan_update(info, 0, 0, info->var.xres, info->var.yres, in msmfb_pan_display()
460 fb_info->var.yres = msmfb->yres; in setup_fb_info()
464 fb_info->var.yres_virtual = msmfb->yres * 2; in setup_fb_info()
486 ((uint32_t)msmfb->yres << 16); in setup_fb_info()
511 unsigned long size = msmfb->xres * msmfb->yres * in setup_fbmem()
[all …]
/linux-4.1.27/arch/arm/mach-sa1100/
Dlart.c35 .xres = 320, .yres = 240,
51 .xres = 320, .yres = 240,
64 .xres = 640, .yres = 480,
80 .xres = 640, .yres = 480,
Dshannon.c62 .xres = 640, .yres = 480,
Dh3100.c64 .xres = 320, .yres = 240,
Dh3600.c75 .xres = 320, .yres = 240,
/linux-4.1.27/arch/x86/platform/efi/
Dearly_printk.c202 u16 xres, yres; in early_efi_setup() local
207 yres = si->lfb_height; in early_efi_setup()
216 font = get_default_font(xres, yres, -1, -1); in early_efi_setup()
220 efi_y = rounddown(yres, font->height) - font->height; in early_efi_setup()
221 for (i = 0; i < (yres - efi_y) / font->height; i++) in early_efi_setup()
/linux-4.1.27/arch/arm/mach-s3c64xx/
Dmach-mini6410.c150 .yres = 272,
162 .yres = 272,
169 .yres = 480,
181 .yres = 480,
330 mini6410_lcd_pdata[features.lcd_index].win[0]->yres); in mini6410_machine_init()
Dmach-real6410.c114 .yres = 272,
131 .yres = 480,
143 .yres = 480,
300 real6410_lcd_pdata[features.lcd_index].win[0]->yres); in real6410_machine_init()
Dmach-smartq5.c115 .yres = 480,
126 .yres = 480,
Dmach-smartq7.c131 .yres = 480,
142 .yres = 480,
Dmach-anw6410.c140 .yres = 480,
151 .yres = 480,
Dmach-hmt.c136 .yres = 480,
147 .yres = 480,
/linux-4.1.27/include/linux/amba/
Dclcd.h203 val = var->yres; in clcdfb_decode()
285 var->yres_virtual = var->yres = (var->yres + 1) & ~1; in clcdfb_check()
295 var->yres > 1024) in clcdfb_check()
313 CHECK(yres) || in clcdfb_check()
/linux-4.1.27/drivers/video/fbdev/omap/
Domapfb_main.c208 var->xres, var->yres, plane->color_mode); in ctrl_change_mode()
220 var->xres, var->yres, in ctrl_change_mode()
509 var->yres = panel->y_res; in set_fb_var()
520 var->yres = panel->x_res; in set_fb_var()
529 if (var->yres < yres_min) in set_fb_var()
530 var->yres = yres_min; in set_fb_var()
533 if (var->yres > yres_max) in set_fb_var()
534 var->yres = yres_max; in set_fb_var()
538 if (var->yres_virtual < var->yres) in set_fb_var()
539 var->yres_virtual = var->yres; in set_fb_var()
[all …]
Dlcdc.c59 int yres; member
200 yelem = lcdc.yres; in setup_lcd_dma()
209 xelem = lcdc.yres * lcdc.bpp / 16; in setup_lcd_dma()
319 lcdc.yres = height; in omap_lcdc_setup_plane()
/linux-4.1.27/arch/arm/mach-nspire/
Dclcd.c23 .yres = 240,
47 .yres = 240,
90 panel_size = ((panel->mode.xres * panel->mode.yres) * panel->bpp) / 8; in nspire_clcd_setup()
/linux-4.1.27/arch/avr32/boards/atngw100/
Devklcd10x.c37 .xres = 640, .yres = 480,
75 .xres = 320, .yres = 240,
113 .xres = 320, .yres = 240,
Dmrmt.c64 .xres = 480, .yres = 272,
107 .xres = 480, .yres = 272,
/linux-4.1.27/include/video/
Dsh_mobile_meram.h47 unsigned int xres, unsigned int yres,
72 unsigned int xres, unsigned int yres, in sh_mobile_meram_cache_alloc() argument
Dw100fb.h72 unsigned int yres; member
139 unsigned int yres; member
Dsa1100fb.h35 u_short yres; member
Dmbxfb.h18 struct mbxfb_val yres; member
Domapvrfb.h31 u16 yres; member
/linux-4.1.27/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c395 var->yres_virtual = var->yres; in check_fb_res_bounds()
402 if (var->yres < yres_min) in check_fb_res_bounds()
403 var->yres = yres_min; in check_fb_res_bounds()
406 if (var->yres > yres_max) in check_fb_res_bounds()
407 var->yres = yres_max; in check_fb_res_bounds()
411 if (var->yres > var->yres_virtual) in check_fb_res_bounds()
412 var->yres = var->yres_virtual; in check_fb_res_bounds()
427 if (var->yres > var->yres_virtual) in shrink_height()
428 var->yres = var->yres_virtual; in shrink_height()
539 vrfb->yres != var->yres_virtual) in setup_vrfb_rotation()
[all …]
/linux-4.1.27/arch/arm/mach-davinci/
Dboard-dm365-evm.c386 .yres = 480,
398 .yres = 576,
414 .yres = 480,
426 .yres = 576,
438 .yres = 720,
454 .yres = 1080,
Dboard-dm644x-evm.c628 .yres = 480,
640 .yres = 576,
656 .yres = 480,
668 .yres = 576,
Dboard-dm355-evm.c255 .yres = 480,
267 .yres = 576,
/linux-4.1.27/drivers/video/fbdev/sis/
Dsis_main.c150 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()
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
474 case 0xc0: yres = (xres * 9) / 16; break; in sisfb_interpret_edid()
475 case 0x80: yres = (xres * 4) / 5; break; in sisfb_interpret_edid()
[all …]
Dsis_main.h33 .yres = 0,
157 u16 yres; member
318 u16 yres; member
412 u16 yres; member
/linux-4.1.27/arch/arm/mach-imx/
Deukrea_mbimxsd35-baseboard.c49 .yres = 240,
65 .yres = 480,
82 .yres = 600,
Dmach-vpr200.c59 .yres = 480,
75 .yres = 480,
Dmach-pcm043.c49 .yres = 320,
65 .yres = 320,
Dmach-pcm037.c450 .yres = 320,
467 .yres = 320,
483 .yres = 320,
/linux-4.1.27/arch/arm/mach-s3c24xx/
Dmach-qt2410.c117 .yres = 480,
139 .yres = 640,
161 .yres = 320,
Dmach-smdk2416.c154 .yres = 480,
167 .yres = 480,
Dmach-bast.c424 .yres = 480,
442 .yres = 480,
460 .yres = 480,
/linux-4.1.27/drivers/video/fbdev/mmp/fb/
Dmmpfb.c245 mode->yres = videomode->yres; in fbmode_to_mmpmode()
271 videomode->yres = mode->yres; in mmpmode_to_fbmode()
299 if (var->yoffset + var->yres > var->yres_virtual) in mmpfb_check_var()
387 var->yres_virtual = var->yres * 2; in var_update()
391 info->fix.ypanstep = var->yres; in var_update()
404 win.ysrc = win.ydst = fbi->mode.yres; in mmpfb_set_win()
528 info->fix.ypanstep = info->var.yres; in fb_info_setup()
613 info->var.yres_virtual = info->var.yres * 2; in mmpfb_probe()
/linux-4.1.27/lib/fonts/
Dfonts.c116 const struct font_desc *get_default_font(int xres, int yres, u32 font_w, in get_default_font() argument
137 if ((yres < 400) == (f->height <= 8)) in get_default_font()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtvfb.c591 ivtv_window.height = var->yres; 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()
733 var->yres_virtual < var->yres) { in _ivtvfb_check_var()
790 if (var->upper_margin + var->yres > (itv->is_out_50hz ? 577 : 481)) in _ivtvfb_check_var()
792 var->yres) / 2); in _ivtvfb_check_var()
796 var->lower_margin = vlimit - var->upper_margin - var->yres; in _ivtvfb_check_var()
811 itv->osd_rect.height = var->yres; in _ivtvfb_check_var()
814 var->xres, var->yres, in _ivtvfb_check_var()
[all …]
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_base.c570 if (var->yres_virtual < var->yres) in matroxfb_decode_var()
571 var->yres_virtual = var->yres; in matroxfb_decode_var()
613 if (var->yres_virtual < var->yres) in matroxfb_decode_var()
614 var->yres = var->yres_virtual; in matroxfb_decode_var()
619 if (var->yoffset + var->yres > var->yres_virtual) in matroxfb_decode_var()
620 var->yoffset = var->yres_virtual - var->yres; in matroxfb_decode_var()
644 dprintk(KERN_INFO "requested %d*%d/%dbpp (%d*%d)\n", var->xres, var->yres, var->bits_per_pixel, in matroxfb_decode_var()
865 if (vblank->vcount >= minfo->fbcon.var.yres) in matroxfb_get_vblank()
1267 static unsigned int yres; /* "matroxfb:yres:xxxxx" */ variable
1842 if (yres) in initMatrox2()
[all …]
Dmatroxfb_crtc2.c205 if (var->yres_virtual < var->yres) in matroxfb_dh_decode_var()
206 var->yres_virtual = var->yres; in matroxfb_dh_decode_var()
217 if (var->yoffset + var->yres > var->yres_virtual) in matroxfb_dh_decode_var()
218 var->yoffset = var->yres_virtual - var->yres; in matroxfb_dh_decode_var()
411 if (vblank->vcount >= m2info->fbcon.var.yres) in matroxfb_dh_get_vblank()
/linux-4.1.27/drivers/gpu/drm/bochs/
Dbochs_hw.c156 bochs->yres = mode->vdisplay; in bochs_hw_setmode()
162 bochs->xres, bochs->yres, bochs->bpp, in bochs_hw_setmode()
170 bochs_dispi_write(bochs, VBE_DISPI_INDEX_YRES, bochs->yres); in bochs_hw_setmode()
/linux-4.1.27/arch/sh/boards/mach-migor/
Dlcd_qvga.c119 unsigned long yres = 240; in migor_lcd_qvga_setup() local
138 write_reg16(sohandle, so, 0x0050, 0xef - (yres - 1)); in migor_lcd_qvga_setup()
/linux-4.1.27/drivers/video/fbdev/intelfb/
Dintelfbdrv.c960 int ytot = var->yres + var->upper_margin + var->lower_margin + in var_to_refresh()
985 var->yres = screen_info.lfb_height; in get_initial_mode()
1001 var->xres, var->yres, var->bits_per_pixel, in get_initial_mode()
1014 ytot = var->yres + var->upper_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()
1104 if (var->yres_virtual < var->yres) in intelfb_init_var()
1105 var->yres_virtual = var->yres; in intelfb_init_var()
1107 var->yres_virtual = var->yres; in intelfb_init_var()
1162 dinfo->yres = var->xres; in update_dinfo()
1274 (info->var.yres != var->yres) || in intelfb_check_var()
[all …]
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c144 (var->yoffset + var->yres) > par->max_height) { in vmw_fb_check_var()
151 var->yoffset + var->yres)) { in vmw_fb_check_var()
167 ret = vmw_kms_write_svga(vmw_priv, info->var.xres, info->var.yres, in vmw_fb_set_par()
181 vmw_write(vmw_priv, SVGA_REG_DISPLAY_HEIGHT, info->var.yres); in vmw_fb_set_par()
234 h = min(par->dirty.y2, info->var.yres) - y; in vmw_fb_dirty_flush()
519 info->var.yres = initial_height; 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/drivers/video/fbdev/riva/
Dfbdev.c227 .yres = 480,
705 vDisplay = info->var.yres - 1; in riva_load_video_mode()
706 vStart = info->var.yres + info->var.lower_margin - 1; in riva_load_video_mode()
707 vEnd = info->var.yres + info->var.lower_margin + in riva_load_video_mode()
709 vTotal = info->var.yres + info->var.lower_margin + in riva_load_video_mode()
836 var->yres = modedb->yres; in riva_update_var()
837 if (var->yres_virtual < var->yres) in riva_update_var()
838 var->yres_virtual = var->yres; in riva_update_var()
874 int xres, yres; in rivafb_do_maximize() member
891 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize()
[all …]
/linux-4.1.27/drivers/video/fbdev/nvidia/
Dnvidia.c98 .yres = 480,
315 int v_display = info->var.yres - 1; in nvidia_calc_regs()
316 int v_start = info->var.yres + info->var.lower_margin - 1; in nvidia_calc_regs()
317 int v_end = (info->var.yres + info->var.lower_margin + in nvidia_calc_regs()
319 int v_total = (info->var.yres + info->var.lower_margin + in nvidia_calc_regs()
428 || (par->fpHeight <= info->var.yres)) { in nvidia_calc_regs()
693 info->var.xres, info->var.yres, in nvidiafb_set_par()
854 par->fpHeight < var->yres)) { in nvidiafb_check_var()
858 var->yres = par->fpHeight; in nvidiafb_check_var()
870 if (var->yres_virtual < var->yres) in nvidiafb_check_var()
[all …]
/linux-4.1.27/arch/arm/mach-integrator/
Dimpd1.c81 .yres = 480,
109 .yres = 600,
137 .yres = 480,
169 .yres = 480,
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_legacy_crtc.c52 int yres = mode->vdisplay; in radeon_legacy_rmx_mode_set() local
116 if (yres > native_mode->vdisplay) in radeon_legacy_rmx_mode_set()
117 yres = native_mode->vdisplay; in radeon_legacy_rmx_mode_set()
121 if (yres == native_mode->vdisplay) in radeon_legacy_rmx_mode_set()
141 fp_vert_stretch |= ((yres-1) << 12); in radeon_legacy_rmx_mode_set()
144 scale = ((yres + inc) * RADEON_VERT_STRETCH_RATIO_MAX) in radeon_legacy_rmx_mode_set()
154 fp_vert_stretch |= ((yres-1) << 12); in radeon_legacy_rmx_mode_set()
195 fp_vert_stretch |= ((yres-1) << 12); in radeon_legacy_rmx_mode_set()
/linux-4.1.27/drivers/video/fbdev/kyro/
Dfbdev.c53 .yres = 480,
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()
482 par->YRES = info->var.yres; in kyrofb_set_par()
496 frameclock = lineclock * (info->var.yres + in kyrofb_set_par()
740 info->var.xres, info->var.yres, info->var.bits_per_pixel, in kyrofb_probe()
/linux-4.1.27/Documentation/fb/
Dmodedb.txt23 <xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]
26 with <xres>, <yres>, <bpp> and <refresh> decimal numbers and <name> a string.
29 If 'M' is specified in the mode_option argument (after <yres> and before
35 pixels and 1.8% of yres).
97 where: pix = total amount of pixels in MB (xres x yres)
131 video=<driver>:<xres>x<yres>[-<bpp>][@refresh]
Dsm501.txt10 "<xres>x<yres>[-<bpp>][@<refresh>]"
Dintel810.txt65 c. "yres:<value>"
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, \
/linux-4.1.27/drivers/input/
Dmousedev.c45 static int yres = CONFIG_INPUT_MOUSEDEV_SCREEN_Y; variable
46 module_param(yres, uint, 0644);
47 MODULE_PARM_DESC(yres, "Vertical screen resolution");
196 size = yres ? : 1; in mousedev_abs_event()
200 mousedev->packet.y = yres - ((value - min) * yres) / size; in mousedev_abs_event()
298 0 : (client->pos_y >= yres ? yres : client->pos_y); in mousedev_notify_readers()
555 client->pos_y = yres / 2; in mousedev_open()
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_hw.c341 modparm.vertical_display_end = var->yres; in hw_sm750_crtc_setMode()
343 modparm.vertical_sync_start = var->yres + var->lower_margin; in hw_sm750_crtc_setMode()
344 modparm.vertical_total = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in hw_sm750_crtc_setMode()
385 FIELD_VALUE(0, PANEL_PLANE_BR, BOTTOM, var->yres - 1)| in hw_sm750_crtc_setMode()
624 (var->yoffset + var->yres > var->yres_virtual)) { in hw_sm750_pan_display()
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/
Dbf54x-lq043.h28 struct bfin_bf54xfb_val yres; member
/linux-4.1.27/include/linux/platform_data/
Dvideo_s3c.h22 unsigned short yres; member
Dvideo-nuc900fb.h52 unsigned short yres; member
Dvideo-pxafb.h72 u_short yres; member
Dvideo-msm_fb.h25 int yres; /* y resolution in pixels */ member
/linux-4.1.27/drivers/video/fbdev/mbx/
Dmbxfb.c84 .yres = 480,
190 if (var->yres < MIN_YRES) in mbxfb_check_var()
191 var->yres = MIN_YRES; in mbxfb_check_var()
194 if (var->yres > MAX_YRES) in mbxfb_check_var()
197 var->yres_virtual = max(var->yres_virtual, var->yres); in mbxfb_check_var()
273 Gsctrl_Height(info->var.yres); in mbxfb_set_par()
294 vfps = vas + var->yres; in mbxfb_set_par()
756 Gsctrl_Height(fbi->var.yres); in setup_graphics()
/linux-4.1.27/drivers/staging/sm7xxfb/
Dsm7xxfb.c63 .yres = 600,
631 sfb->height = sfb->fb.var.yres; in smtcfb_setmode()
642 if (var->yres_virtual < var->yres) in smtc_check_var()
643 var->yres_virtual = var->yres; in smtc_check_var()
803 sfb->fb.var.yres = smtc_scr_info.lfb_height; in smtcfb_pci_probe()
808 sfb->fb.var.yres = SCREEN_Y_RES; in smtcfb_pci_probe()
887 sfb->fb.var.yres_virtual = sfb->fb.var.yres; in smtcfb_pci_probe()
901 sfb->fb.var.yres, sfb->fb.var.bits_per_pixel); in smtcfb_pci_probe()
/linux-4.1.27/arch/powerpc/include/uapi/asm/
Dps3fb.h39 __u32 yres; /* frame buffer y_size */ member
/linux-4.1.27/drivers/video/console/
Dfbcon.c992 info->var.yres, 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()
1012 info->var.yres, in fbcon_startup()
1065 info->var.yres, 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() local
[all …]
/linux-4.1.27/include/media/davinci/
Dvpbe_types.h74 unsigned int yres; member
/linux-4.1.27/arch/arm/plat-samsung/include/plat/
Dfb-s3c2410.h34 unsigned short yres; member
/linux-4.1.27/drivers/video/fbdev/savage/
Dsavagefb_driver.c853 var->yres = modedb->yres; in savage_update_var()
854 if (var->yres_virtual < var->yres) in savage_update_var()
855 var->yres_virtual = var->yres; in savage_update_var()
934 var->yres > par->SavagePanelHeight)) { in savagefb_check_var()
936 "(%dx%d)\n", var->xres, var->yres, in savagefb_check_var()
942 if (var->yres_virtual < var->yres) in savagefb_check_var()
943 var->yres_virtual = var->yres; in savagefb_check_var()
960 if (var->yres_virtual < var->yres) in savagefb_check_var()
961 var->yres = var->yres_virtual; in savagefb_check_var()
966 if (var->yoffset + var->yres > var->yres_virtual) in savagefb_check_var()
[all …]
/linux-4.1.27/include/linux/
Dfont.h54 extern const struct font_desc *get_default_font(int xres, int yres,
/linux-4.1.27/arch/avr32/boards/merisc/
Ddisplay.c22 .yres = 480,
/linux-4.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfbdrv.c54 return var->yres + var->upper_margin + in v_total()
65 return var->yres + var->lower_margin - 1; in vsp()
126 if ((var->yres + var->lower_margin) > 4096) in mb862xxfb_check_var()
231 (fbi->var.yres - 1)); in mb862xxfb_set_par()
241 reg = pack(fbi->var.yres - 1, fbi->var.xres); in mb862xxfb_set_par()
257 reg = pack((fbi->var.yres - 1), vsp(&fbi->var)); in mb862xxfb_set_par()
455 fbi->var.yres = ((reg >> 16) & 0x0fff) + 1; in mb862xxfb_init_fbinfo()
458 fbi->var.yres_virtual = fbi->var.yres; in mb862xxfb_init_fbinfo()
477 fbi->var.lower_margin = vsp - fbi->var.yres; in mb862xxfb_init_fbinfo()
/linux-4.1.27/arch/sh/boards/
Dboard-sh7785lcr.c147 .yres = 480,
160 .yres = 480,
/linux-4.1.27/drivers/video/fbdev/geode/
Dgx1fb_core.c105 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()
Dgxfb_core.c141 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()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_modes.c1230 unsigned int xres = 0, yres = 0, bpp = 32, refresh = 0; in drm_mode_parse_command_line_for_connector() local
1270 yres = simple_strtol(&name[i+1], NULL, 10); in drm_mode_parse_command_line_for_connector()
1352 mode->yres = yres; in drm_mode_parse_command_line_for_connector()
1390 cmd->xres, cmd->yres, in drm_mode_create_from_cmdline_mode()
1396 cmd->xres, cmd->yres, in drm_mode_create_from_cmdline_mode()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddisplay.c36 u16 *xres, u16 *yres) in omapdss_default_get_resolution() argument
39 *yres = dssdev->panel.timings.y_res; in omapdss_default_get_resolution()
/linux-4.1.27/arch/avr32/boards/atstk1000/
Dsetup.c34 .xres = 320, .yres = 240,
/linux-4.1.27/Documentation/devicetree/bindings/fb/
Dsm501fb.txt17 <xres>x<yres>[-<bpp>][@<refresh>]
/linux-4.1.27/drivers/video/fbdev/vermilion/
Dvermilion.c631 if (var->xres > VML_MAX_XRES || var->yres > VML_MAX_YRES) { in vmlfb_check_var_locked()
802 var->yres + var->lower_margin + var->vsync_len + var->upper_margin; in vmlfb_set_par_locked()
803 vactive = var->yres; in vmlfb_set_par_locked()
804 vblank_start = var->yres; 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/mmp/panel/
Dtpo_tj032md01bw.c113 .yres = 480,

12