Home
last modified time | relevance | path

Searched refs:pool_ptr (Results 1 – 10 of 10) sorted by relevance

/USBX-v6.2.1/common/core/src/
Dux_utility_memory_byte_pool_search.c72 UCHAR *_ux_utility_memory_byte_pool_search(UX_MEMORY_BYTE_POOL *pool_ptr, ULONG memory_size) in _ux_utility_memory_byte_pool_search() argument
87 …total_theoretical_available = pool_ptr -> ux_byte_pool_available + ((pool_ptr -> ux_byte_pool_frag… in _ux_utility_memory_byte_pool_search()
96 if ((pool_ptr -> ux_byte_pool_search < pool_ptr -> ux_byte_pool_start) || in _ux_utility_memory_byte_pool_search()
97 …(pool_ptr -> ux_byte_pool_search > pool_ptr -> ux_byte_pool_start + pool_ptr -> ux_byte_pool_size)) in _ux_utility_memory_byte_pool_search()
105 current_ptr = pool_ptr -> ux_byte_pool_search; in _ux_utility_memory_byte_pool_search()
106 examine_blocks = pool_ptr -> ux_byte_pool_fragments + ((UINT) 1); in _ux_utility_memory_byte_pool_search()
120 pool_ptr->ux_byte_pool_search = current_ptr; in _ux_utility_memory_byte_pool_search()
166 pool_ptr -> ux_byte_pool_fragments--; in _ux_utility_memory_byte_pool_search()
169 if (pool_ptr -> ux_byte_pool_search == next_ptr) in _ux_utility_memory_byte_pool_search()
172 pool_ptr -> ux_byte_pool_search = current_ptr; in _ux_utility_memory_byte_pool_search()
Dux_utility_memory_byte_pool_create.c70 UINT _ux_utility_memory_byte_pool_create(UX_MEMORY_BYTE_POOL *pool_ptr, VOID *pool_start, ULONG po… in _ux_utility_memory_byte_pool_create() argument
80 …_ux_utility_memory_set((UCHAR *)pool_ptr, 0, sizeof(UX_MEMORY_BYTE_POOL)); /* Use case of memset i… in _ux_utility_memory_byte_pool_create()
87 pool_ptr -> ux_byte_pool_start = UX_VOID_TO_UCHAR_POINTER_CONVERT(pool_start); in _ux_utility_memory_byte_pool_create()
88 pool_ptr -> ux_byte_pool_size = pool_size; in _ux_utility_memory_byte_pool_create()
89 pool_ptr -> ux_byte_pool_search = UX_VOID_TO_UCHAR_POINTER_CONVERT(pool_start); in _ux_utility_memory_byte_pool_create()
95 pool_ptr -> ux_byte_pool_available = pool_size - ((sizeof(VOID *)) + (sizeof(ALIGN_TYPE))); in _ux_utility_memory_byte_pool_create()
96 pool_ptr -> ux_byte_pool_fragments = ((UINT) 2); in _ux_utility_memory_byte_pool_create()
110 temp_ptr = UX_BYTE_POOL_TO_UCHAR_POINTER_CONVERT(pool_ptr); in _ux_utility_memory_byte_pool_create()
Dux_utility_memory_free.c79 UX_MEMORY_BYTE_POOL *pool_ptr; in _ux_utility_memory_free() local
127 pool_ptr = UX_NULL; in _ux_utility_memory_free()
146 pool_ptr = *byte_pool_ptr; in _ux_utility_memory_free()
149 if ((pool_ptr == UX_NULL) || in _ux_utility_memory_free()
150 … ((pool_ptr != _ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_REGULAR]) && in _ux_utility_memory_free()
151 … (pool_ptr != _ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_CACHE_SAFE]))) in _ux_utility_memory_free()
202 pool_ptr -> ux_byte_pool_available = in _ux_utility_memory_free()
203 pool_ptr -> ux_byte_pool_available + UX_UCHAR_POINTER_DIF(next_block_ptr, work_ptr); in _ux_utility_memory_free()
206 if (work_ptr < (pool_ptr -> ux_byte_pool_search)) in _ux_utility_memory_free()
210 pool_ptr -> ux_byte_pool_search = work_ptr; in _ux_utility_memory_free()
Dux_utility_memory_allocate.c87 UX_MEMORY_BYTE_POOL *pool_ptr; in _ux_utility_memory_allocate() local
104 pool_ptr = _ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_REGULAR]; in _ux_utility_memory_allocate()
108 pool_ptr = _ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_CACHE_SAFE]; in _ux_utility_memory_allocate()
116 if (pool_ptr == UX_NULL) in _ux_utility_memory_allocate()
213 current_ptr = _ux_utility_memory_byte_pool_search(pool_ptr, memory_size_requested); in _ux_utility_memory_allocate()
215 …current_ptr = _ux_utility_memory_byte_pool_search(pool_ptr, memory_size_requested + memory_alignme… in _ux_utility_memory_allocate()
264 pool_ptr -> ux_byte_pool_fragments++; in _ux_utility_memory_allocate()
292 pool_ptr -> ux_byte_pool_fragments++; in _ux_utility_memory_allocate()
304 *this_block_link_ptr = UX_BYTE_POOL_TO_UCHAR_POINTER_CONVERT(pool_ptr); in _ux_utility_memory_allocate()
307pool_ptr -> ux_byte_pool_available = pool_ptr -> ux_byte_pool_available - (available_bytes + UX_M… in _ux_utility_memory_allocate()
[all …]
/USBX-v6.2.1/test/regression/
Dux_test_utility_sim.c2337 UINT _nx_packet_pool_create(NX_PACKET_POOL *pool_ptr, CHAR *name_ptr, ULONG payload_size, in _nx_packet_pool_create() argument
2400 memset(pool_ptr, 0, sizeof(NX_PACKET_POOL)); in _nx_packet_pool_create()
2403 pool_ptr -> nx_packet_pool_name = name_ptr; in _nx_packet_pool_create()
2404 pool_ptr -> nx_packet_pool_suspension_list = TX_NULL; in _nx_packet_pool_create()
2405 pool_ptr -> nx_packet_pool_suspended_count = 0; in _nx_packet_pool_create()
2406 pool_ptr -> nx_packet_pool_start = (CHAR *)pool_start; in _nx_packet_pool_create()
2407 pool_ptr -> nx_packet_pool_size = pool_size; in _nx_packet_pool_create()
2408 pool_ptr -> nx_packet_pool_payload_size = original_payload_size; in _nx_packet_pool_create()
2431 ((NX_PACKET *)packet_ptr) -> nx_packet_pool_owner = pool_ptr; in _nx_packet_pool_create()
2468 pool_ptr -> nx_packet_pool_available = packets; in _nx_packet_pool_create()
[all …]
Dux_test_utility_sim_no_overriding.c125 UX_MEMORY_BYTE_POOL *pool_ptr; in allocate_everything() local
129pool_ptr = (UX_MEMORY_BYTE_POOL *)_ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_REG… in allocate_everything()
133pool_ptr = (UX_MEMORY_BYTE_POOL *)_ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_CAC… in allocate_everything()
137 memory_block = (UX_MEMORY_BLOCK *)pool_ptr -> ux_byte_pool_start; in allocate_everything()
188 UX_MEMORY_BYTE_POOL *pool_ptr; in ux_test_utility_sim_mem_allocate_until_align_flagged() local
193pool_ptr = (UX_MEMORY_BYTE_POOL *)_ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_REG… in ux_test_utility_sim_mem_allocate_until_align_flagged()
197pool_ptr = (UX_MEMORY_BYTE_POOL *)_ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_CAC… in ux_test_utility_sim_mem_allocate_until_align_flagged()
242 next_memory_block->ux_memory_byte_pool = pool_ptr; in ux_test_utility_sim_mem_allocate_until_align_flagged()
Dusbx_ux_utility_basic_memory_management_test.c32 UX_MEMORY_BYTE_POOL *pool_ptr; in test_application_define() local
52 pool_ptr = _ux_system -> ux_system_memory_byte_pool[UX_MEMORY_BYTE_POOL_REGULAR]; in test_application_define()
Dux_test.h266 NX_PACKET_POOL *pool_ptr; member
Dux_test.c1034 … if (strcmp(packet_allocate_params->pool_ptr->nx_packet_pool_name, this->name_ptr)) in ux_test_action_handler_check()
/USBX-v6.2.1/common/core/inc/
Dux_utility.h89 UCHAR *_ux_utility_memory_byte_pool_search(UX_MEMORY_BYTE_POOL *pool_ptr, ULONG memory_si…
90 UINT _ux_utility_memory_byte_pool_create(UX_MEMORY_BYTE_POOL *pool_ptr, VOID *pool_star…