/drivers/gpio/ |
D | gpio-adnp.c | 26 struct mutex i2c_lock; member 104 mutex_lock(&adnp->i2c_lock); in adnp_gpio_set() 106 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_set() 117 mutex_lock(&adnp->i2c_lock); in adnp_gpio_direction_input() 141 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_direction_input() 154 mutex_lock(&adnp->i2c_lock); in adnp_gpio_direction_output() 179 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_direction_output() 192 mutex_lock(&adnp->i2c_lock); in adnp_gpio_dbg_show() 210 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_dbg_show() 239 mutex_unlock(&adnp->i2c_lock); in adnp_gpio_dbg_show() [all …]
|
D | gpio-pca953x.c | 200 struct mutex i2c_lock; member 525 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_input() 527 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_direction_input() 540 mutex_lock(&chip->i2c_lock); in pca953x_gpio_direction_output() 549 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_direction_output() 561 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_value() 563 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_get_value() 576 mutex_lock(&chip->i2c_lock); in pca953x_gpio_set_value() 578 mutex_unlock(&chip->i2c_lock); in pca953x_gpio_set_value() 589 mutex_lock(&chip->i2c_lock); in pca953x_gpio_get_direction() [all …]
|
/drivers/hwmon/ |
D | hs3001.c | 45 struct mutex i2c_lock; /* lock for sending i2c commands */ member 115 mutex_lock(&data->i2c_lock); in hs3001_read() 118 mutex_unlock(&data->i2c_lock); in hs3001_read() 129 mutex_unlock(&data->i2c_lock); in hs3001_read() 214 mutex_init(&data->i2c_lock); in hs3001_probe()
|
D | sht3x.c | 164 struct mutex i2c_lock; /* lock for sending i2c commands */ member 208 mutex_lock(&data->i2c_lock); in sht3x_read_from_command() 227 mutex_unlock(&data->i2c_lock); in sht3x_read_from_command() 394 mutex_lock(&data->i2c_lock); in limit_write() 396 mutex_unlock(&data->i2c_lock); in limit_write() 529 mutex_lock(&data->i2c_lock); in heater_enable_store() 538 mutex_unlock(&data->i2c_lock); in heater_enable_store() 567 mutex_lock(&data->i2c_lock); in update_interval_write() 601 mutex_unlock(&data->i2c_lock); in update_interval_write() 888 mutex_init(&data->i2c_lock); in sht3x_probe()
|
/drivers/pinctrl/ |
D | pinctrl-cy8c95x0.c | 150 struct mutex i2c_lock; member 429 mutex_lock(&chip->i2c_lock); in cy8c95x0_write_regs_mask() 472 mutex_unlock(&chip->i2c_lock); in cy8c95x0_write_regs_mask() 500 mutex_lock(&chip->i2c_lock); in cy8c95x0_read_regs_mask() 550 mutex_unlock(&chip->i2c_lock); in cy8c95x0_read_regs_mask() 620 mutex_lock(&chip->i2c_lock); in cy8c95x0_gpio_get_direction() 630 mutex_unlock(&chip->i2c_lock); in cy8c95x0_gpio_get_direction() 637 mutex_unlock(&chip->i2c_lock); in cy8c95x0_gpio_get_direction() 653 mutex_lock(&chip->i2c_lock); in cy8c95x0_gpio_get_pincfg() 722 mutex_unlock(&chip->i2c_lock); in cy8c95x0_gpio_get_pincfg() [all …]
|
/drivers/media/usb/go7007/ |
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() 570 if (mutex_lock_interruptible(&usb->i2c_lock) == 0) { in s2250_probe() 590 mutex_unlock(&usb->i2c_lock); in s2250_probe()
|
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()
|
/drivers/media/pci/mantis/ |
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()
|
D | mantis_common.h | 134 struct mutex i2c_lock; member
|
/drivers/gpu/drm/gma500/ |
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()
|
/drivers/media/dvb-frontends/ |
D | mxl5xx.c | 60 struct mutex i2c_lock; member 178 mutex_lock(&state->base->i2c_lock); in send_command() 184 mutex_unlock(&state->base->i2c_lock); in send_command() 186 mutex_lock(&state->base->i2c_lock); in send_command() 192 mutex_unlock(&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() [all …]
|
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() 1328 mutex_init(&dev->i2c_lock); in mxl692_probe()
|
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()
|
/drivers/media/usb/cx231xx/ |
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()
|
D | cx231xx.h | 605 struct mutex i2c_lock; member
|
D | cx231xx-cards.c | 1409 mutex_init(&dev->i2c_lock); in cx231xx_init_dev()
|
/drivers/media/common/saa7146/ |
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()
|
D | saa7146_core.c | 431 mutex_init(&dev->i2c_lock); in saa7146_init_one()
|
/drivers/gpu/drm/rockchip/ |
D | rk3066_hdmi.c | 37 struct mutex i2c_lock; /* For i2c operation. */ member 670 mutex_lock(&i2c->i2c_lock); in rk3066_hdmi_i2c_xfer() 699 mutex_unlock(&i2c->i2c_lock); in rk3066_hdmi_i2c_xfer() 724 mutex_init(&i2c->i2c_lock); in rk3066_hdmi_i2c_adapter()
|