Lines Matching refs:lock
71 struct k_sem lock; member
285 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_configure()
304 k_sem_give(&data->lock); in i2c_numaker_configure()
317 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_get_config()
319 k_sem_give(&data->lock); in i2c_numaker_get_config()
341 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_transfer()
400 k_sem_give(&data->lock); in i2c_numaker_transfer()
423 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_slave_register()
447 k_sem_give(&data->lock); in i2c_numaker_slave_register()
464 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_slave_unregister()
494 k_sem_give(&data->lock); in i2c_numaker_slave_unregister()
506 k_sem_take(&data->lock, K_FOREVER); in i2c_numaker_recover_bus()
509 k_sem_give(&data->lock); in i2c_numaker_recover_bus()
689 k_sem_init(&data->lock, 1, 1); in i2c_numaker_init()