Home
last modified time | relevance | path

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

12

/fs/coda/
Dpsdev.c98 size_t nbytes, loff_t *off) in coda_psdev_write() argument
116 if ( nbytes < sizeof(struct coda_out_hdr) ) { in coda_psdev_write()
119 count = nbytes; in coda_psdev_write()
122 if ( nbytes > size ) { in coda_psdev_write()
125 nbytes = size; in coda_psdev_write()
127 CODA_ALLOC(dcbuf, union outputArgs *, nbytes); in coda_psdev_write()
128 if (copy_from_user(dcbuf, buf, nbytes)) { in coda_psdev_write()
129 CODA_FREE(dcbuf, nbytes); in coda_psdev_write()
137 CODA_FREE(dcbuf, nbytes); in coda_psdev_write()
144 count = nbytes; in coda_psdev_write()
[all …]
/fs/
Dsync.c284 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
297 endbyte = offset + nbytes; in SYSCALL_DEFINE4()
319 nbytes = 0; in SYSCALL_DEFINE4()
323 if (nbytes == 0) in SYSCALL_DEFINE4()
366 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
368 return sys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
Dbinfmt_misc.c630 bm_entry_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
642 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
771 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
775 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
/fs/fuse/
Ddev.c310 unsigned nbytes = 0; in len_args() local
314 nbytes += args[i].size; in len_args()
316 return nbytes; in len_args()
1012 static int fuse_copy_pages(struct fuse_copy_state *cs, unsigned nbytes, in fuse_copy_pages() argument
1018 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
1021 unsigned count = min(nbytes, req->page_descs[i].length); in fuse_copy_pages()
1028 nbytes -= count; in fuse_copy_pages()
1086 size_t nbytes, struct fuse_req *req) in fuse_read_interrupt() argument
1104 if (nbytes < reqsize) in fuse_read_interrupt()
1139 size_t nbytes) in fuse_read_single_forget() argument
[all …]
Ddir.c1209 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, in parse_dirfile() argument
1212 while (nbytes >= FUSE_NAME_OFFSET) { in parse_dirfile()
1217 if (reclen > nbytes) in parse_dirfile()
1227 nbytes -= reclen; in parse_dirfile()
1338 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, in parse_dirplusfile() argument
1347 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { in parse_dirplusfile()
1354 if (reclen > nbytes) in parse_dirplusfile()
1373 nbytes -= reclen; in parse_dirplusfile()
1386 size_t nbytes; in fuse_readdir() local
1423 nbytes = req->out.args[0].size; in fuse_readdir()
[all …]
Dfile.c1276 size_t nbytes = 0; /* # bytes already packed in req */ in fuse_get_user_pages() local
1294 while (nbytes < *nbytesp && req->num_pages < req->max_pages) { in fuse_get_user_pages()
1298 *nbytesp - nbytes, in fuse_get_user_pages()
1305 nbytes += ret; in fuse_get_user_pages()
1323 *nbytesp = nbytes; in fuse_get_user_pages()
1370 size_t nbytes = min(count, nmax); in fuse_direct_io() local
1371 err = fuse_get_user_pages(req, iter, &nbytes, write); in fuse_direct_io()
1372 if (err && !nbytes) in fuse_direct_io()
1376 nres = fuse_send_write(req, io, pos, nbytes, owner); in fuse_direct_io()
1378 nres = fuse_send_read(req, io, pos, nbytes, owner); in fuse_direct_io()
[all …]
/fs/xfs/
Dxfs_inode_item.c45 int *nbytes) in xfs_inode_item_data_fork_size() argument
55 *nbytes += XFS_IFORK_DSIZE(ip); in xfs_inode_item_data_fork_size()
62 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
69 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
87 int *nbytes) in xfs_inode_item_attr_fork_size() argument
97 *nbytes += XFS_IFORK_ASIZE(ip); in xfs_inode_item_attr_fork_size()
104 *nbytes += ip->i_afp->if_broot_bytes; in xfs_inode_item_attr_fork_size()
111 *nbytes += roundup(ip->i_afp->if_bytes, 4); in xfs_inode_item_attr_fork_size()
132 int *nbytes) in xfs_inode_item_size() argument
138 *nbytes += sizeof(struct xfs_inode_log_format) + in xfs_inode_item_size()
[all …]
Dxfs_dquot_item.c45 int *nbytes) in xfs_qm_dquot_logitem_size() argument
48 *nbytes += sizeof(struct xfs_dq_logformat) + in xfs_qm_dquot_logitem_size()
317 int *nbytes) in xfs_qm_qoff_logitem_size() argument
320 *nbytes += sizeof(struct xfs_qoff_logitem); in xfs_qm_qoff_logitem_size()
Dxfs_log_cil.c150 int nbytes = 0; in xlog_cil_alloc_shadow_bufs() local
159 lip->li_ops->iop_size(lip, &niovecs, &nbytes); in xlog_cil_alloc_shadow_bufs()
169 nbytes = 0; in xlog_cil_alloc_shadow_bufs()
179 nbytes += niovecs * sizeof(uint64_t); in xlog_cil_alloc_shadow_bufs()
180 nbytes = round_up(nbytes, sizeof(uint64_t)); in xlog_cil_alloc_shadow_bufs()
187 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
Dxfs_bmap_item.c60 int *nbytes) in xfs_bui_item_size() argument
65 *nbytes += xfs_bui_log_format_sizeof(buip->bui_format.bui_nextents); in xfs_bui_item_size()
236 int *nbytes) in xfs_bud_item_size() argument
239 *nbytes += sizeof(struct xfs_bud_log_format); in xfs_bud_item_size()
Dxfs_rmap_item.c58 int *nbytes) in xfs_rui_item_size() argument
63 *nbytes += xfs_rui_log_format_sizeof(ruip->rui_format.rui_nextents); in xfs_rui_item_size()
262 int *nbytes) in xfs_rud_item_size() argument
265 *nbytes += sizeof(struct xfs_rud_log_format); in xfs_rud_item_size()
Dxfs_refcount_item.c58 int *nbytes) in xfs_cui_item_size() argument
63 *nbytes += xfs_cui_log_format_sizeof(cuip->cui_format.cui_nextents); in xfs_cui_item_size()
240 int *nbytes) in xfs_cud_item_size() argument
243 *nbytes += sizeof(struct xfs_cud_log_format); in xfs_cud_item_size()
Dxfs_extfree_item.c70 int *nbytes) in xfs_efi_item_size() argument
73 *nbytes += xfs_efi_item_sizeof(EFI_ITEM(lip)); in xfs_efi_item_size()
332 int *nbytes) in xfs_efd_item_size() argument
335 *nbytes += xfs_efd_item_sizeof(EFD_ITEM(lip)); in xfs_efd_item_size()
Dxfs_icreate_item.c48 int *nbytes) in xfs_icreate_item_size() argument
51 *nbytes += sizeof(struct xfs_icreate_log); in xfs_icreate_item_size()
Dxfs_buf_item.c67 int *nbytes) in xfs_buf_item_size_segment() argument
82 *nbytes += xfs_buf_log_format_size(blfp) + XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
111 *nbytes += XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
136 int *nbytes) in xfs_buf_item_size() argument
152 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
181 nvecs, nbytes); in xfs_buf_item_size()
Dxfs_buf.c379 size_t nbytes, offset; in xfs_buf_allocate_memory() local
456 nbytes = min_t(size_t, size, PAGE_SIZE - offset); in xfs_buf_allocate_memory()
457 size -= nbytes; in xfs_buf_allocate_memory()
1325 int rbytes, nbytes = PAGE_SIZE - offset; in xfs_buf_ioapply_map() local
1327 if (nbytes > size) in xfs_buf_ioapply_map()
1328 nbytes = size; in xfs_buf_ioapply_map()
1330 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1332 if (rbytes < nbytes) in xfs_buf_ioapply_map()
1336 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
1337 size -= nbytes; in xfs_buf_ioapply_map()
/fs/jfs/
Dxattr.c224 s32 nbytes, nb; in ea_write() local
258 nbytes = size; in ea_write()
264 nb = min(PSIZE, nbytes); in ea_write()
297 nbytes -= nb; in ea_write()
373 int nbytes, nb; in ea_read() local
381 nbytes = sizeDXD(&ji->ea); in ea_read()
382 if (!nbytes) { in ea_read()
404 nb = min(PSIZE, nbytes); in ea_read()
416 nbytes -= nb; in ea_read()
Djfs_logmgr.c369 int nbytes; /* number of bytes to move */ in lmWriteRecord() local
444 nbytes = min(freespace, srclen); in lmWriteRecord()
446 memcpy(dst, src, nbytes); in lmWriteRecord()
447 dstoffset += nbytes; in lmWriteRecord()
460 srclen -= nbytes; in lmWriteRecord()
461 src += nbytes; in lmWriteRecord()
492 nbytes = min(freespace, srclen); in lmWriteRecord()
494 memcpy(dst, src, nbytes); in lmWriteRecord()
496 dstoffset += nbytes; in lmWriteRecord()
497 srclen -= nbytes; in lmWriteRecord()
[all …]
/fs/nfsd/
Dnfs4xdr.c110 #define READMEM(x,nbytes) do { \ argument
112 p += XDR_QUADLEN(nbytes); \
114 #define SAVEMEM(x,nbytes) do { \ argument
116 savemem(argp, p, nbytes) : \
122 p += XDR_QUADLEN(nbytes); \
124 #define COPYMEM(x,nbytes) do { \ argument
125 memcpy((x), p, nbytes); \
126 p += XDR_QUADLEN(nbytes); \
130 #define READ_BUF(nbytes) do { \ argument
131 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
[all …]
/fs/nfs/
Dnfs3xdr.c564 u32 nbytes; in encode_sattr3() local
573 nbytes = 6 * 4; in encode_sattr3()
575 nbytes += 4; in encode_sattr3()
577 nbytes += 4; in encode_sattr3()
579 nbytes += 4; in encode_sattr3()
581 nbytes += 8; in encode_sattr3()
583 nbytes += 8; in encode_sattr3()
585 nbytes += 8; in encode_sattr3()
586 p = xdr_reserve_space(xdr, nbytes); in encode_sattr3()
Dpnfs_dev.c67 unsigned int nbytes = NFS4_DEVICEID4_SIZE; in nfs4_deviceid_hash() local
70 while (nbytes--) { in nfs4_deviceid_hash()
/fs/cifs/
Dsmb2proto.h150 unsigned int *nbytes, char **buf, int *buf_type);
154 unsigned int *nbytes, struct kvec *iov, int n_vec);
Dcifsproto.h414 unsigned int *nbytes, char **buf,
417 unsigned int *nbytes, const char *buf);
419 unsigned int *nbytes, struct kvec *iov, const int nvec);
/fs/crypto/
Dfname.c134 #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) argument
/fs/xfs/libxfs/
Dxfs_dir2_sf.c440 int nbytes; /* temp for byte copies */ in xfs_dir2_sf_addname_hard() local
490 nbytes = (int)((char *)oldsfep - (char *)oldsfp); in xfs_dir2_sf_addname_hard()
491 memcpy(sfp, oldsfp, nbytes); in xfs_dir2_sf_addname_hard()
492 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes); in xfs_dir2_sf_addname_hard()
509 memcpy(sfep, oldsfep, old_isize - nbytes); in xfs_dir2_sf_addname_hard()

12