Lines Matching refs:std_modes
19 struct mode_registers std_modes[] = { variable
221 for (i = 0; i < ARRAY_SIZE(std_modes); i++) { in i810fb_find_best_mode()
222 if (std_modes[i].cr01 == hfl) { in i810fb_find_best_mode()
223 if (std_modes[i].pixclock <= pixclock) in i810fb_find_best_mode()
224 diff = pixclock - std_modes[i].pixclock; in i810fb_find_best_mode()
239 par->regs = std_modes[i_best]; in i810fb_encode_registers()
257 total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; in i810fb_fill_var_timings()
260 var->pixclock = 1000000000 / std_modes[mode].pixclock; in i810fb_fill_var_timings()
261 var->right_margin = (std_modes[mode].cr04 << 3) - xres; in i810fb_fill_var_timings()
262 var->hsync_len = ((std_modes[mode].cr05 & 0x1F) - in i810fb_fill_var_timings()
263 (std_modes[mode].cr04 & 0x1F)) << 3; in i810fb_fill_var_timings()
267 if (~(std_modes[mode].msr & (1 << 6))) in i810fb_fill_var_timings()
269 if (~(std_modes[mode].msr & (1 << 7))) in i810fb_fill_var_timings()
272 total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; in i810fb_fill_var_timings()
273 var->lower_margin = (std_modes[mode].cr10 | in i810fb_fill_var_timings()
274 (std_modes[mode].cr32 & 0x0F) << 8) - yres; in i810fb_fill_var_timings()
275 var->vsync_len = (std_modes[mode].cr11 & 0x0F) - in i810fb_fill_var_timings()