Lines Matching refs:vm
33 return gf100_bar(base)->bar[0].vm; in gf100_bar_kmap()
40 return nvkm_vm_get(bar->bar[1].vm, size, type, NV_MEM_ACCESS_RW, vma); in gf100_bar_umap()
48 struct nvkm_vm *vm; in gf100_bar_ctor_vm() local
63 ret = nvkm_vm_new(device, 0, bar_len, 0, key, &vm); in gf100_bar_ctor_vm()
67 atomic_inc(&vm->engref[NVKM_SUBDEV_BAR]); in gf100_bar_ctor_vm()
73 ret = nvkm_vm_boot(vm, bar_len); in gf100_bar_ctor_vm()
75 nvkm_vm_ref(NULL, &vm, NULL); in gf100_bar_ctor_vm()
80 ret = nvkm_vm_ref(vm, &bar_vm->vm, bar_vm->pgd); in gf100_bar_ctor_vm()
81 nvkm_vm_ref(NULL, &vm, NULL); in gf100_bar_ctor_vm()
143 nvkm_vm_ref(NULL, &bar->bar[1].vm, bar->bar[1].pgd); in gf100_bar_dtor()
147 if (bar->bar[0].vm) { in gf100_bar_dtor()
148 nvkm_memory_del(&bar->bar[0].vm->pgt[0].mem[0]); in gf100_bar_dtor()
149 nvkm_vm_ref(NULL, &bar->bar[0].vm, bar->bar[0].pgd); in gf100_bar_dtor()