| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
| H A D | uvmm.c | 46 nvkm_uvmm_mthd_pfnclr(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnclr() argument 51 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_pfnclr() 74 nvkm_uvmm_mthd_pfnmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_pfnmap() argument 79 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_pfnmap() 107 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument 112 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_unmap() 151 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument 153 struct nvkm_client *client = uvmm->object.client; in nvkm_uvmm_mthd_map() 158 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_map() 232 nvkm_uvmm_mthd_put(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_put() argument [all …]
|
| H A D | memnv50.c | 37 struct nv50_vmm_map_v0 uvmm = {}; in nv50_mem_map() local 48 uvmm.ro = args->v0.ro; in nv50_mem_map() 49 uvmm.kind = args->v0.kind; in nv50_mem_map() 50 uvmm.comp = args->v0.comp; in nv50_mem_map() 62 return nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm)); in nv50_mem_map()
|
| H A D | memgf100.c | 37 struct gf100_vmm_map_v0 uvmm = {}; in gf100_mem_map() local 47 uvmm.ro = args->v0.ro; in gf100_mem_map() 48 uvmm.kind = args->v0.kind; in gf100_mem_map() 59 ret = nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm)); in gf100_mem_map()
|
| H A D | Kbuild | 44 nvkm-y += nvkm/subdev/mmu/uvmm.o
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_uvmm.c | 91 nouveau_uvmm_vmm_sparse_ref(struct nouveau_uvmm *uvmm, in nouveau_uvmm_vmm_sparse_ref() argument 94 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_sparse_ref() 100 nouveau_uvmm_vmm_sparse_unref(struct nouveau_uvmm *uvmm, in nouveau_uvmm_vmm_sparse_unref() argument 103 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_sparse_unref() 109 nouveau_uvmm_vmm_get(struct nouveau_uvmm *uvmm, in nouveau_uvmm_vmm_get() argument 112 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_get() 118 nouveau_uvmm_vmm_put(struct nouveau_uvmm *uvmm, in nouveau_uvmm_vmm_put() argument 121 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_put() 127 nouveau_uvmm_vmm_unmap(struct nouveau_uvmm *uvmm, in nouveau_uvmm_vmm_unmap() argument 130 struct nvif_vmm *vmm = &uvmm->vmm.vmm; in nouveau_uvmm_vmm_unmap() [all …]
|
| H A D | nouveau_uvmm.h | 18 struct nouveau_uvmm *uvmm; member 78 void nouveau_uvmm_fini(struct nouveau_uvmm *uvmm); 89 static inline void nouveau_uvmm_lock(struct nouveau_uvmm *uvmm) in nouveau_uvmm_lock() argument 91 mutex_lock(&uvmm->mutex); in nouveau_uvmm_lock() 94 static inline void nouveau_uvmm_unlock(struct nouveau_uvmm *uvmm) in nouveau_uvmm_unlock() argument 96 mutex_unlock(&uvmm->mutex); in nouveau_uvmm_unlock()
|
| H A D | nouveau_debugfs.c | 207 nouveau_debugfs_gpuva_regions(struct seq_file *m, struct nouveau_uvmm *uvmm) in nouveau_debugfs_gpuva_regions() argument 209 MA_STATE(mas, &uvmm->region_mt, 0, 0); in nouveau_debugfs_gpuva_regions() 228 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); in nouveau_debugfs_gpuva() local 230 if (!uvmm) in nouveau_debugfs_gpuva() 233 nouveau_uvmm_lock(uvmm); in nouveau_debugfs_gpuva() 234 drm_debugfs_gpuva_info(m, &uvmm->base); in nouveau_debugfs_gpuva() 236 nouveau_debugfs_gpuva_regions(m, uvmm); in nouveau_debugfs_gpuva() 237 nouveau_uvmm_unlock(uvmm); in nouveau_debugfs_gpuva()
|
| H A D | nouveau_exec.c | 94 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); in nouveau_exec_job_submit() local 102 nouveau_uvmm_lock(uvmm); in nouveau_exec_job_submit() 105 nouveau_uvmm_unlock(uvmm); in nouveau_exec_job_submit() 108 nouveau_uvmm_unlock(uvmm); in nouveau_exec_job_submit()
|
| H A D | nouveau_gem.c | 103 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); in nouveau_gem_object_open() local 111 if (nvbo->no_share && uvmm && in nouveau_gem_object_open() 112 drm_gpuvm_resv(&uvmm->base) != nvbo->bo.base.resv) in nouveau_gem_object_open() 237 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); in nouveau_gem_new() local 243 if (unlikely(!uvmm)) in nouveau_gem_new() 246 resv = drm_gpuvm_resv(&uvmm->base); in nouveau_gem_new() 290 nvbo->r_obj = drm_gpuvm_resv_obj(&uvmm->base); in nouveau_gem_new()
|
| H A D | nouveau_drm.c | 209 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm_locked(cli); in nouveau_cli_fini() local 221 if (uvmm) in nouveau_cli_fini() 222 nouveau_uvmm_fini(uvmm); in nouveau_cli_fini()
|