Lines Matching refs:muxc

319 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan)  in pca954x_select_chan()  argument
321 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan()
329 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan()
336 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument
338 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux()
345 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux()
350 return pca954x_reg_write(muxc->parent, client, in pca954x_deselect_mux()
364 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_show() local
365 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_show()
375 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_store() local
376 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_store()
388 i2c_lock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
396 ret = pca954x_deselect_mux(muxc, 0); in idle_state_store()
398 i2c_unlock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
434 static int pca954x_irq_setup(struct i2c_mux_core *muxc) in pca954x_irq_setup() argument
436 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_irq_setup()
465 static void pca954x_cleanup(struct i2c_mux_core *muxc) in pca954x_cleanup() argument
467 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_cleanup()
479 i2c_mux_del_adapters(muxc); in pca954x_cleanup()
562 struct i2c_mux_core *muxc; in pca954x_probe() local
570 muxc = i2c_mux_alloc(adap, dev, PCA954X_MAX_NCHANS, sizeof(*data), 0, in pca954x_probe()
572 if (!muxc) in pca954x_probe()
574 data = i2c_mux_priv(muxc); in pca954x_probe()
576 i2c_set_clientdata(client, muxc); in pca954x_probe()
641 ret = pca954x_irq_setup(muxc); in pca954x_probe()
647 ret = i2c_mux_add_adapter(muxc, 0, num); in pca954x_probe()
674 pca954x_cleanup(muxc); in pca954x_probe()
680 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_remove() local
684 pca954x_cleanup(muxc); in pca954x_remove()
690 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_resume() local
691 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_resume()