Lines Matching refs:cmd
1752 unsigned int cmd, void __user *arg) in dispatch_ioctl() argument
1760 if (_IOC_TYPE(cmd) != '#' || in dispatch_ioctl()
1761 _IOC_NR(cmd) >= ARRAY_SIZE(ioctl_handlers) || in dispatch_ioctl()
1762 _IOC_SIZE(cmd) > sizeof(buffer)) in dispatch_ioctl()
1767 if (_IOC_DIR(cmd) & _IOC_WRITE) in dispatch_ioctl()
1768 if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd))) in dispatch_ioctl()
1771 ret = ioctl_handlers[_IOC_NR(cmd)](client, &buffer); in dispatch_ioctl()
1775 if (_IOC_DIR(cmd) & _IOC_READ) in dispatch_ioctl()
1776 if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd))) in dispatch_ioctl()
1783 unsigned int cmd, unsigned long arg) in fw_device_op_ioctl() argument
1785 return dispatch_ioctl(file->private_data, cmd, (void __user *)arg); in fw_device_op_ioctl()