Lines Matching refs:xres

195 void round_off_xres(u32 *xres)   in round_off_xres()  argument
197 if (*xres <= 640) in round_off_xres()
198 *xres = 640; in round_off_xres()
199 else if (*xres <= 800) in round_off_xres()
200 *xres = 800; in round_off_xres()
201 else if (*xres <= 1024) in round_off_xres()
202 *xres = 1024; in round_off_xres()
203 else if (*xres <= 1152) in round_off_xres()
204 *xres = 1152; in round_off_xres()
205 else if (*xres <= 1280) in round_off_xres()
206 *xres = 1280; in round_off_xres()
208 *xres = 1600; in round_off_xres()
211 inline void round_off_yres(u32 *xres, u32 *yres) in round_off_yres() argument
213 *yres = (*xres * 3) >> 2; in round_off_yres()
216 static int i810fb_find_best_mode(u32 xres, u32 yres, u32 pixclock) in i810fb_find_best_mode() argument
219 u8 hfl = (u8) ((xres >> 3) - 1); in i810fb_find_best_mode()
235 struct i810fb_par *par, u32 xres, u32 yres) in i810fb_encode_registers() argument
237 u32 i_best = i810fb_find_best_mode(xres, yres, par->regs.pixclock); in i810fb_encode_registers()
242 par->ovract = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers()
243 var->left_margin - 32) | ((xres - 32) << 16)); in i810fb_encode_registers()
248 u32 total, xres, yres; in i810fb_fill_var_timings() local
251 xres = var->xres; in i810fb_fill_var_timings()
255 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings()
261 var->right_margin = (std_modes[mode].cr04 << 3) - xres; in i810fb_fill_var_timings()
264 var->left_margin = (total - (xres + var->right_margin + in i810fb_fill_var_timings()