Lines Matching refs:var
56 struct fb_var_screeninfo var; member
80 #define read_ind(num, var, ap, dp) do { \ argument
81 outb((num), (ap)); var = inb((dp)); \
86 #define read_xr(num, var) read_ind(num, var, 0x3d6, 0x3d7) argument
89 #define read_fr(num, var) read_ind(num, var, 0x3d0, 0x3d1) argument
92 #define read_cr(num, var) read_ind(num, var, 0x3d4, 0x3d5) argument
95 #define read_gr(num, var) read_ind(num, var, 0x3ce, 0x3cf) argument
98 #define read_sr(num, var) read_ind(num, var, 0x3c4, 0x3c5) argument
103 #define read_ar(num, var) do { \ argument
104 inb(0x3da); read_ind(num, var, 0x3c0, 0x3c1); \
124 static int chips_get_var(struct fb_var_screeninfo *var, int con,
126 static int chips_set_var(struct fb_var_screeninfo *var, int con,
158 static int chips_get_var(struct fb_var_screeninfo *var, int con, in chips_get_var() argument
163 *var = cp->var; in chips_get_var()
167 static int chips_set_var(struct fb_var_screeninfo *var, int con, in chips_set_var() argument
173 if (var->xres > 800 || var->yres > 600 in chips_set_var()
174 || var->xres_virtual > 800 || var->yres_virtual > 600 in chips_set_var()
175 || (var->bits_per_pixel != 8 && var->bits_per_pixel != 16) in chips_set_var()
176 || var->nonstd in chips_set_var()
177 || (var->vmode & FB_VMODE_MASK) != FB_VMODE_NONINTERLACED) in chips_set_var()
180 if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW && in chips_set_var()
181 var->bits_per_pixel != disp->var.bits_per_pixel) { in chips_set_var()
182 chips_set_bitdepth(cp, disp, con, var->bits_per_pixel); in chips_set_var()
196 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in chips_get_cmap()
208 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in chips_set_cmap()
228 new_bpp = fb_display[con].var.bits_per_pixel; in chipsfbcon_switch()
229 old_bpp = fb_display[currcon].var.bits_per_pixel; in chipsfbcon_switch()
333 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in do_install_cmap()
342 struct fb_var_screeninfo* var = &p->var; in chips_set_bitdepth() local
355 var->red.offset = 10; in chips_set_bitdepth()
356 var->green.offset = 5; in chips_set_bitdepth()
357 var->blue.offset = 0; in chips_set_bitdepth()
358 var->red.length = var->green.length = var->blue.length = 5; in chips_set_bitdepth()
377 var->red.offset = var->green.offset = var->blue.offset = 0; in chips_set_bitdepth()
378 var->red.length = var->green.length = var->blue.length = 8; in chips_set_bitdepth()
387 var->bits_per_pixel = bpp; in chips_set_bitdepth()
390 disp->var = *var; in chips_set_bitdepth()
553 p->var.xres = 800; in init_chips()
554 p->var.yres = 600; in init_chips()
555 p->var.xres_virtual = 800; in init_chips()
556 p->var.yres_virtual = 600; in init_chips()
557 p->var.bits_per_pixel = 8; in init_chips()
558 p->var.red.length = p->var.green.length = p->var.blue.length = 8; in init_chips()
559 p->var.height = p->var.width = -1; in init_chips()
560 p->var.vmode = FB_VMODE_NONINTERLACED; in init_chips()
561 p->var.pixclock = 10000; in init_chips()
562 p->var.left_margin = p->var.right_margin = 16; in init_chips()
563 p->var.upper_margin = p->var.lower_margin = 16; in init_chips()
564 p->var.hsync_len = p->var.vsync_len = 8; in init_chips()
566 p->disp.var = p->var; in init_chips()
612 display_info.height = p->var.yres; in init_chips()
613 display_info.width = p->var.xres; in init_chips()
707 int nb = p->var.yres * p->fix.line_length; in chips_sleep_notify()