Lines Matching refs:lock
68 struct k_sem lock; member
197 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_handle_interrupt()
212 k_sem_give(&drv_data->lock); in sx1509b_handle_interrupt()
293 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_config()
378 k_sem_give(&drv_data->lock); in sx1509b_config()
395 k_sem_take(&drv_data->lock, K_FOREVER); in port_get()
409 k_sem_give(&drv_data->lock); in port_get()
430 k_sem_take(&drv_data->lock, K_FOREVER); in port_write()
439 k_sem_give(&drv_data->lock); in port_write()
503 k_sem_take(&drv_data->lock, K_FOREVER); in pin_interrupt_configure()
528 k_sem_give(&drv_data->lock); in pin_interrupt_configure()
623 k_sem_give(&drv_data->lock); in sx1509b_init()
668 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_led_intensity_pin_configure()
692 k_sem_give(&drv_data->lock); in sx1509b_led_intensity_pin_configure()
712 k_sem_take(&drv_data->lock, K_FOREVER); in sx1509b_led_intensity_pin_set()
717 k_sem_give(&drv_data->lock); in sx1509b_led_intensity_pin_set()
733 .lock = Z_SEM_INITIALIZER(sx1509b_drvdata##inst.lock, 1, 1), \