Lines Matching refs:ptr
53 static int free_blocks(sys_mem_blocks_t *mem_block, void *ptr, in free_blocks() argument
57 uint8_t *blk = ptr; in free_blocks()
109 void *ptr = alloc_blocks(mem_block, count); in sys_mem_blocks_alloc_contiguous() local
111 if (ptr == NULL) { in sys_mem_blocks_alloc_contiguous()
116 *out_block = ptr; in sys_mem_blocks_alloc_contiguous()
119 ptr, count << mem_block->info.blk_sz_shift); in sys_mem_blocks_alloc_contiguous()
149 void *ptr = alloc_blocks(mem_block, 1); in sys_mem_blocks_alloc() local
151 if (ptr == NULL) { in sys_mem_blocks_alloc()
155 out_blocks[i] = ptr; in sys_mem_blocks_alloc()
159 ptr, in sys_mem_blocks_alloc()
274 void *ptr = in_blocks[i]; in sys_mem_blocks_free() local
276 int r = free_blocks(mem_block, ptr, 1); in sys_mem_blocks_free()
289 ptr, BIT(mem_block->info.blk_sz_shift)); in sys_mem_blocks_free()
481 struct sys_memory_stats *ptr = stats; in sys_mem_blocks_stats_query() local
487 ptr->free_bytes = (block->info.num_blocks - block->info.used_blocks) << in sys_mem_blocks_stats_query()
489 ptr->allocated_bytes = block->info.used_blocks << in sys_mem_blocks_stats_query()
491 ptr->max_allocated_bytes = block->info.max_used_blocks << in sys_mem_blocks_stats_query()