Lines Matching refs:timeout
67 k_timeout_t timeout) in k_heap_aligned_alloc() argument
69 k_timepoint_t end = sys_timepoint_calc(timeout); in k_heap_aligned_alloc()
74 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
76 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_aligned_alloc()
84 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_aligned_alloc()
91 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_heap, aligned_alloc, heap, timeout); in k_heap_aligned_alloc()
98 timeout = sys_timepoint_timeout(end); in k_heap_aligned_alloc()
99 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_aligned_alloc()
103 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, aligned_alloc, heap, timeout, ret); in k_heap_aligned_alloc()
109 void *k_heap_alloc(struct k_heap *heap, size_t bytes, k_timeout_t timeout) in k_heap_alloc() argument
111 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, alloc, heap, timeout); in k_heap_alloc()
113 void *ret = k_heap_aligned_alloc(heap, sizeof(void *), bytes, timeout); in k_heap_alloc()
115 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, alloc, heap, timeout, ret); in k_heap_alloc()
120 void *k_heap_calloc(struct k_heap *heap, size_t num, size_t size, k_timeout_t timeout) in k_heap_calloc() argument
122 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, calloc, heap, timeout); in k_heap_calloc()
128 ret = k_heap_alloc(heap, bounds, timeout); in k_heap_calloc()
134 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, calloc, heap, timeout, ret); in k_heap_calloc()
139 void *k_heap_realloc(struct k_heap *heap, void *ptr, size_t bytes, k_timeout_t timeout) in k_heap_realloc() argument
141 k_timepoint_t end = sys_timepoint_calc(timeout); in k_heap_realloc()
146 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, realloc, heap, ptr, bytes, timeout); in k_heap_realloc()
148 __ASSERT(!arch_is_in_isr() || K_TIMEOUT_EQ(timeout, K_NO_WAIT), ""); in k_heap_realloc()
154 (ret != NULL) || K_TIMEOUT_EQ(timeout, K_NO_WAIT)) { in k_heap_realloc()
158 timeout = sys_timepoint_timeout(end); in k_heap_realloc()
159 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_realloc()
163 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, realloc, heap, ptr, bytes, timeout, ret); in k_heap_realloc()