Home
last modified time | relevance | path

Searched refs:uvmm (Results 1 – 11 of 11) sorted by relevance

/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Duvmm.c51 struct nvkm_vmm *vmm = uvmm->vmm; in nvkm_uvmm_mthd_pfnclr()
311 page = uvmm->vmm->func->page; in nvkm_uvmm_mthd_page()
469 if (!uvmm->vmm->managed.raw) in nvkm_uvmm_mthd_raw()
505 if (uvmm->vmm->func->mthd) { in nvkm_uvmm_mthd()
506 return uvmm->vmm->func->mthd(uvmm->vmm, in nvkm_uvmm_mthd()
521 nvkm_vmm_unref(&uvmm->vmm); in nvkm_uvmm_dtor()
522 return uvmm; in nvkm_uvmm_dtor()
541 struct nvkm_uvmm *uvmm; in nvkm_uvmm_new() local
554 if (!(uvmm = kzalloc(sizeof(*uvmm), GFP_KERNEL))) in nvkm_uvmm_new()
558 *pobject = &uvmm->object; in nvkm_uvmm_new()
[all …]
H A Dmemnv50.c37 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 Dmemgf100.c37 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 DKbuild44 nvkm-y += nvkm/subdev/mmu/uvmm.o
/linux-6.15/drivers/gpu/drm/nouveau/
H A Dnouveau_uvmm.c295 reg->uvmm = uvmm; in __nouveau_uvma_region_insert()
307 reg->uvmm = uvmm; in nouveau_uvma_region_insert()
321 struct nouveau_uvmm *uvmm = reg->uvmm; in nouveau_uvma_region_remove() local
387 struct nouveau_uvmm *uvmm = reg->uvmm; in nouveau_uvma_region_empty() local
397 struct nouveau_uvmm *uvmm = reg->uvmm; in __nouveau_uvma_region_destroy() local
1798 kfree(uvmm); in nouveau_uvmm_free()
1843 uvmm = kzalloc(sizeof(*uvmm), GFP_KERNEL); in nouveau_uvmm_ioctl_vm_init()
1844 if (!uvmm) { in nouveau_uvmm_ioctl_vm_init()
1851 kfree(uvmm); in nouveau_uvmm_ioctl_vm_init()
1858 mt_set_external_lock(&uvmm->region_mt, &uvmm->mutex); in nouveau_uvmm_ioctl_vm_init()
[all …]
H A Dnouveau_uvmm.h18 struct nouveau_uvmm *uvmm; member
77 void nouveau_uvmm_fini(struct nouveau_uvmm *uvmm);
88 static inline void nouveau_uvmm_lock(struct nouveau_uvmm *uvmm) in nouveau_uvmm_lock() argument
90 mutex_lock(&uvmm->mutex); in nouveau_uvmm_lock()
93 static inline void nouveau_uvmm_unlock(struct nouveau_uvmm *uvmm) in nouveau_uvmm_unlock() argument
95 mutex_unlock(&uvmm->mutex); in nouveau_uvmm_unlock()
H A Dnouveau_drv.h98 } uvmm; member
126 return cli ? cli->uvmm.ptr : NULL; in nouveau_cli_uvmm()
132 struct nouveau_uvmm *uvmm; in nouveau_cli_uvmm_locked() local
135 uvmm = nouveau_cli_uvmm(cli); in nouveau_cli_uvmm_locked()
138 return uvmm; in nouveau_cli_uvmm_locked()
144 struct nouveau_uvmm *uvmm; in nouveau_cli_vmm() local
146 uvmm = nouveau_cli_uvmm(cli); in nouveau_cli_vmm()
147 if (uvmm) in nouveau_cli_vmm()
148 return &uvmm->vmm; in nouveau_cli_vmm()
161 if (!uvmm) in __nouveau_cli_disable_uvmm_noinit()
[all …]
H A Dnouveau_debugfs.c207 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 Dnouveau_exec.c92 struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); in nouveau_exec_job_submit() local
100 nouveau_uvmm_lock(uvmm); in nouveau_exec_job_submit()
103 nouveau_uvmm_unlock(uvmm); in nouveau_exec_job_submit()
106 nouveau_uvmm_unlock(uvmm); in nouveau_exec_job_submit()
H A Dnouveau_gem.c103 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 Dnouveau_drm.c209 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()