/linux/drivers/gpio/ |
A D | gpio-adnp.c | 25 struct mutex i2c_lock; member 103 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() 254 mutex_lock(&adnp->i2c_lock); in adnp_irq() 365 mutex_lock(&adnp->i2c_lock); in adnp_irq_bus_unlock() [all …]
|
A D | gpio-pca953x.c | 194 struct mutex i2c_lock; member 432 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_input() 447 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_output() 468 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_value() 483 mutex_lock(&chip->i2c_lock); in pca953x_gpio_set_value() 496 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_direction() 515 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_multiple() 532 mutex_lock(&chip->i2c_lock); in pca953x_gpio_set_multiple() 560 mutex_lock(&chip->i2c_lock); in pca953x_gpio_set_pull_up_down() 788 mutex_lock(&chip->i2c_lock); in pca953x_irq_handler() [all …]
|
/linux/drivers/media/usb/go7007/ |
A D | s2250-board.c | 42 struct mutex i2c_lock; member 170 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() 573 if (mutex_lock_interruptible(&usb->i2c_lock) == 0) { in s2250_probe() 593 mutex_unlock(&usb->i2c_lock); in s2250_probe()
|
A D | go7007-usb.c | 55 struct mutex i2c_lock; member 961 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()
|
/linux/drivers/hwmon/ |
A D | sht3x.c | 131 struct mutex i2c_lock; /* lock for sending i2c commands */ member 176 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()
|
/linux/drivers/media/pci/mantis/ |
A D | mantis_i2c.c | 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()
|
A D | mantis_common.h | 134 struct mutex i2c_lock; member
|
/linux/drivers/gpu/drm/gma500/ |
A D | oaktrail_hdmi_i2c.c | 70 struct mutex i2c_lock; member 132 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()
|
/linux/drivers/media/dvb-frontends/ |
A D | mxl5xx.c | 60 struct mutex i2c_lock; member 178 mutex_lock(&state->base->i2c_lock); in send_command() 186 mutex_lock(&state->base->i2c_lock); in send_command() 197 mutex_unlock(&state->base->i2c_lock); in send_command() 209 mutex_lock(&state->base->i2c_lock); in write_register() 211 mutex_unlock(&state->base->i2c_lock); in write_register() 223 mutex_lock(&state->base->i2c_lock); in write_firmware_block() 234 mutex_unlock(&state->base->i2c_lock); in write_firmware_block() 249 mutex_lock(&state->base->i2c_lock); in read_register() 269 mutex_lock(&state->base->i2c_lock); in read_register_block() [all …]
|
A D | mxl692.c | 25 struct mutex i2c_lock; /* i2c command mutex */ member 350 mutex_lock(&dev->i2c_lock); in mxl692_memread() 363 mutex_unlock(&dev->i2c_lock); in mxl692_memread() 457 mutex_lock(&dev->i2c_lock); in mxl692_i2c_writeread() 562 mutex_unlock(&dev->i2c_lock); in mxl692_i2c_writeread() 578 mutex_lock(&dev->i2c_lock); in mxl692_fwdownload() 600 mutex_unlock(&dev->i2c_lock); in mxl692_fwdownload() 616 mutex_unlock(&dev->i2c_lock); in mxl692_fwdownload() 1329 mutex_init(&dev->i2c_lock); in mxl692_probe()
|
A D | stv0910.c | 73 struct mutex i2c_lock; /* shared I2C access protect */ member 1239 mutex_lock(&state->base->i2c_lock); in gate_ctrl() 1248 if (!WARN_ON(!mutex_is_locked(&state->base->i2c_lock))) in gate_ctrl() 1249 mutex_unlock(&state->base->i2c_lock); in gate_ctrl() 1259 if (!WARN_ON(!mutex_is_locked(&state->base->i2c_lock))) in gate_ctrl() 1260 mutex_unlock(&state->base->i2c_lock); in gate_ctrl() 1804 mutex_init(&base->i2c_lock); in stv0910_attach()
|
/linux/drivers/media/usb/cx231xx/ |
A D | cx231xx-i2c.c | 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()
|
A D | cx231xx.h | 605 struct mutex i2c_lock; member
|
A D | cx231xx-cards.c | 1409 mutex_init(&dev->i2c_lock); in cx231xx_init_dev()
|
/linux/drivers/gpu/drm/rockchip/ |
A D | rk3066_hdmi.c | 37 struct mutex i2c_lock; /* For i2c operation. */ member 659 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()
|
/linux/drivers/media/common/saa7146/ |
A D | saa7146_i2c.c | 298 if (mutex_lock_interruptible(&dev->i2c_lock)) in saa7146_i2c_transfer() 377 mutex_unlock(&dev->i2c_lock); in saa7146_i2c_transfer()
|
A D | saa7146_core.c | 443 mutex_init(&dev->i2c_lock); in saa7146_init_one()
|
/linux/sound/pci/ctxfi/ |
A D | cthw20k1.c | 1370 static void i2c_lock(struct hw *hw) in i2c_lock() function 1417 i2c_lock(hw); in hw_reset_dac() 1472 i2c_lock(hw); in hw_dac_init() 1614 i2c_lock(hw); in adc_input_select_SBx() 1627 i2c_lock(hw); in adc_input_select_SBx() 1659 i2c_lock(hw); in adc_input_select_hendrix() 1672 i2c_lock(hw); in adc_input_select_hendrix() 1753 i2c_lock(hw); in adc_init_SBx()
|
/linux/sound/pci/emu10k1/ |
A D | io.c | 190 spin_lock(&emu->i2c_lock); in snd_emu10k1_i2c_write() 232 spin_unlock(&emu->i2c_lock); in snd_emu10k1_i2c_write()
|
A D | emu10k1_main.c | 1792 spin_lock_init(&emu->i2c_lock); in snd_emu10k1_create()
|
/linux/include/media/drv-intf/ |
A D | saa7146.h | 147 struct mutex i2c_lock; member
|
/linux/include/sound/ |
A D | emu10k1.h | 1739 spinlock_t i2c_lock; /* serialises access to i2c port */ member
|