Lines Matching refs:info

150 			   unsigned transp, struct fb_info *info)  in p9100_setcolreg()  argument
152 struct p9100_par *par = (struct p9100_par *) info->par; in p9100_setcolreg()
181 p9100_blank(int blank, struct fb_info *info) in p9100_blank() argument
183 struct p9100_par *par = (struct p9100_par *) info->par; in p9100_blank()
219 static int p9100_mmap(struct fb_info *info, struct vm_area_struct *vma) in p9100_mmap() argument
221 struct p9100_par *par = (struct p9100_par *)info->par; in p9100_mmap()
224 info->fix.smem_start, info->fix.smem_len, in p9100_mmap()
228 static int p9100_ioctl(struct fb_info *info, unsigned int cmd, in p9100_ioctl() argument
232 return sbusfb_ioctl_helper(cmd, arg, info, in p9100_ioctl()
233 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in p9100_ioctl()
240 static void p9100_init_fix(struct fb_info *info, int linebytes, struct device_node *dp) in p9100_init_fix() argument
242 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id)); in p9100_init_fix()
244 info->fix.type = FB_TYPE_PACKED_PIXELS; in p9100_init_fix()
245 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in p9100_init_fix()
247 info->fix.line_length = linebytes; in p9100_init_fix()
249 info->fix.accel = FB_ACCEL_SUN_CGTHREE; in p9100_init_fix()
255 struct fb_info *info; in p9100_probe() local
259 info = framebuffer_alloc(sizeof(struct p9100_par), &op->dev); in p9100_probe()
262 if (!info) in p9100_probe()
264 par = info->par; in p9100_probe()
269 info->fix.smem_start = op->resource[2].start; in p9100_probe()
272 sbusfb_fill_var(&info->var, dp, 8); in p9100_probe()
273 info->var.red.length = 8; in p9100_probe()
274 info->var.green.length = 8; in p9100_probe()
275 info->var.blue.length = 8; in p9100_probe()
277 linebytes = of_getintprop_default(dp, "linebytes", info->var.xres); in p9100_probe()
278 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in p9100_probe()
285 info->flags = FBINFO_DEFAULT; in p9100_probe()
286 info->fbops = &p9100_ops; in p9100_probe()
287 info->screen_base = of_ioremap(&op->resource[2], 0, in p9100_probe()
288 info->fix.smem_len, "p9100 ram"); in p9100_probe()
289 if (!info->screen_base) in p9100_probe()
292 p9100_blank(FB_BLANK_UNBLANK, info); in p9100_probe()
294 if (fb_alloc_cmap(&info->cmap, 256, 0)) in p9100_probe()
297 p9100_init_fix(info, linebytes, dp); in p9100_probe()
299 err = register_framebuffer(info); in p9100_probe()
303 fb_set_cmap(&info->cmap, info); in p9100_probe()
305 dev_set_drvdata(&op->dev, info); in p9100_probe()
309 par->which_io, info->fix.smem_start); in p9100_probe()
314 fb_dealloc_cmap(&info->cmap); in p9100_probe()
317 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_probe()
323 framebuffer_release(info); in p9100_probe()
331 struct fb_info *info = dev_get_drvdata(&op->dev); in p9100_remove() local
332 struct p9100_par *par = info->par; in p9100_remove()
334 unregister_framebuffer(info); in p9100_remove()
335 fb_dealloc_cmap(&info->cmap); in p9100_remove()
338 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_remove()
340 framebuffer_release(info); in p9100_remove()