Lines Matching refs:fb
62 struct fb_info fb; member
162 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_fillrect()
165 if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { in cyber2000fb_fillrect()
175 if (cfb->fb.var.bits_per_pixel > 8) in cyber2000fb_fillrect()
176 col = ((u32 *)cfb->fb.pseudo_palette)[col]; in cyber2000fb_fillrect()
179 dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual; in cyber2000fb_fillrect()
180 if (cfb->fb.var.bits_per_pixel == 24) { in cyber2000fb_fillrect()
194 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_copyarea()
198 if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { in cyber2000fb_copyarea()
207 src = region->sx + region->sy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
208 dst = region->dx + region->dy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
217 src += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
218 dst += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
222 if (cfb->fb.var.bits_per_pixel == 24) { in cyber2000fb_copyarea()
244 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_sync()
247 if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) in cyber2000fb_sync()
279 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_setcolreg()
280 struct fb_var_screeninfo *var = &cfb->fb.var; in cyber2000fb_setcolreg()
284 switch (cfb->fb.fix.visual) { in cyber2000fb_setcolreg()
413 ((u32 *)cfb->fb.pseudo_palette)[regno] = pseudo_val; in cyber2000fb_setcolreg()
761 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_check_var()
842 if (mem > cfb->fb.fix.smem_len) in cyber2000fb_check_var()
843 var->yres_virtual = cfb->fb.fix.smem_len * 8 / in cyber2000fb_check_var()
864 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_set_par()
865 struct fb_var_screeninfo *var = &cfb->fb.var; in cyber2000fb_set_par()
937 cfb->fb.fix.line_length = var->xres_virtual * var->bits_per_pixel / 8; in cyber2000fb_set_par()
946 mem = cfb->fb.fix.line_length * var->yres_virtual; in cyber2000fb_set_par()
947 BUG_ON(mem > cfb->fb.fix.smem_len); in cyber2000fb_set_par()
956 cfb->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; in cyber2000fb_set_par()
958 cfb->fb.fix.visual = FB_VISUAL_TRUECOLOR; in cyber2000fb_set_par()
960 cfb->fb.fix.visual = FB_VISUAL_DIRECTCOLOR; in cyber2000fb_set_par()
974 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_pan_display()
979 cfb->fb.var.xoffset = var->xoffset; in cyber2000fb_pan_display()
980 cfb->fb.var.yoffset = var->yoffset; in cyber2000fb_pan_display()
983 cfb->fb.var.vmode |= FB_VMODE_YWRAP; in cyber2000fb_pan_display()
985 cfb->fb.var.vmode &= ~FB_VMODE_YWRAP; in cyber2000fb_pan_display()
1010 struct cfb_info *cfb = container_of(info, struct cfb_info, fb); in cyber2000fb_blank()
1130 info->dev = int_cfb_info->fb.device; in cyber2000fb_attach()
1138 info->fb = int_cfb_info->fb.screen_base; in cyber2000fb_attach()
1139 info->fb_size = int_cfb_info->fb.fix.smem_len; in cyber2000fb_attach()
1142 strlcpy(info->dev_name, int_cfb_info->fb.fix.id, in cyber2000fb_attach()
1235 strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id, in cyber2000fb_setup_ddc_bus()
1240 cfb->ddc_adapter.dev.parent = cfb->fb.device; in cyber2000fb_setup_ddc_bus()
1310 strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id, in cyber2000fb_i2c_register()
1314 cfb->i2c_adapter.dev.parent = cfb->fb.device; in cyber2000fb_i2c_register()
1432 strcpy(cfb->fb.fix.id, name); in cyberpro_alloc_fb_info()
1434 cfb->fb.fix.type = FB_TYPE_PACKED_PIXELS; in cyberpro_alloc_fb_info()
1435 cfb->fb.fix.type_aux = 0; in cyberpro_alloc_fb_info()
1436 cfb->fb.fix.xpanstep = 0; in cyberpro_alloc_fb_info()
1437 cfb->fb.fix.ypanstep = 1; in cyberpro_alloc_fb_info()
1438 cfb->fb.fix.ywrapstep = 0; in cyberpro_alloc_fb_info()
1442 cfb->fb.fix.accel = 0; in cyberpro_alloc_fb_info()
1446 cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2000; in cyberpro_alloc_fb_info()
1450 cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2010; in cyberpro_alloc_fb_info()
1454 cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER5000; in cyberpro_alloc_fb_info()
1458 cfb->fb.var.nonstd = 0; in cyberpro_alloc_fb_info()
1459 cfb->fb.var.activate = FB_ACTIVATE_NOW; in cyberpro_alloc_fb_info()
1460 cfb->fb.var.height = -1; in cyberpro_alloc_fb_info()
1461 cfb->fb.var.width = -1; in cyberpro_alloc_fb_info()
1462 cfb->fb.var.accel_flags = FB_ACCELF_TEXT; in cyberpro_alloc_fb_info()
1464 cfb->fb.fbops = &cyber2000fb_ops; in cyberpro_alloc_fb_info()
1465 cfb->fb.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; in cyberpro_alloc_fb_info()
1466 cfb->fb.pseudo_palette = cfb->pseudo_palette; in cyberpro_alloc_fb_info()
1470 fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0); in cyberpro_alloc_fb_info()
1481 fb_alloc_cmap(&cfb->fb.cmap, 0, 0); in cyberpro_free_fb_info()
1560 cfb->fb.fix.smem_len = smem_size; in cyberpro_common_probe()
1561 cfb->fb.fix.mmio_len = MMIO_SIZE; in cyberpro_common_probe()
1562 cfb->fb.screen_base = cfb->region; in cyberpro_common_probe()
1570 if (!fb_find_mode(&cfb->fb.var, &cfb->fb, NULL, NULL, 0, in cyberpro_common_probe()
1572 printk(KERN_ERR "%s: no valid mode found\n", cfb->fb.fix.id); in cyberpro_common_probe()
1576 cfb->fb.var.yres_virtual = cfb->fb.fix.smem_len * 8 / in cyberpro_common_probe()
1577 (cfb->fb.var.bits_per_pixel * cfb->fb.var.xres_virtual); in cyberpro_common_probe()
1579 if (cfb->fb.var.yres_virtual < cfb->fb.var.yres) in cyberpro_common_probe()
1580 cfb->fb.var.yres_virtual = cfb->fb.var.yres; in cyberpro_common_probe()
1590 h_sync = 1953125000 / cfb->fb.var.pixclock; in cyberpro_common_probe()
1591 h_sync = h_sync * 512 / (cfb->fb.var.xres + cfb->fb.var.left_margin + in cyberpro_common_probe()
1592 cfb->fb.var.right_margin + cfb->fb.var.hsync_len); in cyberpro_common_probe()
1593 v_sync = h_sync / (cfb->fb.var.yres + cfb->fb.var.upper_margin + in cyberpro_common_probe()
1594 cfb->fb.var.lower_margin + cfb->fb.var.vsync_len); in cyberpro_common_probe()
1597 cfb->fb.fix.id, cfb->fb.fix.smem_len >> 10, in cyberpro_common_probe()
1598 cfb->fb.var.xres, cfb->fb.var.yres, in cyberpro_common_probe()
1605 err = register_framebuffer(&cfb->fb); in cyberpro_common_probe()
1619 unregister_framebuffer(&cfb->fb); in cyberpro_common_remove()
1641 cyber2000fb_set_par(&cfb->fb); in cyberpro_common_resume()
1702 cfb->fb.fix.id); in cyberpro_pci_enable_mmio()
1707 cfb->fb.fix.id); in cyberpro_pci_enable_mmio()
1739 err = pci_request_regions(dev, cfb->fb.fix.id); in cyberpro_pci_probe()
1751 cfb->fb.device = &dev->dev; in cyberpro_pci_probe()
1752 cfb->fb.fix.mmio_start = pci_resource_start(dev, 0) + MMIO_OFFSET; in cyberpro_pci_probe()
1753 cfb->fb.fix.smem_start = pci_resource_start(dev, 0); in cyberpro_pci_probe()