Home
last modified time | relevance | path

Searched refs:tdata (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/src/
Dmain.c65 static struct test_data tdata; variable
70 int *idx = spim ? &tdata.spim_alloc_idx : &tdata.spis_alloc_idx; in buf_alloc()
207 tdata.async = async; in run_test()
208 rv = k_work_schedule(&tdata.test_work, K_MSEC(10)); in run_test()
212 periph_rv = spi_transceive(spis_dev, &spis_config, tdata.stx_set, tdata.srx_set); in run_test()
217 rv = spi_transceive_signal(spis_dev, &spis_config, tdata.stx_set, tdata.srx_set, in run_test()
225 rv = k_sem_take(&tdata.sem, K_NO_WAIT); in run_test()
238 rv = k_sem_take(&tdata.sem, K_MSEC(100)); in run_test()
241 srx_len = peripheral_rx_len(tdata.mtx_set, tdata.srx_set); in run_test()
245 rv = check_buffers(tdata.mtx_set, tdata.srx_set, m_same_size); in run_test()
[all …]
/Zephyr-latest/tests/drivers/spi/spi_error_cases/src/
Dmain.c44 static struct test_data tdata; variable
49 int *idx = spim ? &tdata.spim_alloc_idx : &tdata.spis_alloc_idx; in buf_alloc()
76 rv = spi_transceive_dt(&spim_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
78 slave_rv = spi_transceive(spis_dev, &spis_config_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
93 rv = spi_transceive_dt(&spim_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
96 slave_rv = spi_transceive(spis_dev, &spis_config_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
110 rv = spi_transceive_dt(&spim_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
112 slave_rv = spi_transceive(spis_dev, &spis_config_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
126 rv = spi_transceive_dt(&spim_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
128 slave_rv = spi_transceive(spis_dev, &spis_config_invalid, tdata.stx_set, tdata.srx_set); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/sched/schedule_api/src/
Dtest_sched_timeslice_and_lock.c13 static struct thread_data tdata[THREADS_NUM]; variable
33 tdata[tnum].executed = 1; in thread_entry()
42 tdata[i].priority = init_prio - 1; in setup_threads()
45 tdata[i].priority = init_prio; in setup_threads()
48 tdata[i].priority = init_prio + 1; in setup_threads()
50 tdata[i].executed = 0; in setup_threads()
58 tdata[i].tid = k_thread_create(&tthread[i], tstacks[i], in spawn_threads()
62 NULL, tdata[i].priority, 0, in spawn_threads()
70 k_thread_abort(tdata[i].tid); in teardown_threads()
109 zassert_true(tdata[0].executed == 1); in ZTEST()
[all …]
Dtest_sched_is_preempt_thread.c12 static struct k_thread tdata; variable
73 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
80 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
Dtest_sched_priority.c13 static struct k_thread tdata; variable
58 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
93 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
103 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
/Zephyr-latest/cmake/linker_script/common/
Dthread-local-storage.cmake4 zephyr_linker_section(NAME .tdata LMA FLASH NOINPUT)
5 zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata")
6 zephyr_linker_section_configure(SECTION .tdata INPUT ".tdata.*")
7 zephyr_linker_section_configure(SECTION .tdata INPUT ".gnu.linkonce.td.*")
18 # These needs to be outside of the tdata/tbss
25 # /* The "master copy" of tdata should be only in flash on XIP systems */
26 # PROVIDE(__tdata_start = LOADADDR(tdata));
28 # PROVIDE(__tdata_start = ADDR(tdata));
30 # PROVIDE(__tdata_size = SIZEOF(tdata));
32 # PROVIDE(__tdata_align = ALIGNOF(tdata));
/Zephyr-latest/include/zephyr/linker/
Dthread-local-storage.ld5 SECTION_DATA_PROLOGUE(tdata,,)
7 *(.tdata .tdata.* .gnu.linkonce.td.*);
16 * These needs to be outside of the tdata/tbss
22 /* The "master copy" of tdata should be only in flash on XIP systems */
23 PROVIDE(__tdata_start = LOADADDR(tdata));
25 PROVIDE(__tdata_start = ADDR(tdata));
27 PROVIDE(__tdata_align = ALIGNOF(tdata));
28 PROVIDE(__tdata_size = (SIZEOF(tdata) + __tdata_align - 1) & ~(__tdata_align - 1));
/Zephyr-latest/tests/kernel/common/src/
Dclock.c26 static ZTEST_BMEM struct timer_data tdata; variable
182 tdata.duration_count++; in duration_expire()
187 tdata.stop_count++; in stop_expire()
192 tdata.duration_count = 0; in init_data_count()
193 tdata.stop_count = 0; in init_data_count()
215 zassert_true(tdata.duration_count == 0); in ZTEST()
216 zassert_true(tdata.stop_count == 0); in ZTEST()
225 zassert_true(tdata.duration_count == 1, "duration %u not 1", in ZTEST()
226 tdata.duration_count); in ZTEST()
227 zassert_true(tdata.stop_count == 0, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_api/src/
Dmain.c68 static ZTEST_BMEM struct timer_data tdata; variable
80 tdata.expire_cnt = 0; in init_timer_data()
81 tdata.stop_cnt = 0; in init_timer_data()
87 tdata.timestamp = k_uptime_get(); in init_timer_data()
116 int64_t interval = k_uptime_delta(&tdata.timestamp); in duration_expire()
118 tdata.expire_cnt++; in duration_expire()
119 if (tdata.expire_cnt == 1) { in duration_expire()
125 if (tdata.expire_cnt >= EXPIRE_TIMES) { in duration_expire()
132 tdata.stop_cnt++; in duration_stop()
137 tdata.expire_cnt++; in period0_expire()
[all …]
/Zephyr-latest/tests/kernel/threads/thread_apis/src/
Dtest_threads_cancel_abort.c46 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_abort, in ZTEST_USER()
66 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
75 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
95 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
140 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
202 k_thread_create(&tdata, tstack, STACK_SIZE, entry_abort_isr, in ZTEST()
206 k_thread_join(&tdata, K_FOREVER); in ZTEST()
214 uint8_t *p = (uint8_t *)&tdata; in ZTEST()
217 for (int i = 0; i < sizeof(tdata); i++) { in ZTEST()
260 tid = k_thread_create(&tdata, tstack, STACK_SIZE, entry_aborted_thread, in ZTEST()
Dtest_threads_spawn.c50 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_params, in ZTEST_USER()
69 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_priority, in ZTEST()
87 k_thread_create(&tdata, tstack, STACK_SIZE, thread_entry_delay, in ZTEST_USER()
116 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
142 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
169 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
Dtest_threads_suspend_resume.c27 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in threads_suspend_resume()
96 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
133 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
161 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
/Zephyr-latest/tests/benchmarks/footprints/src/
Dtimer.c23 static FP_BMEM struct timer_data tdata; variable
27 tdata.expire_cnt = 0; in init_timer_data()
28 tdata.stop_cnt = 0; in init_timer_data()
40 tdata.stop_cnt++; in timer_stop()
45 tdata.expire_cnt++; in timer_expire()
61 tdata.timestamp = k_uptime_get(); in thread_fn()
74 tdata.timestamp = k_uptime_get(); in thread_fn()
/Zephyr-latest/tests/lib/newlib/thread_safety/src/
Dlocks.c31 static struct k_thread tdata; variable
127 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
138 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
202 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
212 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
272 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
282 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
342 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
352 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
412 tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_error_case/src/
Dmain.c20 static struct k_thread tdata; variable
53 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
91 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
129 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
167 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
205 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
242 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
279 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
319 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
354 k_thread_access_grant(k_current_get(), &tdata, &tstack, &mytimer, &sync_timer); in setup_timer_error_test()
/Zephyr-latest/tests/kernel/mutex/mutex_api/src/
Dtest_mutex_apis.c25 static struct k_thread tdata; variable
70 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock()
86 k_thread_create(&tdata, tstack, STACK_SIZE, in tmutex_test_lock_timeout()
216 k_thread_abort(&tdata); in ZTEST_USER()
220 k_thread_abort(&tdata); in ZTEST_USER()
327 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
329 &tmutex, &tdata, NULL, in ZTEST_USER()
357 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
359 &tmutex, &tdata, NULL, in ZTEST_USER()
383 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST_USER()
[all …]
/Zephyr-latest/tests/drivers/uart/uart_async_api/src/
Dtest_uart_async.c115 static struct test_data tdata __used __NOCACHE;
117 static ZTEST_BMEM struct test_data tdata; variable
134 if ((uintptr_t)evt->data.rx.buf < (uintptr_t)tdata.rx_second_buffer) { in test_single_read_callback()
168 memset(&tdata, 0, sizeof(tdata)); in single_read_setup()
169 tdata.supply_second_buffer = true; in single_read_setup()
172 (void *) &tdata); in single_read_setup()
181 recv_bytes_total = tdata.recv_bytes_first_buffer + tdata.recv_bytes_second_buffer; in tdata_check_recv_buffers()
184 zassert_equal(memcmp(tx_buf, tdata.rx_first_buffer, tdata.recv_bytes_first_buffer), 0, in tdata_check_recv_buffers()
186 zassert_equal(memcmp(tx_buf + tdata.recv_bytes_first_buffer, tdata.rx_second_buffer, in tdata_check_recv_buffers()
187 tdata.recv_bytes_second_buffer), in tdata_check_recv_buffers()
[all …]
/Zephyr-latest/tests/kernel/mem_slab/mslab_concept/src/
Dtest_mslab_alloc_wait.c16 static struct k_thread tdata[THREAD_NUM]; variable
73 tid[0] = k_thread_create(&tdata[0], tstack[0], STACK_SIZE, in ZTEST()
77 tid[1] = k_thread_create(&tdata[1], tstack[1], STACK_SIZE, in ZTEST()
81 tid[2] = k_thread_create(&tdata[2], tstack[2], STACK_SIZE, in ZTEST()
/Zephyr-latest/tests/kernel/pipe/pipe_api/src/
Dmain.c20 extern struct k_thread tdata;
26 &kpipe, &end_sema, &tdata, &tstack, in pipe_api_setup()
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/
Dtest_msgq_purge.c10 extern struct k_thread tdata;
32 k_thread_create(&tdata, tstack, STACK_SIZE, in purge_when_put()
46 k_thread_abort(&tdata); in purge_when_put()
Dmain.c29 extern struct k_thread tdata;
35 &tdata, &tstack); in msgq_api_setup()
/Zephyr-latest/tests/kernel/queue/src/
Dtest_queue_contexts.c27 static struct k_thread tdata; variable
114 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tqueue_thread_thread()
220 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in tqueue_get_2threads()
343 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
371 k_thread_abort(&tdata); in ZTEST()
431 k_thread_create(&tdata, tstack, STACK_SIZE, user_access_queue_private_data, in ZTEST()
433 k_thread_join(&tdata, K_FOREVER); in ZTEST()
495 k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
522 k_thread_join(&tdata, K_FOREVER); in ZTEST()
/Zephyr-latest/tests/kernel/mutex/mutex_error_case/src/
Dtest_mutex_error.c23 static struct k_thread tdata; variable
107 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in create_negative_test_thread()
214 k_thread_access_grant(k_current_get(), &tdata, &tstack, in mutex_api_tests_setup()
/Zephyr-latest/tests/integration/kernel/src/
Dmain.c17 static struct k_thread tdata; variable
73 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
141 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
217 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
280 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
294 k_thread_join(&tdata, K_FOREVER); in ZTEST()
/Zephyr-latest/tests/kernel/fifo/fifo_usage/src/
Dmain.c55 static struct k_thread tdata; variable
157 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
188 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()
220 k_tid_t tid = k_thread_create(&tdata, tstack, STACK_SIZE, in ZTEST()

123