Lines Matching defs:count
73 zfs_file_write_impl(zfs_file_t *fp, const void *buf, size_t count, loff_t *off)
76 return (kernel_write(fp, buf, count, off));
84 rc = vfs_write(fp, (__force const char __user __user *)buf, count, off);
98 * count - # of bytes to write
99 * resid - pointer to count of unwritten bytes (if short write)
104 zfs_file_write(zfs_file_t *fp, const void *buf, size_t count, ssize_t *resid)
109 rc = zfs_file_write_impl(fp, buf, count, &off);
116 *resid = count - rc;
117 } else if (rc != count) {
129 * count - # of bytes to write
131 * resid - pointer to count of unwritten bytes
136 zfs_file_pwrite(zfs_file_t *fp, const void *buf, size_t count, loff_t off,
141 rc = zfs_file_write_impl(fp, buf, count, &off);
146 *resid = count - rc;
147 } else if (rc != count) {
155 zfs_file_read_impl(zfs_file_t *fp, void *buf, size_t count, loff_t *off)
158 return (kernel_read(fp, buf, count, off));
166 rc = vfs_read(fp, (void __user *)buf, count, off);
179 * count - # of bytes to read
180 * resid - pointer to count of unread bytes (if short read)
185 zfs_file_read(zfs_file_t *fp, void *buf, size_t count, ssize_t *resid)
190 rc = zfs_file_read_impl(fp, buf, count, &off);
197 *resid = count - rc;
198 } else if (rc != count) {
210 * count - # of bytes to write
212 * resid - pointer to count of unwritten bytes (if short write)
217 zfs_file_pread(zfs_file_t *fp, void *buf, size_t count, loff_t off,
222 rc = zfs_file_read_impl(fp, buf, count, &off);
227 *resid = count - rc;
228 } else if (rc != count) {