Home
last modified time | relevance | path

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

12345

/Zephyr-Core-3.7.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.7.0/lib/os/
Dsem.c47 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
61 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
82 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
101 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
108 int sys_sem_init(struct sys_sem *sem, unsigned int initial_count, in sys_sem_init()
116 int sys_sem_give(struct sys_sem *sem) in sys_sem_give()
123 int sys_sem_take(struct sys_sem *sem, k_timeout_t timeout) in sys_sem_take()
135 unsigned int sys_sem_count_get(struct sys_sem *sem) in sys_sem_count_get()
/Zephyr-Core-3.7.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.7.0/tests/benchmarks/latency_measure/src/
Dint_to_thread.c41 struct k_sem *sem = (struct k_sem *)arg; in test_isr() local
75 struct k_sem *sem = p2; in start_thread_entry() local
108 struct k_sem *sem = p2; in alt_thread_entry() local
/Zephyr-Core-3.7.0/tests/posix/common/src/
Dsemaphore.c18 sem_t *sem = (sem_t *)p1; in child_func() local
24 static void semaphore_test(sem_t *sem) in semaphore_test()
129 sem_t *sem = (sem_t *)p; in nsem_close_func() local
/Zephyr-Core-3.7.0/drivers/misc/ethos_u/
Dethos_u.c63 struct k_sem *sem; in ethosu_semaphore_create() local
76 int ethosu_semaphore_take(void *sem, uint64_t timeout) in ethosu_semaphore_take()
102 int ethosu_semaphore_give(void *sem) in ethosu_semaphore_give()
/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/src/
Dtest_replay_cache.c55 struct k_sem *sem = data; in tx_ended() local
130 struct k_sem sem; in test_tx_immediate_replay_attack() local
195 struct k_sem sem; in test_tx_power_replay_attack() local
249 struct k_sem *sem = cb_data; in send_end_cb() local
271 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
373 struct k_sem sem; in test_tx_seg_concurrent() local
399 struct k_sem sem; in test_tx_seg_ivu() local
446 struct k_sem sem; in test_tx_seg_fail() local
/Zephyr-Core-3.7.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.7.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.7.0/lib/posix/options/
Dsemaphore.c17 sem_t sem; member
345 int sem_close(sem_t *sem) in sem_close()
362 int nsem_get_ref_count(sem_t *sem) in nsem_get_ref_count()
/Zephyr-Core-3.7.0/tests/kernel/common/src/
Dtimeout_order.c14 static struct k_sem sem[NUM_TIMEOUTS]; variable
/Zephyr-Core-3.7.0/tests/kernel/obj_tracking/src/
Dmain.c34 struct k_sem sem; in ZTEST() local
/Zephyr-Core-3.7.0/drivers/pwm/
Dpwm_capture.c17 struct k_sem sem; member
/Zephyr-Core-3.7.0/samples/drivers/can/babbling/src/
Dmain.c21 struct k_sem sem; member
/Zephyr-Core-3.7.0/subsys/tracing/ctf/
Dctf_top.c192 void sys_trace_k_sem_init(struct k_sem *sem, int ret) in sys_trace_k_sem_init()
200 void sys_trace_k_sem_take_enter(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_enter()
209 void sys_trace_k_sem_take_blocking(struct k_sem *sem, k_timeout_t timeout) in sys_trace_k_sem_take_blocking()
217 void sys_trace_k_sem_take_exit(struct k_sem *sem, k_timeout_t timeout, int ret) in sys_trace_k_sem_take_exit()
226 void sys_trace_k_sem_reset(struct k_sem *sem) in sys_trace_k_sem_reset()
233 void sys_trace_k_sem_give_enter(struct k_sem *sem) in sys_trace_k_sem_give_enter()
240 void sys_trace_k_sem_give_exit(struct k_sem *sem) in sys_trace_k_sem_give_exit()
/Zephyr-Core-3.7.0/samples/sensor/isl29035/src/
Dmain.c16 struct k_sem sem; variable
/Zephyr-Core-3.7.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
139 #define sys_port_track_k_sem_reset(sem) argument
140 #define sys_port_track_k_sem_init(sem, ret) argument
/Zephyr-Core-3.7.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.7.0/tests/drivers/pwm/pwm_loopback/src/
Dtest_pwm_loopback.h44 struct k_sem sem; member
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/common/include/
Dintel_adsp_ipc.h67 struct k_sem sem; member
/Zephyr-Core-3.7.0/subsys/usb/device/
Dusb_transfer.c19 struct k_sem sem; member
38 struct k_sem sem; member
/Zephyr-Core-3.7.0/drivers/sensor/sx9500/
Dsx9500.h41 struct k_sem sem; member
/Zephyr-Core-3.7.0/tests/arch/arm/arm_irq_vector_table/src/
Darm_irq_vector_table.c39 struct k_sem sem[3]; variable

12345