Lines Matching refs:muxc
124 static int mlxcpld_mux_select_chan(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_select_chan() argument
126 struct mlxcpld_mux *data = i2c_mux_priv(muxc); in mlxcpld_mux_select_chan()
133 err = mlxcpld_mux_reg_write(muxc->parent, client, regval); in mlxcpld_mux_select_chan()
140 static int mlxcpld_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in mlxcpld_mux_deselect() argument
142 struct mlxcpld_mux *data = i2c_mux_priv(muxc); in mlxcpld_mux_deselect()
148 return mlxcpld_mux_reg_write(muxc->parent, client, data->last_chan); in mlxcpld_mux_deselect()
157 struct i2c_mux_core *muxc; in mlxcpld_mux_probe() local
168 muxc = i2c_mux_alloc(adap, &client->dev, CPLD_MUX_MAX_NCHANS, in mlxcpld_mux_probe()
171 if (!muxc) in mlxcpld_mux_probe()
174 data = i2c_mux_priv(muxc); in mlxcpld_mux_probe()
175 i2c_set_clientdata(client, muxc); in mlxcpld_mux_probe()
187 err = i2c_mux_add_adapter(muxc, force, num, 0); in mlxcpld_mux_probe()
195 i2c_mux_del_adapters(muxc); in mlxcpld_mux_probe()
201 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in mlxcpld_mux_remove() local
203 i2c_mux_del_adapters(muxc); in mlxcpld_mux_remove()