Lines Matching refs:muxc
42 static int i2c_arbitrator_select(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_select() argument
44 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_select()
76 dev_err(muxc->dev, "Could not claim bus, timeout\n"); in i2c_arbitrator_select()
85 static int i2c_arbitrator_deselect(struct i2c_mux_core *muxc, u32 chan) in i2c_arbitrator_deselect() argument
87 const struct i2c_arbitrator_data *arb = i2c_mux_priv(muxc); in i2c_arbitrator_deselect()
101 struct i2c_mux_core *muxc; in i2c_arbitrator_probe() local
116 muxc = i2c_mux_alloc(NULL, dev, 1, sizeof(*arb), I2C_MUX_ARBITRATOR, in i2c_arbitrator_probe()
118 if (!muxc) in i2c_arbitrator_probe()
120 arb = i2c_mux_priv(muxc); in i2c_arbitrator_probe()
122 platform_set_drvdata(pdev, muxc); in i2c_arbitrator_probe()
162 muxc->parent = of_get_i2c_adapter_by_node(parent_np); in i2c_arbitrator_probe()
164 if (!muxc->parent) { in i2c_arbitrator_probe()
170 ret = i2c_mux_add_adapter(muxc, 0, 0, 0); in i2c_arbitrator_probe()
172 i2c_put_adapter(muxc->parent); in i2c_arbitrator_probe()
179 struct i2c_mux_core *muxc = platform_get_drvdata(pdev); in i2c_arbitrator_remove() local
181 i2c_mux_del_adapters(muxc); in i2c_arbitrator_remove()
182 i2c_put_adapter(muxc->parent); in i2c_arbitrator_remove()