• Home
  • Raw
  • Download

Lines Matching refs:info

59 			      u_int transp, struct fb_info *info)  in mdpy_fb_setcolreg()  argument
61 u32 *pal = info->pseudo_palette; in mdpy_fb_setcolreg()
62 u32 cr = red >> (16 - info->var.red.length); in mdpy_fb_setcolreg()
63 u32 cg = green >> (16 - info->var.green.length); in mdpy_fb_setcolreg()
64 u32 cb = blue >> (16 - info->var.blue.length); in mdpy_fb_setcolreg()
70 value = (cr << info->var.red.offset) | in mdpy_fb_setcolreg()
71 (cg << info->var.green.offset) | in mdpy_fb_setcolreg()
72 (cb << info->var.blue.offset); in mdpy_fb_setcolreg()
73 if (info->var.transp.length > 0) { in mdpy_fb_setcolreg()
74 mask = (1 << info->var.transp.length) - 1; in mdpy_fb_setcolreg()
75 mask <<= info->var.transp.offset; in mdpy_fb_setcolreg()
83 static void mdpy_fb_destroy(struct fb_info *info) in mdpy_fb_destroy() argument
85 if (info->screen_base) in mdpy_fb_destroy()
86 iounmap(info->screen_base); in mdpy_fb_destroy()
101 struct fb_info *info; in mdpy_fb_probe() local
136 info = framebuffer_alloc(sizeof(struct mdpy_fb_par), &pdev->dev); in mdpy_fb_probe()
137 if (!info) { in mdpy_fb_probe()
141 pci_set_drvdata(pdev, info); in mdpy_fb_probe()
142 par = info->par; in mdpy_fb_probe()
144 info->fix = mdpy_fb_fix; in mdpy_fb_probe()
145 info->fix.smem_start = pci_resource_start(pdev, 0); in mdpy_fb_probe()
146 info->fix.smem_len = pci_resource_len(pdev, 0); in mdpy_fb_probe()
147 info->fix.line_length = width * 4; in mdpy_fb_probe()
149 info->var = mdpy_fb_var; in mdpy_fb_probe()
150 info->var.xres = width; in mdpy_fb_probe()
151 info->var.yres = height; in mdpy_fb_probe()
152 info->var.xres_virtual = width; in mdpy_fb_probe()
153 info->var.yres_virtual = height; in mdpy_fb_probe()
155 info->screen_size = info->fix.smem_len; in mdpy_fb_probe()
156 info->screen_base = ioremap(info->fix.smem_start, in mdpy_fb_probe()
157 info->screen_size); in mdpy_fb_probe()
158 if (!info->screen_base) { in mdpy_fb_probe()
164 info->apertures = alloc_apertures(1); in mdpy_fb_probe()
165 if (!info->apertures) { in mdpy_fb_probe()
169 info->apertures->ranges[0].base = info->fix.smem_start; in mdpy_fb_probe()
170 info->apertures->ranges[0].size = info->fix.smem_len; in mdpy_fb_probe()
172 info->fbops = &mdpy_fb_ops; in mdpy_fb_probe()
173 info->flags = FBINFO_DEFAULT; in mdpy_fb_probe()
174 info->pseudo_palette = par->palette; in mdpy_fb_probe()
176 ret = register_framebuffer(info); in mdpy_fb_probe()
182 pci_info(pdev, "fb%d registered\n", info->node); in mdpy_fb_probe()
186 iounmap(info->screen_base); in mdpy_fb_probe()
189 framebuffer_release(info); in mdpy_fb_probe()
202 struct fb_info *info = pci_get_drvdata(pdev); in mdpy_fb_remove() local
204 unregister_framebuffer(info); in mdpy_fb_remove()
205 iounmap(info->screen_base); in mdpy_fb_remove()
206 framebuffer_release(info); in mdpy_fb_remove()