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
206 muxc = i2c_mux_alloc(parent, &pdev->dev, mux->data.n_values, 0, 0, in i2c_mux_reg_probe()
208 if (!muxc) { in i2c_mux_reg_probe()
212 muxc->priv = mux; in i2c_mux_reg_probe()
214 platform_set_drvdata(pdev, muxc); in i2c_mux_reg_probe()
217 muxc->deselect = i2c_mux_reg_deselect; in i2c_mux_reg_probe()
223 ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); in i2c_mux_reg_probe()
229 mux->data.n_values, muxc->parent->name); in i2c_mux_reg_probe()
234 i2c_mux_del_adapters(muxc); in i2c_mux_reg_probe()
243 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_reg_remove() local
245 i2c_mux_del_adapters(muxc); in i2c_mux_reg_remove()
246 i2c_put_adapter(muxc->parent); in i2c_mux_reg_remove()