Searched refs:memory_block (Results 1 – 4 of 4) sorted by relevance
75 UX_MEMORY_BLOCK *memory_block; in _ux_utility_memory_free_block_best_get() local89 memory_block = _ux_system -> ux_system_regular_memory_pool_start; in _ux_utility_memory_free_block_best_get()95 memory_block = _ux_system -> ux_system_cache_safe_memory_pool_start; in _ux_utility_memory_free_block_best_get()106 while (memory_block != UX_NULL) in _ux_utility_memory_free_block_best_get()110 if (memory_block -> ux_memory_block_status == UX_MEMORY_UNUSED) in _ux_utility_memory_free_block_best_get()115 if (memory_block -> ux_memory_block_size > memory_size_requested) in _ux_utility_memory_free_block_best_get()124 best_memory_block = memory_block; in _ux_utility_memory_free_block_best_get()128 … if (memory_block -> ux_memory_block_size < best_memory_block -> ux_memory_block_size) in _ux_utility_memory_free_block_best_get()131 best_memory_block = memory_block; in _ux_utility_memory_free_block_best_get()137 memory_block = memory_block -> ux_memory_block_next; in _ux_utility_memory_free_block_best_get()
77 UX_MEMORY_BLOCK *memory_block; in _ux_utility_memory_free() local117 memory_block = (UX_MEMORY_BLOCK *) (((UCHAR *) memory) - sizeof(UX_MEMORY_BLOCK)); in _ux_utility_memory_free()120 memory_size_returned = memory_block -> ux_memory_block_size + (ULONG)sizeof(UX_MEMORY_BLOCK); in _ux_utility_memory_free()123 if (memory_block -> ux_memory_block_status != (UX_MEMORY_USED | UX_REGULAR_MEMORY) && in _ux_utility_memory_free()124 memory_block -> ux_memory_block_status != (UX_MEMORY_USED | UX_CACHE_SAFE_MEMORY)) in _ux_utility_memory_free()143 if (memory_block -> ux_memory_block_status == (UX_MEMORY_USED | UX_REGULAR_MEMORY)) in _ux_utility_memory_free()146 … _ux_system -> ux_system_regular_memory_pool_alloc_total -= memory_block -> ux_memory_block_size; in _ux_utility_memory_free()151 …_ux_system -> ux_system_cache_safe_memory_pool_alloc_total -= memory_block -> ux_memory_block_size; in _ux_utility_memory_free()156 memory_block -> ux_memory_block_status = UX_MEMORY_UNUSED; in _ux_utility_memory_free()162 while (memory_block -> ux_memory_block_previous !=UX_NULL) in _ux_utility_memory_free()[all …]
86 UX_MEMORY_BLOCK *memory_block; in _ux_utility_memory_allocate() local233 …memory_block = _ux_utility_memory_free_block_best_get(memory_cache_flag, memory_size_requested + … in _ux_utility_memory_allocate()237 if (memory_block == UX_NULL) in _ux_utility_memory_allocate()254 int_memory_buffer = (ALIGN_TYPE) ((UCHAR *) memory_block + sizeof(UX_MEMORY_BLOCK)); in _ux_utility_memory_allocate()261 …new_memory_block = (UX_MEMORY_BLOCK *) ((UCHAR *) memory_block + sizeof(UX_MEMORY_BLOCK) + memory… in _ux_utility_memory_allocate()262 new_memory_block -> ux_memory_block_next = memory_block -> ux_memory_block_next; in _ux_utility_memory_allocate()263 new_memory_block -> ux_memory_block_previous = memory_block; in _ux_utility_memory_allocate()264 …new_memory_block -> ux_memory_block_size = memory_block -> ux_memory_block_size - memory_size_req… in _ux_utility_memory_allocate()268 memory_block -> ux_memory_block_size = memory_size_requested; in _ux_utility_memory_allocate()269 memory_block -> ux_memory_block_next = new_memory_block; in _ux_utility_memory_allocate()[all …]
124 UX_MEMORY_BLOCK *memory_block; in _ux_system_initialize() local199 memory_block = _ux_system -> ux_system_regular_memory_pool_start; in _ux_system_initialize()200 …memory_block -> ux_memory_block_size = _ux_system -> ux_system_regular_memory_pool_size - (ULO… in _ux_system_initialize()201 memory_block -> ux_memory_block_status = UX_MEMORY_UNUSED; in _ux_system_initialize()230 … memory_block = _ux_system -> ux_system_cache_safe_memory_pool_start; in _ux_system_initialize()231 …memory_block -> ux_memory_block_size = _ux_system -> ux_system_cache_safe_memory_pool_size - (… in _ux_system_initialize()232 memory_block -> ux_memory_block_status = UX_MEMORY_UNUSED; in _ux_system_initialize()