Lines Matching refs:fb
43 struct wm8505fb_info, fb)
45 struct fb_info fb; member
62 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw()
63 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw()
207 switch (fbi->fb.fix.visual) { in wm8505fb_setcolreg()
212 val = chan_to_field(red, &fbi->fb.var.red); in wm8505fb_setcolreg()
213 val |= chan_to_field(green, &fbi->fb.var.green); in wm8505fb_setcolreg()
214 val |= chan_to_field(blue, &fbi->fb.var.blue); in wm8505fb_setcolreg()
284 strcpy(fbi->fb.fix.id, DRIVER_NAME); in wm8505fb_probe()
286 fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; in wm8505fb_probe()
287 fbi->fb.fix.xpanstep = 1; in wm8505fb_probe()
288 fbi->fb.fix.ypanstep = 1; in wm8505fb_probe()
289 fbi->fb.fix.ywrapstep = 0; in wm8505fb_probe()
290 fbi->fb.fix.accel = FB_ACCEL_NONE; in wm8505fb_probe()
292 fbi->fb.fbops = &wm8505fb_ops; in wm8505fb_probe()
293 fbi->fb.flags = FBINFO_DEFAULT in wm8505fb_probe()
300 fbi->fb.node = -1; in wm8505fb_probe()
304 fbi->fb.pseudo_palette = addr; in wm8505fb_probe()
323 fb_videomode_to_var(&fbi->fb.var, &mode); in wm8505fb_probe()
325 fbi->fb.var.nonstd = 0; in wm8505fb_probe()
326 fbi->fb.var.activate = FB_ACTIVATE_NOW; in wm8505fb_probe()
328 fbi->fb.var.height = -1; in wm8505fb_probe()
329 fbi->fb.var.width = -1; in wm8505fb_probe()
340 fbi->fb.var.xres_virtual = mode.xres; in wm8505fb_probe()
341 fbi->fb.var.yres_virtual = mode.yres * 2; in wm8505fb_probe()
342 fbi->fb.var.bits_per_pixel = bpp; in wm8505fb_probe()
344 fbi->fb.fix.smem_start = fb_mem_phys; in wm8505fb_probe()
345 fbi->fb.fix.smem_len = fb_mem_len; in wm8505fb_probe()
346 fbi->fb.screen_base = fb_mem_virt; in wm8505fb_probe()
347 fbi->fb.screen_size = fb_mem_len; in wm8505fb_probe()
350 ret = wm8505fb_set_par(&fbi->fb); in wm8505fb_probe()
356 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in wm8505fb_probe()
361 wm8505fb_init_hw(&fbi->fb); in wm8505fb_probe()
365 ret = register_framebuffer(&fbi->fb); in wm8505fb_probe()
369 if (fbi->fb.cmap.len) in wm8505fb_probe()
370 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_probe()
376 fb_warn(&fbi->fb, "failed to register attributes (%d)\n", ret); in wm8505fb_probe()
378 fb_info(&fbi->fb, "%s frame buffer at 0x%lx-0x%lx\n", in wm8505fb_probe()
379 fbi->fb.fix.id, fbi->fb.fix.smem_start, in wm8505fb_probe()
380 fbi->fb.fix.smem_start + fbi->fb.fix.smem_len - 1); in wm8505fb_probe()
391 unregister_framebuffer(&fbi->fb); in wm8505fb_remove()
395 if (fbi->fb.cmap.len) in wm8505fb_remove()
396 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_remove()