/kernel/linux/linux-5.10/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 in i2c_mux_master_xfer() local 83 struct i2c_mux_core *muxc = priv->muxc; __i2c_mux_smbus_xfer() local 105 struct i2c_mux_core *muxc = priv->muxc; i2c_mux_smbus_xfer() local 245 struct i2c_mux_core *muxc; i2c_mux_alloc() local 282 i2c_mux_add_adapter(struct i2c_mux_core *muxc, u32 force_nr, u32 chan_id, unsigned int class) i2c_mux_add_adapter() argument 440 i2c_mux_del_adapters(struct i2c_mux_core *muxc) i2c_mux_del_adapters() argument [all...] |
/kernel/linux/linux-6.6/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 in i2c_mux_master_xfer() local 83 struct i2c_mux_core *muxc = priv->muxc; __i2c_mux_smbus_xfer() local 105 struct i2c_mux_core *muxc = priv->muxc; i2c_mux_smbus_xfer() local 245 struct i2c_mux_core *muxc; i2c_mux_alloc() local 283 i2c_mux_add_adapter(struct i2c_mux_core *muxc, u32 force_nr, u32 chan_id, unsigned int class) i2c_mux_add_adapter() argument 441 i2c_mux_del_adapters(struct i2c_mux_core *muxc) i2c_mux_del_adapters() argument [all...] |
/kernel/linux/linux-5.10/drivers/i2c/muxes/ |
H A D | i2c-mux-pinctrl.c | 22 static int i2c_mux_pinctrl_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_select() argument 24 struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_select() 29 static int i2c_mux_pinctrl_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_deselect() argument 31 return i2c_mux_pinctrl_select(muxc, muxc->num_adapters); in i2c_mux_pinctrl_deselect() 77 struct i2c_mux_core *muxc; in i2c_mux_pinctrl_probe() local 95 muxc = i2c_mux_alloc(parent, dev, num_names, in i2c_mux_pinctrl_probe() 98 if (!muxc) { in i2c_mux_pinctrl_probe() 102 mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_probe() 104 platform_set_drvdata(pdev, muxc); in i2c_mux_pinctrl_probe() 171 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_pinctrl_remove() local [all...] |
H A D | i2c-mux-mlxcpld.c | 104 static int mlxcpld_mux_select_chan(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_select_chan() argument 106 struct mlxcpld_mux *data = i2c_mux_priv(muxc); in mlxcpld_mux_select_chan() 113 err = mlxcpld_mux_reg_write(muxc->parent, client, regval); in mlxcpld_mux_select_chan() 120 static int mlxcpld_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_deselect() argument 122 struct mlxcpld_mux *data = i2c_mux_priv(muxc); in mlxcpld_mux_deselect() 128 return mlxcpld_mux_reg_write(muxc->parent, client, data->last_chan); in mlxcpld_mux_deselect() 137 struct i2c_mux_core *muxc; in mlxcpld_mux_probe() local 148 muxc = i2c_mux_alloc(adap, &client->dev, CPLD_MUX_MAX_NCHANS, in mlxcpld_mux_probe() 151 if (!muxc) in mlxcpld_mux_probe() 154 data = i2c_mux_priv(muxc); in mlxcpld_mux_probe() 181 struct i2c_mux_core *muxc = i2c_get_clientdata(client); mlxcpld_mux_remove() local [all...] |
H A D | i2c-mux-gpmux.c | 23 static int i2c_mux_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_select() argument 25 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select() 34 static int i2c_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_deselect() argument 36 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect() 74 struct i2c_mux_core *muxc; in i2c_mux_probe() local 99 muxc = i2c_mux_alloc(parent, dev, children, 0, 0, in i2c_mux_probe() 101 if (!muxc) { in i2c_mux_probe() 105 muxc->priv = mux; in i2c_mux_probe() 107 platform_set_drvdata(pdev, muxc); in i2c_mux_probe() 109 muxc in i2c_mux_probe() 147 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_remove() local [all...] |
H A D | i2c-arb-gpio-challenge.c | 42 static int i2c_arbitrator_select(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_select() argument 44 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_select() 76 dev_err(muxc->dev, "Could not claim bus, timeout\n"); in i2c_arbitrator_select() 85 static int i2c_arbitrator_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_deselect() argument 87 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_deselect() 101 struct i2c_mux_core *muxc; in i2c_arbitrator_probe() local 116 muxc = i2c_mux_alloc(NULL, dev, 1, sizeof(*arb), I2C_MUX_ARBITRATOR, in i2c_arbitrator_probe() 118 if (!muxc) in i2c_arbitrator_probe() 120 arb = i2c_mux_priv(muxc); in i2c_arbitrator_probe() 122 platform_set_drvdata(pdev, muxc); in i2c_arbitrator_probe() 179 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_arbitrator_remove() local [all...] |
H A D | i2c-mux-gpio.c | 34 static int i2c_mux_gpio_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_gpio_select() argument 36 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_select() 43 static int i2c_mux_gpio_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_gpio_deselect() argument 45 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_deselect() 109 struct i2c_mux_core *muxc; in i2c_mux_gpio_probe() local 140 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, in i2c_mux_gpio_probe() 143 if (!muxc) { in i2c_mux_gpio_probe() 147 mux->gpios = muxc->priv; in i2c_mux_gpio_probe() 148 muxc->priv = mux; in i2c_mux_gpio_probe() 150 platform_set_drvdata(pdev, muxc); in i2c_mux_gpio_probe() 215 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_gpio_remove() local [all...] |
H A D | i2c-mux-pca954x.c | 234 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca954x_select_chan() argument 236 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan() 244 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan() 251 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument 253 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux() 260 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux() 265 return pca954x_reg_write(muxc->parent, client, in pca954x_deselect_mux() 279 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_show() local 280 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_show() 290 struct i2c_mux_core *muxc in idle_state_store() local 349 pca954x_irq_setup(struct i2c_mux_core *muxc) pca954x_irq_setup() argument 380 pca954x_cleanup(struct i2c_mux_core *muxc) pca954x_cleanup() argument 420 struct i2c_mux_core *muxc; pca954x_probe() local 526 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca954x_remove() local 538 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca954x_resume() local [all...] |
H A D | i2c-mux-pca9541.c | 180 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca9541_arbitrate() local 181 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_arbitrate() 249 static int pca9541_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca9541_select_chan() argument 251 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_select_chan() 274 static int pca9541_release_chan(struct i2c_mux_core *muxc, u32 chan) in pca9541_release_chan() argument 276 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_release_chan() 290 struct i2c_mux_core *muxc; in pca9541_probe() local 307 muxc = i2c_mux_alloc(adap, &client->dev, 1, sizeof(*data), in pca9541_probe() 310 if (!muxc) in pca9541_probe() 313 data = i2c_mux_priv(muxc); in pca9541_probe() 330 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca9541_remove() local [all...] |
H A D | i2c-mux-reg.c | 61 static int i2c_mux_reg_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_reg_select() argument 63 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_select() 68 static int i2c_mux_reg_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_reg_deselect() argument 70 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_deselect() 158 struct i2c_mux_core *muxc; in i2c_mux_reg_probe() local 201 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, 0, 0, in i2c_mux_reg_probe() 203 if (!muxc) { in i2c_mux_reg_probe() 207 muxc->priv = mux; in i2c_mux_reg_probe() 209 platform_set_drvdata(pdev, muxc); in i2c_mux_reg_probe() 212 muxc in i2c_mux_reg_probe() 238 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_reg_remove() local [all...] |
H A D | i2c-mux-ltc4306.c | 178 static int ltc4306_select_mux(struct i2c_mux_core *muxc, u32 chan) in ltc4306_select_mux() argument 180 struct ltc4306 *data = i2c_mux_priv(muxc); in ltc4306_select_mux() 186 static int ltc4306_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in ltc4306_deselect_mux() argument 188 struct ltc4306 *data = i2c_mux_priv(muxc); in ltc4306_deselect_mux() 212 struct i2c_mux_core *muxc; in ltc4306_probe() local 227 muxc = i2c_mux_alloc(adap, &client->dev, in ltc4306_probe() 231 if (!muxc) in ltc4306_probe() 233 data = i2c_mux_priv(muxc); in ltc4306_probe() 236 i2c_set_clientdata(client, muxc); in ltc4306_probe() 283 ret = i2c_mux_add_adapter(muxc, in ltc4306_probe() 299 struct i2c_mux_core *muxc = i2c_get_clientdata(client); ltc4306_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/i2c/muxes/ |
H A D | i2c-mux-pinctrl.c | 22 static int i2c_mux_pinctrl_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_select() argument 24 struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_select() 29 static int i2c_mux_pinctrl_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_deselect() argument 31 return i2c_mux_pinctrl_select(muxc, muxc->num_adapters); in i2c_mux_pinctrl_deselect() 77 struct i2c_mux_core *muxc; in i2c_mux_pinctrl_probe() local 95 muxc = i2c_mux_alloc(parent, dev, num_names, in i2c_mux_pinctrl_probe() 98 if (!muxc) { in i2c_mux_pinctrl_probe() 102 mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_probe() 104 platform_set_drvdata(pdev, muxc); in i2c_mux_pinctrl_probe() 171 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_pinctrl_remove() local [all...] |
H A D | i2c-mux-gpmux.c | 23 static int i2c_mux_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_select() argument 25 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select() 34 static int i2c_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_deselect() argument 36 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect() 74 struct i2c_mux_core *muxc; in i2c_mux_probe() local 99 muxc = i2c_mux_alloc(parent, dev, children, 0, 0, in i2c_mux_probe() 101 if (!muxc) { in i2c_mux_probe() 105 muxc->priv = mux; in i2c_mux_probe() 107 platform_set_drvdata(pdev, muxc); in i2c_mux_probe() 109 muxc in i2c_mux_probe() 147 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_remove() local [all...] |
H A D | i2c-mux-mlxcpld.c | 88 static int mlxcpld_mux_select_chan(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_select_chan() argument 90 struct mlxcpld_mux *mux = i2c_mux_priv(muxc); in mlxcpld_mux_select_chan() 99 err = mlxcpld_mux_reg_write(muxc->parent, mux, regval); in mlxcpld_mux_select_chan() 106 static int mlxcpld_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_deselect() argument 108 struct mlxcpld_mux *mux = i2c_mux_priv(muxc); in mlxcpld_mux_deselect() 113 return mlxcpld_mux_reg_write(muxc->parent, mux, 0); in mlxcpld_mux_deselect() 121 struct i2c_mux_core *muxc; in mlxcpld_mux_probe() local 143 muxc = i2c_mux_alloc(client->adapter, &pdev->dev, pdata->num_adaps, in mlxcpld_mux_probe() 146 if (!muxc) in mlxcpld_mux_probe() 149 platform_set_drvdata(pdev, muxc); in mlxcpld_mux_probe() 175 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); mlxcpld_mux_remove() local [all...] |
H A D | i2c-arb-gpio-challenge.c | 42 static int i2c_arbitrator_select(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_select() argument 44 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_select() 76 dev_err(muxc->dev, "Could not claim bus, timeout\n"); in i2c_arbitrator_select() 85 static int i2c_arbitrator_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_deselect() argument 87 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_deselect() 101 struct i2c_mux_core *muxc; in i2c_arbitrator_probe() local 116 muxc = i2c_mux_alloc(NULL, dev, 1, sizeof(*arb), I2C_MUX_ARBITRATOR, in i2c_arbitrator_probe() 118 if (!muxc) in i2c_arbitrator_probe() 120 arb = i2c_mux_priv(muxc); in i2c_arbitrator_probe() 122 platform_set_drvdata(pdev, muxc); in i2c_arbitrator_probe() 179 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_arbitrator_remove() local [all...] |
H A D | i2c-mux-gpio.c | 35 static int i2c_mux_gpio_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_gpio_select() argument 37 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_select() 44 static int i2c_mux_gpio_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_gpio_deselect() argument 46 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_deselect() 126 struct i2c_mux_core *muxc; in i2c_mux_gpio_probe() local 157 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, in i2c_mux_gpio_probe() 160 if (!muxc) { in i2c_mux_gpio_probe() 164 mux->gpios = muxc->priv; in i2c_mux_gpio_probe() 165 muxc->priv = mux; in i2c_mux_gpio_probe() 167 platform_set_drvdata(pdev, muxc); in i2c_mux_gpio_probe() 232 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_gpio_remove() local [all...] |
H A D | i2c-mux-pca954x.c | 301 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca954x_select_chan() argument 303 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan() 311 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan() 318 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument 320 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux() 327 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux() 332 return pca954x_reg_write(muxc->parent, client, in pca954x_deselect_mux() 346 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_show() local 347 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_show() 357 struct i2c_mux_core *muxc in idle_state_store() local 416 pca954x_irq_setup(struct i2c_mux_core *muxc) pca954x_irq_setup() argument 447 pca954x_cleanup(struct i2c_mux_core *muxc) pca954x_cleanup() argument 489 struct i2c_mux_core *muxc; pca954x_probe() local 609 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca954x_remove() local 619 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca954x_resume() local [all...] |
H A D | i2c-mux-pca9541.c | 180 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca9541_arbitrate() local 181 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_arbitrate() 249 static int pca9541_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca9541_select_chan() argument 251 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_select_chan() 274 static int pca9541_release_chan(struct i2c_mux_core *muxc, u32 chan) in pca9541_release_chan() argument 276 struct pca9541 *data = i2c_mux_priv(muxc); in pca9541_release_chan() 289 struct i2c_mux_core *muxc; in pca9541_probe() local 306 muxc = i2c_mux_alloc(adap, &client->dev, 1, sizeof(*data), in pca9541_probe() 309 if (!muxc) in pca9541_probe() 312 data = i2c_mux_priv(muxc); in pca9541_probe() 329 struct i2c_mux_core *muxc = i2c_get_clientdata(client); pca9541_remove() local [all...] |
H A D | i2c-mux-reg.c | 61 static int i2c_mux_reg_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_reg_select() argument 63 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_select() 68 static int i2c_mux_reg_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_reg_deselect() argument 70 struct regmux *mux = i2c_mux_priv(muxc); in i2c_mux_reg_deselect() 158 struct i2c_mux_core *muxc; in i2c_mux_reg_probe() local 201 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, 0, 0, in i2c_mux_reg_probe() 203 if (!muxc) { in i2c_mux_reg_probe() 207 muxc->priv = mux; in i2c_mux_reg_probe() 209 platform_set_drvdata(pdev, muxc); in i2c_mux_reg_probe() 212 muxc in i2c_mux_reg_probe() 238 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); i2c_mux_reg_remove() 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, in ltc4306_probe() 298 struct i2c_mux_core *muxc = i2c_get_clientdata(client); ltc4306_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/net/mdio/ |
H A D | mdio-mux-multiplexer.c | 13 struct mux_control *muxc; member 45 ret = mux_control_deselect(s->muxc); in mdio_mux_multiplexer_switch_fn() 52 ret = mux_control_select(s->muxc, desired_child); in mdio_mux_multiplexer_switch_fn() 74 s->muxc = devm_mux_control_get(dev, NULL); in mdio_mux_multiplexer_probe() 75 if (IS_ERR(s->muxc)) { in mdio_mux_multiplexer_probe() 76 ret = PTR_ERR(s->muxc); in mdio_mux_multiplexer_probe() 98 mux_control_deselect(s->muxc); in mdio_mux_multiplexer_remove()
|
/kernel/linux/linux-6.6/drivers/net/mdio/ |
H A D | mdio-mux-multiplexer.c | 13 struct mux_control *muxc; member 45 ret = mux_control_deselect(s->muxc); in mdio_mux_multiplexer_switch_fn() 52 ret = mux_control_select(s->muxc, desired_child); in mdio_mux_multiplexer_switch_fn() 74 s->muxc = devm_mux_control_get(dev, NULL); in mdio_mux_multiplexer_probe() 75 if (IS_ERR(s->muxc)) in mdio_mux_multiplexer_probe() 76 return dev_err_probe(&pdev->dev, PTR_ERR(s->muxc), in mdio_mux_multiplexer_probe() 95 mux_control_deselect(s->muxc); in mdio_mux_multiplexer_remove()
|
/kernel/linux/linux-5.10/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 138 st->muxc = i2c_mux_alloc(client->adapter, &client->dev, in inv_mpu_probe() 141 if (!st->muxc) in inv_mpu_probe() 143 st->muxc->priv = dev_get_drvdata(&client->dev); in inv_mpu_probe() 144 result = i2c_mux_add_adapter(st->muxc, 0, 0, 0); in inv_mpu_probe() 155 i2c_mux_del_adapters(st->muxc); in inv_mpu_probe() 164 if (st->muxc) { in inv_mpu_remove() 166 i2c_mux_del_adapters(st->muxc); in inv_mpu_remove()
|
/kernel/linux/linux-6.6/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 139 st->muxc = i2c_mux_alloc(client->adapter, &client->dev, in inv_mpu_probe() 142 if (!st->muxc) in inv_mpu_probe() 144 st->muxc->priv = dev_get_drvdata(&client->dev); in inv_mpu_probe() 145 result = i2c_mux_add_adapter(st->muxc, 0, 0, 0); in inv_mpu_probe() 156 i2c_mux_del_adapters(st->muxc); in inv_mpu_probe() 165 if (st->muxc) { in inv_mpu_remove() 167 i2c_mux_del_adapters(st->muxc); in inv_mpu_remove()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | i2c-mux.h | 46 static inline void *i2c_mux_priv(struct i2c_mux_core *muxc) in i2c_mux_priv() argument 48 return muxc->priv; in i2c_mux_priv() 58 int i2c_mux_add_adapter(struct i2c_mux_core *muxc, 62 void i2c_mux_del_adapters(struct i2c_mux_core *muxc);
|