Searched refs:write_lock (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-2.7.6/drivers/flash/ |
D | soc_flash_b91.c | 17 struct k_sem write_lock; member 48 k_sem_init(&dev_data->write_lock, 1, 1); in flash_b91_init() 75 if (k_sem_take(&dev_data->write_lock, K_NO_WAIT)) { in flash_b91_erase() 86 k_sem_give(&dev_data->write_lock); in flash_b91_erase() 108 if (k_sem_take(&dev_data->write_lock, K_NO_WAIT)) { in flash_b91_write() 116 k_sem_give(&dev_data->write_lock); in flash_b91_write()
|
D | soc_flash_rv32m1.c | 27 struct k_sem write_lock; member 53 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_mcux_erase() 63 k_sem_give(&priv->write_lock); in flash_mcux_erase() 94 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_mcux_write() 104 k_sem_give(&priv->write_lock); in flash_mcux_write() 153 k_sem_init(&priv->write_lock, 1, 1); in flash_mcux_init()
|
D | soc_flash_lpc.c | 30 struct k_sem write_lock; member 64 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_lpc_erase() 77 k_sem_give(&priv->write_lock); in flash_lpc_erase() 103 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_lpc_write() 115 k_sem_give(&priv->write_lock); in flash_lpc_write() 160 k_sem_init(&priv->write_lock, 1, 1); in flash_lpc_init()
|
D | soc_flash_mcux.c | 117 struct k_sem write_lock; member 147 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_mcux_erase() 157 k_sem_give(&priv->write_lock); in flash_mcux_erase() 212 if (k_sem_take(&priv->write_lock, K_FOREVER)) { in flash_mcux_write() 222 k_sem_give(&priv->write_lock); in flash_mcux_write() 269 k_sem_init(&priv->write_lock, 1, 1); in flash_mcux_init()
|
/Zephyr-Core-2.7.6/samples/bluetooth/eddystone/src/ |
D | main.c | 296 static ssize_t write_lock(struct bt_conn *conn, in write_lock() function 591 read_lock, write_lock, NULL),
|