Lines Matching refs:ptr
427 static block_header_t * block_from_ptr(const void * ptr) in block_from_ptr() argument
430 tlsf_cast(unsigned char *, ptr) - block_start_offset); in block_from_ptr()
440 static block_header_t * offset_to_block(const void * ptr, size_t size) in offset_to_block() argument
442 return tlsf_cast(block_header_t *, tlsf_cast(tlsfptr_t, ptr) + size); in offset_to_block()
496 static void * align_ptr(const void * ptr, size_t align) in align_ptr() argument
499 (tlsf_cast(tlsfptr_t, ptr) + (align - 1)) & ~(align - 1); in align_ptr()
821 static void integrity_walker(void * ptr, size_t size, int used, void * user) in integrity_walker() argument
823 block_header_t * block = block_from_ptr(ptr); in integrity_walker()
887 static void default_walker(void * ptr, size_t size, int used, void * user) in default_walker() argument
890 …printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, (void *)block_f… in default_walker()
909 size_t lv_tlsf_block_size(void * ptr) in lv_tlsf_block_size() argument
912 if(ptr) { in lv_tlsf_block_size()
913 const block_header_t * block = block_from_ptr(ptr); in lv_tlsf_block_size()
1133 void * ptr = block_to_ptr(block); in lv_tlsf_memalign() local
1134 void * aligned = align_ptr(ptr, align); in lv_tlsf_memalign()
1136 tlsf_cast(tlsfptr_t, aligned) - tlsf_cast(tlsfptr_t, ptr)); in lv_tlsf_memalign()
1147 tlsf_cast(tlsfptr_t, aligned) - tlsf_cast(tlsfptr_t, ptr)); in lv_tlsf_memalign()
1159 size_t lv_tlsf_free(lv_tlsf_t tlsf, const void * ptr) in lv_tlsf_free() argument
1163 if(ptr) { in lv_tlsf_free()
1165 block_header_t * block = block_from_ptr(ptr); in lv_tlsf_free()
1190 void * lv_tlsf_realloc(lv_tlsf_t tlsf, void * ptr, size_t size) in lv_tlsf_realloc() argument
1196 if(ptr && size == 0) { in lv_tlsf_realloc()
1197 lv_tlsf_free(tlsf, ptr); in lv_tlsf_realloc()
1200 else if(!ptr) { in lv_tlsf_realloc()
1204 block_header_t * block = block_from_ptr(ptr); in lv_tlsf_realloc()
1225 lv_memcpy(p, ptr, minsize); in lv_tlsf_realloc()
1226 lv_tlsf_free(tlsf, ptr); in lv_tlsf_realloc()
1238 p = ptr; in lv_tlsf_realloc()