/Zephyr-latest/tests/kernel/stack/stack/src/ |
D | test_stack_fail.c | 15 static ZTEST_BMEM stack_data_t data[STACK_LEN]; 22 stack_data_t rx_data; in stack_pop_fail() 59 stack_data_t rx_data[STACK_LEN - 1]; in ZTEST() 81 stack_data_t tx_data[STACK_LEN] = {0}; in ZTEST() 82 stack_data_t data_tmp = 0; in ZTEST() 167 k_stack_pop(alloc_stack, (stack_data_t *)alloc_stack, K_NO_WAIT); in ZTEST_USER()
|
D | main.c | 59 static ZTEST_DMEM stack_data_t data1[STACK_LEN] = { 0xAAAA, 0xBBBB, 0xCCCC, 0xDDDD }; 60 static ZTEST_DMEM stack_data_t data2[STACK_LEN] = { 0x1111, 0x2222, 0x3333, 0x4444 }; 61 static ZTEST_DMEM stack_data_t data_isr[STACK_LEN] = { 0xABCD, 0xABCD, 0xABCD, 102 stack_data_t tmp[STACK_LEN]; in thread_entry_fn_single() 123 stack_data_t tmp[STACK_LEN]; in thread_entry_fn_dual() 163 stack_data_t tmp[STACK_LEN]; in ZTEST_USER() 200 stack_data_t tmp[STACK_LEN]; in ZTEST_USER() 257 stack_data_t *txdata = p3; in thread_entry_wait() 278 stack_data_t tx_data[STACK_LEN] = { 0xaa, 0xbb, 0xcc, 0xdd }; in ZTEST() 279 stack_data_t rx_data[STACK_LEN] = { 0 }; in ZTEST()
|
D | test_stack_contexts.c | 26 static ZTEST_DMEM stack_data_t data[STACK_LEN] = { 0xABCD, 0x1234 }; 39 stack_data_t rx_data; in tstack_pop() 192 stack_data_t output; in low_prio_wait_for_stack() 202 stack_data_t output; in high_prio_t1_wait_for_stack() 212 stack_data_t output; in high_prio_t2_wait_for_stack() 239 stack_data_t test_data[3]; in ZTEST()
|
/Zephyr-latest/kernel/ |
D | stack.c | 27 void k_stack_init(struct k_stack *stack, stack_data_t *buffer, in k_stack_init() 51 buffer = z_thread_malloc(num_entries * sizeof(stack_data_t)); in z_impl_k_stack_alloc_init() 73 K_OOPS(K_SYSCALL_VERIFY(!size_mul_overflow(num_entries, sizeof(stack_data_t), in z_vrfy_k_stack_alloc_init() 101 int z_impl_k_stack_push(struct k_stack *stack, stack_data_t data) in z_impl_k_stack_push() 139 static inline int z_vrfy_k_stack_push(struct k_stack *stack, stack_data_t data) in z_vrfy_k_stack_push() 148 int z_impl_k_stack_pop(struct k_stack *stack, stack_data_t *data, in z_impl_k_stack_pop() 185 *data = (stack_data_t)arch_current_thread()->base.swap_data; in z_impl_k_stack_pop() 194 stack_data_t *data, k_timeout_t timeout) in z_vrfy_k_stack_pop() 197 K_OOPS(K_SYSCALL_MEMORY_WRITE(data, sizeof(stack_data_t))); in z_vrfy_k_stack_pop()
|
D | mailbox.c | 42 (void)k_stack_pop(&async_msg_free, (stack_data_t *)async, K_FOREVER); in mbox_async_alloc() 48 k_stack_push(&async_msg_free, (stack_data_t)async); in mbox_async_free() 75 k_stack_push(&async_msg_free, (stack_data_t)&async_msg[i]); in init_mbox_module()
|
/Zephyr-latest/tests/benchmarks/sys_kernel/src/ |
D | stack.c | 14 stack_data_t stack1[2]; 15 stack_data_t stack2[2]; 42 stack_data_t data; in stack_thread1() 76 stack_data_t data; in stack_thread2() 106 stack_data_t data; in stack_thread3() 215 stack_data_t data; in stack_test()
|
/Zephyr-latest/tests/integration/kernel/src/ |
D | main.c | 171 stack_data_t stack_data[MAX_ITEMS]; 176 stack_data_t *rx_data; in thread_entry_fn_stack() 177 stack_data_t data[MAX_ITEMS]; in thread_entry_fn_stack() 186 k_stack_pop((struct k_stack *)p1, (stack_data_t *)&rx_data, K_NO_WAIT); in thread_entry_fn_stack() 195 k_stack_push((struct k_stack *)p1, (stack_data_t)&stack_data[i]); in thread_entry_fn_stack() 205 stack_data_t *rx_data; in ZTEST() 213 k_stack_push(&stack, (stack_data_t)&stack_data[i]); in ZTEST() 226 k_stack_pop(&stack, (stack_data_t *)&rx_data, K_NO_WAIT); in ZTEST()
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | stack.c | 25 static BENCH_BMEM stack_data_t stack_array[MAX_ITEMS]; 37 stack_data_t data; in stack_push_pop_thread_entry() 121 stack_data_t data; in alt_thread_entry() 159 k_stack_push(&stack, (stack_data_t)123); in start_thread_entry()
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | stacks.rst | 23 The queue is implemented using an array of stack_data_t values 25 The stack_data_t type corresponds to the native word size i.e. 32 bits or 71 stack_data_t my_stack_array[MAX_ITEMS]; 106 k_stack_push(&my_stack, (stack_data_t)&my_buffers[i]); 123 k_stack_pop(&buffer_stack, (stack_data_t *)&new_buffer, K_FOREVER);
|
/Zephyr-latest/samples/philosophers/src/ |
D | phil_obj_abstract.h | 84 k_stack_init(x, (stack_data_t *)((x) + 1), 1); \ 89 stack_data_t data; k_stack_pop(x, &data, K_FOREVER); \
|
/Zephyr-latest/tests/kernel/obj_tracking/src/ |
D | main.c | 27 stack_data_t stack_array[8 * 4];
|
/Zephyr-latest/tests/kernel/obj_core/obj_core/src/ |
D | main.c | 21 stack_data_t stack2_buffer[8];
|
/Zephyr-latest/include/zephyr/ |
D | kernel.h | 2867 typedef uintptr_t stack_data_t; typedef 2872 stack_data_t *base, *next, *top; 2911 stack_data_t *buffer, uint32_t num_entries); 2957 __syscall int k_stack_push(struct k_stack *stack, stack_data_t data); 2979 __syscall int k_stack_pop(struct k_stack *stack, stack_data_t *data, 2993 stack_data_t __noinit \
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_test.h | 594 void sys_trace_k_stack_init(struct k_stack *stack, stack_data_t *buffer, uint32_t num_entries); 599 void sys_trace_k_stack_push_enter(struct k_stack *stack, stack_data_t data); 600 void sys_trace_k_stack_push_exit(struct k_stack *stack, stack_data_t data, int ret); 601 void sys_trace_k_stack_pop_blocking(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout); 602 void sys_trace_k_stack_pop_exit(struct k_stack *stack, stack_data_t *data, k_timeout_t timeout,
|