Lines Matching defs:info
39 static int vt8500lcd_set_par(struct fb_info *info)
41 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
49 if (info->var.bits_per_pixel <= 8) {
51 info->var.red.offset = 0;
52 info->var.red.length = info->var.bits_per_pixel;
53 info->var.red.msb_right = 0;
55 info->var.green.offset = 0;
56 info->var.green.length = info->var.bits_per_pixel;
57 info->var.green.msb_right = 0;
59 info->var.blue.offset = 0;
60 info->var.blue.length = info->var.bits_per_pixel;
61 info->var.blue.msb_right = 0;
63 info->var.transp.offset = 0;
64 info->var.transp.length = 0;
65 info->var.transp.msb_right = 0;
67 info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
68 info->fix.line_length = info->var.xres_virtual /
69 (8/info->var.bits_per_pixel);
72 info->var.transp.offset = 0;
73 info->var.transp.length = 0;
74 info->var.transp.msb_right = 0;
76 if (info->var.bits_per_pixel == 16) {
78 info->var.red.offset = 11;
79 info->var.red.length = 5;
80 info->var.red.msb_right = 0;
81 info->var.green.offset = 5;
82 info->var.green.length = 6;
83 info->var.green.msb_right = 0;
84 info->var.blue.offset = 0;
85 info->var.blue.length = 5;
86 info->var.blue.msb_right = 0;
89 info->var.red.offset = info->var.bits_per_pixel
91 info->var.red.length = info->var.bits_per_pixel / 3;
92 info->var.red.msb_right = 0;
93 info->var.green.offset = info->var.bits_per_pixel / 3;
94 info->var.green.length = info->var.bits_per_pixel / 3;
95 info->var.green.msb_right = 0;
96 info->var.blue.offset = 0;
97 info->var.blue.length = info->var.bits_per_pixel / 3;
98 info->var.blue.msb_right = 0;
101 info->fix.visual = FB_VISUAL_TRUECOLOR;
102 info->fix.line_length = info->var.bits_per_pixel > 16 ?
103 info->var.xres_virtual << 2 :
104 info->var.xres_virtual << 1;
108 if (bpp_values[i] == info->var.bits_per_pixel)
116 writel((((info->var.hsync_len - 1) & 0x3f) << 26)
117 | ((info->var.left_margin & 0xff) << 18)
118 | (((info->var.xres - 1) & 0x3ff) << 8)
119 | (info->var.right_margin & 0xff), fbi->regbase + 0x4);
120 writel((((info->var.vsync_len - 1) & 0x3f) << 26)
121 | ((info->var.upper_margin & 0xff) << 18)
122 | (((info->var.yres - 1) & 0x3ff) << 8)
123 | (info->var.lower_margin & 0xff), fbi->regbase + 0x8);
124 writel((((info->var.yres - 1) & 0x400) << 2)
125 | ((info->var.xres - 1) & 0x400), fbi->regbase + 0x10);
141 struct fb_info *info) {
142 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
148 if (info->var.grayscale)
178 static int vt8500lcd_ioctl(struct fb_info *info, unsigned int cmd,
182 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
201 struct fb_info *info)
203 unsigned pixlen = info->fix.line_length / info->var.xres_virtual;
205 + info->fix.line_length * var->yoffset;
206 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
209 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20)
220 static int vt8500lcd_blank(int blank, struct fb_info *info)
229 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
230 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
232 vt8500lcd_setcolreg(i, 0, 0, 0, 0, info);
235 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
236 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
237 fb_set_cmap(&info->cmap, info);