Lines Matching defs:adap
427 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);
2196 static u32 mlxbf_i2c_functionality(struct i2c_adapter *adap)
2324 struct i2c_adapter *adap;
2359 adap = &priv->adap;
2360 adap->owner = THIS_MODULE;
2361 adap->class = I2C_CLASS_HWMON;
2362 adap->algo = &mlxbf_i2c_algo;
2363 adap->quirks = &mlxbf_i2c_quirks;
2364 adap->dev.parent = dev;
2365 adap->dev.of_node = dev->of_node;
2366 adap->nr = priv->bus;
2368 snprintf(adap->name, sizeof(adap->name), "i2c%d", adap->nr);
2369 i2c_set_adapdata(adap, priv);
2413 ret = i2c_add_numbered_adapter(adap);
2453 i2c_del_adapter(&priv->adap);