/Zephyr-Core-3.6.0/samples/subsys/zbus/priority_boost/ |
D | README.rst | 61 I: 0 -> T1: prio before 5 62 I: 0 ---> L1: T1 prio 5 63 I: 0 -> MS1: T1 prio 5 64 I: 0 -> MS2: T1 prio 5 65 I: 0 ---> L2: T1 prio 5 66 I: 0 -> T1: prio after 5 67 I: N -> S1: T1 prio 5 68 I: 0 -> S1: T1 prio 5 70 I: 1 -> T1: prio before 5 71 I: 1 ---> L1: T1 prio 5 [all …]
|
/Zephyr-Core-3.6.0/dts/arm/nuvoton/npcx/ |
D | npcx-miwus-int-map.dtsi | 16 irq-prio = <2>; 21 irq-prio = <2>; 32 irq-prio = <2>; 37 irq-prio = <2>; 42 irq-prio = <2>; 47 irq-prio = <2>; 52 irq-prio = <2>; 57 irq-prio = <2>; 62 irq-prio = <2>; 67 irq-prio = <2>; [all …]
|
/Zephyr-Core-3.6.0/tests/kernel/threads/thread_apis/src/ |
D | test_threads_set_priority.c | 52 int prio = k_thread_priority_get(k_current_get()); in ZTEST() local 55 k_thread_priority_set(k_current_get(), prio + 2); in ZTEST() 57 zassert_equal(rv, prio + 2, in ZTEST() 59 prio + 2, rv); in ZTEST() 62 k_thread_priority_set(k_current_get(), prio - 2); in ZTEST() 64 zassert_equal(rv, prio - 2, in ZTEST() 66 prio - 2, rv); in ZTEST() 69 k_thread_priority_set(k_current_get(), prio); in ZTEST() 71 zassert_equal(rv, prio, in ZTEST() 73 prio, rv); in ZTEST() [all …]
|
/Zephyr-Core-3.6.0/tests/subsys/zbus/hlp_priority_boost/src/ |
D | main.c | 116 static int prio; variable 120 prio = k_thread_priority_get(pub_thread_id); in listener_callback() 135 zassert_true(prio == 1, "The priority must be 1, but it is %d", prio); in ZTEST() 141 zassert_true(prio == 2, "The priority must be 2, but it is %d", prio); in ZTEST() 147 zassert_true(prio == 1, "The priority must be 1, but it is %d", prio); in ZTEST() 157 zassert_true(prio == 2, "The priority must be 2, but it is %d", prio); in ZTEST() 165 zassert_true(prio == 8, "The priority must be 8, but it is %d", prio); in ZTEST() 173 zassert_true(prio == 1, "The priority must be 1, but it is %d", prio); in ZTEST() 177 zassert_true(prio == 8, "The priority must be 8, but it is %d", prio); in ZTEST()
|
/Zephyr-Core-3.6.0/kernel/include/ |
D | ksched.h | 22 #define Z_VALID_PRIO(prio, entry_point) \ argument 23 (((prio) == K_IDLE_PRIO && z_is_idle_thread_entry(entry_point)) || \ 26 && (prio) >= K_HIGHEST_APPLICATION_THREAD_PRIO \ 27 && (prio) <= K_LOWEST_APPLICATION_THREAD_PRIO)) 29 #define Z_ASSERT_VALID_PRIO(prio, entry_point) do { \ argument 30 __ASSERT(Z_VALID_PRIO((prio), (entry_point)), \ 32 (prio), \ 37 #define Z_VALID_PRIO(prio, entry_point) ((prio) == -1) argument 38 #define Z_ASSERT_VALID_PRIO(prio, entry_point) __ASSERT((prio) == -1, "") argument 56 void z_thread_priority_set(struct k_thread *thread, int prio); [all …]
|
/Zephyr-Core-3.6.0/arch/arc/core/ |
D | irq_manage.c | 216 void z_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_irq_priority_set() argument 220 __ASSERT(prio < CONFIG_NUM_IRQ_PRIO_LEVELS, in z_irq_priority_set() 221 "invalid priority %d for irq %d", prio, irq); in z_irq_priority_set() 226 prio = prio < ARC_N_IRQ_START_LEVEL ? in z_irq_priority_set() 227 prio : (ARC_N_IRQ_START_LEVEL - 1); in z_irq_priority_set() 229 prio = prio < ARC_N_IRQ_START_LEVEL ? in z_irq_priority_set() 230 ARC_N_IRQ_START_LEVEL : prio; in z_irq_priority_set() 232 z_arc_v2_irq_unit_prio_set(irq, prio); in z_irq_priority_set()
|
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/ll_sw/ |
D | lll_common.c | 44 int prio = event_prio; in lll_prepare() local 54 if (prio > -128) { in lll_prepare() 56 prio = -127; in lll_prepare() 58 prio = MAX(-127, prio - hdr->score - hdr->latency); in lll_prepare() 62 prepare_param->prio = prio; in lll_prepare()
|
/Zephyr-Core-3.6.0/dts/arm/nuvoton/npcx/npcx4/ |
D | npcx4-miwus-int-map.dtsi | 20 irq-prio = <2>; 25 irq-prio = <2>; 30 irq-prio = <2>; 35 irq-prio = <2>; 40 irq-prio = <2>; 45 irq-prio = <2>; 56 irq-prio = <2>; 61 irq-prio = <2>; 66 irq-prio = <2>; 71 irq-prio = <2>;
|
/Zephyr-Core-3.6.0/dts/arm/nuvoton/npcx/npcx9/ |
D | npcx9-miwus-int-map.dtsi | 20 irq-prio = <2>; 25 irq-prio = <2>; 30 irq-prio = <2>; 35 irq-prio = <2>; 40 irq-prio = <2>; 45 irq-prio = <2>; 56 irq-prio = <2>; 61 irq-prio = <2>;
|
/Zephyr-Core-3.6.0/include/zephyr/ |
D | init.h | 150 #define Z_INIT_ENTRY_SECTION(level, prio, sub_prio) \ argument 152 ".z_init_" #level STRINGIFY(prio)"_" STRINGIFY(sub_prio)"_"))) 189 #define SYS_INIT(init_fn, level, prio) \ argument 190 SYS_INIT_NAMED(init_fn, init_fn, level, prio) 205 #define SYS_INIT_NAMED(name, init_fn_, level, prio) \ argument 207 Z_INIT_ENTRY_SECTION(level, prio, 0) __used __noasan \
|
D | device.h | 131 #define DEVICE_DEFINE(dev_id, name, init_fn, pm, data, config, level, prio, \ argument 135 config, level, prio, api, \ 182 #define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \ argument 187 level, prio, api, \ 918 #define Z_DEVICE_SECTION_NAME(level, prio) \ argument 919 _CONCAT(INIT_LEVEL_ORD(level), _##prio) 937 #define Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, pm, data, config, level, prio, api, state, \ argument 943 Z_DEVICE_SECTION_NAME(level, prio), DEVICE_NAME_GET(dev_id)) = \ 975 #define Z_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, init_fn_, level, prio) \ argument 979 level, prio, Z_DEVICE_INIT_SUB_PRIO(node_id)) \ [all …]
|
/Zephyr-Core-3.6.0/modules/hal_nordic/nrf_802154/sl_opensource/platform/ |
D | nrf_802154_irq_zephyr.c | 12 void nrf_802154_irq_init(uint32_t irqn, int32_t prio, nrf_802154_isr_t isr) in nrf_802154_irq_init() argument 16 if (prio < 0) { in nrf_802154_irq_init() 17 prio = 0; in nrf_802154_irq_init() 21 irq_connect_dynamic(irqn, prio, isr, NULL, flags); in nrf_802154_irq_init()
|
/Zephyr-Core-3.6.0/tests/net/traffic_class/src/ |
D | main.c | 204 int i, prio, ret; in eth_tx() local 206 prio = net_pkt_priority(pkt); in eth_tx() 210 net_tx_priority2tc(prio), pkt); in eth_tx() 215 pkt, prio, net_tx_priority2tc(prio)); in eth_tx() 221 prio, in eth_tx() 222 net_tx_priority2tc(prio), in eth_tx() 223 send_priorities[net_tx_priority2tc(prio)][i], in eth_tx() 228 send_priorities[net_tx_priority2tc(prio)][i] = 0; in eth_tx() 475 static void traffic_class_send_packets_with_prio(enum net_priority prio, in traffic_class_send_packets_with_prio() argument 483 int tc = net_tx_priority2tc(prio); in traffic_class_send_packets_with_prio() [all …]
|
/Zephyr-Core-3.6.0/include/zephyr/arch/arm64/ |
D | irq.h | 43 extern void z_arm64_irq_priority_set(unsigned int irq, unsigned int prio, 59 unsigned int irq, unsigned int prio, unsigned int flags); 68 #define z_arm64_irq_priority_set(irq, prio, flags) \ 69 z_soc_irq_priority_set(irq, prio, flags)
|
/Zephyr-Core-3.6.0/soc/riscv/common/riscv-privileged/ |
D | soc_common_irq.c | 35 void z_riscv_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_riscv_irq_priority_set() argument 37 riscv_clic_irq_priority_set(irq, prio, flags); in z_riscv_irq_priority_set() 100 void z_riscv_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_riscv_irq_priority_set() argument 105 riscv_plic_set_priority(irq, prio); in z_riscv_irq_priority_set()
|
/Zephyr-Core-3.6.0/arch/arm/core/cortex_m/ |
D | irq_manage.c | 61 void z_arm_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_arm_irq_priority_set() argument 75 prio = _EXC_ZERO_LATENCY_IRQS_PRIO; in z_arm_irq_priority_set() 80 prio += _IRQ_PRIO_OFFSET; in z_arm_irq_priority_set() 88 __ASSERT(prio <= (BIT(NUM_IRQ_PRIO_BITS) - 1), in z_arm_irq_priority_set() 90 prio - _IRQ_PRIO_OFFSET, irq, in z_arm_irq_priority_set() 92 NVIC_SetPriority((IRQn_Type)irq, prio); in z_arm_irq_priority_set()
|
/Zephyr-Core-3.6.0/samples/subsys/portability/cmsis_rtos_v1/philosophers/src/ |
D | main.c | 100 int prio = osThreadGetPriority(osThreadGetId()); in print_phil_state() local 108 id, prio < 0 ? "C" : "P", in print_phil_state() 109 prio < 0 ? "" : " ", in print_phil_state() 110 prio); in print_phil_state() 198 int prio = new_prio(i); in start_threads() local 200 osThreadSetPriority(id, prio); in start_threads()
|
/Zephyr-Core-3.6.0/samples/posix/philosophers/src/ |
D | main.c | 89 int prio; in print_phil_state() local 100 prio = posix_to_zephyr_priority(param.sched_priority, policy); in print_phil_state() 104 printk("Philosopher %d [%s:%s%d] ", id, prio < 0 ? "C" : "P", prio < 0 ? "" : " ", prio); in print_phil_state() 214 int prio; in start_threads() local 227 prio = new_prio(i); in start_threads() 228 param.sched_priority = zephyr_to_posix_priority(prio, &policy); in start_threads()
|
/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | net_tc.c | 75 int net_tx_priority2tc(enum net_priority prio) in net_tx_priority2tc() argument 78 if (prio > NET_PRIORITY_NC) { in net_tx_priority2tc() 80 prio = NET_PRIORITY_BE; in net_tx_priority2tc() 83 return tx_prio2tc_map[prio]; in net_tx_priority2tc() 85 ARG_UNUSED(prio); in net_tx_priority2tc() 91 int net_rx_priority2tc(enum net_priority prio) in net_rx_priority2tc() argument 94 if (prio > NET_PRIORITY_NC) { in net_rx_priority2tc() 96 prio = NET_PRIORITY_BE; in net_rx_priority2tc() 99 return rx_prio2tc_map[prio]; in net_rx_priority2tc() 101 ARG_UNUSED(prio); in net_rx_priority2tc()
|
/Zephyr-Core-3.6.0/tests/kernel/mutex/sys_mutex/src/ |
D | thread_competition.c | 95 int prio = 10; in ZTEST() local 101 k_thread_priority_set(k_current_get(), prio); in ZTEST() 106 prio + 2, 0, K_NO_WAIT); in ZTEST() 114 prio + 4, 0, K_NO_WAIT); in ZTEST() 119 prio + 2, 0, K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.6.0/samples/philosophers/src/ |
D | main.c | 102 int prio = k_thread_priority_get(k_current_get()); in print_phil_state() local 107 id, prio < 0 ? "C" : "P", in print_phil_state() 108 prio < 0 ? "" : " ", in print_phil_state() 109 prio); in print_phil_state() 217 int prio = new_prio(i); in start_threads() local 221 prio, K_USER, K_FOREVER); in start_threads()
|
/Zephyr-Core-3.6.0/samples/subsys/portability/cmsis_rtos_v2/philosophers/src/ |
D | main.c | 130 int prio = osThreadGetPriority(osThreadGetId()); in print_phil_state() local 135 id, prio < 0 ? "C" : "P", in print_phil_state() 136 prio < 0 ? "" : " ", in print_phil_state() 137 prio); in print_phil_state() 226 int prio = new_prio(i); in start_threads() local 227 thread_attr[i].priority = prio; in start_threads()
|
/Zephyr-Core-3.6.0/kernel/ |
D | mutex.c | 92 if (mutex->owner->base.prio != new_prio) { in adjust_owner_prio() 97 new_prio, mutex->owner->base.prio); in adjust_owner_prio() 119 _current->base.prio : in z_impl_k_mutex_lock() 146 new_prio = new_prio_for_inheritance(_current->base.prio, in z_impl_k_mutex_lock() 147 mutex->owner->base.prio); in z_impl_k_mutex_lock() 151 if (z_is_prio_higher(new_prio, mutex->owner->base.prio)) { in z_impl_k_mutex_lock() 181 new_prio_for_inheritance(waiter->base.prio, mutex->owner_orig_prio) : in z_impl_k_mutex_lock() 262 mutex, new_owner, new_owner ? new_owner->base.prio : -1000); in z_impl_k_mutex_unlock() 270 mutex->owner_orig_prio = new_owner->base.prio; in z_impl_k_mutex_unlock()
|
/Zephyr-Core-3.6.0/arch/xtensa/core/ |
D | irq_manage.c | 34 void z_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) in z_irq_priority_set() argument 36 __ASSERT(prio < XCHAL_EXCM_LEVEL + 1, in z_irq_priority_set() 38 prio, XCHAL_EXCM_LEVEL + 1); in z_irq_priority_set()
|
/Zephyr-Core-3.6.0/tests/benchmarks/app_kernel/src/ |
D | pipe_b.c | 65 int prio; in pipe_test() local 106 for (prio = 0; prio < 2; prio++) { in pipe_test() 108 if (prio == 0) { in pipe_test() 114 if (prio == 1) { in pipe_test()
|