Searched refs:i2c_lock (Results 1 – 16 of 16) sorted by relevance
25 struct mutex i2c_lock; member103 mutex_lock(&adnp->i2c_lock); in adnp_gpio_set()105 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_set()116 mutex_lock(&adnp->i2c_lock); in adnp_gpio_direction_input()140 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_direction_input()153 mutex_lock(&adnp->i2c_lock); in adnp_gpio_direction_output()178 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_direction_output()191 mutex_lock(&adnp->i2c_lock); in adnp_gpio_dbg_show()209 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_dbg_show()238 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_dbg_show()[all …]
193 struct mutex i2c_lock; member434 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_input()436 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_direction_input()449 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_output()458 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_direction_output()470 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_value()472 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_get_value()485 mutex_lock(&chip->i2c_lock); in pca953x_gpio_set_value()487 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_set_value()498 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_direction()[all …]
42 struct mutex i2c_lock; member170 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in write_reg()180 mutex_unlock(&usb->i2c_lock); in write_reg()209 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in write_reg_fp()215 mutex_unlock(&usb->i2c_lock); in write_reg_fp()271 if (mutex_lock_interruptible(&usb->i2c_lock) != 0) { in read_reg_fp()277 mutex_unlock(&usb->i2c_lock); in read_reg_fp()571 if (mutex_lock_interruptible(&usb->i2c_lock) == 0) { in s2250_probe()591 mutex_unlock(&usb->i2c_lock); in s2250_probe()
55 struct mutex i2c_lock; member961 mutex_lock(&usb->i2c_lock); in go7007_usb_i2c_master_xfer()1016 mutex_unlock(&usb->i2c_lock); in go7007_usb_i2c_master_xfer()1169 mutex_init(&usb->i2c_lock); in go7007_usb_probe()
131 struct mutex i2c_lock; /* lock for sending i2c commands */ member176 mutex_lock(&data->i2c_lock); in sht3x_read_from_command()195 mutex_unlock(&data->i2c_lock); in sht3x_read_from_command()374 mutex_lock(&data->i2c_lock); in limit_store()376 mutex_unlock(&data->i2c_lock); in limit_store()533 mutex_lock(&data->i2c_lock); in heater_enable_store()542 mutex_unlock(&data->i2c_lock); in heater_enable_store()582 mutex_lock(&data->i2c_lock); in update_interval_store()614 mutex_unlock(&data->i2c_lock); in update_interval_store()705 mutex_init(&data->i2c_lock); in sht3x_probe()
129 mutex_lock(&mantis->i2c_lock); in mantis_i2c_xfer()189 mutex_unlock(&mantis->i2c_lock); in mantis_i2c_xfer()194 mutex_unlock(&mantis->i2c_lock); in mantis_i2c_xfer()215 mutex_init(&mantis->i2c_lock); in mantis_i2c_init()
134 struct mutex i2c_lock; member
70 struct mutex i2c_lock; member132 mutex_lock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()152 mutex_unlock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()288 mutex_init(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_init()
69 struct mutex i2c_lock; member187 mutex_lock(&state->base->i2c_lock); in send_command()193 mutex_unlock(&state->base->i2c_lock); in send_command()195 mutex_lock(&state->base->i2c_lock); in send_command()201 mutex_unlock(&state->base->i2c_lock); in send_command()206 mutex_unlock(&state->base->i2c_lock); in send_command()218 mutex_lock(&state->base->i2c_lock); in write_register()220 mutex_unlock(&state->base->i2c_lock); in write_register()232 mutex_lock(&state->base->i2c_lock); in write_firmware_block()243 mutex_unlock(&state->base->i2c_lock); in write_firmware_block()[all …]
82 struct mutex i2c_lock; /* shared I2C access protect */ member1248 mutex_lock(&state->base->i2c_lock); in gate_ctrl()1257 if (!WARN_ON(!mutex_is_locked(&state->base->i2c_lock))) in gate_ctrl()1258 mutex_unlock(&state->base->i2c_lock); in gate_ctrl()1268 if (!WARN_ON(!mutex_is_locked(&state->base->i2c_lock))) in gate_ctrl()1269 mutex_unlock(&state->base->i2c_lock); in gate_ctrl()1813 mutex_init(&base->i2c_lock); in stv0910_attach()
367 mutex_lock(&dev->i2c_lock); in cx231xx_i2c_xfer()380 mutex_unlock(&dev->i2c_lock); in cx231xx_i2c_xfer()425 mutex_unlock(&dev->i2c_lock); in cx231xx_i2c_xfer()429 mutex_unlock(&dev->i2c_lock); in cx231xx_i2c_xfer()
607 struct mutex i2c_lock; member
1409 mutex_init(&dev->i2c_lock); in cx231xx_init_dev()
37 struct mutex i2c_lock; /* For i2c operation. */ member659 mutex_lock(&i2c->i2c_lock); in rk3066_hdmi_i2c_xfer()688 mutex_unlock(&i2c->i2c_lock); in rk3066_hdmi_i2c_xfer()713 mutex_init(&i2c->i2c_lock); in rk3066_hdmi_i2c_adapter()
298 if (mutex_lock_interruptible(&dev->i2c_lock)) in saa7146_i2c_transfer()377 mutex_unlock(&dev->i2c_lock); in saa7146_i2c_transfer()
441 mutex_init(&dev->i2c_lock); in saa7146_init_one()