Home
last modified time | relevance | path

Searched refs:lock_sem (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_itron.c47 struct k_sem lock_sem; member
98 k_sem_init(&data->lock_sem, 1, 1); in auxdisplay_itron_init()
172 k_sem_take(&data->lock_sem, K_FOREVER); in auxdisplay_itron_is_powered()
178 k_sem_give(&data->lock_sem); in auxdisplay_itron_is_powered()
241 k_sem_take(&data->lock_sem, K_FOREVER); in auxdisplay_itron_brightness_get()
247 k_sem_give(&data->lock_sem); in auxdisplay_itron_brightness_get()
266 k_sem_take(&data->lock_sem, K_FOREVER); in auxdisplay_itron_brightness_set()
276 k_sem_give(&data->lock_sem); in auxdisplay_itron_brightness_set()
302 k_sem_take(&data->lock_sem, K_FOREVER); in auxdisplay_itron_is_busy_check()
308 k_sem_give(&data->lock_sem); in auxdisplay_itron_is_busy_check()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_npcx_fiu_qspi.c38 struct k_sem lock_sem; member
214 k_sem_take(&data->lock_sem, K_FOREVER); in qspi_npcx_fiu_mutex_lock_configure()
244 k_sem_give(&data->lock_sem); in qspi_npcx_fiu_mutex_unlock()
268 k_sem_init(&data->lock_sem, 1, 1); in qspi_npcx_fiu_init()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt.c102 struct k_sem lock_sem; member
136 if (k_sem_take(&fs_mgmt_ctxt.lock_sem, FILE_SEMAPHORE_MAX_TAKE_TIME_WORK_HANDLER)) { in file_close_work_handler()
144 k_sem_give(&fs_mgmt_ctxt.lock_sem); in file_close_work_handler()
243 if (k_sem_take(&fs_mgmt_ctxt.lock_sem, FILE_SEMAPHORE_MAX_TAKE_TIME)) { in fs_mgmt_file_download()
258 k_sem_give(&fs_mgmt_ctxt.lock_sem); in fs_mgmt_file_download()
342 k_sem_give(&fs_mgmt_ctxt.lock_sem); in fs_mgmt_file_download()
393 if (k_sem_take(&fs_mgmt_ctxt.lock_sem, FILE_SEMAPHORE_MAX_TAKE_TIME)) { in fs_mgmt_file_upload()
408 k_sem_give(&fs_mgmt_ctxt.lock_sem); in fs_mgmt_file_upload()
560 k_sem_give(&fs_mgmt_ctxt.lock_sem); in fs_mgmt_file_upload()
895 if (k_sem_take(&fs_mgmt_ctxt.lock_sem, FILE_SEMAPHORE_MAX_TAKE_TIME)) { in fs_mgmt_close_opened_file()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_npcx_controller.c152 struct k_sem lock_sem; /* mutex of i2c controller */ member
937 k_sem_take(&data->lock_sem, K_FOREVER); in npcx_i2c_ctrl_mutex_lock()
944 k_sem_give(&data->lock_sem); in npcx_i2c_ctrl_mutex_unlock()
1289 k_sem_init(&data->lock_sem, 1, 1); in i2c_ctrl_init()