Lines Matching refs:p

331 static void init_chips(struct fb_info *p, unsigned long addr)  in init_chips()  argument
333 fb_memset_io(p->screen_base, 0, 0x100000); in init_chips()
335 p->fix = chipsfb_fix; in init_chips()
336 p->fix.smem_start = addr; in init_chips()
338 p->var = chipsfb_var; in init_chips()
340 p->fbops = &chipsfb_ops; in init_chips()
342 fb_alloc_cmap(&p->cmap, 256, 0); in init_chips()
349 struct fb_info *p; in chipsfb_pci_init() local
374 p = framebuffer_alloc(0, &dp->dev); in chipsfb_pci_init()
375 if (p == NULL) { in chipsfb_pci_init()
408 p->screen_base = ioremap_wc(addr, 0x200000); in chipsfb_pci_init()
410 p->screen_base = ioremap(addr, 0x200000); in chipsfb_pci_init()
412 if (p->screen_base == NULL) { in chipsfb_pci_init()
418 pci_set_drvdata(dp, p); in chipsfb_pci_init()
420 init_chips(p, addr); in chipsfb_pci_init()
422 rc = register_framebuffer(p); in chipsfb_pci_init()
430 p->node, p->fix.smem_len / 1024); in chipsfb_pci_init()
435 iounmap(p->screen_base); in chipsfb_pci_init()
439 framebuffer_release(p); in chipsfb_pci_init()
448 struct fb_info *p = pci_get_drvdata(dp); in chipsfb_remove() local
450 if (p->screen_base == NULL) in chipsfb_remove()
452 unregister_framebuffer(p); in chipsfb_remove()
453 iounmap(p->screen_base); in chipsfb_remove()
454 p->screen_base = NULL; in chipsfb_remove()
461 struct fb_info *p = pci_get_drvdata(pdev); in chipsfb_pci_suspend() local
469 chipsfb_blank(1, p); in chipsfb_pci_suspend()
470 fb_set_suspend(p, 1); in chipsfb_pci_suspend()
479 struct fb_info *p = pci_get_drvdata(pdev); in chipsfb_pci_resume() local
482 fb_set_suspend(p, 0); in chipsfb_pci_resume()
483 chipsfb_blank(0, p); in chipsfb_pci_resume()