Lines Matching refs:xres
194 void round_off_xres(u32 *xres) in round_off_xres() argument
196 if (*xres <= 640) in round_off_xres()
197 *xres = 640; in round_off_xres()
198 else if (*xres <= 800) in round_off_xres()
199 *xres = 800; in round_off_xres()
200 else if (*xres <= 1024) in round_off_xres()
201 *xres = 1024; in round_off_xres()
202 else if (*xres <= 1152) in round_off_xres()
203 *xres = 1152; in round_off_xres()
204 else if (*xres <= 1280) in round_off_xres()
205 *xres = 1280; in round_off_xres()
207 *xres = 1600; in round_off_xres()
210 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
218 u8 hfl = (u8) ((xres >> 3) - 1); in i810fb_find_best_mode()
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()
241 par->ovract = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers()
242 var->left_margin - 32) | ((xres - 32) << 16)); in i810fb_encode_registers()
247 u32 total, xres, yres; in i810fb_fill_var_timings() local
250 xres = var->xres; in i810fb_fill_var_timings()
254 mode = i810fb_find_best_mode(xres, yres, pixclock); in i810fb_fill_var_timings()
260 var->right_margin = (std_modes[mode].cr04 << 3) - xres; in i810fb_fill_var_timings()
263 var->left_margin = (total - (xres + var->right_margin + in i810fb_fill_var_timings()