Lines Matching refs:uvmm
46 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
48 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_unmap()
52 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_unmap()
89 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
91 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_map()
96 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_map()
176 nvkm_uvmm_mthd_put(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_put() argument
178 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_put()
182 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_put()
214 nvkm_uvmm_mthd_get(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_get() argument
216 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_get()
220 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_get()
250 nvkm_uvmm_mthd_page(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_page() argument
259 page = uvmm->vmm->func->page; in nvkm_uvmm_mthd_page()
280 struct nvkm_uvmm *uvmm = nvkm_uvmm(object); in nvkm_uvmm_mthd() local
282 case NVIF_VMM_V0_PAGE : return nvkm_uvmm_mthd_page (uvmm, argv, argc); in nvkm_uvmm_mthd()
283 case NVIF_VMM_V0_GET : return nvkm_uvmm_mthd_get (uvmm, argv, argc); in nvkm_uvmm_mthd()
284 case NVIF_VMM_V0_PUT : return nvkm_uvmm_mthd_put (uvmm, argv, argc); in nvkm_uvmm_mthd()
285 case NVIF_VMM_V0_MAP : return nvkm_uvmm_mthd_map (uvmm, argv, argc); in nvkm_uvmm_mthd()
286 case NVIF_VMM_V0_UNMAP : return nvkm_uvmm_mthd_unmap (uvmm, argv, argc); in nvkm_uvmm_mthd()
296 struct nvkm_uvmm *uvmm = nvkm_uvmm(object); in nvkm_uvmm_dtor() local
297 nvkm_vmm_unref(&uvmm->vmm); in nvkm_uvmm_dtor()
298 return uvmm; in nvkm_uvmm_dtor()
317 struct nvkm_uvmm *uvmm; in nvkm_uvmm_new() local
327 if (!(uvmm = kzalloc(sizeof(*uvmm), GFP_KERNEL))) in nvkm_uvmm_new()
329 nvkm_object_ctor(&nvkm_uvmm, oclass, &uvmm->object); in nvkm_uvmm_new()
330 *pobject = &uvmm->object; in nvkm_uvmm_new()
334 NULL, "user", &uvmm->vmm); in nvkm_uvmm_new()
338 uvmm->vmm->debug = max(uvmm->vmm->debug, oclass->client->debug); in nvkm_uvmm_new()
343 uvmm->vmm = nvkm_vmm_ref(mmu->vmm); in nvkm_uvmm_new()
346 page = uvmm->vmm->func->page; in nvkm_uvmm_new()
350 args->v0.addr = uvmm->vmm->start; in nvkm_uvmm_new()
351 args->v0.size = uvmm->vmm->limit; in nvkm_uvmm_new()