Lines Matching refs:muxc
23 static int i2c_mux_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_select() argument
25 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select()
34 static int i2c_mux_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_deselect() argument
36 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect()
74 struct i2c_mux_core *muxc; in i2c_mux_probe() local
103 muxc = i2c_mux_alloc(parent, dev, children, 0, 0, in i2c_mux_probe()
105 if (!muxc) { in i2c_mux_probe()
109 muxc->priv = mux; in i2c_mux_probe()
111 platform_set_drvdata(pdev, muxc); in i2c_mux_probe()
113 muxc->mux_locked = of_property_read_bool(np, "mux-locked"); in i2c_mux_probe()
131 ret = i2c_mux_add_adapter(muxc, 0, chan, 0); in i2c_mux_probe()
141 i2c_mux_del_adapters(muxc); in i2c_mux_probe()
150 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_remove() local
152 i2c_mux_del_adapters(muxc); in i2c_mux_remove()
153 i2c_put_adapter(muxc->parent); in i2c_mux_remove()