Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 44) sorted by relevance

12

/Zephyr-latest/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/
Dmain.c76 .stack_size = STACK_SIZE,
82 .stack_size = STACK_SIZE,
88 .stack_size = STACK_SIZE,
94 .stack_size = STACK_SIZE,
100 .stack_size = STACK_SIZE,
106 .stack_size = STACK_SIZE,
/Zephyr-latest/arch/x86/core/
Duserspace.c162 size_t stack_size; in arch_user_mode_enter() local
167 stack_size = K_THREAD_STACK_LEN(arch_current_thread()->stack_info.size); in arch_user_mode_enter()
174 stack_size -= CONFIG_MMU_PAGE_SIZE; in arch_user_mode_enter()
178 stack_start, stack_size, in arch_user_mode_enter()
189 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size, in arch_thread_priv_stack_space_get() argument
/Zephyr-latest/include/zephyr/modem/backend/
Dtty.h28 size_t stack_size; member
35 size_t stack_size; member
/Zephyr-latest/include/zephyr/sys/
Dp4wq.h81 uintptr_t stack_size; member
107 .stack_size = stack_sz, \
134 .stack_size = stack_sz, \
166 size_t stack_size);
/Zephyr-latest/tests/kernel/threads/thread_stack/src/
Dmain.c98 size_t stack_size, unused, carveout, reserved, alignment, adjusted; in stack_buffer_scenarios() local
122 stack_info_get(&stack_start, &stack_size); in stack_buffer_scenarios()
124 stack_size); in stack_buffer_scenarios()
140 stack_end = stack_start + stack_size; in stack_buffer_scenarios()
218 stack_size -= reserved; in stack_buffer_scenarios()
221 zassert_true(stack_size <= obj_size - reserved, in stack_buffer_scenarios()
223 stack_size); in stack_buffer_scenarios()
230 zassert_true(carveout < stack_size, in stack_buffer_scenarios()
374 metadata_size = zo->data.stack_size; in scenario_entry()
/Zephyr-latest/subsys/debug/
Dthread_analyzer.c41 size_t pcnt = (info->stack_used * 100U) / info->stack_size; in thread_print_cb()
47 info->stack_size - info->stack_used, info->stack_used, in thread_print_cb()
48 info->stack_size, pcnt, in thread_print_cb()
82 info->stack_size - info->stack_used, info->stack_used, in thread_print_cb()
83 info->stack_size, pcnt); in thread_print_cb()
128 info.stack_size = size; in thread_analyze_cb()
/Zephyr-latest/lib/os/
Duser_work.c43 size_t stack_size, int prio, const char *name) in k_work_user_queue_start() argument
50 k_thread_create(&work_q->thread, stack, stack_size, z_work_user_q_main, in k_work_user_queue_start()
Dp4wq.c136 size_t stack_size) in k_p4wq_add_thread() argument
138 k_thread_create(thread, stack, stack_size, in k_p4wq_add_thread()
149 uintptr_t ssz = K_THREAD_STACK_LEN(pp->stack_size); in static_init()
169 pp->stack_size); in static_init()
/Zephyr-latest/modules/lvgl/
Dlvgl_zephyr_osal.c17 size_t stack_size, void *user_data) in lv_thread_init() argument
21 thread->stack = k_thread_stack_alloc(stack_size, 0); in lv_thread_init()
29 thread->tid = k_thread_create(&thread->thread, thread->stack, stack_size, thread_entry, in lv_thread_init()
/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_tty.c65 k_thread_create(&backend->thread, backend->stack, backend->stack_size, in modem_backend_tty_open()
123 backend->stack_size = config->stack_size; in modem_backend_tty_init()
/Zephyr-latest/kernel/
Dthread.c353 static size_t random_offset(size_t stack_size) in random_offset() argument
371 if (unlikely(fuzz * 2 > stack_size)) { in random_offset()
384 k_thread_stack_t *stack, size_t stack_size) in setup_thread_stack() argument
392 stack_obj_size = K_THREAD_STACK_LEN(stack_size); in setup_thread_stack()
399 stack_obj_size = K_KERNEL_STACK_LEN(stack_size); in setup_thread_stack()
509 k_thread_stack_t *stack, size_t stack_size, in z_setup_new_thread() argument
547 stack_ptr = setup_thread_stack(new_thread, stack, stack_size); in z_setup_new_thread()
653 size_t stack_size, k_thread_entry_t entry, in z_impl_k_thread_create() argument
659 z_setup_new_thread(new_thread, stack, stack_size, entry, p1, p2, p3, in z_impl_k_thread_create()
677 size_t stack_size, k_thread_entry_t entry, in z_vrfy_k_thread_create() argument
[all …]
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread.c21 .stack_size = 0,
111 size_t stack_size; in osThreadNew() local
148 __ASSERT(attr->stack_size <= CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE, in osThreadNew()
155 if (attr->stack_size == 0) { in osThreadNew()
174 stack_size = CONFIG_CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE; in osThreadNew()
179 stack_size = attr->stack_size; in osThreadNew()
200 stack, stack_size, in osThreadNew()
/Zephyr-latest/arch/x86/include/intel64/
Dkernel_arch_data.h26 size_t stack_size; /* size of stack */ member
72 .stack_size = K_KERNEL_STACK_LEN(CONFIG_ISR_STACK_SIZE), \
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/
Dthread_flags.c77 .stack_size = STACKSZ,
85 .stack_size = STACKSZ,
157 .stack_size = STACKSZ,
Devent_flags.c50 .stack_size = STACKSZ,
58 .stack_size = STACKSZ,
191 .stack_size = STACKSZ,
Dthread_apis.c21 .stack_size = STACKSZ,
29 .stack_size = STACKSZ,
160 .stack_size = STACKSZ,
Dsemaphore.c56 .stack_size = STACKSZ,
/Zephyr-latest/include/zephyr/debug/
Dthread_analyzer.h32 size_t stack_size; member
/Zephyr-latest/arch/riscv/core/
Dthread.c199 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size, in arch_thread_priv_stack_space_get() argument
206 *stack_size = Z_STACK_PTR_ALIGN(K_KERNEL_STACK_RESERVED + CONFIG_PRIVILEGED_STACK_SIZE); in arch_thread_priv_stack_space_get()
208 return z_stack_space_get((void *)thread->arch.priv_stack_start, *stack_size, unused_ptr); in arch_thread_priv_stack_space_get()
/Zephyr-latest/include/zephyr/sys/internal/
Dkobject_internal.h44 size_t stack_size; member
/Zephyr-latest/arch/x86/core/offsets/
Dintel64_offsets.c52 GEN_OFFSET_SYM(x86_cpuboot_t, stack_size);
/Zephyr-latest/kernel/include/
Dkernel_arch_interface.h239 int arch_thread_priv_stack_space_get(const struct k_thread *thread, size_t *stack_size,
/Zephyr-latest/arch/x86/core/intel64/
Dcpu.c75 x86_cpuboot[cpu_num].stack_size = sz; in arch_cpu_start()
/Zephyr-latest/include/zephyr/
Dkernel.h411 size_t stack_size,
762 #define Z_THREAD_INITIALIZER(thread, stack, stack_size, \ argument
768 .init_stack_size = (stack_size), \
783 #define Z_THREAD_COMMON_DEFINE(name, stack_size, \ argument
790 _k_thread_stack_##name, stack_size,\
830 #define K_THREAD_DEFINE(name, stack_size, \ argument
833 K_THREAD_STACK_DEFINE(_k_thread_stack_##name, stack_size); \
834 Z_THREAD_COMMON_DEFINE(name, stack_size, entry, p1, p2, p3, \
867 #define K_KERNEL_THREAD_DEFINE(name, stack_size, \ argument
870 K_KERNEL_STACK_DEFINE(_k_thread_stack_##name, stack_size); \
[all …]
/Zephyr-latest/modules/hal_infineon/abstraction-rtos/source/COMPONENT_ZEPHYR/
Dcyabs_rtos_zephyr.c105 const char *name, void *stack, uint32_t stack_size, in cy_rtos_create_thread() argument
111 if ((thread == NULL) || (stack_size < CY_RTOS_MIN_STACK_SIZE)) { in cy_rtos_create_thread()
125 K_KERNEL_STACK_LEN(stack_size)); in cy_rtos_create_thread()
140 my_tid = k_thread_create(&(*thread)->z_thread, stack_alloc, stack_size, in cy_rtos_create_thread()

12