Lines Matching refs:info
134 static int intelfb_open(struct fb_info *info, int user);
135 static int intelfb_release(struct fb_info *info, int user);
137 struct fb_info *info);
138 static int intelfb_set_par(struct fb_info *info);
141 struct fb_info *info);
143 static int intelfb_blank(int blank, struct fb_info *info);
145 struct fb_info *info);
147 static void intelfb_fillrect(struct fb_info *info,
149 static void intelfb_copyarea(struct fb_info *info,
151 static void intelfb_imageblit(struct fb_info *info,
153 static int intelfb_cursor(struct fb_info *info,
156 static int intelfb_sync(struct fb_info *info);
158 static int intelfb_ioctl(struct fb_info *info,
422 fb_dealloc_cmap(&dinfo->info->cmap);
423 kfree(dinfo->info->pixmap.addr);
426 unregister_framebuffer(dinfo->info);
458 framebuffer_release(dinfo->info);
472 struct fb_info *info;
493 info = framebuffer_alloc(sizeof(struct intelfb_info), &pdev->dev);
494 if (!info)
497 if (fb_alloc_cmap(&info->cmap, 256, 1) < 0) {
502 dinfo = info->par;
503 dinfo->info = info;
508 info->pixmap.addr = kzalloc(64 * 1024, GFP_KERNEL);
509 if (info->pixmap.addr == NULL) {
566 /* Get the chipset info. */
619 /* get the current gatt info */
621 ERR_MSG("cannot get agp info\n");
869 if (register_framebuffer(dinfo->info) < 0) {
887 fb_dealloc_cmap(&info->cmap);
889 framebuffer_release(info);
965 DBG_MSG("Initial info: FB is 0x%x/0x%x (%d kByte)\n",
969 DBG_MSG("Initial info: mode is %dx%d-%d (%d)\n",
1013 var = &dinfo->info->var;
1027 &dinfo->info->monspecs);
1035 msrc = fb_find_mode(var, dinfo->info, mode,
1036 dinfo->info->monspecs.modedb,
1037 dinfo->info->monspecs.modedb_len,
1044 msrc = fb_find_mode(var, dinfo->info, mode,
1054 msrc = fb_find_mode(var, dinfo->info, PREFERRED_MODE,
1089 struct fb_info *info = dinfo->info;
1093 info->flags = FBINFO_FLAG_DEFAULT;
1094 info->fbops = &intel_fb_ops;
1095 info->pseudo_palette = dinfo->pseudo_palette;
1097 info->pixmap.size = 64*1024;
1098 info->pixmap.buf_align = 8;
1099 info->pixmap.access_align = 32;
1100 info->pixmap.flags = FB_PIXMAP_SYSTEM;
1105 info->pixmap.scan_align = 1;
1106 strcpy(info->fix.id, dinfo->name);
1107 info->fix.smem_start = dinfo->fb.physical;
1108 info->fix.smem_len = dinfo->fb.size;
1109 info->fix.type = FB_TYPE_PACKED_PIXELS;
1110 info->fix.type_aux = 0;
1111 info->fix.xpanstep = 8;
1112 info->fix.ypanstep = 1;
1113 info->fix.ywrapstep = 0;
1114 info->fix.mmio_start = dinfo->mmio_base_phys;
1115 info->fix.mmio_len = INTEL_REG_SIZE;
1116 info->fix.accel = FB_ACCEL_I830;
1117 update_dinfo(dinfo, &info->var);
1134 dinfo->info->fix.visual = dinfo->visual;
1135 dinfo->info->fix.line_length = dinfo->pitch;
1161 dinfo->info->screen_base = (char __iomem *)dinfo->fb.virtual;
1162 dinfo->info->fix.line_length = dinfo->pitch;
1163 dinfo->info->fix.visual = dinfo->visual;
1172 static int intelfb_open(struct fb_info *info, int user)
1174 struct intelfb_info *dinfo = GET_DINFO(info);
1182 static int intelfb_release(struct fb_info *info, int user)
1184 struct intelfb_info *dinfo = GET_DINFO(info);
1197 struct fb_info *info)
1215 dinfo = GET_DINFO(info);
1245 change_var = ((info->var.xres != var->xres) ||
1246 (info->var.yres != var->yres) ||
1247 (info->var.xres_virtual != var->xres_virtual) ||
1248 (info->var.yres_virtual != var->yres_virtual) ||
1249 (info->var.bits_per_pixel != var->bits_per_pixel) ||
1250 memcmp(&info->var.red, &var->red, sizeof(var->red)) ||
1251 memcmp(&info->var.green, &var->green,
1253 memcmp(&info->var.blue, &var->blue, sizeof(var->blue)));
1319 static int intelfb_set_par(struct fb_info *info)
1322 struct intelfb_info *dinfo = GET_DINFO(info);
1333 DBG_MSG("intelfb_set_par (%dx%d-%d)\n", info->var.xres,
1334 info->var.yres, info->var.bits_per_pixel);
1341 intelfb_blank(FB_BLANK_POWERDOWN, info);
1343 if (ACCEL(dinfo, info))
1347 if (intelfbhw_mode_to_hw(dinfo, hw, &info->var))
1357 update_dinfo(dinfo, &info->var);
1359 if (ACCEL(dinfo, info))
1362 intelfb_pan_display(&info->var, info);
1364 intelfb_blank(FB_BLANK_UNBLANK, info);
1366 if (ACCEL(dinfo, info)) {
1367 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
1371 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
1382 struct fb_info *info)
1384 struct intelfb_info *dinfo = GET_DINFO(info);
1425 static int intelfb_blank(int blank, struct fb_info *info)
1427 intelfbhw_do_blank(blank, info);
1432 struct fb_info *info)
1434 intelfbhw_pan_display(var, info);
1439 static int intelfb_ioctl(struct fb_info *info, unsigned int cmd,
1443 struct intelfb_info *dinfo = GET_DINFO(info);
1460 static void intelfb_fillrect (struct fb_info *info,
1463 struct intelfb_info *dinfo = GET_DINFO(info);
1470 if (!ACCEL(dinfo, info) || dinfo->depth == 4) {
1471 cfb_fillrect(info, rect);
1487 dinfo->pitch, info->var.bits_per_pixel,
1491 static void intelfb_copyarea(struct fb_info *info,
1494 struct intelfb_info *dinfo = GET_DINFO(info);
1500 if (!ACCEL(dinfo, info) || dinfo->depth == 4) {
1501 cfb_copyarea(info, region);
1507 dinfo->pitch, info->var.bits_per_pixel);
1510 static void intelfb_imageblit(struct fb_info *info,
1513 struct intelfb_info *dinfo = GET_DINFO(info);
1520 if (!ACCEL(dinfo, info) || dinfo->depth == 4
1522 cfb_imageblit(info, image);
1537 dinfo->pitch, info->var.bits_per_pixel)) {
1538 cfb_imageblit(info, image);
1543 static int intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1545 struct intelfb_info *dinfo = GET_DINFO(info);
1593 dx = cursor->image.dx - info->var.xoffset;
1594 dy = cursor->image.dy - info->var.yoffset;
1657 static int intelfb_sync(struct fb_info *info)
1659 struct intelfb_info *dinfo = GET_DINFO(info);