Lines Matching full:fix
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)
530 fb_memset(fb->info.screen_base + y * fb->info.fix.line_length, in rattlerSetupPlanes()
953 if (fb->info.fix.visual == FB_VISUAL_DIRECTCOLOR) { in stifb_setcolreg()
1162 struct fb_fix_screeninfo *fix; in stifb_init_fb() local
1177 fix = &info->fix; in stifb_init_fb()
1223 fix->mmio_start = REGION_BASE(fb,2); in stifb_init_fb()
1224 fix->mmio_len = 0x400000; in stifb_init_fb()
1293 fix->smem_start = F_EXTEND(fb->sti->regions_phys[1]); in stifb_init_fb()
1294 fix->smem_len = fb->sti->regions[1].region_desc.length * 4096; in stifb_init_fb()
1296 fix->line_length = (fb->sti->glob_cfg->total_x * bpp) / 8; in stifb_init_fb()
1297 if (!fix->line_length) in stifb_init_fb()
1298 fix->line_length = 2048; /* default */ in stifb_init_fb()
1301 if (fix->smem_len > yres*fix->line_length) in stifb_init_fb()
1302 fix->smem_len = ALIGN(yres*fix->line_length, 4*1024*1024); in stifb_init_fb()
1304 fix->accel = FB_ACCEL_NONE; in stifb_init_fb()
1308 fix->type = FB_TYPE_PLANES; /* well, sort of */ in stifb_init_fb()
1309 fix->visual = FB_VISUAL_MONO10; in stifb_init_fb()
1313 fix->type = FB_TYPE_PACKED_PIXELS; in stifb_init_fb()
1314 fix->visual = FB_VISUAL_PSEUDOCOLOR; in stifb_init_fb()
1318 fix->type = FB_TYPE_PACKED_PIXELS; in stifb_init_fb()
1319 fix->visual = FB_VISUAL_DIRECTCOLOR; in stifb_init_fb()
1334 strcpy(fix->id, "stifb"); in stifb_init_fb()
1336 info->screen_base = ioremap(REGION_BASE(fb,1), fix->smem_len); in stifb_init_fb()
1341 info->screen_size = fix->smem_len; in stifb_init_fb()
1350 if (!request_mem_region(fix->smem_start, fix->smem_len, "stifb fb")) { in stifb_init_fb()
1352 fix->smem_start, fix->smem_start+fix->smem_len); in stifb_init_fb()
1356 if (!request_mem_region(fix->mmio_start, fix->mmio_len, "stifb mmio")) { in stifb_init_fb()
1358 fix->mmio_start, fix->mmio_start+fix->mmio_len); in stifb_init_fb()
1368 fix->id, in stifb_init_fb()
1374 fix->mmio_start); in stifb_init_fb()
1380 release_mem_region(fix->mmio_start, fix->mmio_len); in stifb_init_fb()
1382 release_mem_region(fix->smem_start, fix->smem_len); in stifb_init_fb()
1456 release_mem_region(info->fix.mmio_start, info->fix.mmio_len); in stifb_cleanup()
1457 release_mem_region(info->fix.smem_start, info->fix.smem_len); in stifb_cleanup()