Lines Matching defs:cmd
152 static long __epfs_ioctl(struct file *file, unsigned int cmd,
157 if (unlikely(_IOC_TYPE(cmd) != EPFS_IOCTL_MAGIC)) {
158 epfs_err("Failed to check epfs magic: %u", _IOC_TYPE(cmd));
161 if (unlikely(_IOC_NR(cmd) >= EPFS_IOCTL_MAXNR)) {
162 epfs_err("Failed to check ioctl number: %u", _IOC_NR(cmd));
165 if (unlikely(!access_ok((void __user *)arg, _IOC_SIZE(cmd)))) {
170 switch (cmd) {
181 static long epfs_compat_ioctl(struct file *file, unsigned int cmd,
184 return __epfs_ioctl(file, cmd, arg);
187 static long epfs_unlocked_ioctl(struct file *file, unsigned int cmd,
190 return __epfs_ioctl(file, cmd, arg);