Home
last modified time | relevance | path

Searched refs:write_lock (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-2.7.6/drivers/flash/
Dsoc_flash_b91.c17 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()
Dsoc_flash_rv32m1.c27 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()
Dsoc_flash_lpc.c30 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()
Dsoc_flash_mcux.c117 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/
Dmain.c296 static ssize_t write_lock(struct bt_conn *conn, in write_lock() function
591 read_lock, write_lock, NULL),