Lines Matching refs:lock
56 struct k_sem lock; member
119 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_handle_interrupt()
145 k_sem_give(&drv_data->lock); in gpio_pca953x_handle_interrupt()
212 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_config()
247 k_sem_give(&drv_data->lock); in gpio_pca953x_config()
264 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_port_read()
276 k_sem_give(&drv_data->lock); in gpio_pca953x_port_read()
297 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_port_write()
308 k_sem_give(&drv_data->lock); in gpio_pca953x_port_write()
358 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca953x_pin_interrupt_configure()
376 k_sem_give(&drv_data->lock); in gpio_pca953x_pin_interrupt_configure()
494 .lock = Z_SEM_INITIALIZER(pca953x_drvdata_##n.lock, 1, 1), \