Lines Matching refs:muxc
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
202 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, 0, 0, in i2c_mux_reg_probe()
204 if (!muxc) { in i2c_mux_reg_probe()
208 muxc->priv = mux; in i2c_mux_reg_probe()
210 platform_set_drvdata(pdev, muxc); in i2c_mux_reg_probe()
213 muxc->deselect = i2c_mux_reg_deselect; in i2c_mux_reg_probe()
219 ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); in i2c_mux_reg_probe()
225 mux->data.n_values, muxc->parent->name); in i2c_mux_reg_probe()
230 i2c_mux_del_adapters(muxc); in i2c_mux_reg_probe()
239 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_reg_remove() local
241 i2c_mux_del_adapters(muxc); in i2c_mux_reg_remove()
242 i2c_put_adapter(muxc->parent); in i2c_mux_reg_remove()