Lines Matching refs:var
124 void i810fb_encode_registers(const struct fb_var_screeninfo *var, in i810fb_encode_registers() argument
133 n = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers()
134 var->left_margin) >> 3) - 5; in i810fb_encode_registers()
142 blank_e = (xres + var->right_margin + var->hsync_len + in i810fb_encode_registers()
143 var->left_margin) >> 3; in i810fb_encode_registers()
154 par->regs.cr04 = (u8) ((xres + var->right_margin) >> 3); in i810fb_encode_registers()
155 par->regs.cr05 |= (u8) (((xres + var->right_margin + in i810fb_encode_registers()
156 var->hsync_len) >> 3) & 0x1F); in i810fb_encode_registers()
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()
170 var->vsync_len) & 0x0F); in i810fb_encode_registers()
178 blank_e = yres + var->lower_margin + var->vsync_len + in i810fb_encode_registers()
179 var->upper_margin; in i810fb_encode_registers()
190 if (!(var->sync & FB_SYNC_HOR_HIGH_ACT)) in i810fb_encode_registers()
192 if (!(var->sync & FB_SYNC_VERT_HIGH_ACT)) in i810fb_encode_registers()
197 if (var->vmode & FB_VMODE_INTERLACED) in i810fb_encode_registers()
198 par->interlace = (1 << 7) | ((u8) (var->yres >> 4)); in i810fb_encode_registers()
202 if (var->vmode & FB_VMODE_DOUBLE) in i810fb_encode_registers()
206 par->ovract = ((var->xres + var->right_margin + var->hsync_len + in i810fb_encode_registers()
207 var->left_margin - 32) | ((var->xres - 32) << 16)); in i810fb_encode_registers()
210 void i810fb_fill_var_timings(struct fb_var_screeninfo *var) { } in i810fb_fill_var_timings() argument
224 u32 i810_get_watermark(const struct fb_var_screeninfo *var, in i810_get_watermark() argument
231 switch (var->bits_per_pixel) { in i810_get_watermark()
246 switch(var->bits_per_pixel) { in i810_get_watermark()
262 pixclock = 1000000/var->pixclock; in i810_get_watermark()