Searched refs:SIZEOF_STRUCT_MEM (Results 1 – 1 of 1) sorted by relevance
184 if ((end_align > (2 * SIZEOF_STRUCT_MEM)) && in rt_smem_init()185 ((end_align - 2 * SIZEOF_STRUCT_MEM) >= start_addr)) in rt_smem_init()188 mem_size = end_align - begin_align - 2 * SIZEOF_STRUCT_MEM; in rt_smem_init()215 mem->next = small_mem->mem_size_aligned + SIZEOF_STRUCT_MEM; in rt_smem_init()310 if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= in rt_smem_alloc()311 (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) in rt_smem_alloc()323 ptr2 = ptr + SIZEOF_STRUCT_MEM + size; in rt_smem_alloc()384 return (rt_uint8_t *)mem + SIZEOF_STRUCT_MEM; in rt_smem_alloc()442 size = mem->next - ptr - SIZEOF_STRUCT_MEM; in rt_smem_realloc()449 if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE < size) in rt_smem_realloc()[all …]
Completed in 5 milliseconds