Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 25 of 105) sorted by relevance

12345

/Zephyr-Core-3.5.0/kernel/
Dsem.c45 int z_impl_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_impl_k_sem_init()
76 int z_vrfy_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_vrfy_k_sem_init()
85 static inline bool handle_poll_events(struct k_sem *sem) in handle_poll_events()
96 void z_impl_k_sem_give(struct k_sem *sem) in z_impl_k_sem_give()
124 static inline void z_vrfy_k_sem_give(struct k_sem *sem) in z_vrfy_k_sem_give()
132 int z_impl_k_sem_take(struct k_sem *sem, k_timeout_t timeout) in z_impl_k_sem_take()
166 void z_impl_k_sem_reset(struct k_sem *sem) in z_impl_k_sem_reset()
189 static inline int z_vrfy_k_sem_take(struct k_sem *sem, k_timeout_t timeout) in z_vrfy_k_sem_take()
196 static inline void z_vrfy_k_sem_reset(struct k_sem *sem) in z_vrfy_k_sem_reset()
203 static inline unsigned int z_vrfy_k_sem_count_get(struct k_sem *sem) in z_vrfy_k_sem_count_get()
/Zephyr-Core-3.5.0/lib/os/
Dsem.c48 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
62 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
83 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
102 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
109 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
117 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
124 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
136 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
/Zephyr-Core-3.5.0/lib/libc/armstdc/src/
Dthreading_weak.c37 void __weak z_impl_k_sem_give(struct k_sem *sem) in z_impl_k_sem_give()
41 int __weak z_impl_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_impl_k_sem_init()
47 int __weak z_impl_k_sem_take(struct k_sem *sem, k_timeout_t timeout) in z_impl_k_sem_take()
/Zephyr-Core-3.5.0/subsys/tracing/ctf/
Dctf_top.c172 void sys_trace_k_sem_init(struct k_sem *sem, int ret) in sys_trace_k_sem_init()
180 void sys_trace_k_sem_take_enter(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_enter()
189 void sys_trace_k_sem_take_blocking(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_blocking()
197 void sys_trace_k_sem_take_exit(struct k_sem *sem, k_timeout_t timeout, int ret) in sys_trace_k_sem_take_exit()
206 void sys_trace_k_sem_reset(struct k_sem *sem) in sys_trace_k_sem_reset()
213 void sys_trace_k_sem_give_enter(struct k_sem *sem) in sys_trace_k_sem_give_enter()
220 void sys_trace_k_sem_give_exit(struct k_sem *sem) in sys_trace_k_sem_give_exit()
/Zephyr-Core-3.5.0/drivers/misc/ethos_u/
Dethos_u.c62 struct k_sem *sem; in ethosu_semaphore_create() local
75 int ethosu_semaphore_take(void *sem) in ethosu_semaphore_take()
88 int ethosu_semaphore_give(void *sem) in ethosu_semaphore_give()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/
Dtest_replay_cache.c55 struct k_sem *sem = data; in tx_ended() local
134 struct k_sem sem; in test_tx_immediate_replay_attack() local
195 struct k_sem sem; in test_tx_power_replay_attack() local
245 struct k_sem *sem = cb_data; in send_end_cb() local
267 struct k_sem sem; in msg_send() local
Dtest_iv_index.c30 struct k_sem *sem = data; in async_send_end() local
132 struct k_sem sem; in test_ivu_deferring() local
Dtest_transport.c84 struct k_sem *sem = data; in async_send_end() local
375 struct k_sem sem; in test_tx_seg_concurrent() local
401 struct k_sem sem; in test_tx_seg_ivu() local
448 struct k_sem sem; in test_tx_seg_fail() local
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/obj_validation/src/
Dmain.c29 static int test_object(struct k_sem *sem, int retval) in test_object()
51 void object_permission_checks(struct k_sem *sem, bool skip_init) in object_permission_checks()
/Zephyr-Core-3.5.0/tests/kernel/queue/src/
Dtest_queue_user.c31 struct k_sem *sem = p2; in child_thread_get() local
80 struct k_sem *sem; in ZTEST() local
/Zephyr-Core-3.5.0/tests/kernel/common/src/
Dtimeout_order.c14 static struct k_sem sem[NUM_TIMEOUTS]; variable
/Zephyr-Core-3.5.0/tests/kernel/obj_tracking/src/
Dmain.c34 struct k_sem sem; in ZTEST() local
/Zephyr-Core-3.5.0/samples/drivers/can/babbling/src/
Dmain.c21 struct k_sem sem; member
/Zephyr-Core-3.5.0/drivers/pwm/
Dpwm_capture.c17 struct k_sem sem; member
/Zephyr-Core-3.5.0/include/zephyr/tracing/
Dtracking.h82 #define sys_port_track_k_sem_reset(sem) argument
83 #define sys_port_track_k_sem_init(sem, ret) \ argument
135 #define sys_port_track_k_sem_reset(sem) argument
136 #define sys_port_track_k_sem_init(sem, ret) argument
/Zephyr-Core-3.5.0/samples/sensor/isl29035/src/
Dmain.c16 struct k_sem sem; variable
/Zephyr-Core-3.5.0/tests/arch/arm/arm_irq_vector_table/src/
Darm_irq_vector_table.c80 struct k_sem sem[3]; variable
/Zephyr-Core-3.5.0/drivers/modem/
Dmodem_cmd_handler.c499 struct k_sem *sem, k_timeout_t timeout, int flags) in modem_cmd_send_ext()
577 struct k_sem *sem, k_timeout_t timeout) in modem_cmd_handler_setup_cmds()
611 size_t cmds_len, struct k_sem *sem, in modem_cmd_handler_setup_cmds_nolock()
/Zephyr-Core-3.5.0/tests/drivers/pwm/pwm_loopback/src/
Dtest_pwm_loopback.h44 struct k_sem sem; member
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/common/include/
Dintel_adsp_ipc.h70 struct k_sem sem; member
/Zephyr-Core-3.5.0/subsys/usb/device/
Dusb_transfer.c19 struct k_sem sem; member
38 struct k_sem sem; member
/Zephyr-Core-3.5.0/drivers/sensor/sx9500/
Dsx9500.h41 struct k_sem sem; member
/Zephyr-Core-3.5.0/include/zephyr/drivers/console/
Dipm_console.h71 struct k_sem sem; member
/Zephyr-Core-3.5.0/tests/kernel/semaphore/semaphore/src/
Dmain.c26 #define expect_k_sem_take(sem, timeout, exp, str) do { \ argument
32 #define expect_k_sem_init(sem, init, max, exp, str) do { \ argument
38 #define expect_k_sem_count_get(sem, exp, str) do { \ argument
44 #define expect_k_sem_take_nomsg(sem, timeout, exp) \ argument
46 #define expect_k_sem_init_nomsg(sem, init, max, exp) \ argument
49 #define expect_k_sem_count_get_nomsg(sem, exp) \ argument
/Zephyr-Core-3.5.0/subsys/tracing/test/
Dtracing_string_format_test.c250 void sys_trace_k_sem_init(struct k_sem *sem, int ret) in sys_trace_k_sem_init()
254 void sys_trace_k_sem_give_enter(struct k_sem *sem) in sys_trace_k_sem_give_enter()
259 void sys_trace_k_sem_take_enter(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_enter()
264 void sys_trace_k_sem_take_exit(struct k_sem *sem, k_timeout_t timeout, int ret) in sys_trace_k_sem_take_exit()
269 void sys_trace_k_sem_take_blocking(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_blocking()
274 void sys_trace_k_sem_reset(struct k_sem *sem) in sys_trace_k_sem_reset()

12345