Lines Matching full:timeout
66 k_timeout_t timeout) in k_heap_aligned_alloc() argument
68 k_timepoint_t end = sys_timepoint_calc(timeout); in k_heap_aligned_alloc()
73 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
75 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_aligned_alloc()
83 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_aligned_alloc()
90 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
97 timeout = sys_timepoint_timeout(end); in k_heap_aligned_alloc()
98 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_aligned_alloc()
102 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, aligned_alloc, heap, timeout, ret); in k_heap_aligned_alloc()
108 void *k_heap_alloc(struct k_heap *heap, size_t bytes, k_timeout_t timeout) in k_heap_alloc() argument
110 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, alloc, heap, timeout); in k_heap_alloc()
112 void *ret = k_heap_aligned_alloc(heap, sizeof(void *), bytes, timeout); in k_heap_alloc()
114 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, alloc, heap, timeout, ret); in k_heap_alloc()
119 void *k_heap_calloc(struct k_heap *heap, size_t num, size_t size, k_timeout_t timeout) in k_heap_calloc() argument
121 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, calloc, heap, timeout); in k_heap_calloc()
127 ret = k_heap_alloc(heap, bounds, timeout); in k_heap_calloc()
133 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, calloc, heap, timeout, ret); in k_heap_calloc()
138 void *k_heap_realloc(struct k_heap *heap, void *ptr, size_t bytes, k_timeout_t timeout) in k_heap_realloc() argument
140 k_timepoint_t end = sys_timepoint_calc(timeout); in k_heap_realloc()
145 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, realloc, heap, ptr, bytes, timeout); in k_heap_realloc()
147 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_realloc()
153 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_realloc()
157 timeout = sys_timepoint_timeout(end); in k_heap_realloc()
158 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_realloc()
162 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, realloc, heap, ptr, bytes, timeout, ret); in k_heap_realloc()