• Home
  • Raw
  • Download

Lines Matching refs:fb

46 	struct nv50_fb *fb = nv50_fb(base);  in nv50_fb_ram_new()  local
47 return fb->func->ram_new(&fb->base, pram); in nv50_fb_ram_new()
51 nv50_fb_memtype_valid(struct nvkm_fb *fb, u32 memtype) in nv50_fb_memtype_valid() argument
155 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_intr() local
156 struct nvkm_subdev *subdev = &fb->base.subdev; in nv50_fb_intr()
216 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_init() local
217 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_init()
223 nvkm_wr32(device, 0x100c08, fb->r100c08 >> 8); in nv50_fb_init()
227 nvkm_wr32(device, 0x100c90, fb->func->trap); in nv50_fb_init()
233 struct nv50_fb *fb = nv50_fb(base); in nv50_fb_dtor() local
234 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_dtor()
236 if (fb->r100c08_page) { in nv50_fb_dtor()
237 dma_unmap_page(device->dev, fb->r100c08, PAGE_SIZE, in nv50_fb_dtor()
239 __free_page(fb->r100c08_page); in nv50_fb_dtor()
242 return fb; in nv50_fb_dtor()
258 struct nv50_fb *fb; in nv50_fb_new_() local
260 if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) in nv50_fb_new_()
262 nvkm_fb_ctor(&nv50_fb_, device, index, &fb->base); in nv50_fb_new_()
263 fb->func = func; in nv50_fb_new_()
264 *pfb = &fb->base; in nv50_fb_new_()
266 fb->r100c08_page = alloc_page(GFP_KERNEL | __GFP_ZERO); in nv50_fb_new_()
267 if (fb->r100c08_page) { in nv50_fb_new_()
268 fb->r100c08 = dma_map_page(device->dev, fb->r100c08_page, 0, in nv50_fb_new_()
270 if (dma_mapping_error(device->dev, fb->r100c08)) in nv50_fb_new_()
273 nvkm_warn(&fb->base.subdev, "failed 100c08 page alloc\n"); in nv50_fb_new_()