| /tests/kernel/ipi_optimize/src/ |
| A D | main.c | 113 priority, 0, K_NO_WAIT); in alt_thread_create() 134 priority, 0, K_NO_WAIT); in busy_threads_create() 162 priority += delta; in busy_threads_priority_set() 173 int priority; in ZTEST() local 178 id = busy_threads_create(priority - 1); in ZTEST() 208 int priority; in ZTEST() local 213 id = busy_threads_create(priority - 1); in ZTEST() 252 int priority; in ZTEST() local 300 int priority; in ZTEST() local 356 int priority; in ZTEST() local [all …]
|
| /tests/benchmarks/latency_measure/src/ |
| A D | thread_switch_yield.c | 96 int priority) in thread_switch_yield_common() argument 108 priority - 1, start_options, K_FOREVER); in thread_switch_yield_common() 114 priority - 1, alt_options, K_FOREVER); in thread_switch_yield_common() 146 int priority; in thread_switch_yield() local 149 priority = is_cooperative ? K_PRIO_COOP(6) in thread_switch_yield() 158 priority); in thread_switch_yield() 163 priority); in thread_switch_yield() 167 priority); in thread_switch_yield() 171 priority); in thread_switch_yield()
|
| A D | thread.c | 34 int priority; in alt_thread_entry() local 59 priority = k_thread_priority_get(&alt_thread); in alt_thread_entry() 60 k_thread_priority_set(&alt_thread, priority + 2); in alt_thread_entry() 74 int priority; in start_thread_entry() local 78 priority = k_thread_priority_get(&start_thread); in start_thread_entry() 89 priority, in start_thread_entry() 174 int priority; in thread_ops() local 180 priority = k_thread_priority_get(k_current_get()); in thread_ops() 204 priority - 1, start_options, K_FOREVER); in thread_ops() 226 priority - 1, alt_options, K_FOREVER); in thread_ops() [all …]
|
| A D | timing_sc.c | 63 int priority; in timestamp_overhead_init() local 65 priority = k_thread_priority_get(k_current_get()); in timestamp_overhead_init() 71 priority - 1, 0, K_FOREVER); in timestamp_overhead_init() 84 priority - 1, K_USER, K_FOREVER); in timestamp_overhead_init()
|
| A D | sema_test_signal_release.c | 111 int priority; in sema_context_switch() local 115 priority = k_thread_priority_get(k_current_get()); in sema_context_switch() 121 priority - 2, start_options, K_FOREVER); in sema_context_switch() 127 priority - 1, alt_options, K_FOREVER); in sema_context_switch() 240 int priority; in sema_test_signal() local 248 priority = k_thread_priority_get(k_current_get()); in sema_test_signal() 254 priority - 1, options, K_FOREVER); in sema_test_signal()
|
| A D | stack.c | 62 int priority; in stack_ops() local 67 priority = k_thread_priority_get(k_current_get()); in stack_ops() 78 priority - 1, options, K_FOREVER); in stack_ops() 168 int priority; in stack_blocking_ops() local 173 priority = k_thread_priority_get(k_current_get()); in stack_blocking_ops() 182 priority - 1, start_options, K_FOREVER); in stack_blocking_ops() 189 priority - 2, alt_options, K_FOREVER); in stack_blocking_ops()
|
| A D | condvar.c | 74 int priority; in condvar_blocking_ops() local 79 priority = k_thread_priority_get(k_current_get()); in condvar_blocking_ops() 88 priority - 2, start_options, K_FOREVER); in condvar_blocking_ops() 95 priority - 1, alt_options, K_FOREVER); in condvar_blocking_ops()
|
| A D | mutex_lock_unlock.c | 78 int priority; in mutex_lock_unlock() local 83 priority = k_thread_priority_get(k_current_get()); in mutex_lock_unlock() 89 priority - 1, options, K_FOREVER); in mutex_lock_unlock()
|
| A D | int_to_thread.c | 130 int priority; in int_to_another_thread() local 133 priority = k_thread_priority_get(k_current_get()); in int_to_another_thread() 139 priority - 2, options, K_FOREVER); in int_to_another_thread() 145 priority - 1, 0, K_FOREVER); in int_to_another_thread()
|
| A D | events.c | 175 int priority; in event_ops() local 180 priority = k_thread_priority_get(k_current_get()); in event_ops() 189 priority - 1, options, K_FOREVER); in event_ops() 253 int priority; in event_blocking_ops() local 258 priority = k_thread_priority_get(k_current_get()); in event_blocking_ops() 267 priority - 1, start_options, K_FOREVER); in event_blocking_ops() 274 priority - 2, alt_options, K_FOREVER); in event_blocking_ops()
|
| A D | fifo.c | 94 int priority; in fifo_ops() local 99 priority = k_thread_priority_get(k_current_get()); in fifo_ops() 108 priority - 1, options, K_FOREVER); in fifo_ops() 268 int priority; in fifo_blocking_ops() local 273 priority = k_thread_priority_get(k_current_get()); in fifo_blocking_ops() 282 priority - 1, start_options, K_FOREVER); in fifo_blocking_ops() 289 priority - 2, alt_options, K_FOREVER); in fifo_blocking_ops()
|
| A D | lifo.c | 94 int priority; in lifo_ops() local 99 priority = k_thread_priority_get(k_current_get()); in lifo_ops() 108 priority - 1, options, K_FOREVER); in lifo_ops() 268 int priority; in lifo_blocking_ops() local 273 priority = k_thread_priority_get(k_current_get()); in lifo_blocking_ops() 282 priority - 1, start_options, K_FOREVER); in lifo_blocking_ops() 289 priority - 2, alt_options, K_FOREVER); in lifo_blocking_ops()
|
| /tests/arch/arc/arc_vpx_lock/src/ |
| A D | main.c | 76 int priority; in ZTEST() local 79 priority = k_thread_priority_get(k_current_get()); in ZTEST() 85 priority - 2, 0, K_FOREVER); in ZTEST() 129 int priority; in ZTEST() local 132 priority = k_thread_priority_get(k_current_get()); in ZTEST() 137 priority - 2, 0, K_FOREVER); in ZTEST()
|
| /tests/drivers/gpio/gpio_ite_it8xxx2_v2/include/zephyr/arch/ |
| A D | cpu.h | 10 int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority, 13 int arch_irq_disconnect_dynamic(unsigned int irq, unsigned int priority,
|
| /tests/kernel/sched/preempt/src/ |
| A D | main.c | 28 #error Need one metairq priority 305 int priority; in ZTEST() local 311 priority = K_HIGHEST_THREAD_PRIO; in ZTEST() 313 priority = K_HIGHEST_THREAD_PRIO in ZTEST() 316 zassert_true(priority < K_PRIO_PREEMPT(0), ""); in ZTEST() 318 priority = K_LOWEST_APPLICATION_THREAD_PRIO - 1; in ZTEST() 320 zassert_true(priority >= K_PRIO_PREEMPT(0), ""); in ZTEST() 326 priority, 0, K_NO_WAIT); in ZTEST()
|
| /tests/lib/p4workq/src/ |
| A D | main.c | 43 item->item.priority = sys_rand32_get() % (K_LOWEST_THREAD_PRIO - 1); in stress_sub() 61 zassert_true(curr_pri == item->priority, in stress_handler() 63 item->priority, curr_pri); in stress_handler() 108 items[0].item.priority = -1; in ZTEST() 155 item->priority = pri; in add_new_item() 259 simple_item.priority = prio + 1; in ZTEST() 272 simple_item.priority = prio - 1; in ZTEST()
|
| /tests/arch/xtensa/save_restore_hifi/src/ |
| A D | main.c | 59 int priority; in ZTEST() local 62 priority = k_thread_priority_get(k_current_get()); in ZTEST() 69 priority - 1, 0, K_FOREVER); in ZTEST()
|
| /tests/kernel/smp_abort/src/ |
| A D | main.c | 59 int priority; in ZTEST() local 61 priority = k_thread_priority_get(k_current_get()); in ZTEST() 82 priority - 1, 0, K_NO_WAIT); in ZTEST()
|
| /tests/benchmarks/app_kernel/src/ |
| A D | master.c | 140 int priority; in main() local 142 priority = k_thread_priority_get(k_current_get()); in main() 161 priority, 0, K_FOREVER); in main() 181 priority, 0, K_FOREVER); in main() 205 priority, K_USER, K_FOREVER); in main() 229 priority, K_USER, K_FOREVER); in main()
|
| /tests/benchmarks/wait_queues/ |
| A D | README.rst | 11 * Time to add threads of increasing priority to a wait queue 12 * Time to add threads of decreasing priority to a wait queue 13 * Time to remove highest priority thread from a wait queue 14 * Time to remove lowest priority thread from a wait queue
|
| /tests/drivers/uart/uart_mix_fifo_poll/ |
| A D | README.txt | 3 from higher priority context, uart_fifo_fill called from UART interrupt context 4 and uart_tx called from higher priority context. Preemptions shall not lead to 9 - higher priority thread
|
| /tests/subsys/settings_commit_prio/ |
| A D | README.rst | 3 Settings Subsystem commit priority Test 9 This test is used to test the Settings Subsystem commit priority.
|
| /tests/benchmarks/sched_queues/ |
| A D | README.rst | 12 * Time to add a threads of increasing priority to the ready queue. 13 * Time to add threads of decreasing priority to the ready queue. 14 * Time to remove highest priority thread from a wait queue. 15 * Time to remove lowest priority thread from a wait queue.
|
| /tests/kernel/usage/thread_runtime_stats/src/ |
| A D | test_thread_runtime_stats.c | 67 int priority; in ZTEST() local 75 priority = k_thread_priority_get(_current); in ZTEST() 79 priority + 2, 0, K_NO_WAIT); in ZTEST() 203 int priority; in ZTEST() local 205 priority = k_thread_priority_get(_current); in ZTEST() 209 priority + 2, 0, K_NO_WAIT); in ZTEST() 400 int priority; in ZTEST() local 407 priority = k_thread_priority_get(_current); in ZTEST() 429 priority + 2, 0, K_TICKS(1)); in ZTEST()
|
| /tests/net/vlan/src/ |
| A D | main.c | 559 uint8_t priority; in ZTEST() local 567 priority = 0U; in ZTEST() 568 net_pkt_set_vlan_priority(pkt, priority); in ZTEST() 572 zassert_equal(net_pkt_vlan_priority(pkt), priority, in ZTEST() 581 priority = 1U; in ZTEST() 582 net_pkt_set_vlan_priority(pkt, priority); in ZTEST() 627 priority = 0U; in ZTEST() 628 net_pkt_set_vlan_priority(pkt, priority); in ZTEST() 638 priority = 3U; in ZTEST() 641 tci = net_eth_vlan_set_pcp(tci, priority); in ZTEST() [all …]
|