Lines Matching refs:info

148  *      @info: frame buffer info structure
152 unsigned transp, struct fb_info *info)
154 struct p9100_par *par = (struct p9100_par *) info->par;
180 * @info: frame buffer structure that represents a single frame buffer
183 p9100_blank(int blank, struct fb_info *info)
185 struct p9100_par *par = (struct p9100_par *) info->par;
221 static int p9100_mmap(struct fb_info *info, struct vm_area_struct *vma)
223 struct p9100_par *par = (struct p9100_par *)info->par;
226 info->fix.smem_start, info->fix.smem_len,
230 static int p9100_ioctl(struct fb_info *info, unsigned int cmd,
234 return sbusfb_ioctl_helper(cmd, arg, info,
235 FBTYPE_SUN3COLOR, 8, info->fix.smem_len);
242 static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_node *dp)
244 snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp);
246 info->fix.type = FB_TYPE_PACKED_PIXELS;
247 info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
249 info->fix.line_length = linebytes;
251 info->fix.accel = FB_ACCEL_SUN_CGTHREE;
257 struct fb_info *info;
261 info = framebuffer_alloc(sizeof(struct p9100_par), &op->dev);
264 if (!info)
266 par = info->par;
271 info->fix.smem_start = op->resource[2].start;
274 sbusfb_fill_var(&info->var, dp, 8);
275 info->var.red.length = 8;
276 info->var.green.length = 8;
277 info->var.blue.length = 8;
279 linebytes = of_getintprop_default(dp, "linebytes", info->var.xres);
280 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres);
287 info->fbops = &p9100_ops;
288 info->screen_base = of_ioremap(&op->resource[2], 0,
289 info->fix.smem_len, "p9100 ram");
290 if (!info->screen_base)
293 p9100_blank(FB_BLANK_UNBLANK, info);
295 if (fb_alloc_cmap(&info->cmap, 256, 0))
298 p9100_init_fix(info, linebytes, dp);
300 err = register_framebuffer(info);
304 fb_set_cmap(&info->cmap, info);
306 dev_set_drvdata(&op->dev, info);
310 par->which_io, info->fix.smem_start);
315 fb_dealloc_cmap(&info->cmap);
318 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
324 framebuffer_release(info);
332 struct fb_info *info = dev_get_drvdata(&op->dev);
333 struct p9100_par *par = info->par;
335 unregister_framebuffer(info);
336 fb_dealloc_cmap(&info->cmap);
339 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len);
341 framebuffer_release(info);