Lines Matching refs:uvmm
46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument
48 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_pfnclr()
52 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_pfnclr()
75 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument
77 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_pfnmap()
81 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_pfnmap()
109 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument
111 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_unmap()
115 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_unmap()
152 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument
154 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_map()
159 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_map()
231 nvkm_uvmm_mthd_put(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_put() argument
233 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_put()
237 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_put()
269 nvkm_uvmm_mthd_get(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_get() argument
271 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_get()
275 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_get()
305 nvkm_uvmm_mthd_page(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_page() argument
314 page = uvmm->vmm->func->page; in nvkm_uvmm_mthd_page()
335 struct nvkm_uvmm *uvmm = nvkm_uvmm(object); in nvkm_uvmm_mthd() local
337 case NVIF_VMM_V0_PAGE : return nvkm_uvmm_mthd_page (uvmm, argv, argc); in nvkm_uvmm_mthd()
338 case NVIF_VMM_V0_GET : return nvkm_uvmm_mthd_get (uvmm, argv, argc); in nvkm_uvmm_mthd()
339 case NVIF_VMM_V0_PUT : return nvkm_uvmm_mthd_put (uvmm, argv, argc); in nvkm_uvmm_mthd()
340 case NVIF_VMM_V0_MAP : return nvkm_uvmm_mthd_map (uvmm, argv, argc); in nvkm_uvmm_mthd()
341 case NVIF_VMM_V0_UNMAP : return nvkm_uvmm_mthd_unmap (uvmm, argv, argc); in nvkm_uvmm_mthd()
342 case NVIF_VMM_V0_PFNMAP: return nvkm_uvmm_mthd_pfnmap(uvmm, argv, argc); in nvkm_uvmm_mthd()
343 case NVIF_VMM_V0_PFNCLR: return nvkm_uvmm_mthd_pfnclr(uvmm, argv, argc); in nvkm_uvmm_mthd()
345 if (uvmm->vmm->func->mthd) { in nvkm_uvmm_mthd()
346 return uvmm->vmm->func->mthd(uvmm->vmm, in nvkm_uvmm_mthd()
347 uvmm->object.client, in nvkm_uvmm_mthd()
360 struct nvkm_uvmm *uvmm = nvkm_uvmm(object); in nvkm_uvmm_dtor() local
361 nvkm_vmm_unref(&uvmm->vmm); in nvkm_uvmm_dtor()
362 return uvmm; in nvkm_uvmm_dtor()
381 struct nvkm_uvmm *uvmm; in nvkm_uvmm_new() local
393 if (!(uvmm = kzalloc(sizeof(*uvmm), GFP_KERNEL))) in nvkm_uvmm_new()
395 nvkm_object_ctor(&nvkm_uvmm, oclass, &uvmm->object); in nvkm_uvmm_new()
396 *pobject = &uvmm->object; in nvkm_uvmm_new()
400 NULL, "user", &uvmm->vmm); in nvkm_uvmm_new()
404 uvmm->vmm->debug = max(uvmm->vmm->debug, oclass->client->debug); in nvkm_uvmm_new()
409 uvmm->vmm = nvkm_vmm_ref(mmu->vmm); in nvkm_uvmm_new()
412 page = uvmm->vmm->func->page; in nvkm_uvmm_new()
416 args->v0.addr = uvmm->vmm->start; in nvkm_uvmm_new()
417 args->v0.size = uvmm->vmm->limit; in nvkm_uvmm_new()