Home
last modified time | relevance | path

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

12345678910>>...20

/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()
52 SYS_PORT_TRACING_OBJ_FUNC(k_sem, init, sem, -EINVAL); in z_impl_k_sem_init()
60 SYS_PORT_TRACING_OBJ_FUNC(k_sem, init, sem, 0); 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()
102 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_sem, give, sem); in z_impl_k_sem_give()
120 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_sem, give, 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()
[all …]
/Zephyr-Core-3.5.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.5.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.5.0/tests/benchmarks/app_kernel/src/
Dmaster.h127 extern struct k_sem SEM0;
128 extern struct k_sem SEM1;
129 extern struct k_sem SEM2;
130 extern struct k_sem SEM3;
131 extern struct k_sem SEM4;
132 extern struct k_sem STARTRCV;
/Zephyr-Core-3.5.0/include/zephyr/posix/
Dposix_types.h60 typedef struct k_sem sem_t;
97 struct k_sem rd_sem;
98 struct k_sem wr_sem;
99 struct k_sem reader_active;/* blocks WR till reader has acquired lock */
/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/drivers/modem/
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;
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;
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.5.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.5.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.5.0/include/zephyr/net/
Dieee802154.h309 struct k_sem scan_ctx_lock;
382 struct k_sem ack_lock;
390 struct k_sem ctx_lock;
/Zephyr-Core-3.5.0/drivers/crypto/
Dcrypto_stm32_priv.h20 struct k_sem device_sem;
21 struct k_sem session_sem;
/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/ieee802154/
Dieee802154_nrf5.h49 struct k_sem cca_wait;
57 struct k_sem tx_wait;
/Zephyr-Core-3.5.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.5.0/drivers/ethernet/
Deth_stm32_hal_priv.h43 struct k_sem rx_int_sem;
46 struct k_sem tx_int_sem;
/Zephyr-Core-3.5.0/drivers/wifi/eswifi/
Deswifi_offload.h47 struct k_sem read_sem;
48 struct k_sem accept_sem;
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dsem.h39 struct k_sem kernel_sem;
75 STRUCT_SECTION_ITERABLE_ALTERNATE(k_sem, sys_sem, _name) = { \
/Zephyr-Core-3.5.0/drivers/sensor/lis2mdl/
Dlis2mdl.h53 struct k_sem fetch_sem;
64 struct k_sem gpio_sem;
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v2/
Dwrapper.h24 struct k_sem join_guard;
44 struct k_sem z_semaphore;
/Zephyr-Core-3.5.0/drivers/mfd/
Dmfd_nct38xx.c16 struct k_sem lock;
33 struct k_sem *mfd_nct38xx_get_lock_reference(const struct device *dev) in mfd_nct38xx_get_lock_reference()
/Zephyr-Core-3.5.0/drivers/sensor/mhz19b/
Dmhz19b.h53 struct k_sem tx_sem;
54 struct k_sem rx_sem;
/Zephyr-Core-3.5.0/tests/misc/test_build/src/
Dmain.c36 struct k_sem *my_sem, struct k_sem *other_sem) in helloLoop()

12345678910>>...20