Home
last modified time | relevance | path

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

12345678910>>...26

/Zephyr-latest/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-latest/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-latest/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-latest/tests/benchmarks/app_kernel/src/
Dmaster.h87 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/
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-latest/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-latest/tests/bluetooth/audio/mocks/include/
Dmock_kernel.h20 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/
Dkernel.c13 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 *);
Dkernel.h36 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/
Dcap_acceptor.h24 struct k_sem source_stream_sem;
26 struct k_sem sink_stream_sem;
/Zephyr-latest/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()
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/
Dieee802154.h314 struct k_sem scan_ctx_lock;
387 struct k_sem ack_lock;
395 struct k_sem ctx_lock;
/Zephyr-latest/include/zephyr/drivers/mfd/
Daw9523b.h10 struct k_sem;
43 struct k_sem *aw9523b_get_lock(const struct device *dev);
/Zephyr-latest/drivers/crypto/
Dcrypto_stm32_priv.h27 struct k_sem device_sem;
28 struct k_sem session_sem;
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_offload.h47 struct k_sem read_sem;
48 struct k_sem accept_sem;
/Zephyr-latest/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-latest/drivers/ieee802154/
Dieee802154_nrf5.h53 struct k_sem cca_wait;
61 struct k_sem tx_wait;
/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl.h53 struct k_sem fetch_sem;
64 struct k_sem gpio_sem;
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dint_to_thread.c41 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/
Deth_stm32_hal_priv.h52 struct k_sem rx_int_sem;
54 struct k_sem tx_int_sem;
/Zephyr-latest/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-latest/subsys/portability/cmsis_rtos_v2/
Dwrapper.h28 struct k_sem join_guard;
48 struct k_sem z_semaphore;

12345678910>>...26