Lines Matching full:var

78 		fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) |  in goldfish_fb_setcolreg()
79 convert_bitfield(blue, &fb->fb.var.blue) | in goldfish_fb_setcolreg()
80 convert_bitfield(green, &fb->fb.var.green) | in goldfish_fb_setcolreg()
81 convert_bitfield(red, &fb->fb.var.red); in goldfish_fb_setcolreg()
88 static int goldfish_fb_check_var(struct fb_var_screeninfo *var, in goldfish_fb_check_var() argument
91 if ((var->rotate & 1) != (info->var.rotate & 1)) { in goldfish_fb_check_var()
92 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()
103 (var->yres_virtual > info->var.yres * 2) || 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()
109 (var->bits_per_pixel != info->var.bits_per_pixel) || in goldfish_fb_check_var()
110 (var->grayscale != info->var.grayscale)) { in goldfish_fb_check_var()
120 if (fb->rotation != fb->fb.var.rotate) { in goldfish_fb_set_par()
121 info->fix.line_length = info->var.xres * 2; in goldfish_fb_set_par()
122 fb->rotation = fb->fb.var.rotate; in goldfish_fb_set_par()
129 static int goldfish_fb_pan_display(struct fb_var_screeninfo *var, in goldfish_fb_pan_display() argument
138 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, in goldfish_fb_pan_display()
223 fb->fb.var.xres = width; in goldfish_fb_probe()
224 fb->fb.var.yres = height; in goldfish_fb_probe()
225 fb->fb.var.xres_virtual = width; in goldfish_fb_probe()
226 fb->fb.var.yres_virtual = height * 2; in goldfish_fb_probe()
227 fb->fb.var.bits_per_pixel = 16; in goldfish_fb_probe()
228 fb->fb.var.activate = FB_ACTIVATE_NOW; in goldfish_fb_probe()
229 fb->fb.var.height = readl(fb->reg_base + FB_GET_PHYS_HEIGHT); in goldfish_fb_probe()
230 fb->fb.var.width = readl(fb->reg_base + FB_GET_PHYS_WIDTH); in goldfish_fb_probe()
231 fb->fb.var.pixclock = 0; in goldfish_fb_probe()
233 fb->fb.var.red.offset = 11; in goldfish_fb_probe()
234 fb->fb.var.red.length = 5; in goldfish_fb_probe()
235 fb->fb.var.green.offset = 5; in goldfish_fb_probe()
236 fb->fb.var.green.length = 6; in goldfish_fb_probe()
237 fb->fb.var.blue.offset = 0; in goldfish_fb_probe()
238 fb->fb.var.blue.length = 5; in goldfish_fb_probe()
253 ret = fb_set_var(&fb->fb, &fb->fb.var); in goldfish_fb_probe()
263 goldfish_fb_pan_display(&fb->fb.var, &fb->fb); /* updates base */ in goldfish_fb_probe()
291 framesize = fb->fb.var.xres_virtual * fb->fb.var.yres_virtual * 2; in goldfish_fb_remove()