Lines Matching refs:count
289 size_t count)
294 ksmbd_debug(VFS, "read stream data pos : %llu, count : %zd\n",
295 *pos, count);
306 count = -EINVAL;
310 if (v_len - *pos < count)
311 count = v_len - *pos;
313 memcpy(buf, &stream_buf[*pos], count);
317 return count;
368 * @count: read byte count
374 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count,
384 if (unlikely(count == 0))
395 return ksmbd_vfs_stream_read(fp, rbuf, pos, count);
400 ret = check_lock_range(filp, *pos, *pos + count - 1, READ);
407 nbytes = kernel_read(filp, rbuf, count, pos);
418 size_t count)
426 ksmbd_debug(VFS, "write stream data pos : %llu, count : %zd\n",
427 *pos, count);
429 size = *pos + count;
432 count = (*pos + count) - XATTR_SIZE_MAX;
459 memcpy(&stream_buf[*pos], buf, count);
483 * @count: read byte count
491 char *buf, size_t count, loff_t *pos, bool sync,
509 err = ksmbd_vfs_stream_write(fp, buf, pos, count);
511 *written = count;
516 err = check_lock_range(filp, *pos, *pos + count - 1, WRITE);
530 err = kernel_write(filp, buf, count, pos);
1416 smb_acl->count = posix_acls->a_count;