Home
last modified time | relevance | path

Searched refs:k_sem (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/Zephyr-Core-3.4.0/kernel/
Dsem.c41 int z_impl_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_impl_k_sem_init()
48 SYS_PORT_TRACING_OBJ_FUNC(k_sem, init, sem, -EINVAL); in z_impl_k_sem_init()
56 SYS_PORT_TRACING_OBJ_FUNC(k_sem, init, sem, 0); in z_impl_k_sem_init()
68 int z_vrfy_k_sem_init(struct k_sem *sem, unsigned int initial_count, in z_vrfy_k_sem_init()
77 static inline bool handle_poll_events(struct k_sem *sem) in handle_poll_events()
88 void z_impl_k_sem_give(struct k_sem *sem) in z_impl_k_sem_give()
94 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_sem, give, sem); in z_impl_k_sem_give()
112 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_sem, give, sem); in z_impl_k_sem_give()
116 static inline void z_vrfy_k_sem_give(struct k_sem *sem) in z_vrfy_k_sem_give()
124 int z_impl_k_sem_take(struct k_sem *sem, k_timeout_t timeout) in z_impl_k_sem_take()
[all …]
/Zephyr-Core-3.4.0/subsys/portability/cmsis_rtos_v1/
Dcmsis_semaphore.c11 K_MEM_SLAB_DEFINE(cmsis_semaphore_slab, sizeof(struct k_sem),
20 struct k_sem *semaphore; in osSemaphoreCreate()
32 (void)memset(semaphore, 0, sizeof(struct k_sem)); in osSemaphoreCreate()
47 struct k_sem *semaphore = (struct k_sem *) semaphore_id; in osSemaphoreWait()
84 struct k_sem *semaphore = (struct k_sem *) semaphore_id; in osSemaphoreRelease()
105 struct k_sem *semaphore = (struct k_sem *) semaphore_id; in osSemaphoreDelete()
/Zephyr-Core-3.4.0/tests/kernel/mem_protect/obj_validation/src/
Dmain.c17 extern struct k_sem sem1;
19 static struct k_sem semarray[SEM_ARRAY_SIZE];
20 static struct k_sem *dyn_sem[SEM_ARRAY_SIZE];
25 static struct k_sem sem2;
26 static char bad_sem[sizeof(struct k_sem)];
27 static struct k_sem sem3;
29 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()
86 struct k_sem stack_sem; in ZTEST()
90 zassert_false(test_object((struct k_sem *)&bad_sem, -EBADF)); in ZTEST()
[all …]
/Zephyr-Core-3.4.0/tests/benchmarks/app_kernel/src/
Dmaster.h128 extern struct k_sem SEM0;
129 extern struct k_sem SEM1;
130 extern struct k_sem SEM2;
131 extern struct k_sem SEM3;
132 extern struct k_sem SEM4;
133 extern struct k_sem STARTRCV;
/Zephyr-Core-3.4.0/include/zephyr/posix/
Dposix_types.h60 typedef struct k_sem sem_t;
95 struct k_sem rd_sem;
96 struct k_sem wr_sem;
97 struct k_sem reader_active;/* blocks WR till reader has acquired lock */
/Zephyr-Core-3.4.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.4.0/drivers/modem/
Dquectel-bg9x.h114 struct k_sem sem_response;
115 struct k_sem sem_tx_ready;
116 struct k_sem sem_sock_conn;
118 struct k_sem sem_pin_busy;
Dsimcom-sim7080.h164 struct k_sem sem_response;
165 struct k_sem sem_tx_ready;
166 struct k_sem sem_dns;
167 struct k_sem sem_ftp;
Dmodem_cmd_handler.h119 struct k_sem sem_tx_lock;
120 struct k_sem sem_parse_lock;
183 struct k_sem *sem, k_timeout_t timeout, int flags);
202 const uint8_t *buf, struct k_sem *sem, in modem_cmd_send_nolock()
227 struct k_sem *sem, k_timeout_t timeout) in modem_cmd_send()
248 struct k_sem *sem, k_timeout_t timeout);
265 size_t cmds_len, struct k_sem *sem,
Dmodem_iface_uart.h30 struct k_sem rx_sem;
35 struct k_sem tx_sem;
/Zephyr-Core-3.4.0/subsys/tracing/
Dtracing_tracking.c19 struct k_sem *_track_list_k_sem;
74 void sys_track_k_sem_init(struct k_sem *sem) in sys_track_k_sem_init()
77 SYS_PORT_TRACING_TYPE_MASK(k_sem, in sys_track_k_sem_init()
137 SYS_PORT_TRACING_TYPE_MASK(k_sem, in sys_track_static_init()
138 SYS_TRACK_STATIC_INIT(k_sem, 0)); in sys_track_static_init()
/Zephyr-Core-3.4.0/include/zephyr/net/
Dieee802154.h81 struct k_sem scan_ctx_lock;
96 struct k_sem ack_lock;
98 struct k_sem ctx_lock; /* guards all mutable context attributes unless
/Zephyr-Core-3.4.0/tests/bluetooth/audio/mocks/include/
Dmock_kernel.h21 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t);
22 DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
/Zephyr-Core-3.4.0/drivers/crypto/
Dcrypto_stm32_priv.h20 struct k_sem device_sem;
21 struct k_sem session_sem;
/Zephyr-Core-3.4.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.4.0/drivers/ieee802154/
Dieee802154_nrf5.h51 struct k_sem cca_wait;
59 struct k_sem tx_wait;
/Zephyr-Core-3.4.0/drivers/espi/
Despi_mchp_xec_v2.h53 struct k_sem tx_lock;
54 struct k_sem rx_lock;
55 struct k_sem flash_lock;
/Zephyr-Core-3.4.0/drivers/ethernet/
Deth_stm32_hal_priv.h43 struct k_sem rx_int_sem;
45 struct k_sem tx_int_sem;
/Zephyr-Core-3.4.0/drivers/wifi/eswifi/
Deswifi_offload.h47 struct k_sem read_sem;
48 struct k_sem accept_sem;
/Zephyr-Core-3.4.0/lib/libc/picolibc/
Dlibc-hooks.c164 *lock = malloc(sizeof(struct k_sem)); in __retarget_lock_init()
170 k_sem_init((struct k_sem *)*lock, 1, 1); in __retarget_lock_init()
215 k_sem_take((struct k_sem *)lock, K_FOREVER); in __retarget_lock_acquire()
229 return !k_sem_take((struct k_sem *)lock, K_NO_WAIT); in __retarget_lock_try_acquire()
243 k_sem_give((struct k_sem *)lock); in __retarget_lock_release()
/Zephyr-Core-3.4.0/include/zephyr/sys/
Dsem.h39 struct k_sem kernel_sem;
75 STRUCT_SECTION_ITERABLE_ALTERNATE(k_sem, sys_sem, _name) = { \
/Zephyr-Core-3.4.0/drivers/sensor/lis2mdl/
Dlis2mdl.h53 struct k_sem fetch_sem;
64 struct k_sem gpio_sem;
/Zephyr-Core-3.4.0/subsys/portability/cmsis_rtos_v2/
Dwrapper.h24 struct k_sem join_guard;
44 struct k_sem z_semaphore;
/Zephyr-Core-3.4.0/tests/misc/test_build/src/
Dmain.c36 struct k_sem *my_sem, struct k_sem *other_sem) in helloLoop()
/Zephyr-Core-3.4.0/drivers/sensor/mhz19b/
Dmhz19b.h53 struct k_sem tx_sem;
54 struct k_sem rx_sem;

12345678910>>...18