Home
last modified time | relevance | path

Searched full:alloc (Results 1 – 25 of 153) sorted by relevance

1234567

/Zephyr-latest/drivers/can/
Dcan_mcux_flexcan.c191 static status_t mcux_flexcan_mb_start(const struct device *dev, int alloc) in mcux_flexcan_mb_start() argument
198 __ASSERT_NO_MSG(alloc >= 0 && alloc < ARRAY_SIZE(data->rx_cbs)); in mcux_flexcan_mb_start()
200 xfer.mbIdx = ALLOC_IDX_TO_RXMB_IDX(alloc); in mcux_flexcan_mb_start()
204 xfer.framefd = &data->rx_cbs[alloc].frame.fd; in mcux_flexcan_mb_start()
205 FLEXCAN_SetFDRxMbConfig(config->base, ALLOC_IDX_TO_RXMB_IDX(alloc), in mcux_flexcan_mb_start()
206 &data->rx_cbs[alloc].mb_config, true); in mcux_flexcan_mb_start()
210 xfer.frame = &data->rx_cbs[alloc].frame.classic; in mcux_flexcan_mb_start()
211 FLEXCAN_SetRxMbConfig(config->base, ALLOC_IDX_TO_RXMB_IDX(alloc), in mcux_flexcan_mb_start()
212 &data->rx_cbs[alloc].mb_config, true); in mcux_flexcan_mb_start()
221 static void mcux_flexcan_mb_stop(const struct device *dev, int alloc) in mcux_flexcan_mb_stop() argument
[all …]
Dcan_nxp_s32_canxl.c172 int alloc = -ENOSPC; in can_nxp_s32_get_rx_fifo_filter() local
184 alloc = filter_id; in can_nxp_s32_get_rx_fifo_filter()
189 return alloc; in can_nxp_s32_get_rx_fifo_filter()
226 int alloc; in can_nxp_s32_stop() local
236 for (alloc = 0; alloc < CONFIG_CAN_NXP_S32_MAX_TX; alloc++) { in can_nxp_s32_stop()
237 function = data->tx_cbs[alloc].function; in can_nxp_s32_stop()
238 arg = data->tx_cbs[alloc].arg; in can_nxp_s32_stop()
240 if (atomic_test_and_clear_bit(data->tx_allocs, alloc)) { in can_nxp_s32_stop()
242 ALLOC_IDX_TO_TXMB_IDX(alloc))) { in can_nxp_s32_stop()
492 int alloc = -ENOSPC; in can_nxp_s32_add_rx_filter() local
[all …]
/Zephyr-latest/tests/kernel/threads/dynamic_thread_stack/
Dtestcase.yaml18 # Permutations of (pool | alloc | user)
33 kernel.threads.dynamic_thread.stack.no_pool.alloc.no_user:
40 kernel.threads.dynamic_thread.stack.no_pool.alloc.user:
61 kernel.threads.dynamic_thread.stack.pool.alloc.no_user:
68 kernel.threads.dynamic_thread.stack.pool.alloc.user:
/Zephyr-latest/drivers/xen/
Devents.c37 struct evtchn_alloc_unbound alloc = { in alloc_unbound_event_channel() local
42 rc = HYPERVISOR_event_channel_op(EVTCHNOP_alloc_unbound, &alloc); in alloc_unbound_event_channel()
44 rc = alloc.port; in alloc_unbound_event_channel()
54 struct evtchn_alloc_unbound alloc = { in alloc_unbound_event_channel_dom0() local
59 rc = HYPERVISOR_event_channel_op(EVTCHNOP_alloc_unbound, &alloc); in alloc_unbound_event_channel_dom0()
61 rc = alloc.port; in alloc_unbound_event_channel_dom0()
DKconfig15 >= number of pages, that you want to alloc and grant or foreign frames
/Zephyr-latest/tests/benchmarks/latency_measure/
DREADME.rst27 * Measure average time to alloc memory from heap then free that memory
72 …fifo.put.alloc.immediate.kernel - Allocate to add data to FIFO (no ctx switch) : …
77 …fifo.put.alloc.wake+ctx.k_to_k - Allocate to add data to FIFO (w/ ctx switch) : …
80 …lifo.put.alloc.immediate.kernel - Allocate to add data to LIFO (no ctx switch) : …
85 …lifo.put.alloc.wake+ctx.k_to_k - Allocate to add data to LIFO (w/ ctx siwtch) : …
125 …fifo.put.alloc.immediate.kernel - Allocate to add data to FIFO (no ctx switch) : …
130 …fifo.put.alloc.wake+ctx.k_to_k - Allocate to add data to FIFO (w/ ctx switch) : …
133 …lifo.put.alloc.immediate.kernel - Allocate to add data to LIFO (no ctx switch) : …
138 …lifo.put.alloc.wake+ctx.k_to_k - Allocate to add data to LIFO (w/ ctx siwtch) : …
182 …fifo.put.alloc.immediate.kernel - Allocate to add data to FIFO (no ctx switch) : …
[all …]
/Zephyr-latest/lib/net_buf/
Dbuf.c110 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_alloc()
130 struct k_heap *pool = buf_pool->alloc->alloc_data; in mem_pool_data_unref()
143 .alloc = mem_pool_data_alloc,
152 const struct net_buf_pool_fixed *fixed = pool->alloc->alloc_data; in fixed_data_alloc()
154 *size = pool->alloc->max_alloc_size; in fixed_data_alloc()
165 .alloc = fixed_data_alloc,
199 .alloc = heap_data_alloc,
215 return pool->alloc->cb->alloc(buf, size, timeout); in data_alloc()
222 return pool->alloc->cb->ref(buf, data); in data_ref()
356 return net_buf_alloc_len_debug(pool, pool->alloc->max_alloc_size, timeout, func, in net_buf_alloc_fixed_debug()
[all …]
/Zephyr-latest/kernel/
Dqueue.c124 bool alloc, bool is_append) in queue_insert() argument
129 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_queue, queue_insert, queue, alloc); in queue_insert()
137 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_queue, queue_insert, queue, alloc, K_FOREVER); in queue_insert()
142 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_queue, queue_insert, queue, alloc, 0); in queue_insert()
148 if (alloc) { in queue_insert()
155 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_queue, queue_insert, queue, alloc, in queue_insert()
167 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_queue, queue_insert, queue, alloc, K_FOREVER); in queue_insert()
173 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_queue, queue_insert, queue, alloc, 0); in queue_insert()
Dmem_slab.c226 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_mem_slab, alloc, slab, timeout); in k_mem_slab_alloc()
250 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_mem_slab, alloc, slab, timeout); in k_mem_slab_alloc()
258 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mem_slab, alloc, slab, timeout, result); in k_mem_slab_alloc()
263 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mem_slab, alloc, slab, timeout, result); in k_mem_slab_alloc()
/Zephyr-latest/samples/subsys/llext/shell_loader/
DREADME.rst76 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
78 CONTENTS, ALLOC, LOAD, DATA
80 ALLOC
82 CONTENTS, ALLOC, LOAD, READONLY, DATA
/Zephyr-latest/include/zephyr/tracing/
Dtracing.h911 * @param alloc Allocation flag
913 #define sys_port_trace_k_queue_queue_insert_enter(queue, alloc) argument
918 * @param alloc Allocation flag
921 #define sys_port_trace_k_queue_queue_insert_blocking(queue, alloc, timeout) argument
926 * @param alloc Allocation flag
929 #define sys_port_trace_k_queue_queue_insert_exit(queue, alloc, ret) argument
944 * @brief Trace Queue alloc append enter
950 * @brief Trace Queue alloc append exit
969 * @brief Trace Queue alloc prepend enter
975 * @brief Trace Queue alloc prepend exit
[all …]
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_fail.c67 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
93 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
Dtest_msgq_attrs.c67 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER()
/Zephyr-latest/tests/lib/multi_heap/src/
Dtest_mheap_api.c218 zassert_not_equal(NULL, r, "aligned alloc of 1 byte failed"); in ZTEST()
228 zassert_not_equal(NULL, r, "16-byte-aligned alloc failed"); in ZTEST()
238 * @details Set heap memory as resource pool. It will success when alloc
239 * a block of memory smaller than the pool and will fail when alloc
267 * @details When in isr context, the kernel will successfully alloc a block of
288 * @details When a thread's resource pool is not assigned, alloc memory will fail.
Dtest_mheap_concept.c66 * @brief Verify alloc from multiple equal priority threads
69 * In each child thread , call k_malloc() to alloc a block of memory.
/Zephyr-latest/samples/subsys/fs/zms/
DREADME.rst55 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, fc0
63 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, f80
82 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, f40
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dmailq.c50 zassert_true(tx_ptr != NULL, "Mail1 alloc failed"); in send_thread()
68 zassert_true(tx_ptr != NULL, "Mail alloc failed"); in send_thread()
97 zassert_true(tx_ptr != NULL, "Mail alloc failed"); in send_thread()
/Zephyr-latest/tests/kernel/mem_slab/mslab_concept/src/
Dtest_mslab_alloc_wait.c38 * @brief Verify alloc with multiple threads
43 * 20ms. Checks the behavior of alloc when requested by multiple
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/
Dkobject.c1123 * @brief Test alloc an invalid kernel object
1172 "excepted alloc failure"); in ZTEST()
1189 /* @brief Test alloc thread object until out of idex
1224 /** TESTPOINT: thread alloc failed due to out of idx */ in ZTEST()
1267 zassert_not_null(t, "alloc obj (0x%lx)\n", (uintptr_t)t); in ZTEST()
1269 zassert_not_null(p, "alloc obj (0x%lx)\n", (uintptr_t)p); in ZTEST()
1272 zassert_not_null(s, "alloc obj (0x%lx)\n", (uintptr_t)s); in ZTEST()
1275 zassert_not_null(m, "alloc obj (0x%lx)\n", (uintptr_t)m); in ZTEST()
1278 zassert_not_null(q, "alloc obj (0x%lx)\n", (uintptr_t)q); in ZTEST()
1288 zassert_not_null(mslab, "alloc obj (0x%lx)\n", (uintptr_t)mslab); in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/app_kernel/src/
Dmemmap_b.c38 PRINT_F(FORMAT, "average alloc and dealloc memory page", in memorymap_test()
/Zephyr-latest/tests/bluetooth/controller/ctrl_api/src/
Dmain.c415 /* The previous tx alloc peek should be valid */ in ZTEST()
420 /* The previous alloc should be valid */ in ZTEST()
426 /* The last tx alloc peek should fail */ in ZTEST()
437 /* The previous tx alloc peek should be valid */ in ZTEST()
442 /* The previous alloc should be valid */ in ZTEST()
448 /* The last tx alloc peek should fail */ in ZTEST()
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c497 test_mem_block_raw("1st Alloc", &raw); in ZTEST()
498 test_mem_block_query("1st Alloc", &query); in ZTEST()
512 test_mem_block_raw("2nd Alloc", &raw); in ZTEST()
513 test_mem_block_query("2nd Alloc", &query); in ZTEST()
655 test_mem_slab_raw("1st Alloc", &raw); in ZTEST()
656 test_mem_slab_query("1st Alloc", &query); in ZTEST()
670 test_mem_slab_raw("2nd Alloc", &raw); in ZTEST()
671 test_mem_slab_query("2nd Alloc", &query); in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dnet_l2.h87 int (*alloc)(struct net_if *iface, struct net_pkt *pkt, member
139 .alloc = COND_CODE_0(NUM_VA_ARGS_LESS_1(LIST_DROP_EMPTY(__VA_ARGS__, _)), \
/Zephyr-latest/tests/kernel/stack/stack/src/
Dtest_stack_fail.c109 * @brief Verifies stack alloc and initialize a null pointer.
119 * @brief Verify that alloc and initialize a stack with
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dheap_malloc_free.c41 "alloc memory @ iteration %d", count); in heap_malloc_free()

1234567