Lines Matching defs:arg
392 static long i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
397 dev_dbg(&client->adapter->dev, "ioctl, cmd=0x%02x, arg=0x%02lx\n",
398 cmd, arg);
403 if ((arg > 0x3ff) ||
404 (((client->flags & I2C_M_TEN) == 0) && arg > 0x7f))
406 if (cmd == I2C_SLAVE && i2cdev_check_addr(client->adapter, arg))
409 client->addr = arg;
412 if (arg)
425 if (arg)
432 return put_user(funcs, (unsigned long __user *)arg);
439 (struct i2c_rdwr_ioctl_data __user *)arg,
464 (struct i2c_smbus_ioctl_data __user *) arg,
473 if (arg > INT_MAX)
476 client->adapter->retries = arg;
479 if (arg > INT_MAX)
485 client->adapter->timeout = msecs_to_jiffies(arg * 10);
519 static long compat_i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
526 return put_user(funcs, (compat_ulong_t __user *)arg);
534 (struct i2c_rdwr_ioctl_data32 __user *)arg,
569 (void __user *) arg,
578 return i2cdev_ioctl(file, cmd, arg);