Lines Matching refs:fb_info

95 static int e1356fb_open(struct fb_info *fb, int user);
96 static int e1356fb_release(struct fb_info *fb, int user);
99 struct fb_info* fb);
102 struct fb_info* fb);
105 struct fb_info* fb);
108 struct fb_info* fb);
112 struct fb_info* info);
116 struct fb_info* info);
122 struct fb_info* info);
123 static int e1356fb_mmap(struct fb_info *info,
131 struct fb_info* fb);
133 struct fb_info* fb);
135 struct fb_info* fb);
161 struct fb_info* fb);
167 struct fb_info* fb);
169 struct fb_info *info);
214 static struct fb_info_e1356 fb_info; variable
984 struct fb_info* fb = &info->fb_info; in do_write_shadow_fb()
1037 doBlt (&fb_info.current_par, &fb_info, &blt); in e1356_cfbX_clear_margins()
1048 doBlt (&fb_info.current_par, &fb_info, &blt); in e1356_cfbX_clear_margins()
1080 doBlt (&fb_info.current_par, &fb_info, &blt); in e1356_cfbX_bmove()
1106 blt.src = fb_info.putcs_buffer; in e1356_cfb8_putc()
1109 doBlt(&fb_info.current_par, &fb_info, &blt); in e1356_cfb8_putc()
1136 blt.src = fb_info.putcs_buffer; in e1356_cfb16_putc()
1139 doBlt(&fb_info.current_par, &fb_info, &blt); in e1356_cfb16_putc()
1167 blt.src = fb_info.putcs_buffer; in e1356_cfb8_putcs()
1170 doBlt(&fb_info.current_par, &fb_info, &blt); in e1356_cfb8_putcs()
1197 blt.src = fb_info.putcs_buffer; in e1356_cfb16_putcs()
1200 doBlt(&fb_info.current_par, &fb_info, &blt); in e1356_cfb16_putcs()
1225 doBlt (&fb_info.current_par, &fb_info, &blt); in e1356_cfb8_clear()
1249 doBlt (&fb_info.current_par, &fb_info, &blt); in e1356_cfb16_clear()
1264 struct fb_info_e1356 *info=(struct fb_info_e1356 *)p->fb_info; in e1356_cfbX_cursor()
1470 fbfill(fb_info.membase_virt, 0, fb_info.fb_size); in e1356fb_set_par()
1750 static int e1356fb_open(struct fb_info *fb, int user) in e1356fb_open()
1760 static int e1356fb_release(struct fb_info *fb, int user) in e1356fb_release()
1775 struct fb_info *fb) in e1356fb_get_fix()
1793 struct fb_info *fb) in e1356fb_get_var()
1842 struct fb_info *fb) in e1356fb_set_var()
1919 if (info->fb_info.changevar) in e1356fb_set_var()
1920 (*info->fb_info.changevar)(con); in e1356fb_set_var()
1925 fb_info.palette[j].red = default_red[k]; in e1356fb_set_var()
1926 fb_info.palette[j].green = default_grn[k]; in e1356fb_set_var()
1927 fb_info.palette[j].blue = default_blu[k]; in e1356fb_set_var()
1931 fb_info.cursor.state=CM_ERASE; in e1356fb_set_var()
1933 if (!info->fb_info.display_fg || in e1356fb_set_var()
1934 info->fb_info.display_fg->vc_num == con || con < 0) in e1356fb_set_var()
1945 e1356fb_install_cmap(display, &(info->fb_info)); in e1356fb_set_var()
1955 struct fb_info* fb) in e1356fb_pan_display()
1984 struct fb_info *fb) in e1356fb_get_cmap()
2008 struct fb_info *fb) in e1356fb_set_cmap()
2037 struct fb_info *fb) in e1356fb_ioctl()
2072 e1356fb_mmap(struct fb_info *fb, in e1356fb_mmap()
2173 struct e1356fb_fix * epfix = &fb_info.fix; in e1356fb_init()
2186 memset(&fb_info, 0, sizeof(struct fb_info_e1356)); in e1356fb_init()
2189 fb_info.fix = boot_fix; in e1356fb_init()
2190 fb_info.default_par = boot_par; in e1356fb_init()
2192 fb_info.regbase_size = E1356_REG_SIZE; in e1356fb_init()
2213 fb_info.regbase_virt = ioremap_nocache(epfix->regbase_phys, in e1356fb_init()
2216 if (!fb_info.regbase_virt) { in e1356fb_init()
2221 regbase = fb_info.regbase_virt; in e1356fb_init()
2222 reg = &fb_info.reg; in e1356fb_init()
2255 iounmap(fb_info.regbase_virt); in e1356fb_init()
2261 fb_info.chip_rev = rev_code & 0x03; in e1356fb_init()
2267 fb_info.fb_size = 0x80000; /* 512K bytes */ in e1356fb_init()
2271 fb_info.fb_size = 0x140000; /* 1.2M bytes */ in e1356fb_init()
2273 fb_info.fb_size = 0x200000; /* 2M bytes */ in e1356fb_init()
2276 fb_info.fb_size = 0x200000; /* 2M bytes */ in e1356fb_init()
2280 fb_info.membase_virt = ioremap_nocache(epfix->membase_phys, in e1356fb_init()
2281 fb_info.fb_size); in e1356fb_init()
2283 if (!fb_info.membase_virt) { in e1356fb_init()
2285 iounmap(fb_info.regbase_virt); in e1356fb_init()
2290 (unsigned)fb_info.fb_size/1000); in e1356fb_init()
2294 fb_info.mtrr_idx = mtrr_add(epfix->membase_phys, fb_info.fb_size, in e1356fb_init()
2305 fb_info.putcs_buffer = (void*)__get_free_pages(GFP_KERNEL, 0); in e1356fb_init()
2306 if (fb_info.putcs_buffer == NULL) { in e1356fb_init()
2319 if (fb_info.chip_rev == 7) /* 806 */ in e1356fb_init()
2382 fb_info.max_pixclock = epfix->mclk; in e1356fb_init()
2386 fb_info.max_pixclock = (epfix->disp_type == DISP_TYPE_NTSC) ? in e1356fb_init()
2389 fb_info.max_pixclock *= 2; in e1356fb_init()
2478 e1356fb_hwcursor_init(&fb_info); in e1356fb_init()
2480 init_timer(&fb_info.cursor.timer); in e1356fb_init()
2481 fb_info.cursor.timer.function = do_flashcursor; in e1356fb_init()
2482 fb_info.cursor.timer.data = (unsigned long)(&fb_info); in e1356fb_init()
2483 fb_info.cursor.state = CM_ERASE; in e1356fb_init()
2484 spin_lock_init(&fb_info.cursor.lock); in e1356fb_init()
2486 strcpy(fb_info.fb_info.modename, "Epson "); in e1356fb_init()
2487 strcat(fb_info.fb_info.modename, name); in e1356fb_init()
2488 fb_info.fb_info.changevar = NULL; in e1356fb_init()
2489 fb_info.fb_info.node = -1; in e1356fb_init()
2491 fb_info.fb_info.fbops = &e1356fb_ops; in e1356fb_init()
2492 fb_info.fb_info.disp = &fb_info.disp; in e1356fb_init()
2493 strcpy(fb_info.fb_info.fontname, epfix->fontname); in e1356fb_init()
2494 fb_info.fb_info.switch_con = &e1356fb_switch_con; in e1356fb_init()
2495 fb_info.fb_info.updatevar = &e1356fb_updatevar; in e1356fb_init()
2496 fb_info.fb_info.blank = &e1356fb_blank; in e1356fb_init()
2497 fb_info.fb_info.flags = FBINFO_FLAG_DEFAULT; in e1356fb_init()
2558 int dbsize = e1356fb_get_mode(&fb_info, 640, 480, &modedb, &dm); in e1356fb_init()
2561 if (!fb_find_mode(&var, &fb_info.fb_info, epfix->mode_option, in e1356fb_init()
2566 if (!fb_find_mode(&var, &fb_info.fb_info, in e1356fb_init()
2581 if (e1356fb_par_to_var(&var, &fb_info.default_par, &fb_info)) { in e1356fb_init()
2592 if (e1356fb_var_to_par(&var, &fb_info.default_par, &fb_info)) { in e1356fb_init()
2601 fb_info.disp.screen_base = fb_info.membase_virt; in e1356fb_init()
2602 fb_info.disp.var = var; // struct copy in e1356fb_init()
2605 if (e1356fb_set_var(&var, -1, &fb_info.fb_info)) { in e1356fb_init()
2614 dump_fb(fb_info.membase_virt + 0x100000, 512); in e1356fb_init()
2617 if (register_framebuffer(&fb_info.fb_info) < 0) { in e1356fb_init()
2624 GET_FB_IDX(fb_info.fb_info.node), in e1356fb_init()
2625 fb_info.fb_info.modename); in e1356fb_init()
2631 free_pages((unsigned long)fb_info.putcs_buffer, 0); in e1356fb_init()
2633 iounmap(fb_info.regbase_virt); in e1356fb_init()
2634 iounmap(fb_info.membase_virt); in e1356fb_init()
2649 unregister_framebuffer(&fb_info.fb_info); in e1356fb_exit()
2650 del_timer_sync(&fb_info.cursor.timer); in e1356fb_exit()
2653 if (!fb_info.fix.nomtrr) { in e1356fb_exit()
2654 mtrr_del(fb_info.mtrr_idx, fb_info.fix.membase_phys, in e1356fb_exit()
2655 fb_info.fb_size); in e1356fb_exit()
2660 free_pages((unsigned long)fb_info.putcs_buffer, 0); in e1356fb_exit()
2661 iounmap(fb_info.regbase_virt); in e1356fb_exit()
2662 iounmap(fb_info.membase_virt); in e1356fb_exit()
2806 e1356fb_switch_con(int con, struct fb_info *fb) in e1356fb_switch_con()
2838 fb_info.cursor.state=CM_ERASE; in e1356fb_switch_con()
2859 e1356fb_blank(int blank, struct fb_info *fb) in e1356fb_blank()
2893 e1356fb_updatevar(int con, struct fb_info* fb) in e1356fb_updatevar()
2910 struct fb_info* fb) in e1356fb_getcolreg()
2931 struct fb_info* info) in e1356fb_setcolreg()
2962 e1356fb_install_cmap(struct display *d, struct fb_info *info) in e1356fb_install_cmap()
2983 fb_info.cursor.type = p->conp->vc_cursor_type & CUR_HWMASK; in e1356fb_createcursorshape()
2985 switch (fb_info.cursor.type) { in e1356fb_createcursorshape()
3007 fb_info.cursor.w = fontwidth_x8(p); in e1356fb_createcursorshape()
3008 fb_info.cursor.u = u; in e1356fb_createcursorshape()
3009 fb_info.cursor.h = h; in e1356fb_createcursorshape()
3020 h = fb_info.cursor.h; in e1356fb_createcursor()
3021 w = fb_info.cursor.w; in e1356fb_createcursor()
3022 u = fb_info.cursor.u; in e1356fb_createcursor()
3023 memcursor = fb_info.membase_virt + fb_info.fb_size; in e1356fb_createcursor()
3043 fb_info.fb_size -= 1024; in e1356fb_hwcursor_init()
3047 fb_info.membase_virt + fb_info.fb_size); in e1356fb_hwcursor_init()