/Zephyr-Core-3.5.0/kernel/ |
D | sem.c | 45 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/ |
D | cmsis_semaphore.c | 11 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/ |
D | main.c | 17 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/ |
D | master.h | 127 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/ |
D | posix_types.h | 60 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/ |
D | threading_weak.c | 37 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/ |
D | simcom-sim7080.h | 164 struct k_sem sem_response; 165 struct k_sem sem_tx_ready; 166 struct k_sem sem_dns; 167 struct k_sem sem_ftp;
|
D | quectel-bg9x.h | 114 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;
|
D | modem_cmd_handler.h | 119 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,
|
D | modem_iface_uart.h | 30 struct k_sem rx_sem; 35 struct k_sem tx_sem;
|
/Zephyr-Core-3.5.0/subsys/tracing/ |
D | tracing_tracking.c | 19 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/ |
D | mock_kernel.h | 21 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/ |
D | ieee802154.h | 309 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/ |
D | crypto_stm32_priv.h | 20 struct k_sem device_sem; 21 struct k_sem session_sem;
|
/Zephyr-Core-3.5.0/subsys/tracing/ctf/ |
D | ctf_top.c | 172 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/ |
D | ieee802154_nrf5.h | 49 struct k_sem cca_wait; 57 struct k_sem tx_wait;
|
/Zephyr-Core-3.5.0/drivers/espi/ |
D | espi_mchp_xec_v2.h | 53 struct k_sem tx_lock; 54 struct k_sem rx_lock; 55 struct k_sem flash_lock;
|
/Zephyr-Core-3.5.0/drivers/ethernet/ |
D | eth_stm32_hal_priv.h | 43 struct k_sem rx_int_sem; 46 struct k_sem tx_int_sem;
|
/Zephyr-Core-3.5.0/drivers/wifi/eswifi/ |
D | eswifi_offload.h | 47 struct k_sem read_sem; 48 struct k_sem accept_sem;
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | sem.h | 39 struct k_sem kernel_sem; 75 STRUCT_SECTION_ITERABLE_ALTERNATE(k_sem, sys_sem, _name) = { \
|
/Zephyr-Core-3.5.0/drivers/sensor/lis2mdl/ |
D | lis2mdl.h | 53 struct k_sem fetch_sem; 64 struct k_sem gpio_sem;
|
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v2/ |
D | wrapper.h | 24 struct k_sem join_guard; 44 struct k_sem z_semaphore;
|
/Zephyr-Core-3.5.0/drivers/mfd/ |
D | mfd_nct38xx.c | 16 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/ |
D | mhz19b.h | 53 struct k_sem tx_sem; 54 struct k_sem rx_sem;
|
/Zephyr-Core-3.5.0/tests/misc/test_build/src/ |
D | main.c | 36 struct k_sem *my_sem, struct k_sem *other_sem) in helloLoop()
|