/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_vmm.c | 62 nouveau_vma_del(struct nouveau_vma **pvma) in nouveau_vma_del() argument 64 struct nouveau_vma *vma = *pvma; in nouveau_vma_del() 71 kfree(*pvma); in nouveau_vma_del() 73 *pvma = NULL; in nouveau_vma_del() 78 struct nouveau_vma **pvma) in nouveau_vma_new() argument 85 if ((vma = *pvma = nouveau_vma_find(nvbo, vmm))) { in nouveau_vma_new() 90 if (!(vma = *pvma = kmalloc(sizeof(*vma), GFP_KERNEL))) in nouveau_vma_new() 116 nouveau_vma_del(pvma); in nouveau_vma_new()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | memnv50.c | 35 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in nv50_mem_map() argument 56 ret = nvkm_vmm_get(bar, 12, size, pvma); in nv50_mem_map() 60 *paddr = device->func->resource_addr(device, 1) + (*pvma)->addr; in nv50_mem_map() 61 *psize = (*pvma)->size; in nv50_mem_map() 62 return nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm)); in nv50_mem_map()
|
A D | memgf100.c | 35 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in gf100_mem_map() argument 55 nvkm_memory_size(memory), pvma); in gf100_mem_map() 59 ret = nvkm_memory_map(memory, 0, bar, *pvma, &uvmm, sizeof(uvmm)); in gf100_mem_map() 63 *paddr = device->func->resource_addr(device, 1) + (*pvma)->addr; in gf100_mem_map() 64 *psize = (*pvma)->size; in gf100_mem_map()
|
A D | memnv04.c | 32 u32 argc, u64 *paddr, u64 *psize, struct nvkm_vma **pvma) in nv04_mem_map() argument 46 *pvma = ERR_PTR(-ENODEV); in nv04_mem_map()
|
A D | vmm.c | 1619 nvkm_vmm_put(struct nvkm_vmm *vmm, struct nvkm_vma **pvma) in nvkm_vmm_put() argument 1621 struct nvkm_vma *vma = *pvma; in nvkm_vmm_put() 1626 *pvma = NULL; in nvkm_vmm_put() 1632 u8 shift, u8 align, u64 size, struct nvkm_vma **pvma) in nvkm_vmm_get_locked() argument 1764 *pvma = vma; in nvkm_vmm_get_locked() 1769 nvkm_vmm_get(struct nvkm_vmm *vmm, u8 page, u64 size, struct nvkm_vma **pvma) in nvkm_vmm_get() argument 1773 ret = nvkm_vmm_get_locked(vmm, false, true, false, page, 0, size, pvma); in nvkm_vmm_get()
|
A D | vmm.h | 171 struct nvkm_vma **pvma);
|
/linux/mm/ |
A D | nommu.c | 554 struct vm_area_struct *pvma, *prev; in add_vma_to_mm() local 579 pvma = rb_entry(parent, struct vm_area_struct, vm_rb); in add_vma_to_mm() 583 if (vma->vm_start < pvma->vm_start) in add_vma_to_mm() 585 else if (vma->vm_start > pvma->vm_start) { in add_vma_to_mm() 588 } else if (vma->vm_end < pvma->vm_end) in add_vma_to_mm() 590 else if (vma->vm_end > pvma->vm_end) { in add_vma_to_mm() 593 } else if (vma < pvma) in add_vma_to_mm() 595 else if (vma > pvma) { in add_vma_to_mm()
|
A D | shmem.c | 1511 struct vm_area_struct pvma; in shmem_swapin() local 1514 .vma = &pvma, in shmem_swapin() 1517 shmem_pseudo_vma_init(&pvma, info, index); in shmem_swapin() 1519 shmem_pseudo_vma_destroy(&pvma); in shmem_swapin() 1551 struct vm_area_struct pvma; in shmem_alloc_hugepage() local 1561 shmem_pseudo_vma_init(&pvma, info, hindex); in shmem_alloc_hugepage() 1564 shmem_pseudo_vma_destroy(&pvma); in shmem_alloc_hugepage() 1575 struct vm_area_struct pvma; in shmem_alloc_page() local 1578 shmem_pseudo_vma_init(&pvma, info, index); in shmem_alloc_page() 1579 page = alloc_page_vma(gfp, &pvma, 0); in shmem_alloc_page() [all …]
|
A D | rmap.c | 329 int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma) in anon_vma_fork() argument 336 if (!pvma->anon_vma) in anon_vma_fork() 346 error = anon_vma_clone(vma, pvma); in anon_vma_fork() 366 anon_vma->root = pvma->anon_vma->root; in anon_vma_fork() 367 anon_vma->parent = pvma->anon_vma; in anon_vma_fork()
|
A D | mempolicy.c | 2683 struct vm_area_struct pvma; in mpol_shared_policy_init() local 2701 vma_init(&pvma, NULL); in mpol_shared_policy_init() 2702 pvma.vm_end = TASK_SIZE; /* policy covers entire file */ in mpol_shared_policy_init() 2703 mpol_set_shared_policy(sp, &pvma, new); /* adds ref */ in mpol_shared_policy_init()
|