/Zephyr-latest/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-latest/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-latest/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-latest/tests/benchmarks/app_kernel/src/ |
D | master.h | 87 extern struct k_sem SEM0; 88 extern struct k_sem SEM1; 89 extern struct k_sem SEM2; 90 extern struct k_sem SEM3; 91 extern struct k_sem SEM4; 92 extern struct k_sem STARTRCV;
|
/Zephyr-latest/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-latest/drivers/modem/ |
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 | 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 | 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-latest/tests/bluetooth/audio/mocks/include/ |
D | mock_kernel.h | 20 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t); 21 DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
|
/Zephyr-latest/tests/bluetooth/host/conn/mocks/ |
D | kernel.c | 13 DEFINE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t); 14 DEFINE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *); 15 DEFINE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
|
D | kernel.h | 36 DECLARE_FAKE_VALUE_FUNC(int, k_sem_take, struct k_sem *, k_timeout_t); 37 DECLARE_FAKE_VALUE_FUNC(unsigned int, k_sem_count_get, struct k_sem *); 38 DECLARE_FAKE_VOID_FUNC(k_sem_give, struct k_sem *);
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor.h | 24 struct k_sem source_stream_sem; 26 struct k_sem sink_stream_sem;
|
/Zephyr-latest/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() 147 SYS_PORT_TRACING_TYPE_MASK(k_sem, in sys_track_static_init() 148 SYS_TRACK_STATIC_INIT(k_sem, 0)); in sys_track_static_init()
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154.h | 314 struct k_sem scan_ctx_lock; 387 struct k_sem ack_lock; 395 struct k_sem ctx_lock;
|
/Zephyr-latest/include/zephyr/drivers/mfd/ |
D | aw9523b.h | 10 struct k_sem; 43 struct k_sem *aw9523b_get_lock(const struct device *dev);
|
/Zephyr-latest/drivers/crypto/ |
D | crypto_stm32_priv.h | 27 struct k_sem device_sem; 28 struct k_sem session_sem;
|
/Zephyr-latest/drivers/wifi/eswifi/ |
D | eswifi_offload.h | 47 struct k_sem read_sem; 48 struct k_sem accept_sem;
|
/Zephyr-latest/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-latest/drivers/ieee802154/ |
D | ieee802154_nrf5.h | 53 struct k_sem cca_wait; 61 struct k_sem tx_wait;
|
/Zephyr-latest/drivers/sensor/st/lis2mdl/ |
D | lis2mdl.h | 53 struct k_sem fetch_sem; 64 struct k_sem gpio_sem;
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | int_to_thread.c | 41 struct k_sem *sem = (struct k_sem *)arg; in test_isr() 75 struct k_sem *sem = p2; in start_thread_entry() 108 struct k_sem *sem = p2; in alt_thread_entry()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_stm32_hal_priv.h | 52 struct k_sem rx_int_sem; 54 struct k_sem tx_int_sem;
|
/Zephyr-latest/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-latest/subsys/portability/cmsis_rtos_v2/ |
D | wrapper.h | 28 struct k_sem join_guard; 48 struct k_sem z_semaphore;
|