Lines Matching refs:var

49 	if (info->var.bits_per_pixel <= 8) {  in vt8500lcd_set_par()
51 info->var.red.offset = 0; in vt8500lcd_set_par()
52 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
53 info->var.red.msb_right = 0; in vt8500lcd_set_par()
55 info->var.green.offset = 0; in vt8500lcd_set_par()
56 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
57 info->var.green.msb_right = 0; in vt8500lcd_set_par()
59 info->var.blue.offset = 0; in vt8500lcd_set_par()
60 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
61 info->var.blue.msb_right = 0; in vt8500lcd_set_par()
63 info->var.transp.offset = 0; in vt8500lcd_set_par()
64 info->var.transp.length = 0; in vt8500lcd_set_par()
65 info->var.transp.msb_right = 0; in vt8500lcd_set_par()
68 info->fix.line_length = info->var.xres_virtual / in vt8500lcd_set_par()
69 (8/info->var.bits_per_pixel); in vt8500lcd_set_par()
72 info->var.transp.offset = 0; in vt8500lcd_set_par()
73 info->var.transp.length = 0; in vt8500lcd_set_par()
74 info->var.transp.msb_right = 0; in vt8500lcd_set_par()
76 if (info->var.bits_per_pixel == 16) { in vt8500lcd_set_par()
78 info->var.red.offset = 11; in vt8500lcd_set_par()
79 info->var.red.length = 5; in vt8500lcd_set_par()
80 info->var.red.msb_right = 0; in vt8500lcd_set_par()
81 info->var.green.offset = 5; in vt8500lcd_set_par()
82 info->var.green.length = 6; in vt8500lcd_set_par()
83 info->var.green.msb_right = 0; in vt8500lcd_set_par()
84 info->var.blue.offset = 0; in vt8500lcd_set_par()
85 info->var.blue.length = 5; in vt8500lcd_set_par()
86 info->var.blue.msb_right = 0; 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()
92 info->var.red.msb_right = 0; 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()
95 info->var.green.msb_right = 0; in vt8500lcd_set_par()
96 info->var.blue.offset = 0; in vt8500lcd_set_par()
97 info->var.blue.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
98 info->var.blue.msb_right = 0; in vt8500lcd_set_par()
102 info->fix.line_length = info->var.bits_per_pixel > 16 ? in vt8500lcd_set_par()
103 info->var.xres_virtual << 2 : in vt8500lcd_set_par()
104 info->var.xres_virtual << 1; in vt8500lcd_set_par()
108 if (bpp_values[i] == info->var.bits_per_pixel) in vt8500lcd_set_par()
116 writel((((info->var.hsync_len - 1) & 0x3f) << 26) in vt8500lcd_set_par()
117 | ((info->var.left_margin & 0xff) << 18) in vt8500lcd_set_par()
118 | (((info->var.xres - 1) & 0x3ff) << 8) in vt8500lcd_set_par()
119 | (info->var.right_margin & 0xff), fbi->regbase + 0x4); in vt8500lcd_set_par()
120 writel((((info->var.vsync_len - 1) & 0x3f) << 26) in vt8500lcd_set_par()
121 | ((info->var.upper_margin & 0xff) << 18) in vt8500lcd_set_par()
122 | (((info->var.yres - 1) & 0x3ff) << 8) in vt8500lcd_set_par()
123 | (info->var.lower_margin & 0xff), fbi->regbase + 0x8); in vt8500lcd_set_par()
124 writel((((info->var.yres - 1) & 0x400) << 2) in vt8500lcd_set_par()
125 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10); in vt8500lcd_set_par()
148 if (info->var.grayscale) in vt8500lcd_setcolreg()
157 val = chan_to_field(red, &fbi->fb.var.red); in vt8500lcd_setcolreg()
158 val |= chan_to_field(green, &fbi->fb.var.green); in vt8500lcd_setcolreg()
159 val |= chan_to_field(blue, &fbi->fb.var.blue); in vt8500lcd_setcolreg()
200 static int vt8500lcd_pan_display(struct fb_var_screeninfo *var, in vt8500lcd_pan_display() argument
203 unsigned pixlen = info->fix.line_length / info->var.xres_virtual; in vt8500lcd_pan_display()
204 unsigned off = pixlen * var->xoffset in vt8500lcd_pan_display()
205 + info->fix.line_length * var->yoffset; in vt8500lcd_pan_display()
209 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20) in vt8500lcd_pan_display()
296 fbi->fb.var.nonstd = 0; in vt8500lcd_probe()
297 fbi->fb.var.activate = FB_ACTIVATE_NOW; in vt8500lcd_probe()
298 fbi->fb.var.height = -1; in vt8500lcd_probe()
299 fbi->fb.var.width = -1; in vt8500lcd_probe()
300 fbi->fb.var.vmode = FB_VMODE_NONINTERLACED; in vt8500lcd_probe()
395 fb_videomode_to_var(&fbi->fb.var, &of_mode); in vt8500lcd_probe()
397 fbi->fb.var.xres_virtual = of_mode.xres; in vt8500lcd_probe()
398 fbi->fb.var.yres_virtual = of_mode.yres * 2; in vt8500lcd_probe()
399 fbi->fb.var.bits_per_pixel = bpp; in vt8500lcd_probe()