Lines Matching refs:fb_info
80 static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg) in vivid_fb_ioctl()
181 static int vivid_fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in vivid_fb_check_var()
189 static int vivid_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in vivid_fb_pan_display()
194 static int vivid_fb_set_par(struct fb_info *info) in vivid_fb_set_par()
208 struct fb_info *info) in vivid_fb_setcolreg()
242 static int vivid_fb_blank(int blank_mode, struct fb_info *info) in vivid_fb_blank()
324 dev->fb_info.node = -1; in vivid_fb_init_vidmode()
325 dev->fb_info.flags = FBINFO_FLAG_DEFAULT; in vivid_fb_init_vidmode()
326 dev->fb_info.fbops = &vivid_fb_ops; in vivid_fb_init_vidmode()
327 dev->fb_info.par = dev; in vivid_fb_init_vidmode()
328 dev->fb_info.var = dev->fb_defined; in vivid_fb_init_vidmode()
329 dev->fb_info.fix = dev->fb_fix; in vivid_fb_init_vidmode()
330 dev->fb_info.screen_base = (u8 __iomem *)dev->video_vbase; in vivid_fb_init_vidmode()
331 dev->fb_info.fbops = &vivid_fb_ops; in vivid_fb_init_vidmode()
334 dev->fb_info.monspecs.hfmin = 8000; in vivid_fb_init_vidmode()
335 dev->fb_info.monspecs.hfmax = 70000; in vivid_fb_init_vidmode()
336 dev->fb_info.monspecs.vfmin = 10; in vivid_fb_init_vidmode()
337 dev->fb_info.monspecs.vfmax = 100; in vivid_fb_init_vidmode()
340 if (fb_alloc_cmap(&dev->fb_info.cmap, 256, 1)) { in vivid_fb_init_vidmode()
346 dev->fb_info.pseudo_palette = kmalloc_array(16, sizeof(u32), GFP_KERNEL); in vivid_fb_init_vidmode()
348 return dev->fb_info.pseudo_palette ? 0 : -ENOMEM; in vivid_fb_init_vidmode()
358 if (dev->fb_info.cmap.len) in vivid_fb_release_buffers()
359 fb_dealloc_cmap(&dev->fb_info.cmap); in vivid_fb_release_buffers()
362 kfree(dev->fb_info.pseudo_palette); in vivid_fb_release_buffers()
392 if (register_framebuffer(&dev->fb_info) < 0) { in vivid_fb_init()
398 vivid_fb_set_par(&dev->fb_info); in vivid_fb_init()