Lines Matching refs:device
157 struct nvkm_device *device = subdev->device; in nv50_fb_intr() local
158 struct nvkm_fifo *fifo = device->fifo; in nv50_fb_intr()
166 idx = nvkm_rd32(device, 0x100c90); in nv50_fb_intr()
172 nvkm_wr32(device, 0x100c90, idx | i << 24); in nv50_fb_intr()
173 trap[i] = nvkm_rd32(device, 0x100c94); in nv50_fb_intr()
175 nvkm_wr32(device, 0x100c90, idx | 0x80000000); in nv50_fb_intr()
178 if (device->chipset < 0xa3 || in nv50_fb_intr()
179 device->chipset == 0xaa || device->chipset == 0xac) { in nv50_fb_intr()
217 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_init() local
223 nvkm_wr32(device, 0x100c08, fb->r100c08 >> 8); in nv50_fb_init()
227 nvkm_wr32(device, 0x100c90, fb->func->trap); in nv50_fb_init()
234 struct nvkm_device *device = fb->base.subdev.device; in nv50_fb_dtor() local
237 dma_unmap_page(device->dev, fb->r100c08, PAGE_SIZE, in nv50_fb_dtor()
255 nv50_fb_new_(const struct nv50_fb_func *func, struct nvkm_device *device, in nv50_fb_new_() argument
262 nvkm_fb_ctor(&nv50_fb_, device, index, &fb->base); 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_()
286 nv50_fb_new(struct nvkm_device *device, int index, struct nvkm_fb **pfb) in nv50_fb_new() argument
288 return nv50_fb_new_(&nv50_fb, device, index, pfb); in nv50_fb_new()