Lines Matching refs:range_before
124 size_t range_before, size_t range_after, in __mte_allocate_memory_range() argument
129 size_t entire_size = size + range_before + range_after; in __mte_allocate_memory_range()
133 return malloc(entire_size) + range_before; in __mte_allocate_memory_range()
164 ptr = mte_insert_tags(ptr + range_before, size); in __mte_allocate_memory_range()
169 size_t range_before, size_t range_after) in mte_allocate_memory_tag_range() argument
171 return __mte_allocate_memory_range(size, mem_type, mapping, range_before, in mte_allocate_memory_tag_range()
206 size_t range_before, size_t range_after, int fd) in mte_allocate_file_memory_tag_range() argument
210 int map_size = size + range_before + range_after; in mte_allocate_file_memory_tag_range()
228 return __mte_allocate_memory_range(size, mem_type, mapping, range_before, in mte_allocate_file_memory_tag_range()
233 size_t range_before, size_t range_after, bool tags) in __mte_free_memory_range() argument
237 free(ptr - range_before); in __mte_free_memory_range()
243 munmap(ptr - range_before, size + range_before + range_after); in __mte_free_memory_range()
252 size_t range_before, size_t range_after) in mte_free_memory_tag_range() argument
254 __mte_free_memory_range(ptr, size, mem_type, range_before, range_after, true); in mte_free_memory_tag_range()