Lines Matching refs:muxc
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()
154 muxc->mux_locked = true; in i2c_mux_gpio_probe()
158 muxc->deselect = i2c_mux_gpio_deselect; in i2c_mux_gpio_probe()
180 if (!muxc->mux_locked) in i2c_mux_gpio_probe()
185 muxc->mux_locked = i2c_root_adapter(gpio_dev) == root; in i2c_mux_gpio_probe()
188 if (muxc->mux_locked) in i2c_mux_gpio_probe()
195 ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); in i2c_mux_gpio_probe()
206 i2c_mux_del_adapters(muxc); in i2c_mux_gpio_probe()
215 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_gpio_remove() local
217 i2c_mux_del_adapters(muxc); in i2c_mux_gpio_remove()
218 i2c_put_adapter(muxc->parent); in i2c_mux_gpio_remove()