Lines Matching defs:i2c
6 #include <linux/i2c.h>
9 #include <linux/mdio/mdio-i2c.h>
211 * 0x56 (which with mdio-i2c, translates to a PHY address of 22).
213 * via address 0x51 (mdio-i2c will use RollBall protocol on this address).
231 struct i2c_adapter *i2c;
617 ret = i2c_transfer(sfp->i2c, msgs, ARRAY_SIZE(msgs));
649 ret = i2c_transfer(sfp->i2c, msgs, ARRAY_SIZE(msgs));
659 static int sfp_i2c_configure(struct sfp *sfp, struct i2c_adapter *i2c)
661 if (!i2c_check_functionality(i2c, I2C_FUNC_I2C))
664 sfp->i2c = i2c;
676 i2c_mii = mdio_i2c_alloc(sfp->dev, sfp->i2c, sfp->mdio_protocol);
2929 if (sfp->i2c)
2930 i2c_put_adapter(sfp->i2c);
2937 struct i2c_adapter *i2c;
2940 h = fwnode_find_reference(dev_fwnode(sfp->dev), "i2c-bus", 0);
2942 dev_err(sfp->dev, "missing 'i2c-bus' property\n");
2946 i2c = i2c_get_adapter_by_fwnode(h);
2947 if (!i2c) {
2952 err = sfp_i2c_configure(sfp, i2c);
2954 i2c_put_adapter(i2c);