| /linux/drivers/i2c/ |
| H A D | i2c-mux.c | 35 struct i2c_mux_core *muxc; member 43 struct i2c_mux_core *muxc = priv->muxc; in __i2c_mux_master_xfer() local 44 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer() 49 ret = muxc->select(muxc, priv->chan_id); in __i2c_mux_master_xfer() 52 if (muxc->deselect) in __i2c_mux_master_xfer() 53 muxc->deselect(muxc, priv->chan_id); in __i2c_mux_master_xfer() 62 struct i2c_mux_core *muxc = priv->muxc; in i2c_mux_master_xfer() local 63 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer() 68 ret = muxc->select(muxc, priv->chan_id); in i2c_mux_master_xfer() 71 if (muxc->deselect) in i2c_mux_master_xfer() [all …]
|
| /linux/drivers/i2c/muxes/ |
| H A D | i2c-mux-mule.c | 23 static int mule_i2c_mux_select(struct i2c_mux_core *muxc, u32 dev) in mule_i2c_mux_select() argument 25 struct mule_i2c_reg_mux *mux = muxc->priv; in mule_i2c_mux_select() 30 static int mule_i2c_mux_deselect(struct i2c_mux_core *muxc, u32 dev) in mule_i2c_mux_deselect() argument 32 return mule_i2c_mux_select(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_deselect() 37 struct i2c_mux_core *muxc = data; in mule_i2c_mux_remove() local 39 i2c_mux_del_adapters(muxc); in mule_i2c_mux_remove() 41 mule_i2c_mux_deselect(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_remove() 49 struct i2c_mux_core *muxc; in mule_i2c_mux_probe() local 60 muxc = i2c_mux_alloc(client->adapter, mux_dev, ndev, sizeof(*priv), in mule_i2c_mux_probe() 62 if (!muxc) in mule_i2c_mux_probe() [all …]
|
| H A D | i2c-mux-pca954x.c | 319 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca954x_select_chan() argument 321 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan() 329 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan() 336 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument 338 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux() 345 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux() 350 return pca954x_reg_write(muxc->parent, client, in pca954x_deselect_mux() 364 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_show() local 365 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_show() 375 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_store() local [all …]
|
| H A D | i2c-mux-ltc4306.c | 177 static int ltc4306_select_mux(struct i2c_mux_core *muxc, u32 chan) in ltc4306_select_mux() argument 179 struct ltc4306 *data = i2c_mux_priv(muxc); in ltc4306_select_mux() 185 static int ltc4306_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in ltc4306_deselect_mux() argument 187 struct ltc4306 *data = i2c_mux_priv(muxc); in ltc4306_deselect_mux() 211 struct i2c_mux_core *muxc; in ltc4306_probe() local 226 muxc = i2c_mux_alloc(adap, &client->dev, in ltc4306_probe() 230 if (!muxc) in ltc4306_probe() 232 data = i2c_mux_priv(muxc); in ltc4306_probe() 235 i2c_set_clientdata(client, muxc); in ltc4306_probe() 282 ret = i2c_mux_add_adapter(muxc, 0, num); in ltc4306_probe() [all …]
|
| /linux/drivers/iio/imu/inv_mpu6050/ |
| H A D | inv_mpu_i2c.c | 21 static int inv_mpu6050_select_bypass(struct i2c_mux_core *muxc, u32 chan_id) in inv_mpu6050_select_bypass() argument 140 st->muxc = i2c_mux_alloc(client->adapter, &client->dev, in inv_mpu_probe() 143 if (!st->muxc) in inv_mpu_probe() 145 st->muxc->priv = dev_get_drvdata(&client->dev); in inv_mpu_probe() 146 result = i2c_mux_add_adapter(st->muxc, 0, 0); in inv_mpu_probe() 157 i2c_mux_del_adapters(st->muxc); in inv_mpu_probe() 166 if (st->muxc) { in inv_mpu_remove() 168 i2c_mux_del_adapters(st->muxc); in inv_mpu_remove()
|
| H A D | inv_mpu_acpi.c | 168 mux_client = i2c_new_client_device(st->muxc->adapter[0], &info); in inv_mpu_acpi_create_mux_client()
|
| H A D | inv_mpu_iio.h | 200 struct i2c_mux_core *muxc; member
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | si2168.c | 598 static int si2168_select(struct i2c_mux_core *muxc, u32 chan) in si2168_select() argument 600 struct i2c_client *client = i2c_mux_priv(muxc); in si2168_select() 616 static int si2168_deselect(struct i2c_mux_core *muxc, u32 chan) in si2168_deselect() argument 618 struct i2c_client *client = i2c_mux_priv(muxc); in si2168_deselect() 739 dev->muxc = i2c_mux_alloc(client->adapter, &client->dev, in si2168_probe() 742 if (!dev->muxc) { in si2168_probe() 746 dev->muxc->priv = client; in si2168_probe() 747 ret = i2c_mux_add_adapter(dev->muxc, 0, 0); in si2168_probe() 754 *config->i2c_adapter = dev->muxc->adapter[0]; in si2168_probe() 782 i2c_mux_del_adapters(dev->muxc); in si2168_remove()
|
| H A D | rtl2830.c | 648 static int rtl2830_select(struct i2c_mux_core *muxc, u32 chan_id) in rtl2830_select() argument 650 struct i2c_client *client = i2c_mux_priv(muxc); in rtl2830_select() 683 return dev->muxc->adapter[0]; in rtl2830_get_i2c_adapter() 834 dev->muxc = i2c_mux_alloc(client->adapter, &client->dev, 1, 0, 0, in rtl2830_probe() 836 if (!dev->muxc) { in rtl2830_probe() 840 dev->muxc->priv = client; in rtl2830_probe() 841 ret = i2c_mux_add_adapter(dev->muxc, 0, 0); in rtl2830_probe() 873 i2c_mux_del_adapters(dev->muxc); in rtl2830_remove()
|
| H A D | af9013.c | 16 struct i2c_mux_core *muxc; member 1228 return state->muxc->adapter[0]; in af9013_get_i2c_adapter() 1236 static int af9013_select(struct i2c_mux_core *muxc, u32 chan) in af9013_select() argument 1238 struct af9013_state *state = i2c_mux_priv(muxc); in af9013_select() 1257 static int af9013_deselect(struct i2c_mux_core *muxc, u32 chan) in af9013_deselect() argument 1259 struct af9013_state *state = i2c_mux_priv(muxc); in af9013_deselect() 1476 state->muxc = i2c_mux_alloc(client->adapter, &client->dev, 1, 0, 0, in af9013_probe() 1478 if (!state->muxc) { in af9013_probe() 1482 state->muxc->priv = state; in af9013_probe() 1483 ret = i2c_mux_add_adapter(state->muxc, 0, 0); in af9013_probe() [all …]
|
| H A D | rtl2832.c | 800 static int rtl2832_select(struct i2c_mux_core *muxc, u32 chan_id) in rtl2832_select() argument 802 struct rtl2832_dev *dev = i2c_mux_priv(muxc); in rtl2832_select() 820 static int rtl2832_deselect(struct i2c_mux_core *muxc, u32 chan_id) in rtl2832_deselect() argument 822 struct rtl2832_dev *dev = i2c_mux_priv(muxc); in rtl2832_deselect() 894 return dev->muxc->adapter[0]; in rtl2832_get_i2c_adapter() 1078 dev->muxc = i2c_mux_alloc(i2c, &i2c->dev, 1, 0, I2C_MUX_LOCKED, in rtl2832_probe() 1080 if (!dev->muxc) { in rtl2832_probe() 1084 dev->muxc->priv = dev; in rtl2832_probe() 1085 ret = i2c_mux_add_adapter(dev->muxc, 0, 0); in rtl2832_probe() 1120 i2c_mux_del_adapters(dev->muxc); in rtl2832_remove()
|
| H A D | lgdt3306a.c | 73 struct i2c_mux_core *muxc; member 2156 static int lgdt3306a_select(struct i2c_mux_core *muxc, u32 chan) in lgdt3306a_select() argument 2158 struct i2c_client *client = i2c_mux_priv(muxc); in lgdt3306a_select() 2164 static int lgdt3306a_deselect(struct i2c_mux_core *muxc, u32 chan) in lgdt3306a_deselect() argument 2166 struct i2c_client *client = i2c_mux_priv(muxc); in lgdt3306a_deselect() 2203 state->muxc = i2c_mux_alloc(client->adapter, &client->dev, in lgdt3306a_probe() 2206 if (!state->muxc) { in lgdt3306a_probe() 2210 state->muxc->priv = client; in lgdt3306a_probe() 2211 ret = i2c_mux_add_adapter(state->muxc, 0, 0); in lgdt3306a_probe() 2217 *config->i2c_adapter = state->muxc->adapter[0]; in lgdt3306a_probe() [all …]
|
| H A D | rtl2830_priv.h | 23 struct i2c_mux_core *muxc; member
|
| H A D | si2168_priv.h | 25 struct i2c_mux_core *muxc; member
|
| H A D | m88ds3103_priv.h | 42 struct i2c_mux_core *muxc; member
|
| H A D | m88ds3103.c | 1643 static int m88ds3103_select(struct i2c_mux_core *muxc, u32 chan) in m88ds3103_select() argument 1645 struct m88ds3103_dev *dev = i2c_mux_priv(muxc); in m88ds3103_select() 1767 return dev->muxc->adapter[0]; in m88ds3103_get_i2c_adapter() 1869 dev->muxc = i2c_mux_alloc(client->adapter, &client->dev, 1, 0, 0, in m88ds3103_probe() 1871 if (!dev->muxc) { in m88ds3103_probe() 1875 dev->muxc->priv = dev; in m88ds3103_probe() 1876 ret = i2c_mux_add_adapter(dev->muxc, 0, 0); in m88ds3103_probe() 1919 i2c_mux_del_adapters(dev->muxc); in m88ds3103_probe() 1935 i2c_mux_del_adapters(dev->muxc); in m88ds3103_remove()
|
| H A D | rtl2832_priv.h | 25 struct i2c_mux_core *muxc; member
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi_yoga_c630.c | 182 unsigned int muxc, ccst, dppn, hpds, hsfl; in yoga_c630_ucsi_read_port0_status() local 186 muxc = FIELD_GET(USB_MUX_MUXC, val); in yoga_c630_ucsi_read_port0_status() 194 muxc, ccst, dppn, hpds, hsfl); in yoga_c630_ucsi_read_port0_status()
|
| /linux/drivers/of/ |
| H A D | unittest.c | 3186 static int unittest_i2c_mux_select_chan(struct i2c_mux_core *muxc, u32 chan) in unittest_i2c_mux_select_chan() argument 3197 struct i2c_mux_core *muxc; in unittest_i2c_mux_probe() local 3220 muxc = i2c_mux_alloc(adap, dev, nchans, 0, 0, in unittest_i2c_mux_probe() 3222 if (!muxc) in unittest_i2c_mux_probe() 3225 if (i2c_mux_add_adapter(muxc, 0, i)) { in unittest_i2c_mux_probe() 3227 i2c_mux_del_adapters(muxc); in unittest_i2c_mux_probe() 3232 i2c_set_clientdata(client, muxc); in unittest_i2c_mux_probe() 3241 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in unittest_i2c_mux_remove() local 3244 i2c_mux_del_adapters(muxc); in unittest_i2c_mux_remove()
|