Home
last modified time | relevance | path

Searched refs:k_heap_alloc (Results 1 – 18 of 18) sorted by relevance

/Zephyr-Core-2.7.6/tests/kernel/mem_heap/k_heap_api/src/
Dtest_kheap_api.c25 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, K_NO_WAIT); in tIsr_kheap_alloc_nowait()
35 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, timeout); in thread_alloc_heap()
66 char *p0 = k_heap_alloc(&tiny_heap, 1, K_NO_WAIT); in test_k_heap_min_size()
67 char *p1 = k_heap_alloc(&tiny_heap, 1, K_NO_WAIT); in test_k_heap_min_size()
92 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, timeout); in test_k_heap_alloc()
117 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_3, timeout); in test_k_heap_alloc_fail()
143 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_1, timeout); in test_k_heap_free()
147 p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, timeout); in test_k_heap_free()
183 char *p = (char *)k_heap_alloc(&k_heap_test, ALLOC_SIZE_2, K_NO_WAIT); in test_k_heap_alloc_pending()
/Zephyr-Core-2.7.6/lib/gui/lvgl/
Dlvgl_mem_kernel.c16 return k_heap_alloc(&lvgl_mem_pool, size, K_NO_WAIT); in lvgl_malloc()
/Zephyr-Core-2.7.6/drivers/video/
Dvideo_common.c42 block->data = k_heap_alloc(&video_buffer_pool, size, K_FOREVER); in video_buffer_alloc()
/Zephyr-Core-2.7.6/kernel/
Dkheap.c107 void *k_heap_alloc(struct k_heap *h, size_t bytes, k_timeout_t timeout) in k_heap_alloc() function
/Zephyr-Core-2.7.6/doc/reference/kernel/memory/
Dheap.rst26 Memory can be allocated from a heap using :c:func:`k_heap_alloc`,
40 Memory allocated with :c:func:`k_heap_alloc` must be released using
43 returned by :c:func:`k_heap_alloc` for the same heap. Freeing a
/Zephyr-Core-2.7.6/tests/kernel/pipe/pipe_api/src/
Dtest_pipe_contexts.c331 zassert_true(k_heap_alloc(&test_pool, 64, K_NO_WAIT) != NULL, NULL); in test_resource_pool_auto_free()
332 zassert_true(k_heap_alloc(&test_pool, 64, K_NO_WAIT) != NULL, NULL); in test_resource_pool_auto_free()
/Zephyr-Core-2.7.6/tests/kernel/queue/src/
Dtest_queue_user.c202 b[i] = k_heap_alloc(&test_pool, 64, K_FOREVER); in test_auto_free()
Dtest_queue_contexts.c307 while (k_heap_alloc(&mem_pool_fail, 1, K_NO_WAIT) != NULL) { in test_queue_alloc()
/Zephyr-Core-2.7.6/subsys/testsuite/coverage/
Dcoverage.c235 buffer = k_heap_alloc(&gcov_heap, size, K_NO_WAIT); in gcov_coverage_dump()
/Zephyr-Core-2.7.6/drivers/display/
Ddisplay_mcux_elcdif.c195 data->fb[i].data = k_heap_alloc(&mcux_elcdif_pool, in mcux_elcdif_init()
/Zephyr-Core-2.7.6/samples/subsys/usb/hid-cdc/src/
Dmain.c120 ev = k_heap_alloc(&event_elem_pool, in app_evt_alloc()
127 ev = k_heap_alloc(&event_elem_pool, in app_evt_alloc()
/Zephyr-Core-2.7.6/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt86 77 k_heap_alloc heap=%I, bytes=%u, Timeout=%TimeOut | Returns %p
/Zephyr-Core-2.7.6/drivers/usb/device/
Dusb_dc_mcux.c237 block->data = k_heap_alloc(&ep_buf_pool, cfg->ep_mps, K_NO_WAIT); in usb_dc_ep_configure()
Dusb_dc_kinetis.c367 block->data = k_heap_alloc(&ep_buf_pool, cfg->ep_mps * 2U, K_MSEC(10)); in usb_dc_ep_configure()
/Zephyr-Core-2.7.6/subsys/fs/
Dlittlefs_fs.c61 ret = k_heap_alloc(&file_cache_heap, size, K_NO_WAIT); in fc_allocate()
/Zephyr-Core-2.7.6/subsys/net/
Dbuf.c103 void *b = k_heap_alloc(pool, 1 + *size, timeout); in mem_pool_data_alloc()
/Zephyr-Core-2.7.6/include/
Dkernel.h5014 void *k_heap_alloc(struct k_heap *h, size_t bytes,
/Zephyr-Core-2.7.6/doc/releases/
Drelease-notes-2.5.rst1472 * :github:`29631` - kernel: provide aligned variant of k_heap_alloc