Lines Matching refs:nvkm_vma

747 static inline struct nvkm_vma *
750 struct nvkm_vma *vma = kzalloc(sizeof(*vma), GFP_KERNEL); in nvkm_vma_new()
760 struct nvkm_vma *
761 nvkm_vma_tail(struct nvkm_vma *vma, u64 tail) in nvkm_vma_tail()
763 struct nvkm_vma *new; in nvkm_vma_tail()
784 nvkm_vmm_free_remove(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_free_remove()
790 nvkm_vmm_free_delete(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_free_delete()
798 nvkm_vmm_free_insert(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_free_insert()
804 struct nvkm_vma *this = rb_entry(*ptr, typeof(*this), tree); in nvkm_vmm_free_insert()
826 nvkm_vmm_node_remove(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_node_remove()
832 nvkm_vmm_node_delete(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_node_delete()
840 nvkm_vmm_node_insert(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_node_insert()
846 struct nvkm_vma *this = rb_entry(*ptr, typeof(*this), tree); in nvkm_vmm_node_insert()
861 struct nvkm_vma *
866 struct nvkm_vma *vma = rb_entry(node, typeof(*vma), tree); in nvkm_vmm_node_search()
879 list_entry((root)->head.dir, struct nvkm_vma, head))
881 static struct nvkm_vma *
882 nvkm_vmm_node_merge(struct nvkm_vmm *vmm, struct nvkm_vma *prev, in nvkm_vmm_node_merge()
883 struct nvkm_vma *vma, struct nvkm_vma *next, u64 size) in nvkm_vmm_node_merge()
923 struct nvkm_vma *
925 struct nvkm_vma *vma, u64 addr, u64 size) in nvkm_vmm_node_split()
927 struct nvkm_vma *prev = NULL; in nvkm_vmm_node_split()
938 struct nvkm_vma *tmp; in nvkm_vmm_node_split()
951 nvkm_vma_dump(struct nvkm_vma *vma) in nvkm_vma_dump()
969 struct nvkm_vma *vma; in nvkm_vmm_dump()
978 struct nvkm_vma *vma; in nvkm_vmm_dtor()
985 struct nvkm_vma *vma = rb_entry(node, typeof(*vma), tree); in nvkm_vmm_dtor()
1019 struct nvkm_vma *vma; in nvkm_vmm_ctor_managed()
1039 struct nvkm_vma *vma; in nvkm_vmm_ctor()
1147 static struct nvkm_vma *
1148 nvkm_vmm_pfn_split_merge(struct nvkm_vmm *vmm, struct nvkm_vma *vma, in nvkm_vmm_pfn_split_merge()
1151 struct nvkm_vma *prev = NULL; in nvkm_vmm_pfn_split_merge()
1152 struct nvkm_vma *next = NULL; in nvkm_vmm_pfn_split_merge()
1173 struct nvkm_vma *vma = nvkm_vmm_node_search(vmm, addr); in nvkm_vmm_pfn_unmap()
1174 struct nvkm_vma *next; in nvkm_vmm_pfn_unmap()
1210 struct nvkm_vma *vma, *tmp; in nvkm_vmm_pfn_map()
1330 nvkm_vmm_unmap_region(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_unmap_region()
1332 struct nvkm_vma *prev = NULL; in nvkm_vmm_unmap_region()
1333 struct nvkm_vma *next; in nvkm_vmm_unmap_region()
1347 nvkm_vmm_unmap_locked(struct nvkm_vmm *vmm, struct nvkm_vma *vma, bool pfn) in nvkm_vmm_unmap_locked()
1362 nvkm_vmm_unmap(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_unmap()
1372 nvkm_vmm_map_valid(struct nvkm_vmm *vmm, struct nvkm_vma *vma, in nvkm_vmm_map_valid()
1408 nvkm_vmm_map_choose(struct nvkm_vmm *vmm, struct nvkm_vma *vma, in nvkm_vmm_map_choose()
1420 nvkm_vmm_map_locked(struct nvkm_vmm *vmm, struct nvkm_vma *vma, in nvkm_vmm_map_locked()
1506 nvkm_vmm_map(struct nvkm_vmm *vmm, struct nvkm_vma *vma, void *argv, u32 argc, in nvkm_vmm_map()
1518 nvkm_vmm_put_region(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_put_region()
1520 struct nvkm_vma *prev, *next; in nvkm_vmm_put_region()
1537 nvkm_vmm_put_locked(struct nvkm_vmm *vmm, struct nvkm_vma *vma) in nvkm_vmm_put_locked()
1540 struct nvkm_vma *next = vma; in nvkm_vmm_put_locked()
1619 nvkm_vmm_put(struct nvkm_vmm *vmm, struct nvkm_vma **pvma) in nvkm_vmm_put()
1621 struct nvkm_vma *vma = *pvma; in nvkm_vmm_put()
1632 u8 shift, u8 align, u64 size, struct nvkm_vma **pvma) in nvkm_vmm_get_locked()
1636 struct nvkm_vma *vma = NULL, *tmp; in nvkm_vmm_get_locked()
1684 struct nvkm_vma *this = rb_entry(temp, typeof(*this), tree); in nvkm_vmm_get_locked()
1700 struct nvkm_vma *this = rb_entry(node, typeof(*this), tree); in nvkm_vmm_get_locked()
1701 struct nvkm_vma *prev = node(this, prev); in nvkm_vmm_get_locked()
1702 struct nvkm_vma *next = node(this, next); 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()