Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 40) 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.c243 int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, in sync_file_range() argument
255 endbyte = offset + nbytes; in sync_file_range()
277 nbytes = 0; in sync_file_range()
281 if (nbytes == 0) in sync_file_range()
370 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() argument
379 ret = sync_file_range(f.file, offset, nbytes, flags); in ksys_sync_file_range()
385 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
388 return ksys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
394 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
396 return ksys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
Dbinfmt_misc.c583 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
595 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
723 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
727 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
/fs/fuse/
Dreaddir.c126 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, in parse_dirfile() argument
129 while (nbytes >= FUSE_NAME_OFFSET) { in parse_dirfile()
134 if (reclen > nbytes) in parse_dirfile()
143 nbytes -= reclen; in parse_dirfile()
286 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, in parse_dirplusfile() argument
295 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { in parse_dirplusfile()
302 if (reclen > nbytes) in parse_dirplusfile()
320 nbytes -= reclen; in parse_dirplusfile()
401 unsigned int nbytes = size - offset; in fuse_parse_cache() local
404 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()
993 static int fuse_copy_pages(struct fuse_copy_state *cs, unsigned nbytes, in fuse_copy_pages() argument
1001 for (i = 0; i < ap->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
1004 unsigned int count = min(nbytes, ap->descs[i].length); in fuse_copy_pages()
1010 nbytes -= count; in fuse_copy_pages()
1068 size_t nbytes, struct fuse_req *req) in fuse_read_interrupt() argument
1085 if (nbytes < reqsize) in fuse_read_interrupt()
1121 size_t nbytes) in fuse_read_single_forget() argument
[all …]
Dfile.c1386 size_t nbytes = 0; /* # bytes already packed in req */ in fuse_get_user_pages() local
1404 while (nbytes < *nbytesp && ap->num_pages < max_pages) { in fuse_get_user_pages()
1408 *nbytesp - nbytes, in fuse_get_user_pages()
1415 nbytes += ret; in fuse_get_user_pages()
1434 *nbytesp = nbytes; in fuse_get_user_pages()
1476 size_t nbytes = min(count, nmax); in fuse_direct_io() local
1478 err = fuse_get_user_pages(&ia->ap, iter, &nbytes, write, in fuse_direct_io()
1480 if (err && !nbytes) in fuse_direct_io()
1487 nres = fuse_send_write(ia, pos, nbytes, owner); in fuse_direct_io()
1489 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_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()
239 int *nbytes) in xfs_qm_qoff_logitem_size() argument
242 *nbytes += sizeof(struct xfs_qoff_logitem); in xfs_qm_qoff_logitem_size()
Dxfs_buf_item.c71 int *nbytes) in xfs_buf_item_size_segment() argument
86 *nbytes += xfs_buf_log_format_size(blfp) + XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
115 *nbytes += XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
141 int *nbytes) in xfs_buf_item_size() argument
157 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
186 nvecs, nbytes); in xfs_buf_item_size()
Dxfs_log_cil.c133 int nbytes = 0; in xlog_cil_alloc_shadow_bufs() local
142 lip->li_ops->iop_size(lip, &niovecs, &nbytes); in xlog_cil_alloc_shadow_bufs()
152 nbytes = 0; in xlog_cil_alloc_shadow_bufs()
162 nbytes += niovecs * sizeof(uint64_t); in xlog_cil_alloc_shadow_bufs()
163 nbytes = round_up(nbytes, sizeof(uint64_t)); in xlog_cil_alloc_shadow_bufs()
170 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
Dxfs_rmap_item.c66 int *nbytes) in xfs_rui_item_size() argument
71 *nbytes += xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents); in xfs_rui_item_size()
190 int *nbytes) in xfs_rud_item_size() argument
193 *nbytes += sizeof(struct xfs_rud_log_format); in xfs_rud_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_refcount_item.c67 int *nbytes) in xfs_cui_item_size() argument
72 *nbytes += xfs_cui_log_format_sizeof(cuip->cui_format.cui_nextents); in xfs_cui_item_size()
167 int *nbytes) in xfs_cud_item_size() argument
170 *nbytes += sizeof(struct xfs_cud_log_format); in xfs_cud_item_size()
Dxfs_buf.c359 size_t nbytes, offset; in xfs_buf_allocate_memory() local
447 nbytes = min_t(size_t, size, PAGE_SIZE - offset); in xfs_buf_allocate_memory()
448 size -= nbytes; in xfs_buf_allocate_memory()
1518 int rbytes, nbytes = PAGE_SIZE - offset; in xfs_buf_ioapply_map() local
1520 if (nbytes > size) in xfs_buf_ioapply_map()
1521 nbytes = size; in xfs_buf_ioapply_map()
1523 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1525 if (rbytes < nbytes) in xfs_buf_ioapply_map()
1529 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
1530 size -= nbytes; in xfs_buf_ioapply_map()
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_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()
/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/nfs/
Dnfs3xdr.c537 u32 nbytes; in encode_sattr3() local
546 nbytes = 6 * 4; in encode_sattr3()
548 nbytes += 4; in encode_sattr3()
550 nbytes += 4; in encode_sattr3()
552 nbytes += 4; in encode_sattr3()
554 nbytes += 8; in encode_sattr3()
556 nbytes += 8; in encode_sattr3()
558 nbytes += 8; in encode_sattr3()
559 p = xdr_reserve_space(xdr, nbytes); in encode_sattr3()
Dpnfs_dev.c66 unsigned int nbytes = NFS4_DEVICEID4_SIZE; in nfs4_deviceid_hash() local
69 while (nbytes--) { in nfs4_deviceid_hash()
/fs/nfsd/
Dnfs4xdr.c114 #define READMEM(x,nbytes) do { \ argument
116 p += XDR_QUADLEN(nbytes); \
118 #define SAVEMEM(x,nbytes) do { \ argument
120 savemem(argp, p, nbytes) : \
126 p += XDR_QUADLEN(nbytes); \
128 #define COPYMEM(x,nbytes) do { \ argument
129 memcpy((x), p, nbytes); \
130 p += XDR_QUADLEN(nbytes); \
134 #define READ_BUF(nbytes) do { \ argument
135 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
[all …]
/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.c181 #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) argument
/fs/ocfs2/cluster/
Dnetdebug.c474 size_t nbytes, loff_t *ppos) in o2net_debug_read() argument
476 return simple_read_from_buffer(buf, nbytes, ppos, file->private_data, in o2net_debug_read()

12