Lines Matching refs:lock
35 struct k_sem lock; member
86 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_pin_config()
88 k_sem_give(&data->lock); in gpio_rt1718s_pin_config()
114 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_set_masked_raw()
134 k_sem_give(&data->lock); in gpio_rt1718s_port_set_masked_raw()
146 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_set_bits_raw()
161 k_sem_give(&data->lock); in gpio_rt1718s_port_set_bits_raw()
173 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_clear_bits_raw()
188 k_sem_give(&data->lock); in gpio_rt1718s_port_clear_bits_raw()
200 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_port_toggle_bits()
215 k_sem_give(&data->lock); in gpio_rt1718s_port_toggle_bits()
236 k_sem_take(&data->lock, K_FOREVER); in gpio_rt1718s_pin_interrupt_configure()
293 k_sem_give(&data->lock); in gpio_rt1718s_pin_interrupt_configure()
312 k_sem_take(&data_port->lock, K_FOREVER); in rt1718s_gpio_alert_handler()
317 k_sem_give(&data_port->lock); in rt1718s_gpio_alert_handler()
326 k_sem_give(&data_port->lock); in rt1718s_gpio_alert_handler()
332 k_sem_give(&data_port->lock); in rt1718s_gpio_alert_handler()
362 k_sem_init(&data->lock, 1, 1); in gpio_rt1718s_port_init()