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
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->deselect = i2c_mux_reg_deselect; in i2c_mux_reg_probe()
218 ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); in i2c_mux_reg_probe()
224 mux->data.n_values, muxc->parent->name); in i2c_mux_reg_probe()
229 i2c_mux_del_adapters(muxc); in i2c_mux_reg_probe()
238 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_reg_remove() local
240 i2c_mux_del_adapters(muxc); in i2c_mux_reg_remove()
241 i2c_put_adapter(muxc->parent); in i2c_mux_reg_remove()