Home
last modified time | relevance | path

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

123456789

/drivers/video/
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))
498 mode->xres, mode->yres, bpp, mode->refresh); in fb_try_mode()
500 var->yres = mode->yres; in fb_try_mode()
502 var->yres_virtual = mode->yres; in fb_try_mode()
591 unsigned int xres = 0, yres = 0, bpp = default_bpp, refresh = 0; in fb_find_mode() local
623 yres = simple_strtol(&name[i+1], NULL, in fb_find_mode()
660 DPRINTK("CVT mode %dx%d@%dHz%s%s%s\n", xres, yres, in fb_find_mode()
668 cvt_mode.yres = yres; in fb_find_mode()
688 xres, yres); in fb_find_mode()
712 (res_specified && res_matches(db[i], xres, yres))) && in fb_find_mode()
[all …]
Datafb.c618 int yres = var->yres; in tt_decode_var() local
624 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2) in tt_decode_var()
628 yres = tt_yres * 2; in tt_decode_var()
631 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var()
634 if (xres > sttt_xres / 2 || yres > tt_yres) in tt_decode_var()
638 yres = tt_yres; in tt_decode_var()
641 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var()
643 if (xres > sttt_xres / 2 || yres > st_yres / 2) { in tt_decode_var()
646 yres = tt_yres; in tt_decode_var()
651 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,
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.c62 .yres = 768,
76 .yres = 240,
90 .yres = 480,
104 .yres = 480,
118 .yres = 480,
132 .yres = 480,
146 .yres = 480,
160 .yres = 480,
174 .yres = 600,
188 .yres = 480,
[all …]
Dfbmon.c385 static void calc_mode_timings(int xres, int yres, int refresh, in calc_mode_timings() argument
394 var->yres = yres; in calc_mode_timings()
398 mode->yres = yres; in calc_mode_timings()
501 int xres, yres = 0, refresh, ratio, i; in get_std_timing() local
512 yres = xres; in get_std_timing()
514 yres = (xres * 10)/16; in get_std_timing()
517 yres = (xres * 3)/4; in get_std_timing()
520 yres = (xres * 4)/5; in get_std_timing()
523 yres = (xres * 9)/16; in get_std_timing()
528 DPRINTK(" %dx%d@%dHz\n", xres, yres, refresh); in get_std_timing()
[all …]
Dsa1100fb.c374 if (var->yres < MIN_YRES) in sa1100fb_check_var()
375 var->yres = MIN_YRES; in sa1100fb_check_var()
378 if (var->yres > fbi->inf->yres) in sa1100fb_check_var()
379 var->yres = fbi->inf->yres; in sa1100fb_check_var()
381 var->yres_virtual = max(var->yres_virtual, var->yres); in sa1100fb_check_var()
607 u_int half_screen_size, yres, pcd; in sa1100fb_activate_var() local
616 var->yres, var->vsync_len, in sa1100fb_activate_var()
632 if (var->yres < 1 || var->yres > 1024) in sa1100fb_activate_var()
634 fbi->fb.fix.id, var->yres); in sa1100fb_activate_var()
660 yres = var->yres; in sa1100fb_activate_var()
[all …]
Di740fb.c412 u32 yres, lower, vslen, upper, ytotal; in i740fb_decode_var() local
419 var->xres, var->yres, var->xres_virtual, var->xres_virtual); in i740fb_decode_var()
485 yres = var->yres; in i740fb_decode_var()
487 if (yres > vyres) in i740fb_decode_var()
488 vyres = yres; in i740fb_decode_var()
491 if (yres + yoffset > vyres) in i740fb_decode_var()
492 yoffset = vyres - yres; in i740fb_decode_var()
505 if (yoffset + yres > vyres) in i740fb_decode_var()
506 yoffset = vyres - yres; in i740fb_decode_var()
509 ytotal = yres + lower + vslen + upper; in i740fb_decode_var()
[all …]
Dfb-puv3.c72 .yres = 480,
144 int bottom = info->var.yres - 1; in unifb_prim_fillrect()
234 int bottom = info->var.yres; in unifb_prim_copyarea()
362 if (!var->yres) in unifb_check_var()
363 var->yres = 1; in unifb_check_var()
366 if (var->yres > var->yres_virtual) in unifb_check_var()
367 var->yres_virtual = var->yres; in unifb_check_var()
383 if (var->yres_virtual < var->yoffset + var->yres) in unifb_check_var()
384 var->yres_virtual = var->yoffset + var->yres; in unifb_check_var()
478 && info->var.yres == unifb_modes[i].yres in unifb_set_par()
[all …]
Dau1100fb.h77 u32 yres; /* Maximum vertical resolution */ member
274 .yres = 600,
287 .yres = 320,
298 .yres = 240,
325 .yres = 240,
347 .yres = 480,
359 .yres = 480,
D68328fb.c159 if (!var->yres) in mc68x328fb_check_var()
160 var->yres = 1; in mc68x328fb_check_var()
163 if (var->yres > var->yres_virtual) in mc68x328fb_check_var()
164 var->yres_virtual = var->yres; in mc68x328fb_check_var()
180 if (var->yres_virtual < var->yoffset + var->yres) in mc68x328fb_check_var()
181 var->yres_virtual = var->yoffset + var->yres; in mc68x328fb_check_var()
382 var->yoffset + info->var.yres > info->var.yres_virtual) in mc68x328fb_pan_display()
448 mc68x328fb_default.yres = LYMAX+1; in mc68x328fb_init()
450 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 …]
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()
846 tmp = mode->yres + mode->vsync_len + mode->upper_margin in sh_mobile_lcdc_geometry()
848 tmp |= min(mode->yres, ch->yres) << 16; /* VDLN */ in sh_mobile_lcdc_geometry()
851 tmp = mode->yres + mode->lower_margin; /* VSYNP */ in sh_mobile_lcdc_geometry()
939 (ovl->yres << LDBBSSZR_BVSS_SHIFT) | in sh_mobile_lcdc_overlay_setup()
1149 ch->pitch, ch->yres, pixelformat, in sh_mobile_lcdc_start()
1248 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 …]
Dgoldfishfb.c143 if ((var->xres != info->var.yres) || in goldfish_fb_check_var()
144 (var->yres != info->var.xres) || in goldfish_fb_check_var()
145 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var()
152 (var->yres != info->var.yres) || in goldfish_fb_check_var()
154 (var->yres_virtual > info->var.yres * 2) || in goldfish_fb_check_var()
155 (var->yres_virtual < info->var.yres)) { in goldfish_fb_check_var()
284 fb->fb.var.yres = height; in goldfish_fb_probe()
/drivers/video/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.c241 && (XGIbios_mode[i].yres == xgifb_info->lvds_data.LVDSVDE) in XGIfb_GetXG21DefaultLVDSModeIdx()
255 unsigned int yres; in XGIfb_search_mode() local
259 if (sscanf(name, "%ux%ux%u", &xres, &yres, &bpp) != 3) in XGIfb_search_mode()
267 XGIbios_mode[i].yres == yres && in XGIfb_search_mode()
301 u16 xres, yres; in XGIfb_validate_mode() local
308 yres = xgifb_info->lvds_data.LVDSVDE; in XGIfb_validate_mode()
311 if (XGIbios_mode[myindex].yres > yres) in XGIfb_validate_mode()
314 (XGIbios_mode[myindex].yres < yres)) { in XGIfb_validate_mode()
336 yres = 480; in XGIfb_validate_mode()
340 yres = 600; in XGIfb_validate_mode()
[all …]
/drivers/video/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/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 …]
/drivers/video/msm/
Dmsm_fb.c66 int yres; member
152 msmfb->update_info.top = msmfb->yres + 1; in msmfb_start_dma()
155 if (unlikely(w > msmfb->xres || h > msmfb->yres || in msmfb_start_dma()
256 ebottom == info->var.yres) { in msmfb_pan_update()
328 (var->yres != info->var.yres) || in msmfb_check_var()
351 msmfb_pan_update(info, 0, 0, info->var.xres, info->var.yres, in msmfb_pan_display()
461 fb_info->var.yres = msmfb->yres; in setup_fb_info()
465 fb_info->var.yres_virtual = msmfb->yres * 2; in setup_fb_info()
487 ((uint32_t)msmfb->yres << 16); in setup_fb_info()
512 unsigned long size = msmfb->xres * msmfb->yres * in setup_fbmem()
[all …]
/drivers/video/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 …]

123456789