Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 42) sorted by relevance

12

/fs/coda/
Dpsdev.c92 size_t nbytes, loff_t *off) in coda_psdev_write() argument
103 if (nbytes < (2 * sizeof(u_int32_t))) in coda_psdev_write()
114 if ( nbytes < sizeof(struct coda_out_hdr) ) { in coda_psdev_write()
117 count = nbytes; in coda_psdev_write()
120 if ( nbytes > size ) { in coda_psdev_write()
123 nbytes = size; in coda_psdev_write()
125 dcbuf = kvmalloc(nbytes, GFP_KERNEL); in coda_psdev_write()
130 if (copy_from_user(dcbuf, buf, nbytes)) { in coda_psdev_write()
137 error = coda_downcall(vcp, hdr.opcode, dcbuf, nbytes); in coda_psdev_write()
146 count = nbytes; in coda_psdev_write()
[all …]
Dupcall.c855 size_t nbytes) in coda_downcall() argument
867 if (nbytes < sizeof(struct coda_purgeuser_out)) in coda_downcall()
872 if (nbytes < sizeof(struct coda_zapdir_out)) in coda_downcall()
877 if (nbytes < sizeof(struct coda_zapfile_out)) in coda_downcall()
882 if (nbytes < sizeof(struct coda_purgefid_out)) in coda_downcall()
887 if (nbytes < sizeof(struct coda_replace_out)) in coda_downcall()
/fs/
Dsync.c229 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range() argument
241 endbyte = offset + nbytes; in sync_file_range()
263 nbytes = 0; in sync_file_range()
267 if (nbytes == 0) in sync_file_range()
356 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() argument
365 ret = sync_file_range(f.file, offset, nbytes, flags); in ksys_sync_file_range()
371 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
374 return ksys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
380 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
382 return ksys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
Dbinfmt_misc.c585 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
597 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
725 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
729 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
/fs/fuse/
Dreaddir.c128 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, in parse_dirfile() argument
131 while (nbytes >= FUSE_NAME_OFFSET) { in parse_dirfile()
136 if (reclen > nbytes) in parse_dirfile()
145 nbytes -= reclen; in parse_dirfile()
288 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, in parse_dirplusfile() argument
297 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { in parse_dirplusfile()
304 if (reclen > nbytes) in parse_dirplusfile()
322 nbytes -= reclen; in parse_dirplusfile()
403 unsigned int nbytes = size - offset; in fuse_parse_cache() local
406 if (nbytes < FUSE_NAME_OFFSET || !dirent->namelen) in fuse_parse_cache()
[all …]
Ddev.c186 unsigned nbytes = 0; in fuse_len_args() local
190 nbytes += args[i].size; in fuse_len_args()
192 return nbytes; in fuse_len_args()
992 static int fuse_copy_pages(struct fuse_copy_state *cs, unsigned nbytes, in fuse_copy_pages() argument
1000 for (i = 0; i < ap->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
1003 unsigned int count = min(nbytes, ap->descs[i].length); in fuse_copy_pages()
1009 nbytes -= count; in fuse_copy_pages()
1067 size_t nbytes, struct fuse_req *req) in fuse_read_interrupt() argument
1084 if (nbytes < reqsize) in fuse_read_interrupt()
1120 size_t nbytes) in fuse_read_single_forget() argument
[all …]
Dfile.c1451 size_t nbytes = 0; /* # bytes already packed in req */ in fuse_get_user_pages() local
1469 while (nbytes < *nbytesp && ap->num_pages < max_pages) { in fuse_get_user_pages()
1473 *nbytesp - nbytes, in fuse_get_user_pages()
1480 nbytes += ret; in fuse_get_user_pages()
1499 *nbytesp = nbytes; in fuse_get_user_pages()
1541 size_t nbytes = min(count, nmax); in fuse_direct_io() local
1543 err = fuse_get_user_pages(&ia->ap, iter, &nbytes, write, in fuse_direct_io()
1545 if (err && !nbytes) in fuse_direct_io()
1552 nres = fuse_send_write(ia, pos, nbytes, owner); in fuse_direct_io()
1554 nres = fuse_send_read(ia, pos, nbytes, owner); in fuse_direct_io()
[all …]
/fs/xfs/
Dxfs_inode_item.c49 int *nbytes) in xfs_inode_item_data_fork_size() argument
59 *nbytes += XFS_IFORK_DSIZE(ip); in xfs_inode_item_data_fork_size()
66 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
73 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
90 int *nbytes) in xfs_inode_item_attr_fork_size() argument
100 *nbytes += XFS_IFORK_ASIZE(ip); in xfs_inode_item_attr_fork_size()
107 *nbytes += ip->i_afp->if_broot_bytes; in xfs_inode_item_attr_fork_size()
114 *nbytes += roundup(ip->i_afp->if_bytes, 4); in xfs_inode_item_attr_fork_size()
135 int *nbytes) in xfs_inode_item_size() argument
141 *nbytes += sizeof(struct xfs_inode_log_format) + in xfs_inode_item_size()
[all …]
Dxfs_buf_item.c90 int *nbytes) in xfs_buf_item_size_segment() argument
103 *nbytes += xfs_buf_log_format_size(blfp); in xfs_buf_item_size_segment()
119 *nbytes += nbits * XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
136 *nbytes += XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
164 *nbytes += XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
190 int *nbytes) in xfs_buf_item_size() argument
209 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
248 *nbytes = round_up(bytes, 512); in xfs_buf_item_size()
Dxfs_log_cil.c161 int nbytes = 0; in xlog_cil_alloc_shadow_bufs() local
170 lip->li_ops->iop_size(lip, &niovecs, &nbytes); in xlog_cil_alloc_shadow_bufs()
180 nbytes = 0; in xlog_cil_alloc_shadow_bufs()
190 nbytes += niovecs * sizeof(uint64_t); in xlog_cil_alloc_shadow_bufs()
191 nbytes = round_up(nbytes, sizeof(uint64_t)); in xlog_cil_alloc_shadow_bufs()
198 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
Dxfs_dquot_item.c33 int *nbytes) in xfs_qm_dquot_logitem_size() argument
36 *nbytes += sizeof(struct xfs_dq_logformat) + in xfs_qm_dquot_logitem_size()
Dxfs_refcount_item.c68 int *nbytes) in xfs_cui_item_size() argument
73 *nbytes += xfs_cui_log_format_sizeof(cuip->cui_format.cui_nextents); in xfs_cui_item_size()
168 int *nbytes) in xfs_cud_item_size() argument
171 *nbytes += sizeof(struct xfs_cud_log_format); in xfs_cud_item_size()
Dxfs_icreate_item.c39 int *nbytes) in xfs_icreate_item_size() argument
42 *nbytes += sizeof(struct xfs_icreate_log); in xfs_icreate_item_size()
Dxfs_bmap_item.c69 int *nbytes) in xfs_bui_item_size() argument
74 *nbytes += xfs_bui_log_format_sizeof(buip->bui_format.bui_nextents); in xfs_bui_item_size()
162 int *nbytes) in xfs_bud_item_size() argument
165 *nbytes += sizeof(struct xfs_bud_log_format); in xfs_bud_item_size()
Dxfs_rmap_item.c67 int *nbytes) in xfs_rui_item_size() argument
72 *nbytes += xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents); in xfs_rui_item_size()
191 int *nbytes) in xfs_rud_item_size() argument
194 *nbytes += sizeof(struct xfs_rud_log_format); in xfs_rud_item_size()
Dxfs_extfree_item.c84 int *nbytes) in xfs_efi_item_size() argument
87 *nbytes += xfs_efi_item_sizeof(EFI_ITEM(lip)); in xfs_efi_item_size()
264 int *nbytes) in xfs_efd_item_size() argument
267 *nbytes += xfs_efd_item_sizeof(EFD_ITEM(lip)); in xfs_efd_item_size()
Dxfs_buf.c1451 int rbytes, nbytes = PAGE_SIZE - offset; in xfs_buf_ioapply_map() local
1453 if (nbytes > size) in xfs_buf_ioapply_map()
1454 nbytes = size; in xfs_buf_ioapply_map()
1456 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1458 if (rbytes < nbytes) in xfs_buf_ioapply_map()
1462 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
1463 size -= nbytes; in xfs_buf_ioapply_map()
/fs/jfs/
Dxattr.c211 s32 nbytes, nb; in ea_write() local
245 nbytes = size; in ea_write()
251 nb = min(PSIZE, nbytes); in ea_write()
284 nbytes -= nb; in ea_write()
360 int nbytes, nb; in ea_read() local
368 nbytes = sizeDXD(&ji->ea); in ea_read()
369 if (!nbytes) { in ea_read()
391 nb = min(PSIZE, nbytes); in ea_read()
403 nbytes -= nb; in ea_read()
Djfs_logmgr.c356 int nbytes; /* number of bytes to move */ in lmWriteRecord() local
431 nbytes = min(freespace, srclen); in lmWriteRecord()
433 memcpy(dst, src, nbytes); in lmWriteRecord()
434 dstoffset += nbytes; in lmWriteRecord()
447 srclen -= nbytes; in lmWriteRecord()
448 src += nbytes; in lmWriteRecord()
479 nbytes = min(freespace, srclen); in lmWriteRecord()
481 memcpy(dst, src, nbytes); in lmWriteRecord()
483 dstoffset += nbytes; in lmWriteRecord()
484 srclen -= nbytes; in lmWriteRecord()
[all …]
/fs/ksmbd/
Dsmb2pdu.c4635 int nbytes = 0, streamlen, stream_name_len, next, idx = 0; in get_file_stream_info() local
4687 file_info = (struct smb2_file_stream_info *)&rsp->Buffer[nbytes]; in get_file_stream_info()
4697 nbytes += next; in get_file_stream_info()
4706 &rsp->Buffer[nbytes]; in get_file_stream_info()
4713 nbytes += sizeof(struct smb2_file_stream_info) + streamlen; in get_file_stream_info()
4720 rsp->OutputBufferLength = cpu_to_le32(nbytes); in get_file_stream_info()
6146 int nbytes = 0, err; in smb2_read_pipe() local
6174 nbytes = rpc_resp->payload_sz; in smb2_read_pipe()
6177 aux_payload_buf, nbytes); in smb2_read_pipe()
6191 rsp->DataLength = cpu_to_le32(nbytes); in smb2_read_pipe()
[all …]
Dvfs.c374 ssize_t nbytes = 0; in ksmbd_vfs_read() local
403 nbytes = kernel_read(filp, rbuf, count, pos); in ksmbd_vfs_read()
404 if (nbytes < 0) { in ksmbd_vfs_read()
405 pr_err("smb read failed, err = %zd\n", nbytes); in ksmbd_vfs_read()
406 return nbytes; in ksmbd_vfs_read()
410 return nbytes; in ksmbd_vfs_read()
/fs/nfs/
Dnfs3xdr.c539 u32 nbytes; in encode_sattr3() local
548 nbytes = 6 * 4; in encode_sattr3()
550 nbytes += 4; in encode_sattr3()
552 nbytes += 4; in encode_sattr3()
554 nbytes += 4; in encode_sattr3()
556 nbytes += 8; in encode_sattr3()
558 nbytes += 8; in encode_sattr3()
560 nbytes += 8; in encode_sattr3()
561 p = xdr_reserve_space(xdr, nbytes); in encode_sattr3()
Dpnfs_dev.c68 unsigned int nbytes = NFS4_DEVICEID4_SIZE; in nfs4_deviceid_hash() local
71 while (nbytes--) { in nfs4_deviceid_hash()
/fs/xfs/libxfs/
Dxfs_dir2_sf.c519 int nbytes; /* temp for byte copies */ in xfs_dir2_sf_addname_hard() local
567 nbytes = (int)((char *)oldsfep - (char *)oldsfp); in xfs_dir2_sf_addname_hard()
568 memcpy(sfp, oldsfp, nbytes); in xfs_dir2_sf_addname_hard()
569 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes); in xfs_dir2_sf_addname_hard()
586 memcpy(sfep, oldsfep, old_isize - nbytes); in xfs_dir2_sf_addname_hard()
/fs/crypto/
Dfname.c185 #define FSCRYPT_BASE64URL_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) argument

12