Home
last modified time | relevance | path

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

12345678910>>...85

/linux/drivers/video/fbdev/
A D68328fb.c144 var->xoffset = info->var.xoffset; in mc68x328fb_check_var()
145 var->yoffset = info->var.yoffset; in mc68x328fb_check_var()
155 if (var->xres > var->xres_virtual) in mc68x328fb_check_var()
156 var->xres_virtual = var->xres; in mc68x328fb_check_var()
158 var->yres_virtual = var->yres; in mc68x328fb_check_var()
172 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var()
173 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var()
174 if (var->yres_virtual < var->yoffset + var->yres) in mc68x328fb_check_var()
175 var->yres_virtual = var->yoffset + var->yres; in mc68x328fb_check_var()
375 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display()
[all …]
A Dpxa168fb.c51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
171 var->xres_virtual = max(var->xres, var->xres_virtual); in set_mode()
176 var->yres_virtual = max(var->yres, var->yres_virtual); in set_mode()
209 if (var->xoffset + var->xres > var->xres_virtual) in pxa168fb_check_var()
211 if (var->yoffset + var->yres > var->yres_virtual) in pxa168fb_check_var()
213 if (var->xres + var->right_margin + in pxa168fb_check_var()
216 if (var->yres + var->lower_margin + in pxa168fb_check_var()
576 var->xres_virtual = var->xres; in pxa168fb_init_mode()
580 var->xres, var->yres); in pxa168fb_init_mode()
583 total_w = var->xres + var->left_margin + var->right_margin + in pxa168fb_init_mode()
[all …]
A Dvfb.c128 var->xoffset = info->var.xoffset; in vfb_check_var()
129 var->yoffset = info->var.yoffset; in vfb_check_var()
139 if (var->xres > var->xres_virtual) in vfb_check_var()
140 var->xres_virtual = var->xres; in vfb_check_var()
142 var->yres_virtual = var->yres; in vfb_check_var()
156 if (var->xres_virtual < var->xoffset + var->xres) in vfb_check_var()
157 var->xres_virtual = var->xoffset + var->xres; in vfb_check_var()
158 if (var->yres_virtual < var->yoffset + var->yres) in vfb_check_var()
159 var->yres_virtual = var->yoffset + var->yres; in vfb_check_var()
367 if (var->xoffset + info->var.xres > info->var.xres_virtual || in vfb_pan_display()
[all …]
A Dacornfb.c136 vcr = var->vsync_len + var->upper_margin + var->yres + in acornfb_set_timing()
156 fsize = var->vsync_len + var->upper_margin + var->lower_margin - 1; in acornfb_set_timing()
326 var->xres_virtual = var->xres; in acornfb_adjust_timing()
342 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing()
380 var->yres = var->yres_virtual; in acornfb_adjust_timing()
386 if (var->yoffset + var->yres > var->yres_virtual) in acornfb_adjust_timing()
387 var->yoffset = var->yres_virtual - var->yres; in acornfb_adjust_timing()
426 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing()
428 (var->yres + var->upper_margin + var->lower_margin + var->vsync_len); in acornfb_validate_timing()
466 var->green = var->red; in acornfb_check_var()
[all …]
A Dpvr2fb.c446 if (var->xres_virtual < var->xres) in pvr2fb_check_var()
447 var->xres_virtual = var->xres; in pvr2fb_check_var()
448 if (var->yres_virtual < var->yres) in pvr2fb_check_var()
449 var->yres_virtual = var->yres; in pvr2fb_check_var()
461 if (var->xoffset || var->yoffset >= var->yres_virtual) { in pvr2fb_check_var()
464 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var()
465 var->yoffset > var->yres_virtual - var->yres) in pvr2fb_check_var()
469 var->xoffset = var->yoffset = 0; in pvr2fb_check_var()
502 hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2fb_check_var()
504 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var()
[all …]
A Datafb.c723 var->blue = var->green = var->red; in tt_encode_var()
729 var->yres_virtual = var->yres; in tt_encode_var()
738 var->yres_virtual = 2 * var->yres; in tt_encode_var()
1443 var->blue = var->green = var->red; in falcon_encode_var()
1458 var->yres_virtual = 2 * var->yres; in falcon_encode_var()
1510 var->right_margin -= var->hsync_len; in falcon_encode_var()
1909 var->blue = var->green = var->red; in stste_encode_var()
1918 var->yres_virtual = var->yres; in stste_encode_var()
2169 var->blue = var->green = var->red; in ext_encode_var()
2173 var->yres_virtual = var->yres; in ext_encode_var()
[all …]
A Docfb.c106 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_setupfb() local
133 hlen = var->left_margin + var->right_margin + var->hsync_len + in ocfb_setupfb()
134 var->xres; in ocfb_setupfb()
136 vlen = var->upper_margin + var->lower_margin + var->vsync_len + in ocfb_setupfb()
137 var->yres; in ocfb_setupfb()
213 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_init_fix() local
218 fix->line_length = var->xres * var->bits_per_pixel/8; in ocfb_init_fix()
222 if (var->bits_per_pixel == 8 && !var->grayscale) in ocfb_init_fix()
232 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_init_var() local
236 var->xres_virtual = var->xres; in ocfb_init_var()
[all …]
A Dmacmodes.c238 var->red.offset = 0; in mac_vmode_to_var()
242 var->blue.offset = 0; in mac_vmode_to_var()
243 var->blue.length = 8; in mac_vmode_to_var()
248 var->red.offset = 10; in mac_vmode_to_var()
249 var->red.length = 5; in mac_vmode_to_var()
252 var->blue.offset = 0; in mac_vmode_to_var()
259 var->red.length = 8; in mac_vmode_to_var()
275 var->height = -1; in mac_vmode_to_var()
276 var->width = -1; in mac_vmode_to_var()
324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode()
[all …]
A Dgrvga.c84 if (!var->xres) in grvga_check_var()
85 var->xres = 1; in grvga_check_var()
86 if (!var->yres) in grvga_check_var()
87 var->yres = 1; in grvga_check_var()
99 var->xres_virtual = var->xres; in grvga_check_var()
100 var->yres_virtual = 2*var->yres; in grvga_check_var()
103 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var()
159 …__raw_writel(((info->var.yres + info->var.lower_margin + info->var.upper_margin + info->var.vsync_… in grvga_set_par()
160 (info->var.xres + info->var.right_margin + info->var.left_margin + info->var.hsync_len - 1), in grvga_set_par()
417 grvga_mem_size = info->var.xres_virtual * info->var.yres_virtual * info->var.bits_per_pixel/8; in grvga_probe()
[all …]
A Dvt8500lcdfb.c52 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
56 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
60 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
89 info->var.red.offset = info->var.bits_per_pixel in vt8500lcd_set_par()
91 info->var.red.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
93 info->var.green.offset = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
94 info->var.green.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
97 info->var.blue.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
148 if (info->var.grayscale) in vt8500lcd_setcolreg()
209 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20) in vt8500lcd_pan_display()
[all …]
A Dgxt4500.c286 if (var->xres + var->xoffset > var->xres_virtual || in gxt4500_var_to_par()
287 var->yres + var->yoffset > var->yres_virtual || in gxt4500_var_to_par()
353 var->red.offset = var->green.offset + var->green.length; in gxt4500_unpack_pixfmt()
429 htot = var->xres + var->left_margin + var->right_margin + in gxt4500_set_par()
435 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par()
437 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par()
439 var->yres + var->upper_margin + var->lower_margin + in gxt4500_set_par()
444 var->yres + var->lower_margin + var->vsync_len - 1); in gxt4500_set_par()
555 if (var->xoffset + info->var.xres > info->var.xres_virtual || in gxt4500_pan_display()
556 var->yoffset + info->var.yres > info->var.yres_virtual) in gxt4500_pan_display()
[all …]
A Dep93xx-fb.c232 vlines_total = info->var.yres + info->var.upper_margin + in ep93xxfb_set_timing()
233 info->var.lower_margin + info->var.vsync_len - 1; in ep93xxfb_set_timing()
235 hclks_total = info->var.xres + info->var.left_margin + in ep93xxfb_set_timing()
236 info->var.right_margin + info->var.hsync_len - 1; in ep93xxfb_set_timing()
299 var->xres = max_t(unsigned int, var->xres, EP93XXFB_MIN_XRES); in ep93xxfb_check_var()
300 var->xres = min_t(unsigned int, var->xres, EP93XXFB_MAX_XRES); in ep93xxfb_check_var()
301 var->xres_virtual = max(var->xres_virtual, var->xres); in ep93xxfb_check_var()
303 var->yres = max_t(unsigned int, var->yres, EP93XXFB_MIN_YRES); in ep93xxfb_check_var()
304 var->yres = min_t(unsigned int, var->yres, EP93XXFB_MAX_YRES); in ep93xxfb_check_var()
305 var->yres_virtual = max(var->yres_virtual, var->yres); in ep93xxfb_check_var()
[all …]
A Ds3c2410fb.c148 var->xres, var->yres, var->bits_per_pixel); in s3c2410fb_check_var()
179 var->red.length = var->bits_per_pixel; in s3c2410fb_check_var()
180 var->green = var->red; in s3c2410fb_check_var()
181 var->blue = var->red; in s3c2410fb_check_var()
195 var->green = var->red; in s3c2410fb_check_var()
196 var->blue = var->red; in s3c2410fb_check_var()
285 var->left_margin, var->right_margin, var->hsync_len); in s3c2410fb_calculate_stn_lcd_regs()
346 var->upper_margin, var->lower_margin, var->vsync_len); in s3c2410fb_calculate_tft_lcd_regs()
349 var->left_margin, var->right_margin, var->hsync_len); in s3c2410fb_calculate_tft_lcd_regs()
373 struct fb_var_screeninfo *var = &info->var; in s3c2410fb_activate_var() local
[all …]
A Dgoldfishfb.c92 if ((var->xres != info->var.yres) || in goldfish_fb_check_var()
93 (var->yres != info->var.xres) || in goldfish_fb_check_var()
94 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var()
95 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var()
96 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var()
100 if ((var->xres != info->var.xres) || in goldfish_fb_check_var()
101 (var->yres != info->var.yres) || in goldfish_fb_check_var()
102 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var()
104 (var->yres_virtual < info->var.yres)) { in goldfish_fb_check_var()
108 if ((var->xoffset != info->var.xoffset) || in goldfish_fb_check_var()
[all …]
A Dps3fb.c344 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode()
345 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode()
380 if (var->xres_virtual < var->xres) in ps3fb_find_mode()
381 var->xres_virtual = var->xres; in ps3fb_find_mode()
382 if (var->yres_virtual < var->yres) in ps3fb_find_mode()
383 var->yres_virtual = var->yres; in ps3fb_find_mode()
404 var->left_margin, var->xres, var->right_margin); in ps3fb_find_mode()
415 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode()
549 if (var->xoffset + var->xres > var->xres_virtual || in ps3fb_check_var()
550 var->yoffset + var->yres > var->yres_virtual) { in ps3fb_check_var()
[all …]
A Dcyber2000fb.c538 u_int base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start()
587 Hsyncend = (var->xres + var->right_margin + var->hsync_len) >> 3; in cyber2000fb_decode_crtc()
594 Vsyncend = var->yres + var->lower_margin + var->vsync_len; in cyber2000fb_decode_crtc()
595 Vtotal = var->yres + var->lower_margin + var->vsync_len + in cyber2000fb_decode_crtc()
841 if (var->yres > var->yres_virtual) in cyber2000fb_check_var()
842 var->yres = var->yres_virtual; in cyber2000fb_check_var()
843 if (var->xres > var->xres_virtual) in cyber2000fb_check_var()
844 var->xres = var->xres_virtual; in cyber2000fb_check_var()
974 cfb->fb.var.xoffset = var->xoffset; in cyber2000fb_pan_display()
975 cfb->fb.var.yoffset = var->yoffset; in cyber2000fb_pan_display()
[all …]
A Dsa1100fb.c382 var->xres_virtual = max(var->xres_virtual, var->xres); in sa1100fb_check_var()
383 var->yres_virtual = max(var->yres_virtual, var->yres); in sa1100fb_check_var()
410 var->red.length, var->green.length, var->blue.length, in sa1100fb_check_var()
414 var->red.offset, var->green.offset, var->blue.offset, in sa1100fb_check_var()
440 struct fb_var_screeninfo *var = &info->var; in sa1100fb_set_par() local
619 var->xres, var->hsync_len, in sa1100fb_activate_var()
620 var->left_margin, var->right_margin); in sa1100fb_activate_var()
622 var->yres, var->vsync_len, in sa1100fb_activate_var()
623 var->upper_margin, var->lower_margin); in sa1100fb_activate_var()
626 if (var->xres < 16 || var->xres > 1024) in sa1100fb_activate_var()
[all …]
/linux/drivers/video/fbdev/mmp/fb/
A Dmmpfb.c27 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
38 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
63 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
83 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
282 if (var->xoffset + var->xres > var->xres_virtual) in mmpfb_check_var()
284 if (var->yoffset + var->yres > var->yres_virtual) in mmpfb_check_var()
340 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_pan_display()
372 var->yres_virtual = var->yres * 2; in var_update()
419 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_set_par()
[all …]
/linux/drivers/media/pci/ivtv/
A Divtvfb.c600 var->xres, var->yres, in ivtvfb_set_var()
711 var->xres, var->yres); in _ivtvfb_check_var()
718 var->xres_virtual < var->xres || in _ivtvfb_check_var()
719 var->yres_virtual < var->yres) { in _ivtvfb_check_var()
750 if (var->xoffset >= var->xres_virtual || var->yoffset >= var->yres_virtual) { in _ivtvfb_check_var()
752 var->xoffset, var->xres_virtual, var->yoffset, var->yres_virtual); in _ivtvfb_check_var()
781 var->right_margin = hlimit - var->left_margin - var->xres; in _ivtvfb_check_var()
782 var->lower_margin = vlimit - var->upper_margin - var->yres; in _ivtvfb_check_var()
800 var->xres, var->yres, in _ivtvfb_check_var()
825 if (var->yoffset + info->var.yres > info->var.yres_virtual || in ivtvfb_pan_display()
[all …]
/linux/include/linux/amba/
A Dclcd.h145 struct fb_var_screeninfo *var = &fb->fb.var; in clcdfb_decode() local
157 val = var->yres; in clcdfb_decode()
185 if (var->grayscale) in clcdfb_decode()
244 var->xres_virtual = var->xres = (var->xres + 15) & ~15; in clcdfb_check()
245 var->yres_virtual = var->yres = (var->yres + 1) & ~1; in clcdfb_check()
247 #define CHECK(e,l,h) (var->e < l || var->e > h) in clcdfb_check()
255 var->yres > 1024) in clcdfb_check()
266 if (var->grayscale != fb->fb.var.grayscale || in clcdfb_check()
270 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check()
286 var->nonstd = 0; in clcdfb_check()
[all …]
/linux/drivers/video/fbdev/core/
A Dsvgalib.c447 var->xres = (var->xres+7)&~7; in svga_check_timings()
453 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
470 value = var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings()
480 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
497 value = var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings()
517 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
532 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings()
542 value = var->xres + var->right_margin + var->hsync_len; in svga_set_timings()
547 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
562 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings()
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/
A Domapfb-main.c381 var->xres_virtual = var->xres; in check_fb_res_bounds()
384 var->yres_virtual = var->yres; in check_fb_res_bounds()
399 var->xres = var->xres_virtual; in check_fb_res_bounds()
401 var->yres = var->yres_virtual; in check_fb_res_bounds()
417 var->yres = var->yres_virtual; in shrink_height()
431 var->xres = var->xres_virtual; in shrink_width()
689 if (var->xres + var->xoffset > var->xres_virtual) in check_fb_var()
690 var->xoffset = var->xres_virtual - var->xres; in check_fb_var()
691 if (var->yres + var->yoffset > var->yres_virtual) in check_fb_var()
692 var->yoffset = var->yres_virtual - var->yres; in check_fb_var()
[all …]
/linux/drivers/video/fbdev/matrox/
A Dmatroxfb_crtc2.c175 m2info->fbcon.var.xoffset = var->xoffset; in matroxfb_dh_pan_var()
176 m2info->fbcon.var.yoffset = var->yoffset; in matroxfb_dh_pan_var()
206 if (var->yres_virtual < var->yres) in matroxfb_dh_decode_var()
207 var->yres_virtual = var->yres; in matroxfb_dh_decode_var()
208 if (var->xres_virtual < var->xres) in matroxfb_dh_decode_var()
209 var->xres_virtual = var->xres; in matroxfb_dh_decode_var()
213 memlen = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel >> 3); in matroxfb_dh_decode_var()
216 if (var->xoffset + var->xres > var->xres_virtual) in matroxfb_dh_decode_var()
217 var->xoffset = var->xres_virtual - var->xres; in matroxfb_dh_decode_var()
218 if (var->yoffset + var->yres > var->yres_virtual) in matroxfb_dh_decode_var()
[all …]
/linux/drivers/video/fbdev/i810/
A Di810_gtf.c133 n = ((xres + var->right_margin + var->hsync_len + 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()
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()
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()
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()
[all …]
/linux/drivers/video/fbdev/mb862xx/
A Dmb862xxfbdrv.c44 return var->xres + var->left_margin + in h_total()
45 var->right_margin + var->hsync_len; in h_total()
50 return var->yres + var->upper_margin + in v_total()
51 var->lower_margin + var->vsync_len; in v_total()
56 return var->xres + var->right_margin - 1; in hsp()
61 return var->yres + var->lower_margin - 1; in vsp()
66 return var->xres * var->bits_per_pixel / 8; in d_pitch()
163 var->red.length = var->bits_per_pixel; in mb862xxfb_check_var()
164 var->green.length = var->bits_per_pixel; in mb862xxfb_check_var()
165 var->blue.length = var->bits_per_pixel; in mb862xxfb_check_var()
[all …]

Completed in 85 milliseconds

12345678910>>...85