Lines Matching refs:muxc
193 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan) in pca954x_select_chan() argument
195 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan()
209 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan()
216 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument
218 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux()
226 return pca954x_reg_write(muxc->parent, client, data->last_chan); in pca954x_deselect_mux()
293 static int pca954x_irq_setup(struct i2c_mux_core *muxc) in pca954x_irq_setup() argument
295 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_irq_setup()
349 struct i2c_mux_core *muxc; in pca954x_probe() local
357 muxc = i2c_mux_alloc(adap, &client->dev, in pca954x_probe()
360 if (!muxc) in pca954x_probe()
362 data = i2c_mux_priv(muxc); in pca954x_probe()
364 i2c_set_clientdata(client, muxc); in pca954x_probe()
392 ret = pca954x_irq_setup(muxc); in pca954x_probe()
415 ret = i2c_mux_add_adapter(muxc, force, num, class); in pca954x_probe()
428 i2c_mux_del_adapters(muxc); in pca954x_probe()
434 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_remove() local
435 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_remove()
446 i2c_mux_del_adapters(muxc); in pca954x_remove()
454 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_resume() local
455 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_resume()