Lines Matching defs:error

42  * Returns 0 on success, -errno on error.
46 int error = -ENOTTY;
51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg);
52 if (error == -ENOIOCTLCMD)
53 error = -ENOTTY;
55 return error;
63 int error, ur_block;
69 error = get_user(ur_block, p);
70 if (error)
71 return error;
77 error = bmap(inode, &block);
80 error = -ERANGE;
86 if (error)
92 error = -EFAULT;
94 return error;
109 * Returns 0 on success, -errno on error, 1 if this was the last
166 * Returns 0 on success, or a negative error on failure.
205 int error;
220 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start,
226 error = -EFAULT;
228 return error;
345 int on, error;
347 error = get_user(on, argp);
348 if (error)
349 return error;
362 return error;
369 int on, error;
371 error = get_user(on, argp);
372 if (error)
373 return error;
380 error = filp->f_op->fasync(fd, filp, on);
382 error = -ENOTTY;
384 return error < 0 ? error : 0;
524 * Return: 0 on success, or a negative error on failure.
667 * Return: 0 on success, or a negative error on failure.
860 int error;
865 error = security_file_ioctl(f.file, cmd, arg);
866 if (error)
869 error = do_vfs_ioctl(f.file, fd, cmd, arg);
870 if (error == -ENOIOCTLCMD)
871 error = vfs_ioctl(f.file, cmd, arg);
875 return error;
918 int error;
923 error = security_file_ioctl_compat(f.file, cmd, arg);
924 if (error)
930 error = ioctl_file_clone(f.file, arg, 0, 0, 0);
937 error = compat_ioctl_preallocate(f.file, 0, compat_ptr(arg));
941 error = compat_ioctl_preallocate(f.file, FALLOC_FL_PUNCH_HOLE,
945 error = compat_ioctl_preallocate(f.file, FALLOC_FL_ZERO_RANGE,
965 error = do_vfs_ioctl(f.file, fd, cmd,
967 if (error != -ENOIOCTLCMD)
971 error = f.file->f_op->compat_ioctl(f.file, cmd, arg);
972 if (error == -ENOIOCTLCMD)
973 error = -ENOTTY;
980 return error;