Lines Matching refs:lock
181 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_pin_cfg()
202 k_sem_give(&drv_data->lock); in mcp23xxx_pin_cfg()
216 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_get_raw()
223 k_sem_give(&drv_data->lock); in mcp23xxx_port_get_raw()
237 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_set_masked_raw()
247 k_sem_give(&drv_data->lock); in mcp23xxx_port_set_masked_raw()
271 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_port_toggle_bits()
281 k_sem_give(&drv_data->lock); in mcp23xxx_port_toggle_bits()
300 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_pin_interrupt_configure()
377 k_sem_give(&drv_data->lock); in mcp23xxx_pin_interrupt_configure()
396 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_manage_callback()
400 k_sem_give(&drv_data->lock); in mcp23xxx_manage_callback()
412 k_sem_take(&drv_data->lock, K_FOREVER); in mcp23xxx_work_handler()
450 k_sem_give(&drv_data->lock); in mcp23xxx_work_handler()
455 k_sem_give(&drv_data->lock); in mcp23xxx_work_handler()
500 k_sem_init(&drv_data->lock, 0, 1); in gpio_mcp23xxx_init()
560 k_sem_give(&drv_data->lock); in gpio_mcp23xxx_init()