Lines Matching refs:lock
95 struct k_sem lock; member
493 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_config()
510 k_sem_give(&drv_data->lock); in gpio_pca95xx_config()
526 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_get_raw()
536 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_get_raw()
553 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_set_masked_raw()
560 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_set_masked_raw()
590 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_port_toggle_bits()
597 k_sem_give(&drv_data->lock); in gpio_pca95xx_port_toggle_bits()
631 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_interrupt_worker()
643 k_sem_give(&drv_data->lock); in gpio_pca95xx_interrupt_worker()
700 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_pin_interrupt_configure()
758 k_sem_give(&drv_data->lock); in gpio_pca95xx_pin_interrupt_configure()
774 k_sem_take(&drv_data->lock, K_FOREVER); in gpio_pca95xx_manage_callback()
778 k_sem_give(&drv_data->lock); in gpio_pca95xx_manage_callback()
813 k_sem_init(&drv_data->lock, 1, 1); in gpio_pca95xx_init()