Lines Matching refs:adap
415 struct i2c_adapter adap;
2069 static s32 mlxbf_i2c_smbus_xfer(struct i2c_adapter *adap, u16 addr,
2087 dev_dbg(&adap->dev, "smbus quick, slave 0x%02x\n", addr);
2094 dev_dbg(&adap->dev, "smbus %s byte, slave 0x%02x.\n",
2101 dev_dbg(&adap->dev, "smbus %s byte data at 0x%02x, slave 0x%02x.\n",
2108 dev_dbg(&adap->dev, "smbus %s word data at 0x%02x, slave 0x%02x.\n",
2116 dev_dbg(&adap->dev, "i2c %s block data, %d bytes at 0x%02x, slave 0x%02x.\n",
2124 dev_dbg(&adap->dev, "smbus %s block data, %d bytes at 0x%02x, slave 0x%02x.\n",
2131 dev_dbg(&adap->dev, "process call, wr/rd at 0x%02x, slave 0x%02x.\n",
2140 dev_dbg(&adap->dev, "block process call, wr/rd %d bytes, slave 0x%02x.\n",
2145 dev_dbg(&adap->dev, "Unsupported I2C/SMBus command %d\n",
2150 priv = i2c_get_adapdata(adap);
2195 static u32 mlxbf_i2c_functionality(struct i2c_adapter *adap)
2283 struct i2c_adapter *adap;
2353 adap = &priv->adap;
2354 adap->owner = THIS_MODULE;
2355 adap->class = I2C_CLASS_HWMON;
2356 adap->algo = &mlxbf_i2c_algo;
2357 adap->quirks = &mlxbf_i2c_quirks;
2358 adap->dev.parent = dev;
2359 adap->dev.of_node = dev->of_node;
2360 adap->nr = priv->bus;
2362 snprintf(adap->name, sizeof(adap->name), "i2c%d", adap->nr);
2363 i2c_set_adapdata(adap, priv);
2403 ret = i2c_add_numbered_adapter(adap);
2454 i2c_del_adapter(&priv->adap);