Lines Matching defs:sti
54 #undef DEBUG_STIFB_REGS /* debug sti register accesses */
76 F_EXTEND(fb_info->sti->regions_phys[index])
109 struct sti_struct *sti;
835 pBytePerLongDevDepData = fb->sti->regions[NGLEDEVDEPROM_CRT_REGION];
1183 static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
1204 fb->sti = sti;
1205 dev_name = sti->sti_data->inq_outptr.dev_name;
1207 fb->id = fb->sti->graphics_id[0];
1241 xres = sti_onscreen_x(fb->sti);
1242 yres = sti_onscreen_y(fb->sti);
1278 if ((fb->sti->regions_phys[0] & 0xfc000000) ==
1279 (fb->sti->regions_phys[2] & 0xfc000000))
1280 sti_rom_address = F_EXTEND(fb->sti->regions_phys[0]);
1282 sti_rom_address = F_EXTEND(fb->sti->regions_phys[1]);
1317 fix->smem_start = F_EXTEND(fb->sti->regions_phys[1]);
1318 fix->smem_len = fb->sti->regions[1].region_desc.length * 4096;
1320 fix->line_length = (fb->sti->glob_cfg->total_x * bpp) / 8;
1384 printk(KERN_ERR "stifb: cannot reserve sti mmio region 0x%04lx-0x%04lx\n",
1390 sti->info = info;
1416 sti->info = NULL;
1427 struct sti_struct *sti;
1446 sti = sti_get_rom(i);
1447 if (!sti)
1449 if (sti == def_sti) {
1450 stifb_init_fb(sti, stifb_bpp_pref[i - 1]);
1457 sti = sti_get_rom(i);
1458 if (!sti)
1460 if (sti == def_sti)
1462 stifb_init_fb(sti, stifb_bpp_pref[i - 1]);
1474 struct sti_struct *sti;
1478 sti = sti_get_rom(i);
1479 if (!sti)
1481 if (sti->info) {
1482 struct fb_info *info = sti->info;
1483 unregister_framebuffer(sti->info);
1491 sti->info = NULL;