Lines Matching defs:mm
75 static struct gpu_buddy_block *gpu_block_alloc(struct gpu_buddy *mm, in gpu_block_alloc()
98 static void gpu_block_free(struct gpu_buddy *mm, in gpu_block_free()
128 static void rbtree_insert(struct gpu_buddy *mm, in rbtree_insert()
166 static void rbtree_remove(struct gpu_buddy *mm, in rbtree_remove()
190 static void mark_allocated(struct gpu_buddy *mm, in mark_allocated()
202 static void mark_free(struct gpu_buddy *mm, in mark_free()
219 static void mark_split(struct gpu_buddy *mm, in mark_split()
255 static unsigned int __gpu_buddy_free(struct gpu_buddy *mm, in __gpu_buddy_free()
303 static int __force_merge(struct gpu_buddy *mm, in __force_merge()
378 int gpu_buddy_init(struct gpu_buddy *mm, u64 size, u64 chunk_size) in gpu_buddy_init()
490 void gpu_buddy_fini(struct gpu_buddy *mm) in gpu_buddy_fini()
525 static int split_block(struct gpu_buddy *mm, in split_block()
568 void gpu_buddy_reset_clear(struct gpu_buddy *mm, bool is_clear) in gpu_buddy_reset_clear()
615 void gpu_buddy_free_block(struct gpu_buddy *mm, in gpu_buddy_free_block()
637 struct gpu_buddy_block *gpu_buddy_allocated_addr_to_block(struct gpu_buddy *mm, u64 addr) in gpu_buddy_allocated_addr_to_block()
681 static void __gpu_buddy_free_list(struct gpu_buddy *mm, in __gpu_buddy_free_list()
701 static void gpu_buddy_free_list_internal(struct gpu_buddy *mm, in gpu_buddy_free_list_internal()
719 void gpu_buddy_free_list(struct gpu_buddy *mm, in gpu_buddy_free_list()
737 static void __gpu_buddy_undo_splits(struct gpu_buddy *mm, in __gpu_buddy_undo_splits()
752 __alloc_range_bias(struct gpu_buddy *mm, in __alloc_range_bias()
839 __gpu_buddy_alloc_range_bias(struct gpu_buddy *mm, in __gpu_buddy_alloc_range_bias()
857 get_maxblock(struct gpu_buddy *mm, in get_maxblock()
886 alloc_from_freetree(struct gpu_buddy *mm, in alloc_from_freetree()
963 gpu_buddy_find_block_aligned(struct gpu_buddy *mm, in gpu_buddy_find_block_aligned()
1000 gpu_buddy_offset_aligned_allocation(struct gpu_buddy *mm, in gpu_buddy_offset_aligned_allocation()
1063 static int __alloc_range(struct gpu_buddy *mm, in __alloc_range()
1153 static int __gpu_buddy_alloc_range(struct gpu_buddy *mm, in __gpu_buddy_alloc_range()
1169 static int __alloc_contig_aligned_retry(struct gpu_buddy *mm, in __alloc_contig_aligned_retry()
1180 static int __alloc_contig_try_harder(struct gpu_buddy *mm, in __alloc_contig_try_harder()
1276 int gpu_buddy_block_trim(struct gpu_buddy *mm, in gpu_buddy_block_trim()
1352 __gpu_buddy_alloc_blocks(struct gpu_buddy *mm, in __gpu_buddy_alloc_blocks()
1392 int gpu_buddy_alloc_blocks(struct gpu_buddy *mm, in gpu_buddy_alloc_blocks()
1575 void gpu_buddy_block_print(struct gpu_buddy *mm, in gpu_buddy_block_print()
1591 void gpu_buddy_print(struct gpu_buddy *mm) in gpu_buddy_print()