Home
last modified time | relevance | path

Searched refs:var (Results 1 – 25 of 196) sorted by relevance

12345678

/linux-2.4.37.9/drivers/video/
Dvfb.c82 static int vfb_get_var(struct fb_var_screeninfo *var, int con,
84 static int vfb_set_var(struct fb_var_screeninfo *var, int con,
86 static int vfb_pan_display(struct fb_var_screeninfo *var, int con,
110 struct fb_var_screeninfo *var);
111 static void set_color_bitfields(struct fb_var_screeninfo *var);
136 struct fb_var_screeninfo *var; in vfb_get_fix() local
139 var = &vfb_default; in vfb_get_fix()
141 var = &fb_display[con].var; in vfb_get_fix()
142 vfb_encode_fix(fix, var); in vfb_get_fix()
151 static int vfb_get_var(struct fb_var_screeninfo *var, int con, in vfb_get_var() argument
[all …]
Datafb.c318 int (*decode_var)( struct fb_var_screeninfo *var,
320 int (*encode_var)( struct fb_var_screeninfo *var,
332 int (*pan_display)( struct fb_var_screeninfo *var,
487 static int tt_decode_var( struct fb_var_screeninfo *var, in tt_decode_var() argument
490 int xres=var->xres; in tt_decode_var()
491 int yres=var->yres; in tt_decode_var()
492 int bpp=var->bits_per_pixel; in tt_decode_var()
494 int yres_virtual = var->yres_virtual; in tt_decode_var()
538 else if (var->xres > sttt_xres || var->yres > st_yres) { in tt_decode_var()
552 if (var->sync & FB_SYNC_EXT) in tt_decode_var()
[all …]
Dpvr2fb.c207 static int pvr2fb_get_var(struct fb_var_screeninfo *var, int con,
209 static int pvr2fb_set_var(struct fb_var_screeninfo *var, int con,
211 static int pvr2fb_pan_display(struct fb_var_screeninfo *var, int con,
232 static void set_color_bitfields(struct fb_var_screeninfo *var);
240 static int pvr2_decode_var(struct fb_var_screeninfo *var,
242 static int pvr2_encode_var(struct fb_var_screeninfo *var,
245 static void pvr2_set_var(struct fb_var_screeninfo *var);
246 static void pvr2_pan_var(struct fb_var_screeninfo *var);
316 if ((err = pvr2_decode_var(&fb_display[con].var, &par))) in pvr2fb_get_fix()
324 static int pvr2fb_get_var(struct fb_var_screeninfo *var, int con, in pvr2fb_get_var() argument
[all …]
Dhitfb.c68 static int hitfb_encode_var(struct fb_var_screeninfo *var, const void *fb_par,
135 static int hitfb_decode_var(const struct fb_var_screeninfo *var, void *fb_par, in hitfb_decode_var() argument
140 par->x = var->xres; in hitfb_decode_var()
141 par->y = var->yres; in hitfb_decode_var()
142 par->bpp = var->bits_per_pixel; in hitfb_decode_var()
147 static int hitfb_encode_var(struct fb_var_screeninfo *var, const void *fb_par, in hitfb_encode_var() argument
152 memset(var, 0, sizeof(*var)); in hitfb_encode_var()
154 var->xres = par->x; in hitfb_encode_var()
155 var->yres = par->y; in hitfb_encode_var()
156 var->xres_virtual = var->xres; in hitfb_encode_var()
[all …]
Dmacmodes.c257 struct fb_var_screeninfo var; in console_setmode() local
279 if ((err = mac_vmode_to_var(mode->mode, cmode, &var))) in console_setmode()
282 var.activate = FB_ACTIVATE_TEST; in console_setmode()
283 err = console_fb_info->fbops->fb_set_var(&var, fg_console, in console_setmode()
290 var.activate = FB_ACTIVATE_NOW; in console_setmode()
294 console_fb_info->fbops->fb_set_var(&var, unit, in console_setmode()
388 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) in mac_vmode_to_var() argument
401 memset(var, 0, sizeof(struct fb_var_screeninfo)); in mac_vmode_to_var()
404 var->bits_per_pixel = 8; in mac_vmode_to_var()
405 var->red.offset = 0; in mac_vmode_to_var()
[all …]
Dtx3912fb.c51 static int tx3912fb_get_var(struct fb_var_screeninfo *var, int con,
53 static int tx3912fb_set_var(struct fb_var_screeninfo *var, int con,
133 static int tx3912fb_get_var(struct fb_var_screeninfo *var, int con, in tx3912fb_get_var() argument
137 *var = tx3912fb_info; in tx3912fb_get_var()
139 *var = fb_display[con].var; in tx3912fb_get_var()
147 static int tx3912fb_set_var(struct fb_var_screeninfo *var, int con, in tx3912fb_set_var() argument
150 int err, activate = var->activate; in tx3912fb_set_var()
164 if (var->vmode & FB_VMODE_CONUPDATE) { in tx3912fb_set_var()
165 var->xoffset = display->var.xoffset; in tx3912fb_set_var()
166 var->yoffset = display->var.yoffset; in tx3912fb_set_var()
[all …]
Dit8181fb.c170 struct fb_var_screeninfo var; member
242 static int it8181fb_decode_var (const struct fb_var_screeninfo *var, void *par,
244 static int it8181fb_encode_var (struct fb_var_screeninfo *var, const void *par,
254 static int it8181fb_pan_display (const struct fb_var_screeninfo *var,
261 static void set_color_bitfields(struct fb_var_screeninfo *var);
410 static void set_color_bitfields(struct fb_var_screeninfo *var) in set_color_bitfields() argument
412 switch (var->bits_per_pixel) { in set_color_bitfields()
415 var->red.offset = 0; in set_color_bitfields()
416 var->red.length = 8; in set_color_bitfields()
417 var->green.offset = 0; in set_color_bitfields()
[all …]
Dq40fb.c34 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()
[all …]
Dacornfb.c190 acornfb_set_timing(struct fb_var_screeninfo *var) in acornfb_set_timing() argument
202 pclk = acornfb_valid_pixrate(var->pixclock); in acornfb_set_timing()
206 bandwidth = var->pixclock * 8 / var->bits_per_pixel; in acornfb_set_timing()
217 switch (var->bits_per_pixel) { in acornfb_set_timing()
240 if (var->sync & FB_SYNC_COMP_HIGH_ACT) /* should be FB_SYNC_COMP */ in acornfb_set_timing()
243 if (!(var->sync & FB_SYNC_HOR_HIGH_ACT)) in acornfb_set_timing()
246 if (!(var->sync & FB_SYNC_VERT_HIGH_ACT)) in acornfb_set_timing()
250 sync_len = var->hsync_len; in acornfb_set_timing()
251 display_start = sync_len + var->left_margin; in acornfb_set_timing()
252 display_end = display_start + var->xres; in acornfb_set_timing()
[all …]
Dneofb.c232 struct fb_var_screeninfo *var) in neo2200_accel_init() argument
239 switch (var->bits_per_pixel) in neo2200_accel_init()
243 pitch = var->xres_virtual; in neo2200_accel_init()
248 pitch = var->xres_virtual * 2; in neo2200_accel_init()
262 struct fb_var_screeninfo *var = &p->fb_info->var; in neo2200_accel_setup() local
266 neo2200_accel_init (fb, var); in neo2200_accel_setup()
274 struct fb_var_screeninfo *var = &p->fb_info->var; in neo2200_accel_bmove() local
287 bpp = (var->bits_per_pixel+7) / 8; in neo2200_accel_bmove()
288 pitch = var->xres_virtual * bpp; in neo2200_accel_bmove()
335 struct fb_var_screeninfo *var = &p->fb_info->var; in neo2200_accel_clear() local
[all …]
Dsgivwfb.c39 struct fb_var_screeninfo var; member
96 static int sgivwfb_get_var(struct fb_var_screeninfo *var, int con,
98 static int sgivwfb_set_var(struct fb_var_screeninfo *var, int con,
132 struct fb_var_screeninfo *var);
249 bytesPerPixel = bytes_per_pixel(par->var.bits_per_pixel); in activate_par()
491 struct fb_var_screeninfo *var) in sgivwfb_encode_fix() argument
499 switch (var->bits_per_pixel) { in sgivwfb_encode_fix()
510 fix->line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in sgivwfb_encode_fix()
566 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), 1, in do_install_cmap()
578 struct fb_var_screeninfo *var; in sgivwfb_get_fix() local
[all …]
Dfbgen.c55 if ((err = fbhw->decode_var(&fb_display[con].var, &par, info2))) in fbgen_get_fix()
76 int fbgen_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in fbgen_get_var() argument
84 fbhw->encode_var(var, &par, info2); in fbgen_get_var()
86 *var = fb_display[con].var; in fbgen_get_var()
104 int fbgen_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in fbgen_set_var() argument
111 if ((err = fbgen_do_set_var(var, con == currcon, info2))) in fbgen_set_var()
113 if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) { in fbgen_set_var()
114 oldxres = fb_display[con].var.xres; in fbgen_set_var()
115 oldyres = fb_display[con].var.yres; in fbgen_set_var()
116 oldxres_virtual = fb_display[con].var.xres_virtual; in fbgen_set_var()
[all …]
Dmaxinefb.c67 static int maxinefb_set_var(struct fb_var_screeninfo *var, int con,
123 c->x = x - disp->var.xoffset; in maxinefbcon_cursor()
124 c->y = y - disp->var.yoffset; in maxinefbcon_cursor()
269 struct fb_var_screeninfo *var = &disp->var; in maxinefb_get_fix() local
279 switch (var->bits_per_pixel) { in maxinefb_get_fix()
281 case 1: fix->line_length = var->xres / 8; break; in maxinefb_get_fix()
284 case 2: fix->line_length = var->xres / 4; break; in maxinefb_get_fix()
287 case 4: fix->line_length = var->xres / 2; break; in maxinefb_get_fix()
291 fix->line_length = var->xres; in maxinefb_get_fix()
292 var->bits_per_pixel = 8; in maxinefb_get_fix()
[all …]
Dcyber2000fb.c169 struct fb_var_screeninfo *var = &p->fb_info->var; in cyber2000_accel_bmove() local
198 src = sx + sy * var->xres_virtual; in cyber2000_accel_bmove()
199 dst = dx + dy * var->xres_virtual; in cyber2000_accel_bmove()
206 if (var->bits_per_pixel != 24) { in cyber2000_accel_bmove()
225 struct fb_var_screeninfo *var = &p->fb_info->var; in cyber2000_accel_clear() local
233 dst = sx * fw + sy * var->xres_virtual * fh; in cyber2000_accel_clear()
243 switch (var->bits_per_pixel) { in cyber2000_accel_clear()
339 switch (cfb->fb.var.bits_per_pixel) { in cyber2000_setcolreg()
549 cyber2000fb_update_start(struct cfb_info *cfb, struct fb_var_screeninfo *var) in cyber2000fb_update_start() argument
553 base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start()
[all …]
Dpmag-ba-fb.c96 static void pmagbafb_encode_var(struct fb_var_screeninfo *var, in pmagbafb_encode_var() argument
100 var->xres = 1024; in pmagbafb_encode_var()
101 var->yres = 864; in pmagbafb_encode_var()
102 var->xres_virtual = 1024; in pmagbafb_encode_var()
103 var->yres_virtual = 864; in pmagbafb_encode_var()
104 var->xoffset = 0; in pmagbafb_encode_var()
105 var->yoffset = 0; in pmagbafb_encode_var()
106 var->bits_per_pixel = 8; in pmagbafb_encode_var()
107 var->grayscale = 0; in pmagbafb_encode_var()
108 var->red.offset = 0; in pmagbafb_encode_var()
[all …]
Dpmagb-b-fb.c99 static void pmagbbfb_encode_var(struct fb_var_screeninfo *var, in pmagbbfb_encode_var() argument
103 var->xres = 1280; in pmagbbfb_encode_var()
104 var->yres = 1024; in pmagbbfb_encode_var()
105 var->xres_virtual = 1280; in pmagbbfb_encode_var()
106 var->yres_virtual = 1024; in pmagbbfb_encode_var()
107 var->xoffset = 0; in pmagbbfb_encode_var()
108 var->yoffset = 0; in pmagbbfb_encode_var()
109 var->bits_per_pixel = 8; in pmagbbfb_encode_var()
110 var->grayscale = 0; in pmagbbfb_encode_var()
111 var->red.offset = 0; in pmagbbfb_encode_var()
[all …]
Dvirgefb.c218 struct fb_var_screeninfo var; member
255 int (*decode_var)(struct fb_var_screeninfo *var, struct virgefb_par *par);
256 int (*encode_var)(struct fb_var_screeninfo *var, struct virgefb_par *par);
313 struct fb_var_screeninfo var; member
650 static int virgefb_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info);
651 static int virgefb_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info);
687 static int virgefb_decode_var(struct fb_var_screeninfo *var,
689 static int virgefb_encode_var(struct fb_var_screeninfo *var,
708 static int virgefb_do_fb_set_var(struct fb_var_screeninfo *var, int isactive);
712 static void virgefb_set_video(struct fb_var_screeninfo *var);
[all …]
Doffb.c62 struct fb_var_screeninfo var; member
94 static int offb_get_var(struct fb_var_screeninfo *var, int con,
96 static int offb_set_var(struct fb_var_screeninfo *var, int con,
158 static int offb_get_var(struct fb_var_screeninfo *var, int con, in offb_get_var() argument
163 memcpy(var, &info2->var, sizeof(struct fb_var_screeninfo)); in offb_get_var()
172 static int offb_set_var(struct fb_var_screeninfo *var, int con, in offb_set_var() argument
178 int activate = var->activate; in offb_set_var()
186 if (var->xres > info2->var.xres || var->yres > info2->var.yres || in offb_set_var()
187 var->xres_virtual > info2->var.xres_virtual || in offb_set_var()
188 var->yres_virtual > info2->var.yres_virtual || in offb_set_var()
[all …]
Dvga16fb.c78 struct fb_var_screeninfo var; member
109 static void vga16fb_pan_var(struct fb_info *info, struct fb_var_screeninfo *var) in vga16fb_pan_var() argument
111 u32 pos = (var->xres_virtual * var->yoffset + var->xoffset) >> 3; in vga16fb_pan_var()
128 vga16fb_pan_var(info, &fb_display[con].var); in vga16fb_update_var()
152 fix->line_length = p->var.xres_virtual / 8; in vga16fb_get_fix()
156 static int vga16fb_get_var(struct fb_var_screeninfo *var, int con, in vga16fb_get_var() argument
160 memcpy(var, &vga16fb_defined, sizeof(struct fb_var_screeninfo)); in vga16fb_get_var()
162 *var=fb_display[con].var; in vga16fb_get_var()
197 static void vga16fb_encode_var(struct fb_var_screeninfo *var, in vga16fb_encode_var() argument
201 *var = par->var; in vga16fb_encode_var()
[all …]
Dchipsfb.c56 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); \
[all …]
Dhpfb.c80 static void hpfb_encode_var(struct fb_var_screeninfo *var, in hpfb_encode_var() argument
84 var->xres=1024; in hpfb_encode_var()
85 var->yres=768; in hpfb_encode_var()
86 var->xres_virtual=1024; in hpfb_encode_var()
87 var->yres_virtual=768; in hpfb_encode_var()
88 var->xoffset=0; in hpfb_encode_var()
89 var->yoffset=0; in hpfb_encode_var()
90 var->bits_per_pixel = 1; in hpfb_encode_var()
91 var->grayscale=0; in hpfb_encode_var()
92 var->transp.offset=0; in hpfb_encode_var()
[all …]
Dcyberfb.c116 struct fb_var_screeninfo var; member
157 struct fb_var_screeninfo var; member
244 static int cyberfb_get_var(struct fb_var_screeninfo *var, int con,
246 static int cyberfb_set_var(struct fb_var_screeninfo *var, int con,
292 static int Cyber_decode_var(struct fb_var_screeninfo *var,
294 static int Cyber_encode_var(struct fb_var_screeninfo *var,
307 static int do_fb_set_var(struct fb_var_screeninfo *var, int isactive);
408 if (par->var.bits_per_pixel == 15 || par->var.bits_per_pixel == 16 || in Cyber_encode_fix()
409 par->var.bits_per_pixel == 24 || par->var.bits_per_pixel == 32) { in Cyber_encode_fix()
431 static int Cyber_decode_var(struct fb_var_screeninfo *var, in Cyber_decode_var() argument
[all …]
/linux-2.4.37.9/include/linux/
Dintermezzo_lib.h59 # define NTOH__u32(var) le32_to_cpu(var) argument
60 # define NTOH__u64(var) le64_to_cpu(var) argument
61 # define HTON__u32(var) cpu_to_le32(var) argument
62 # define HTON__u64(var) cpu_to_le64(var) argument
65 # define NTOH__u32(var) GUINT32_FROM_LE(var) argument
66 # define NTOH__u64(var) GUINT64_FROM_LE(var) argument
67 # define HTON__u32(var) GUINT32_TO_LE(var) argument
68 # define HTON__u64(var) GUINT64_TO_LE(var) argument
75 #define UNLOGV(var,type,ptr,end) \ argument
77 var = *(type *)ptr; \
[all …]
/linux-2.4.37.9/drivers/video/matrox/
Dmatroxfb_crtc2.c54 if (p->var.grayscale) { in matroxfb_dh_setcolreg()
58 red = CNVT_TOHW(red, p->var.red.length); in matroxfb_dh_setcolreg()
59 green = CNVT_TOHW(green, p->var.green.length); in matroxfb_dh_setcolreg()
60 blue = CNVT_TOHW(blue, p->var.blue.length); in matroxfb_dh_setcolreg()
61 transp = CNVT_TOHW(transp, p->var.transp.length); in matroxfb_dh_setcolreg()
63 switch (p->var.bits_per_pixel) { in matroxfb_dh_setcolreg()
67 (red << p->var.red.offset) | in matroxfb_dh_setcolreg()
68 (green << p->var.green.offset) | in matroxfb_dh_setcolreg()
69 (blue << p->var.blue.offset) | in matroxfb_dh_setcolreg()
70 (transp << p->var.transp.offset); in matroxfb_dh_setcolreg()
[all …]
/linux-2.4.37.9/drivers/video/intel/
Dintelfbdrv.c154 static int intelfb_get_var(struct fb_var_screeninfo *var, int con,
157 static int intelfb_set_var(struct fb_var_screeninfo *var, int con,
182 struct fb_var_screeninfo *var, u32 bpp);
184 struct fb_var_screeninfo *var,
188 struct fb_var_screeninfo *var, struct display *disp);
438 intelfb_var_to_depth(const struct fb_var_screeninfo *var) in intelfb_var_to_depth() argument
442 var->bits_per_pixel, var->green.length); in intelfb_var_to_depth()
445 switch (var->bits_per_pixel) { in intelfb_var_to_depth()
447 return (var->green.length == 6) ? 16 : 15; in intelfb_var_to_depth()
451 return var->bits_per_pixel; in intelfb_var_to_depth()
[all …]

12345678