Lines Matching refs:muxc
26 static int i2c_mux_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_select() argument
28 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select()
37 static int i2c_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_deselect() argument
39 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect()
77 struct i2c_mux_core *muxc; in i2c_mux_probe() local
106 muxc = i2c_mux_alloc(parent, dev, children, 0, 0, in i2c_mux_probe()
108 if (!muxc) { in i2c_mux_probe()
112 muxc->priv = mux; in i2c_mux_probe()
114 platform_set_drvdata(pdev, muxc); in i2c_mux_probe()
116 muxc->mux_locked = of_property_read_bool(np, "mux-locked"); in i2c_mux_probe()
134 ret = i2c_mux_add_adapter(muxc, 0, chan, 0); in i2c_mux_probe()
144 i2c_mux_del_adapters(muxc); in i2c_mux_probe()
153 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_remove() local
155 i2c_mux_del_adapters(muxc); in i2c_mux_remove()
156 i2c_put_adapter(muxc->parent); in i2c_mux_remove()