Home
last modified time | relevance | path

Searched refs:k_mem_slab_alloc (Results 1 – 25 of 70) sorted by relevance

123

/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/
DREADME.txt40 k_mem_slab_alloc OK, p[0] = 0x00406400
42 k_mem_slab_alloc OK, p[1] = 0x00406000
44 k_mem_slab_alloc RC_FAIL expected as all (2) blocks are used.
63 k_mem_slab_alloc OK, p[0] = 0x00406000
65 k_mem_slab_alloc OK, p[1] = 0x00406400
67 k_mem_slab_alloc RC_FAIL expected as all (2) blocks are used.
72 main: k_mem_slab_alloc times out which is expected
78 main: k_mem_slab_alloc OK, block allocated at 0x00406000
84 main: k_mem_slab_alloc OK, block allocated at 0x00406400
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_api/src/
Dtest_mslab_api.c39 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_free()
59 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_align()
80 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_timeout()
86 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_alloc_timeout()
89 err = k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)); in tmslab_alloc_timeout()
115 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_used_get()
125 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_used_get()
132 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)), in tmslab_used_get()
164 zassert_equal(k_mem_slab_alloc(&kmslab, &ptr[i], K_NO_WAIT), 0, in helper_thread()
321 ret_value = k_mem_slab_alloc(&kmslab, &b, K_MSEC(20)); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v1/
Dcmsis_mailq.c42 retval = k_mem_slab_alloc( in osMailAlloc()
46 retval = k_mem_slab_alloc( in osMailAlloc()
50 retval = k_mem_slab_alloc( in osMailAlloc()
76 retval = k_mem_slab_alloc( in osMailCAlloc()
80 retval = k_mem_slab_alloc( in osMailCAlloc()
84 retval = k_mem_slab_alloc( in osMailCAlloc()
Dcmsis_mempool.c33 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolAlloc()
49 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolCAlloc()
Dcmsis_mutex.c29 if (k_mem_slab_alloc(&cmsis_mutex_slab, (void **)&mutex, K_MSEC(100)) == 0) { in osMutexCreate()
Dcmsis_semaphore.c30 if (k_mem_slab_alloc(&cmsis_semaphore_slab, in osSemaphoreCreate()
Dcmsis_timer.c51 if (k_mem_slab_alloc(&cmsis_timer_slab, (void **)&timer, K_MSEC(100)) == 0) { in osTimerCreate()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/src/
Dmain.c136 zassert_equal(k_mem_slab_alloc(&map_lgblks, &p[i], K_NO_WAIT), 0, in test_slab_get_all_blocks()
148 zassert_equal(k_mem_slab_alloc(&map_lgblks, &errptr, K_NO_WAIT), -ENOMEM, in test_slab_get_all_blocks()
244 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(20)); in ZTEST()
250 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(50)); in ZTEST()
259 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_FOREVER); in ZTEST()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_concept/src/
Dtest_mslab_alloc_wait.c25 zassert_true(k_mem_slab_alloc(&mslab1, &block, TIMEOUT) == -EAGAIN, in tmslab_alloc_wait_timeout()
32 zassert_true(k_mem_slab_alloc(&mslab1, &block_ok, TIMEOUT) == 0); in tmslab_alloc_wait_ok()
59 zassert_equal(k_mem_slab_alloc(&mslab1, &block[i], K_NO_WAIT), in ZTEST()
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v2/
Dmempool.c49 if (k_mem_slab_alloc(&cv2_mem_slab, (void **)&mslab, K_MSEC(100)) == 0) { in osMemoryPoolNew()
110 retval = k_mem_slab_alloc( in osMemoryPoolAlloc()
114 retval = k_mem_slab_alloc( in osMemoryPoolAlloc()
118 retval = k_mem_slab_alloc( in osMemoryPoolAlloc()
Dmutex.c42 if (k_mem_slab_alloc(&cv2_mutex_slab, (void **)&mutex, K_MSEC(100)) == 0) { in osMutexNew()
Dsemaphore.c37 if (k_mem_slab_alloc(&cv2_semaphore_slab, in osSemaphoreNew()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_stats/src/
Dmain.c66 status = k_mem_slab_alloc(&kmslab, &memory[0], K_NO_WAIT); in ZTEST()
69 status = k_mem_slab_alloc(&kmslab, &memory[1], K_NO_WAIT); in ZTEST()
72 status = k_mem_slab_alloc(&kmslab, &memory[2], K_NO_WAIT); in ZTEST()
108 status = k_mem_slab_alloc(&kmslab, &memory[1], K_NO_WAIT); in ZTEST()
/Zephyr-Core-3.5.0/drivers/modem/
Dmodem_iface_uart_async.c38 rc = k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_NO_WAIT); in iface_uart_async_callback()
68 rc = k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_FOREVER); in iface_uart_async_callback()
158 k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_FOREVER); in modem_iface_uart_init_dev()
/Zephyr-Core-3.5.0/tests/bluetooth/audio/mocks/src/
Dmem_slab.c10 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in k_mem_slab_alloc() function
/Zephyr-Core-3.5.0/tests/benchmarks/app_kernel/src/
Dmemmap_b.c30 alloc_status = k_mem_slab_alloc(&MAP1, &p, K_FOREVER); in memorymap_test()
/Zephyr-Core-3.5.0/lib/libc/arcmwdt/
Dthreading.c32 alloc_fail = !!k_mem_slab_alloc(&z_arcmwdt_lock_slab, mutex_ptr, K_NO_WAIT); in _mwmutex_create()
/Zephyr-Core-3.5.0/drivers/i2s/
Di2s_common.c45 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_impl_i2s_buf_write()
Di2s_handlers.c96 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_vrfy_i2s_buf_write()
/Zephyr-Core-3.5.0/tests/benchmarks/sys_kernel/src/
Dmem_slab.c38 if (k_mem_slab_alloc(&my_slab, &slab_array[i], K_NO_WAIT) in mem_slab_alloc_test()
/Zephyr-Core-3.5.0/subsys/demand_paging/backing_store/
Dram.c95 ret = k_mem_slab_alloc(&backing_slabs, &slab, K_NO_WAIT); in k_mem_paging_backing_store_location_get()
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_threadsafe/src/
Dtest_mslab_threadsafe.c51 ret = k_mem_slab_alloc(slab, &block[i], TIMEOUT); in tmslab_api()
/Zephyr-Core-3.5.0/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c206 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block, K_FOREVER); in ZTEST()
287 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in ZTEST()
374 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block, K_FOREVER); in ZTEST()
444 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in ZTEST()
/Zephyr-Core-3.5.0/samples/boards/litex/i2s/src/
Dmain.c109 k_mem_slab_alloc(&i2s_tx_mem_slab, &tx_mem_block, K_NO_WAIT); in main()
/Zephyr-Core-3.5.0/doc/kernel/memory_management/
Dslabs.rst102 A memory block is allocated by calling :c:func:`k_mem_slab_alloc`.
112 if (k_mem_slab_alloc(&my_slab, (void **)&block_ptr, K_MSEC(100)) == 0) {
131 k_mem_slab_alloc(&my_slab, (void **)&block_ptr, K_FOREVER);

123