• Home
  • Raw
  • Download

Lines Matching refs:muxc

234 static int pca954x_select_chan(struct i2c_mux_core *muxc, u32 chan)  in pca954x_select_chan()  argument
236 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_select_chan()
244 ret = pca954x_reg_write(muxc->parent, client, regval); in pca954x_select_chan()
251 static int pca954x_deselect_mux(struct i2c_mux_core *muxc, u32 chan) in pca954x_deselect_mux() argument
253 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_deselect_mux()
260 return pca954x_select_chan(muxc, idle_state); in pca954x_deselect_mux()
265 return pca954x_reg_write(muxc->parent, client, in pca954x_deselect_mux()
279 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_show() local
280 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_show()
290 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in idle_state_store() local
291 struct pca954x *data = i2c_mux_priv(muxc); in idle_state_store()
303 i2c_lock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
311 ret = pca954x_deselect_mux(muxc, 0); in idle_state_store()
313 i2c_unlock_bus(muxc->parent, I2C_LOCK_SEGMENT); in idle_state_store()
349 static int pca954x_irq_setup(struct i2c_mux_core *muxc) in pca954x_irq_setup() argument
351 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_irq_setup()
380 static void pca954x_cleanup(struct i2c_mux_core *muxc) in pca954x_cleanup() argument
382 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_cleanup()
392 i2c_mux_del_adapters(muxc); in pca954x_cleanup()
420 struct i2c_mux_core *muxc; in pca954x_probe() local
428 muxc = i2c_mux_alloc(adap, dev, PCA954X_MAX_NCHANS, sizeof(*data), 0, in pca954x_probe()
430 if (!muxc) in pca954x_probe()
432 data = i2c_mux_priv(muxc); in pca954x_probe()
434 i2c_set_clientdata(client, muxc); in pca954x_probe()
487 ret = pca954x_irq_setup(muxc); in pca954x_probe()
493 ret = i2c_mux_add_adapter(muxc, 0, num, 0); in pca954x_probe()
520 pca954x_cleanup(muxc); in pca954x_probe()
526 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_remove() local
530 pca954x_cleanup(muxc); in pca954x_remove()
538 struct i2c_mux_core *muxc = i2c_get_clientdata(client); in pca954x_resume() local
539 struct pca954x *data = i2c_mux_priv(muxc); in pca954x_resume()