Lines Matching refs:info

106 	struct fb_info info;
156 #define READ_BYTE(fb,reg) gsc_readb((fb)->info.fix.mmio_start + (reg))
157 #define READ_WORD(fb,reg) gsc_readl((fb)->info.fix.mmio_start + (reg))
163 # define WRITE_BYTE(value,fb,reg) gsc_writeb((value),(fb)->info.fix.mmio_start + (reg))
164 # define WRITE_WORD(value,fb,reg) gsc_writel((value),(fb)->info.fix.mmio_start + (reg))
172 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
176 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
213 if (fb->info.var.bits_per_pixel == 32)
219 if (fb->info.var.bits_per_pixel == 32)
257 if (fb->info.var.bits_per_pixel == 32) {
506 SET_ATTR_SIZE(fb, fb->info.var.xres, fb->info.var.yres);
529 for (y = 0; y < fb->info.var.yres; ++y)
530 fb_memset_io(fb->info.screen_base + y * fb->info.fix.line_length,
531 0xff, fb->info.var.xres * fb->info.var.bits_per_pixel/8);
610 if (fb->info.var.bits_per_pixel == 8)
691 packed_len = (fb->info.var.xres << 16) | fb->info.var.yres;
741 packed_len = (fb->info.var.xres << 16) | fb->info.var.yres;
763 if (fb->info.var.bits_per_pixel == 32)
893 hyperbowl = (fb->info.var.bits_per_pixel == 32) ?
925 stifb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
927 struct stifb_info *fb = container_of(info, struct stifb_info, info);
929 if (var->xres != fb->info.var.xres ||
930 var->yres != fb->info.var.yres ||
931 var->bits_per_pixel != fb->info.var.bits_per_pixel)
938 var->grayscale = fb->info.var.grayscale;
939 var->red.length = fb->info.var.red.length;
940 var->green.length = fb->info.var.green.length;
941 var->blue.length = fb->info.var.blue.length;
948 u_int blue, u_int transp, struct fb_info *info)
950 struct stifb_info *fb = container_of(info, struct stifb_info, info);
964 if (unlikely(fb->info.var.grayscale)) {
975 if (fb->info.fix.visual == FB_VISUAL_DIRECTCOLOR) {
976 struct fb_var_screeninfo *var = &fb->info.var;
978 ((u32 *)fb->info.pseudo_palette)[regno] =
1008 stifb_blank(int blank_mode, struct fb_info *info)
1010 struct stifb_info *fb = container_of(info, struct stifb_info, info);
1037 stifb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
1039 struct stifb_info *fb = container_of(info, struct stifb_info, info);
1044 if (fb->info.var.bits_per_pixel == 32) {
1076 stifb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
1078 struct stifb_info *fb = container_of(info, struct stifb_info, info);
1081 (fb->id == S9000_ID_HCRX && fb->info.var.bits_per_pixel == 32))
1082 return cfb_fillrect(info, rect);
1086 if (fb->info.var.bits_per_pixel == 32) {
1144 if (fb->info.var.bits_per_pixel == 32)
1154 if (fb->info.var.bits_per_pixel == 32)
1188 struct fb_info *info;
1198 info = &fb->info;
1201 fix = &info->fix;
1202 var = &info->var;
1359 info->fbops = &stifb_ops;
1360 info->screen_base = ioremap(REGION_BASE(fb,1), fix->smem_len);
1361 if (!info->screen_base) {
1365 info->screen_size = fix->smem_len;
1366 info->flags = FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT;
1367 info->pseudo_palette = &fb->pseudo_palette;
1370 fb_find_mode(&info->var, info, modestr, NULL, 0, NULL, bpp);
1373 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0))
1390 sti->info = info;
1391 if (register_framebuffer(&fb->info) < 0)
1394 fb_info(&fb->info, "%s %dx%d-%d frame buffer device, %s, id: %04x, mmio: 0x%04lx\n",
1411 fb_dealloc_cmap(&info->cmap);
1413 iounmap(info->screen_base);
1416 sti->info = NULL;
1481 if (sti->info) {
1482 struct fb_info *info = sti->info;
1483 unregister_framebuffer(sti->info);
1484 release_mem_region(info->fix.mmio_start, info->fix.mmio_len);
1485 release_mem_region(info->fix.smem_start, info->fix.smem_len);
1486 if (info->screen_base)
1487 iounmap(info->screen_base);
1488 fb_dealloc_cmap(&info->cmap);
1489 framebuffer_release(info);
1491 sti->info = NULL;