Home
last modified time | relevance | path

Searched refs:yres (Results 1 – 25 of 222) sorted by relevance

123456789

/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))
549 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
551 var->yres = mode->yres; in fb_try_mode()
553 var->yres_virtual = mode->yres; in fb_try_mode()
642 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local
675 yres = simple_strtol(&name[i+1], NULL, in fb_find_mode()
720 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode()
728 cvt_mode.yres = yres; 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 …]
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 …]
/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 …]
/drivers/staging/xgifb/
DXGI_main_26.c237 (XGIbios_mode[i].yres == xgifb_info->lvds_data.LVDSVDE) && in XGIfb_GetXG21DefaultLVDSModeIdx()
251 unsigned int yres; in XGIfb_search_mode() local
255 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode()
263 XGIbios_mode[i].yres == yres && in XGIfb_search_mode()
297 u16 xres, yres; in XGIfb_validate_mode() local
304 yres = xgifb_info->lvds_data.LVDSVDE; in XGIfb_validate_mode()
307 if (XGIbios_mode[myindex].yres > yres) in XGIfb_validate_mode()
310 (XGIbios_mode[myindex].yres < yres)) { in XGIfb_validate_mode()
330 yres = 480; in XGIfb_validate_mode()
334 yres = 600; in XGIfb_validate_mode()
[all …]
/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()
/drivers/video/fbdev/
Datafb.c616 int yres = var->yres; in tt_decode_var() local
622 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var()
626 yres = tt_yres * 2; in tt_decode_var()
629 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var()
632 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var()
636 yres = tt_yres; in tt_decode_var()
639 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var()
641 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var()
644 yres = tt_yres; in tt_decode_var()
649 yres = st_yres / 2; in tt_decode_var()
[all …]
Dbfin_adv7393fb.h65 u16 yres; /* Active Vertical Pixels */ member
167 .yres = 480,
183 .yres = 576,
199 .yres = 480,
215 .yres = 480,
231 .yres = 480,
247 .yres = 576,
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 …]
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()
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 …]
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 …]
Di740fb.c400 u32 yres, lower, vslen, upper, ytotal; in i740fb_decode_var() local
407 var->xres, var->yres, var->xres_virtual, var->xres_virtual); in i740fb_decode_var()
473 yres = var->yres; in i740fb_decode_var()
475 if (yres > vyres) in i740fb_decode_var()
476 vyres = yres; in i740fb_decode_var()
479 if (yres + yoffset > vyres) in i740fb_decode_var()
480 yoffset = vyres - yres; in i740fb_decode_var()
493 if (yoffset + yres > vyres) in i740fb_decode_var()
494 yoffset = vyres - yres; in i740fb_decode_var()
497 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 …]
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,
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.c150 static int neoFindMode(int xres, int yres, int depth) in neoFindMode() argument
185 if (yres <= mode[i].y_res) in neoFindMode()
260 int vsync_start = var->yres + var->lower_margin; in vgaHWInit()
293 | (((var->yres - 1) & 0x100) >> 7) in vgaHWInit()
295 | (((var->yres - 1) & 0x100) >> 5) in vgaHWInit()
297 | (((var->yres - 1) & 0x200) >> 3) in vgaHWInit()
300 par->CRTC[9] = (((var->yres - 1) & 0x200) >> 4) | 0x40; in vgaHWInit()
313 par->CRTC[18] = (var->yres - 1) & 0xFF; in vgaHWInit()
316 par->CRTC[21] = (var->yres - 1) & 0xFF; in vgaHWInit()
595 (var->yres > par->NeoPanelHeight))) { in neofb_check_var()
[all …]
Dgoldfishfb.c101 if ((var->xres != info->var.yres) || in goldfish_fb_check_var()
102 (var->yres != info->var.xres) || in goldfish_fb_check_var()
103 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var()
110 (var->yres != info->var.yres) || in goldfish_fb_check_var()
112 (var->yres_virtual > info->var.yres * 2) || in goldfish_fb_check_var()
113 (var->yres_virtual < info->var.yres)) { in goldfish_fb_check_var()
231 fb->fb.var.yres = height; in goldfish_fb_probe()
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 …]
/drivers/staging/fbtft/
Dfb_ssd1306.c47 if (par->info->var.yres == 64) in init_display()
63 if (par->info->var.yres == 64) in init_display()
65 else if (par->info->var.yres == 48) in init_display()
97 if (par->info->var.yres == 64) in init_display()
100 else if (par->info->var.yres == 48) in init_display()
154 if (par->info->var.xres == 64 && par->info->var.yres == 48) in set_addr_win()
187 u32 yres = par->info->var.yres; in write_vmem() local
193 for (y = 0; y < yres / 8; y++) { in write_vmem()
203 ret = par->fbtftops.write(par, par->txbuf.buf, xres * yres / 8); in write_vmem()
Dfb_sh1106.c34 !par->info->var.yres || par->info->var.yres > HEIGHT || in init_display()
35 par->info->var.yres % 8) { in init_display()
54 write_reg(par, 0xA8, par->info->var.yres - 1); in init_display()
71 if (par->info->var.yres == 64) in init_display()
74 else if (par->info->var.yres == 48) in init_display()
Dfb_ssd1305.c48 if (par->info->var.yres == 64) in init_display()
64 if (par->info->var.yres == 64) in init_display()
100 if (par->info->var.yres == 64) { in init_display()
169 for (y = 0; y < par->info->var.yres / 8; y++) { in write_vmem()
182 par->info->var.xres * par->info->var.yres / in write_vmem()
/drivers/video/fbdev/aty/
Dradeon_monitor.c10 .yres = 480,
187 rinfo->panel_info.yres = BIOS_IN16(tmp + 27); in radeon_get_panel_info_BIOS()
189 rinfo->panel_info.xres, rinfo->panel_info.yres); in radeon_get_panel_info_BIOS()
217 (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) { in radeon_get_panel_info_BIOS()
691 rinfo->panel_info.yres = var->yres; in radeon_var_to_panel_info()
718 var->yres = mode->yres; in radeon_videomode_to_var()
720 var->yres_virtual = mode->yres; in radeon_videomode_to_var()
785 var.yres >= rinfo->panel_info.yres) in radeon_check_modes()
804 var->yres = rinfo->panel_info.yres; in radeon_check_modes()
806 var->yres_virtual = rinfo->panel_info.yres; in radeon_check_modes()
[all …]
/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()
506 var->yres = panel->y_res; in set_fb_var()
517 var->yres = panel->x_res; in set_fb_var()
526 if (var->yres < yres_min) in set_fb_var()
527 var->yres = yres_min; in set_fb_var()
530 if (var->yres > yres_max) in set_fb_var()
531 var->yres = yres_max; in set_fb_var()
535 if (var->yres_virtual < var->yres) in set_fb_var()
536 var->yres_virtual = var->yres; in set_fb_var()
[all …]

123456789