Home
last modified time | relevance | path

Searched refs:sem_lock (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/drivers/modem/
Dmodem_socket.c26 k_sem_take(&cfg->sem_lock, K_FOREVER); in modem_socket_next_packet_size()
35 k_sem_give(&cfg->sem_lock); in modem_socket_next_packet_size()
81 k_sem_take(&cfg->sem_lock, K_FOREVER); in modem_socket_packet_size_update()
92 k_sem_give(&cfg->sem_lock); in modem_socket_packet_size_update()
120 k_sem_give(&cfg->sem_lock); in modem_socket_packet_size_update()
128 k_sem_give(&cfg->sem_lock); in modem_socket_packet_size_update()
138 k_sem_give(&cfg->sem_lock); in modem_socket_packet_size_update()
154 k_sem_take(&cfg->sem_lock, K_FOREVER); in modem_socket_get()
163 k_sem_give(&cfg->sem_lock); in modem_socket_get()
169 k_sem_give(&cfg->sem_lock); in modem_socket_get()
[all …]
Dmodem_socket.h66 struct k_sem sem_lock; member
/Zephyr-latest/drivers/dma/
Ddma_nios2_msgdma.c30 struct k_sem sem_lock; member
103 k_sem_take(&dev_data->sem_lock, K_FOREVER); in nios2_msgdma_config()
146 k_sem_give(&dev_data->sem_lock); in nios2_msgdma_config()
163 k_sem_take(&cfg->sem_lock, K_FOREVER); in nios2_msgdma_transfer_start()
166 k_sem_give(&cfg->sem_lock); in nios2_msgdma_transfer_start()
182 k_sem_take(&cfg->sem_lock, K_FOREVER); in nios2_msgdma_transfer_stop()
188 k_sem_give(&cfg->sem_lock); in nios2_msgdma_transfer_stop()
213 k_sem_init(&dev_data->sem_lock, 1, 1); in nios2_msgdma0_initialize()
/Zephyr-latest/drivers/i2c/
Di2c_nios2.c27 struct k_sem sem_lock; member
37 k_sem_take(&data->sem_lock, K_FOREVER); in i2c_nios2_configure()
59 k_sem_give(&data->sem_lock); in i2c_nios2_configure()
71 k_sem_take(&data->sem_lock, K_FOREVER); in i2c_nios2_transfer()
141 k_sem_give(&data->sem_lock); in i2c_nios2_transfer()
178 k_sem_init(&data->sem_lock, 1, 1); in i2c_nios2_init()
/Zephyr-latest/drivers/flash/
Dsoc_flash_nios2_qspi.c63 struct k_sem sem_lock; member
85 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_erase()
175 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_erase()
290 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_write()
352 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_write()
380 k_sem_take(&flash_cfg->sem_lock, K_FOREVER); in flash_nios2_qspi_read()
419 k_sem_give(&flash_cfg->sem_lock); in flash_nios2_qspi_read()
508 k_sem_init(&flash_cfg->sem_lock, 1, 1); in flash_nios2_qspi_init()
Dsoc_flash_nrf_rram.c58 static struct k_sem sem_lock; variable
59 #define SYNC_INIT() k_sem_init(&sem_lock, 1, 1)
60 #define SYNC_LOCK() k_sem_take(&sem_lock, K_FOREVER)
61 #define SYNC_UNLOCK() k_sem_give(&sem_lock)
Dsoc_flash_nrf.c67 static struct k_sem sem_lock; variable
68 #define SYNC_INIT() k_sem_init(&sem_lock, 1, 1)
69 #define SYNC_LOCK() k_sem_take(&sem_lock, K_FOREVER)
70 #define SYNC_UNLOCK() k_sem_give(&sem_lock)
/Zephyr-latest/drivers/entropy/
Dentropy_npcx_drbg.c26 struct k_sem sem_lock; member
114 k_sem_take(&data->sem_lock, K_FOREVER); in entropy_npcx_drbg_get_entropy()
131 k_sem_give(&data->sem_lock); in entropy_npcx_drbg_get_entropy()
190 k_sem_init(&data->sem_lock, 1, 1); in entropy_npcx_drbg_init()
Dentropy_nrf5.c94 struct k_sem sem_lock; member
234 k_sem_take(&entropy_nrf5_data.sem_lock, K_FOREVER); in entropy_nrf5_get_entropy()
237 k_sem_give(&entropy_nrf5_data.sem_lock); in entropy_nrf5_get_entropy()
330 k_sem_init(&entropy_nrf5_data.sem_lock, 1, 1); in entropy_nrf5_init()
Dentropy_smartbond.c45 struct k_sem sem_lock; member
280 k_sem_take(&entropy_smartbond_data.sem_lock, K_FOREVER); in entropy_smartbond_get_entropy()
282 k_sem_give(&entropy_smartbond_data.sem_lock); in entropy_smartbond_get_entropy()
408 k_sem_init(&entropy_smartbond_data.sem_lock, 1, 1); in entropy_smartbond_init()
Dentropy_stm32.c88 struct k_sem sem_lock; member
580 k_sem_take(&entropy_stm32_rng_data.sem_lock, K_FOREVER); in entropy_stm32_rng_get_entropy()
590 k_sem_give(&entropy_stm32_rng_data.sem_lock); in entropy_stm32_rng_get_entropy()
680 k_sem_init(&dev_data->sem_lock, 1, 1); in entropy_stm32_rng_init()
/Zephyr-latest/drivers/eeprom/
Deeprom_simulator.c39 static struct k_sem sem_lock; variable
40 #define SYNC_INIT() k_sem_init(&sem_lock, 1, 1)
41 #define SYNC_LOCK() k_sem_take(&sem_lock, K_FOREVER)
42 #define SYNC_UNLOCK() k_sem_give(&sem_lock)
/Zephyr-latest/include/zephyr/bluetooth/classic/
Davdtp.h132 struct k_sem sem_lock; member
/Zephyr-latest/subsys/bluetooth/host/classic/
Davdtp.c71 k_sem_take(&session->sem_lock, K_FOREVER); in avdtp_lock()
76 k_sem_give(&session->sem_lock); in avdtp_unlock()
82 k_sem_take(&sep->sem_lock, K_FOREVER); in avdtp_sep_lock()
89 k_sem_give(&sep->sem_lock); in avdtp_sep_unlock()
1176 k_sem_init(&session->sem_lock, 1, 1); in bt_avdtp_connect()
1218 k_sem_init(&session->sem_lock, 1, 1); in bt_avdtp_l2cap_accept()
1275 k_sem_init(&sep->sem_lock, 1, 1); in bt_avdtp_register_sep()
Davdtp_internal.h218 struct k_sem sem_lock; member