Lines Matching full:fb

34 	struct gf100_fb *fb = gf100_fb(base);  in gf100_fb_intr()  local
35 struct nvkm_subdev *subdev = &fb->base.subdev; in gf100_fb_intr()
47 struct gf100_fb *fb = gf100_fb(base); in gf100_fb_oneinit() local
48 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_oneinit()
49 int ret, size = 1 << (fb->base.page ? fb->base.page : 17); in gf100_fb_oneinit()
55 true, &fb->base.mmu_rd); in gf100_fb_oneinit()
60 true, &fb->base.mmu_wr); in gf100_fb_oneinit()
64 fb->r100c10_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in gf100_fb_oneinit()
65 if (fb->r100c10_page) { in gf100_fb_oneinit()
66 fb->r100c10 = dma_map_page(device->dev, fb->r100c10_page, 0, in gf100_fb_oneinit()
68 if (dma_mapping_error(device->dev, fb->r100c10)) in gf100_fb_oneinit()
76 gf100_fb_init_page(struct nvkm_fb *fb) in gf100_fb_init_page() argument
78 struct nvkm_device *device = fb->subdev.device; in gf100_fb_init_page()
79 switch (fb->page) { in gf100_fb_init_page()
91 struct gf100_fb *fb = gf100_fb(base); in gf100_fb_init() local
92 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_init()
94 if (fb->r100c10_page) in gf100_fb_init()
95 nvkm_wr32(device, 0x100c10, fb->r100c10 >> 8); in gf100_fb_init()
106 struct gf100_fb *fb = gf100_fb(base); in gf100_fb_dtor() local
107 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_dtor()
109 if (fb->r100c10_page) { in gf100_fb_dtor()
110 dma_unmap_page(device->dev, fb->r100c10, PAGE_SIZE, in gf100_fb_dtor()
112 __free_page(fb->r100c10_page); in gf100_fb_dtor()
115 return fb; in gf100_fb_dtor()
122 struct gf100_fb *fb; in gf100_fb_new_() local
124 if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) in gf100_fb_new_()
126 nvkm_fb_ctor(func, device, index, &fb->base); in gf100_fb_new_()
127 *pfb = &fb->base; in gf100_fb_new_()