Lines Matching refs:lock

35 	struct k_sem *lock;  member
64 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_pin_config()
125 k_sem_give(data->lock); in gpio_nct38xx_pin_config()
138 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_pin_get_config()
195 k_sem_give(data->lock); in gpio_nct38xx_pin_get_config()
206 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_get_raw()
211 k_sem_give(data->lock); in gpio_nct38xx_port_get_raw()
222 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_set_masked_raw()
227 k_sem_give(data->lock); in gpio_nct38xx_port_set_masked_raw()
238 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_set_bits_raw()
243 k_sem_give(data->lock); in gpio_nct38xx_port_set_bits_raw()
254 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_clear_bits_raw()
259 k_sem_give(data->lock); in gpio_nct38xx_port_clear_bits_raw()
271 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_toggle_bits()
285 k_sem_give(data->lock); in gpio_nct38xx_port_toggle_bits()
299 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_pin_interrupt_configure()
377 k_sem_give(data->lock); in gpio_nct38xx_pin_interrupt_configure()
399 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_port_get_direction()
428 k_sem_give(data->lock); in gpio_nct38xx_port_get_direction()
441 k_sem_take(data->lock, K_FOREVER); in gpio_nct38xx_dispatch_port_isr()
445 k_sem_give(data->lock); in gpio_nct38xx_dispatch_port_isr()
452 k_sem_give(data->lock); in gpio_nct38xx_dispatch_port_isr()
461 k_sem_give(data->lock); in gpio_nct38xx_dispatch_port_isr()
465 k_sem_give(data->lock); in gpio_nct38xx_dispatch_port_isr()
506 data->lock = mfd_nct38xx_get_lock_reference(config->mfd); in gpio_nct38xx_port_init()