Lines Matching refs:muxc
22 static int i2c_mux_pinctrl_select(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_select() argument
24 struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_select()
29 static int i2c_mux_pinctrl_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_mux_pinctrl_deselect() argument
31 return i2c_mux_pinctrl_select(muxc, muxc->num_adapters); in i2c_mux_pinctrl_deselect()
77 struct i2c_mux_core *muxc; in i2c_mux_pinctrl_probe() local
95 muxc = i2c_mux_alloc(parent, dev, num_names, in i2c_mux_pinctrl_probe()
98 if (!muxc) { in i2c_mux_pinctrl_probe()
102 mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_probe()
104 platform_set_drvdata(pdev, muxc); in i2c_mux_pinctrl_probe()
137 muxc->deselect = i2c_mux_pinctrl_deselect; in i2c_mux_pinctrl_probe()
140 root = i2c_root_adapter(&muxc->parent->dev); in i2c_mux_pinctrl_probe()
142 muxc->mux_locked = true; in i2c_mux_pinctrl_probe()
145 muxc->mux_locked = false; in i2c_mux_pinctrl_probe()
149 if (muxc->mux_locked) in i2c_mux_pinctrl_probe()
153 for (i = 0; i < num_names - !!muxc->deselect; i++) { in i2c_mux_pinctrl_probe()
154 ret = i2c_mux_add_adapter(muxc, 0, i, 0); in i2c_mux_pinctrl_probe()
162 i2c_mux_del_adapters(muxc); in i2c_mux_pinctrl_probe()
171 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_mux_pinctrl_remove() local
173 i2c_mux_del_adapters(muxc); in i2c_mux_pinctrl_remove()
174 i2c_put_adapter(muxc->parent); in i2c_mux_pinctrl_remove()