Lines Matching refs:muxc
23 static int mule_i2c_mux_select(struct i2c_mux_core *muxc, u32 dev) in mule_i2c_mux_select() argument
25 struct mule_i2c_reg_mux *mux = muxc->priv; in mule_i2c_mux_select()
30 static int mule_i2c_mux_deselect(struct i2c_mux_core *muxc, u32 dev) in mule_i2c_mux_deselect() argument
32 return mule_i2c_mux_select(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_deselect()
37 struct i2c_mux_core *muxc = data; in mule_i2c_mux_remove() local
39 i2c_mux_del_adapters(muxc); in mule_i2c_mux_remove()
41 mule_i2c_mux_deselect(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_remove()
49 struct i2c_mux_core *muxc; in mule_i2c_mux_probe() local
61 muxc = i2c_mux_alloc(client->adapter, mux_dev, ndev, sizeof(*priv), in mule_i2c_mux_probe()
63 if (!muxc) in mule_i2c_mux_probe()
66 priv = i2c_mux_priv(muxc); in mule_i2c_mux_probe()
73 platform_set_drvdata(pdev, muxc); in mule_i2c_mux_probe()
80 ret = mule_i2c_mux_select(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_probe()
92 ret = devm_add_action_or_reset(mux_dev, mule_i2c_mux_remove, muxc); in mule_i2c_mux_probe()
113 ret = mule_i2c_mux_select(muxc, reg); in mule_i2c_mux_probe()
120 ret = i2c_mux_add_adapter(muxc, 0, reg); in mule_i2c_mux_probe()
125 mule_i2c_mux_deselect(muxc, MULE_I2C_MUX_DEFAULT_DEV); in mule_i2c_mux_probe()