Lines Matching defs:res
239 int i, res;
247 res = 0;
251 res = -EINVAL;
258 res = PTR_ERR(msgs[i].buf);
281 res = -EINVAL;
288 if (res < 0) {
294 return res;
297 res = i2c_transfer(client->adapter, msgs, nmsgs);
299 if (res >= 0 && (msgs[i].flags & I2C_M_RD)) {
302 res = -EFAULT;
308 return res;
316 int datasize, res;
381 res = i2c_smbus_xfer(client->adapter, client->addr, client->flags,
383 if (!res && ((size == I2C_SMBUS_PROC_CALL) ||
389 return res;
653 int res;
672 res = dev_set_name(&i2c_dev->dev, "i2c-%d", adap->nr);
673 if (res)
676 res = cdev_device_add(&i2c_dev->cdev, &i2c_dev->dev);
677 if (res)
746 int res;
750 res = register_chrdev_region(MKDEV(I2C_MAJOR, 0), I2C_MINORS, "i2c");
751 if (res)
756 res = PTR_ERR(i2c_dev_class);
762 res = bus_register_notifier(&i2c_bus_type, &i2cdev_notifier);
763 if (res)
777 return res;