Home
last modified time | relevance | path

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

12345678910>>...24

/linux-5.3.11/drivers/video/fbdev/mmp/fb/
H 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()
284 if (var->xoffset + var->xres > var->xres_virtual) in mmpfb_check_var()
286 if (var->yoffset + var->yres > var->yres_virtual) in mmpfb_check_var()
342 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_pan_display()
374 var->yres_virtual = var->yres * 2; in var_update()
421 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_set_par()
[all …]
/linux-5.3.11/drivers/video/fbdev/
H 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 …]
H 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 …]
H A Dpxa168fb.c51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
175 var->xres_virtual = max(var->xres, var->xres_virtual); in set_mode()
180 var->yres_virtual = max(var->yres, var->yres_virtual); in set_mode()
213 if (var->xoffset + var->xres > var->xres_virtual) in pxa168fb_check_var()
215 if (var->yoffset + var->yres > var->yres_virtual) in pxa168fb_check_var()
217 if (var->xres + var->right_margin + in pxa168fb_check_var()
220 if (var->yres + var->lower_margin + in pxa168fb_check_var()
581 var->xres_virtual = var->xres; in pxa168fb_init_mode()
585 var->xres, var->yres); in pxa168fb_init_mode()
588 total_w = var->xres + var->left_margin + var->right_margin + in pxa168fb_init_mode()
[all …]
H A Dfb-puv3.c352 var->xoffset = info->var.xoffset; in unifb_check_var()
353 var->yoffset = info->var.yoffset; in unifb_check_var()
363 if (var->xres > var->xres_virtual) in unifb_check_var()
364 var->xres_virtual = var->xres; in unifb_check_var()
366 var->yres_virtual = var->yres; in unifb_check_var()
380 if (var->xres_virtual < var->xoffset + var->xres) in unifb_check_var()
381 var->xres_virtual = var->xoffset + var->xres; in unifb_check_var()
382 if (var->yres_virtual < var->yoffset + var->yres) in unifb_check_var()
383 var->yres_virtual = var->yoffset + var->yres; in unifb_check_var()
626 if (var->xoffset + info->var.xres > info->var.xres_virtual || in unifb_pan_display()
[all …]
H 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()
463 var->xoffset = var->yoffset = 0; in pvr2fb_check_var()
465 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var()
466 var->yoffset > var->yres_virtual - var->yres || in pvr2fb_check_var()
471 var->xoffset = var->yoffset = 0; in pvr2fb_check_var()
504 hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2fb_check_var()
506 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var()
[all …]
H A Dacornfb.c137 vcr = var->vsync_len + var->upper_margin + var->yres + in acornfb_set_timing()
157 fsize = var->vsync_len + var->upper_margin + var->lower_margin - 1; in acornfb_set_timing()
327 var->xres_virtual = var->xres; in acornfb_adjust_timing()
343 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing()
381 var->yres = var->yres_virtual; in acornfb_adjust_timing()
387 if (var->yoffset + var->yres > var->yres_virtual) in acornfb_adjust_timing()
388 var->yoffset = var->yres_virtual - var->yres; in acornfb_adjust_timing()
427 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing()
429 (var->yres + var->upper_margin + var->lower_margin + var->vsync_len); in acornfb_validate_timing()
467 var->green = var->red; in acornfb_check_var()
[all …]
H 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 …]
H 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 …]
H A Datafb.c732 var->blue = var->green = var->red; in tt_encode_var()
738 var->yres_virtual = var->yres; in tt_encode_var()
747 var->yres_virtual = 2 * var->yres; in tt_encode_var()
1452 var->blue = var->green = var->red; in falcon_encode_var()
1467 var->yres_virtual = 2 * var->yres; in falcon_encode_var()
1519 var->right_margin -= var->hsync_len; in falcon_encode_var()
1918 var->blue = var->green = var->red; in stste_encode_var()
1927 var->yres_virtual = var->yres; in stste_encode_var()
2178 var->blue = var->green = var->red; in ext_encode_var()
2182 var->yres_virtual = var->yres; in ext_encode_var()
[all …]
H 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 …]
H 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 …]
H A Dnuc900fb.c115 var->xres, var->yres, var->bits_per_pixel); in nuc900fb_check_var()
150 var->red.length = var->bits_per_pixel; in nuc900fb_check_var()
151 var->green = var->red; in nuc900fb_check_var()
152 var->blue = var->red; in nuc900fb_check_var()
197 const struct fb_var_screeninfo *var = &info->var; in nuc900fb_calculate_lcd_regs() local
198 int vtt = var->height + var->upper_margin + var->lower_margin; in nuc900fb_calculate_lcd_regs()
199 int htt = var->width + var->left_margin + var->right_margin; in nuc900fb_calculate_lcd_regs()
200 int hsync = var->width + var->right_margin; in nuc900fb_calculate_lcd_regs()
201 int vsync = var->height + var->lower_margin; in nuc900fb_calculate_lcd_regs()
224 struct fb_var_screeninfo *var = &info->var; in nuc900fb_activate_var() local
[all …]
H 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 …]
H 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 …]
H 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 …]
H A Ds3c2410fb.c153 var->xres, var->yres, var->bits_per_pixel); in s3c2410fb_check_var()
184 var->red.length = var->bits_per_pixel; in s3c2410fb_check_var()
185 var->green = var->red; in s3c2410fb_check_var()
186 var->blue = var->red; in s3c2410fb_check_var()
200 var->green = var->red; in s3c2410fb_check_var()
201 var->blue = var->red; in s3c2410fb_check_var()
290 var->left_margin, var->right_margin, var->hsync_len); in s3c2410fb_calculate_stn_lcd_regs()
351 var->upper_margin, var->lower_margin, var->vsync_len); in s3c2410fb_calculate_tft_lcd_regs()
354 var->left_margin, var->right_margin, var->hsync_len); in s3c2410fb_calculate_tft_lcd_regs()
378 struct fb_var_screeninfo *var = &info->var; in s3c2410fb_activate_var() local
[all …]
H A Dps3fb.c343 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode()
344 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode()
379 if (var->xres_virtual < var->xres) in ps3fb_find_mode()
380 var->xres_virtual = var->xres; in ps3fb_find_mode()
381 if (var->yres_virtual < var->yres) in ps3fb_find_mode()
382 var->yres_virtual = var->yres; in ps3fb_find_mode()
403 var->left_margin, var->xres, var->right_margin); in ps3fb_find_mode()
414 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode()
548 if (var->xoffset + var->xres > var->xres_virtual || in ps3fb_check_var()
549 var->yoffset + var->yres > var->yres_virtual) { in ps3fb_check_var()
[all …]
/linux-5.3.11/include/linux/amba/
H 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-5.3.11/arch/x86/include/asm/
H A Dpercpu.h30 lea var(reg), reg
31 #define PER_CPU_VAR(var) %__percpu_seg:var argument
33 #define PER_CPU(var, reg) __percpu_mov_op $var, reg argument
34 #define PER_CPU_VAR(var) var argument
38 #define INIT_PER_CPU_VAR(var) init_per_cpu__##var argument
40 #define INIT_PER_CPU_VAR(var) var argument
78 extern typeof(var) init_per_cpu_var(var)
81 #define init_per_cpu_var(var) init_per_cpu__##var argument
83 #define init_per_cpu_var(var) var argument
392 #define this_cpu_read_stable(var) percpu_stable_op("mov", var) argument
[all …]
/linux-5.3.11/drivers/media/pci/ivtv/
H 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-5.3.11/drivers/video/fbdev/core/
H 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-5.3.11/drivers/video/fbdev/omap2/omapfb/
H 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-5.3.11/drivers/video/fbdev/i810/
H 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-5.3.11/drivers/video/fbdev/matrox/
H 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 …]

Completed in 1179 milliseconds

12345678910>>...24