Lines Matching refs:var

34 static int q40fb_get_var(struct fb_var_screeninfo *var, int con,
36 static int q40fb_set_var(struct fb_var_screeninfo *var, int con,
90 static int q40fb_get_var(struct fb_var_screeninfo *var, int con, in q40fb_get_var() argument
93 memset(var, 0, sizeof(struct fb_var_screeninfo)); in q40fb_get_var()
95 var->xres=1024; in q40fb_get_var()
96 var->yres=512; in q40fb_get_var()
97 var->xres_virtual=1024; in q40fb_get_var()
98 var->yres_virtual=512; in q40fb_get_var()
99 var->xoffset=0; in q40fb_get_var()
100 var->yoffset=0; in q40fb_get_var()
101 var->bits_per_pixel=16; in q40fb_get_var()
102 var->grayscale=0; in q40fb_get_var()
103 var->nonstd=0; in q40fb_get_var()
104 var->activate=FB_ACTIVATE_NOW; in q40fb_get_var()
105 var->height=230; /* approx for my 17" monitor, more important */ in q40fb_get_var()
106 var->width=300; /* than the absolute values is the unusual aspect ratio*/ in q40fb_get_var()
108 var->red.offset=6; /*6*/ in q40fb_get_var()
109 var->red.length=5; in q40fb_get_var()
110 var->green.offset=11; /*11*/ in q40fb_get_var()
111 var->green.length=5; in q40fb_get_var()
112 var->blue.offset=0; in q40fb_get_var()
113 var->blue.length=6; in q40fb_get_var()
114 var->transp.length=0; in q40fb_get_var()
116 var->pixclock=0; in q40fb_get_var()
117 var->left_margin=0; in q40fb_get_var()
118 var->right_margin=0; in q40fb_get_var()
119 var->hsync_len=0; in q40fb_get_var()
120 var->vsync_len=0; in q40fb_get_var()
121 var->sync=0; in q40fb_get_var()
122 var->vmode=FB_VMODE_NONINTERLACED; in q40fb_get_var()
128 static int q40fb_set_var(struct fb_var_screeninfo *var, int con, in q40fb_set_var() argument
131 if(var->xres!=1024) in q40fb_set_var()
133 if(var->yres!=512) in q40fb_set_var()
135 if(var->xres_virtual!=1024) in q40fb_set_var()
137 if(var->yres_virtual!=512) in q40fb_set_var()
139 if(var->xoffset!=0) in q40fb_set_var()
141 if(var->yoffset!=0) in q40fb_set_var()
143 if(var->bits_per_pixel!=16) in q40fb_set_var()
145 if(var->grayscale!=0) in q40fb_set_var()
147 if(var->nonstd!=0) in q40fb_set_var()
149 if(var->activate!=FB_ACTIVATE_NOW) in q40fb_set_var()
153 if(var->pixclock!=0) in q40fb_set_var()
155 if(var->left_margin!=0) in q40fb_set_var()
157 if(var->right_margin!=0) in q40fb_set_var()
159 if(var->hsync_len!=0) in q40fb_set_var()
161 if(var->vsync_len!=0) in q40fb_set_var()
163 if(var->sync!=0) in q40fb_set_var()
165 if(var->vmode!=FB_VMODE_NONINTERLACED) in q40fb_set_var()
222 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in q40fb_get_cmap()
240 1<<fb_display[con].var.bits_per_pixel, in q40fb_set_cmap()
343 q40fb_get_var(&disp[0].var, 0, &fb_info); in q40fb_init()