Lines Matching defs:cmd
16 static long (*unified_collection_ioctl_cb[])(unsigned int cmd, void __user *argp) = {
20 static long unified_collection_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
25 if ((_IOC_TYPE(cmd) >= ARRAY_SIZE(unified_collection_ioctl_cb)) ||
26 (unified_collection_ioctl_cb[_IOC_TYPE(cmd)] == NULL)) {
27 pr_err("invalid ioctrl cmd %u, _IOC_TYPE(cmd)=%d", cmd, _IOC_TYPE(cmd));
31 return unified_collection_ioctl_cb[_IOC_TYPE(cmd)](cmd, argp);
35 static long unified_collection_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
37 return unified_collection_ioctl(filp, cmd, (unsigned long) compat_ptr(arg));