Home
last modified time | relevance | path

Searched refs:I2C_LOCK_SEGMENT (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/iio/chemical/
H A Dsunrise_co2.c125 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_read_byte()
127 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_read_byte()
143 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_read_word()
145 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_read_word()
162 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_write_byte()
164 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_write_byte()
178 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_write_word()
180 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in sunrise_write_word()
/openbmc/linux/drivers/mfd/
H A D88pm860x-i2c.c146 i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in pm860x_page_reg_write()
153 i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in pm860x_page_reg_write()
164 i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in pm860x_page_bulk_read()
171 i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in pm860x_page_bulk_read()
/openbmc/linux/drivers/i2c/
H A Di2c-core.h44 ret = i2c_trylock_bus(adap, I2C_LOCK_SEGMENT) ? 0 : -EAGAIN; in __i2c_lock_bus_helper()
46 i2c_lock_bus(adap, I2C_LOCK_SEGMENT); in __i2c_lock_bus_helper()
H A Di2c-core-smbus.c547 i2c_unlock_bus(adapter, I2C_LOCK_SEGMENT); in i2c_smbus_xfer()
H A Di2c-core-base.c2367 i2c_unlock_bus(adap, I2C_LOCK_SEGMENT); in i2c_transfer()
/openbmc/linux/drivers/base/regmap/
H A Dregmap-sccb.c47 i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in regmap_sccb_read()
61 i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT); in regmap_sccb_read()
/openbmc/linux/drivers/media/dvb-frontends/
H A Drtl2830.c17 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_bulk_write()
19 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_bulk_write()
29 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_update_bits()
31 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_update_bits()
41 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_bulk_read()
43 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in rtl2830_bulk_read()
H A Daf9013.c1304 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in af9013_wregs()
1307 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in af9013_wregs()
1345 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in af9013_rregs()
1348 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in af9013_rregs()
H A Dtda1004x.c319 i2c_lock_bus(state->i2c, I2C_LOCK_SEGMENT); in tda1004x_do_upload()
332 i2c_unlock_bus(state->i2c, I2C_LOCK_SEGMENT); in tda1004x_do_upload()
339 i2c_unlock_bus(state->i2c, I2C_LOCK_SEGMENT); in tda1004x_do_upload()
H A Ddrxk_hard.c193 i2c_lock_bus(state->i2c, I2C_LOCK_SEGMENT); in drxk_i2c_lock()
204 i2c_unlock_bus(state->i2c, I2C_LOCK_SEGMENT); in drxk_i2c_unlock()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_i2c_infineon.c115 i2c_lock_bus(tpm_dev.client->adapter, I2C_LOCK_SEGMENT); in iic_tpm_read()
190 i2c_unlock_bus(tpm_dev.client->adapter, I2C_LOCK_SEGMENT); in iic_tpm_read()
222 i2c_lock_bus(tpm_dev.client->adapter, I2C_LOCK_SEGMENT); in iic_tpm_write_generic()
241 i2c_unlock_bus(tpm_dev.client->adapter, I2C_LOCK_SEGMENT); in iic_tpm_write_generic()
H A Dtpm_tis_i2c_cr50.c202 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in tpm_cr50_i2c_read()
222 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in tpm_cr50_i2c_read()
264 i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); in tpm_cr50_i2c_write()
279 i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); in tpm_cr50_i2c_write()
/openbmc/linux/drivers/i2c/muxes/
H A Di2c-mux-pca9541.c300 i2c_lock_bus(adap, I2C_LOCK_SEGMENT); in pca9541_probe()
302 i2c_unlock_bus(adap, I2C_LOCK_SEGMENT); in pca9541_probe()
H A Di2c-mux-pca954x.c370 i2c_lock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
380 i2c_unlock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
/openbmc/linux/drivers/iio/light/
H A Das73211.c240 i2c_lock_bus(data->client->adapter, I2C_LOCK_SEGMENT); in as73211_req_data()
250 i2c_unlock_bus(data->client->adapter, I2C_LOCK_SEGMENT); in as73211_req_data()
268 i2c_unlock_bus(data->client->adapter, I2C_LOCK_SEGMENT); in as73211_req_data()
276 i2c_unlock_bus(data->client->adapter, I2C_LOCK_SEGMENT); in as73211_req_data()
/openbmc/linux/drivers/media/tuners/
H A Dtda18271-common.c216 i2c_lock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in __tda18271_write_regs()
237 i2c_unlock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in __tda18271_write_regs()
291 i2c_lock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in tda18271_init_regs()
507 i2c_unlock_bus(priv->i2c_props.adap, I2C_LOCK_SEGMENT); in tda18271_init_regs()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-i2c.c202 i2c_lock_bus(i2c, I2C_LOCK_SEGMENT); in i2c_transfer_rollball()
223 i2c_unlock_bus(i2c, I2C_LOCK_SEGMENT); in i2c_transfer_rollball()
/openbmc/linux/drivers/net/mctp/
H A Dmctp-i2c.c412 i2c_lock_bus(midev->adapter, I2C_LOCK_SEGMENT); in mctp_i2c_lock_nest()
427 i2c_unlock_bus(midev->adapter, I2C_LOCK_SEGMENT); in mctp_i2c_unlock_nest()
442 i2c_unlock_bus(midev->adapter, I2C_LOCK_SEGMENT); in mctp_i2c_unlock_reset()
536 i2c_unlock_bus(midev->adapter, I2C_LOCK_SEGMENT); in mctp_i2c_flow_release()
/openbmc/linux/drivers/usb/misc/
H A Dusb251xb.c274 i2c_lock_bus(hub->i2c->adapter, I2C_LOCK_SEGMENT); in usb251xb_reset()
283 i2c_unlock_bus(hub->i2c->adapter, I2C_LOCK_SEGMENT); in usb251xb_reset()
/openbmc/linux/drivers/input/touchscreen/
H A Drohm_bu21023.c299 i2c_lock_bus(adap, I2C_LOCK_SEGMENT); in rohm_i2c_burst_read()
308 i2c_unlock_bus(adap, I2C_LOCK_SEGMENT); in rohm_i2c_burst_read()
/openbmc/linux/include/linux/
H A Di2c.h805 #define I2C_LOCK_SEGMENT BIT(1) macro