Lines Matching refs:muxc
58 static int i2c_arbitrator_select(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_select() argument
60 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_select()
92 dev_err(muxc->dev, "Could not claim bus, timeout\n"); in i2c_arbitrator_select()
101 static int i2c_arbitrator_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_deselect() argument
103 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_deselect()
117 struct i2c_mux_core *muxc; in i2c_arbitrator_probe() local
133 muxc = i2c_mux_alloc(NULL, dev, 1, sizeof(*arb), I2C_MUX_ARBITRATOR, in i2c_arbitrator_probe()
135 if (!muxc) in i2c_arbitrator_probe()
137 arb = i2c_mux_priv(muxc); in i2c_arbitrator_probe()
139 platform_set_drvdata(pdev, muxc); in i2c_arbitrator_probe()
196 muxc->parent = of_get_i2c_adapter_by_node(parent_np); in i2c_arbitrator_probe()
198 if (!muxc->parent) { in i2c_arbitrator_probe()
204 ret = i2c_mux_add_adapter(muxc, 0, 0, 0); in i2c_arbitrator_probe()
206 i2c_put_adapter(muxc->parent); in i2c_arbitrator_probe()
213 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_arbitrator_remove() local
215 i2c_mux_del_adapters(muxc); in i2c_arbitrator_remove()
216 i2c_put_adapter(muxc->parent); in i2c_arbitrator_remove()