Lines Matching defs:info
91 struct fb_info *info);
92 static int mc68x328fb_set_par(struct fb_info *info);
94 u_int transp, struct fb_info *info);
96 struct fb_info *info);
97 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
133 struct fb_info *info)
144 var->xoffset = info->var.xoffset;
145 var->yoffset = info->var.yoffset;
262 * the hardware state info->par and fix which can be affected by the
265 static int mc68x328fb_set_par(struct fb_info *info)
267 info->fix.line_length = get_line_length(info->var.xres_virtual,
268 info->var.bits_per_pixel);
279 u_int transp, struct fb_info *info)
288 if (info->var.grayscale) {
316 switch (info->fix.visual) {
319 red = CNVT_TOHW(red, info->var.red.length);
320 green = CNVT_TOHW(green, info->var.green.length);
321 blue = CNVT_TOHW(blue, info->var.blue.length);
322 transp = CNVT_TOHW(transp, info->var.transp.length);
334 if (info->fix.visual == FB_VISUAL_TRUECOLOR) {
340 v = (red << info->var.red.offset) |
341 (green << info->var.green.offset) |
342 (blue << info->var.blue.offset) |
343 (transp << info->var.transp.offset);
344 switch (info->var.bits_per_pixel) {
348 ((u32 *) (info->pseudo_palette))[regno] = v;
352 ((u32 *) (info->pseudo_palette))[regno] = v;
367 struct fb_info *info)
371 || var->yoffset >= info->var.yres_virtual
375 if (var->xoffset + info->var.xres > info->var.xres_virtual ||
376 var->yoffset + info->var.yres > info->var.yres_virtual)
379 info->var.xoffset = var->xoffset;
380 info->var.yoffset = var->yoffset;
382 info->var.vmode |= FB_VMODE_YWRAP;
384 info->var.vmode &= ~FB_VMODE_YWRAP;
392 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma)