Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 35) 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/xfs/
Dxfs_inode_item.c47 int *nbytes) in xfs_inode_item_data_fork_size() argument
57 *nbytes += XFS_IFORK_DSIZE(ip); in xfs_inode_item_data_fork_size()
64 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
71 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
89 int *nbytes) in xfs_inode_item_attr_fork_size() argument
99 *nbytes += XFS_IFORK_ASIZE(ip); in xfs_inode_item_attr_fork_size()
106 *nbytes += ip->i_afp->if_broot_bytes; in xfs_inode_item_attr_fork_size()
113 *nbytes += roundup(ip->i_afp->if_bytes, 4); in xfs_inode_item_attr_fork_size()
134 int *nbytes) in xfs_inode_item_size() argument
140 *nbytes += sizeof(struct xfs_inode_log_format) + in xfs_inode_item_size()
[all …]
Dxfs_log_cil.c177 int nbytes = 0; in xlog_cil_insert_format_items() local
186 lip->li_ops->iop_size(lip, &niovecs, &nbytes); in xlog_cil_insert_format_items()
200 nbytes = 0; in xlog_cil_insert_format_items()
210 nbytes += niovecs * sizeof(uint64_t); in xlog_cil_insert_format_items()
211 nbytes = round_up(nbytes, sizeof(uint64_t)); in xlog_cil_insert_format_items()
221 buf_size = nbytes + in xlog_cil_insert_format_items()
261 lv->lv_buf = (char *)lv + buf_size - nbytes; in xlog_cil_insert_format_items()
266 ASSERT(lv->lv_buf_len <= nbytes); in xlog_cil_insert_format_items()
Dxfs_dquot_item.c47 int *nbytes) in xfs_qm_dquot_logitem_size() argument
50 *nbytes += sizeof(struct xfs_dq_logformat) + in xfs_qm_dquot_logitem_size()
283 int *nbytes) in xfs_qm_qoff_logitem_size() argument
286 *nbytes += sizeof(struct xfs_qoff_logitem); in xfs_qm_qoff_logitem_size()
Dxfs_extfree_item.c89 int *nbytes) in xfs_efi_item_size() argument
92 *nbytes += xfs_efi_item_sizeof(EFI_ITEM(lip)); in xfs_efi_item_size()
356 int *nbytes) in xfs_efd_item_size() argument
359 *nbytes += xfs_efd_item_sizeof(EFD_ITEM(lip)); in xfs_efd_item_size()
Dxfs_icreate_item.c49 int *nbytes) in xfs_icreate_item_size() argument
52 *nbytes += sizeof(struct xfs_icreate_log); in xfs_icreate_item_size()
Dxfs_buf_item.c66 int *nbytes) in xfs_buf_item_size_segment() argument
81 *nbytes += xfs_buf_log_format_size(blfp) + XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
110 *nbytes += XFS_BLF_CHUNK; in xfs_buf_item_size_segment()
135 int *nbytes) in xfs_buf_item_size() argument
151 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]); in xfs_buf_item_size()
180 nvecs, nbytes); in xfs_buf_item_size()
Dxfs_buf.c293 size_t nbytes, offset; in xfs_buf_allocate_memory() local
369 nbytes = min_t(size_t, size, PAGE_SIZE - offset); in xfs_buf_allocate_memory()
370 size -= nbytes; in xfs_buf_allocate_memory()
1183 int rbytes, nbytes = PAGE_SIZE - offset; in xfs_buf_ioapply_map() local
1185 if (nbytes > size) in xfs_buf_ioapply_map()
1186 nbytes = size; in xfs_buf_ioapply_map()
1188 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1190 if (rbytes < nbytes) in xfs_buf_ioapply_map()
1194 sector += BTOBB(nbytes); in xfs_buf_ioapply_map()
1195 size -= nbytes; in xfs_buf_ioapply_map()
/fs/
Dsync.c278 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
291 endbyte = offset + nbytes; in SYSCALL_DEFINE4()
313 nbytes = 0; in SYSCALL_DEFINE4()
317 if (nbytes == 0) in SYSCALL_DEFINE4()
364 loff_t, offset, loff_t, nbytes) in SYSCALL_DEFINE4() argument
366 return sys_sync_file_range(fd, offset, nbytes, flags); in SYSCALL_DEFINE4()
Dbinfmt_misc.c531 bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
542 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page)); in bm_entry_read()
650 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
654 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s)); in bm_status_read()
/fs/fuse/
Ddev.c295 unsigned nbytes = 0; in len_args() local
299 nbytes += args[i].size; in len_args()
301 return nbytes; in len_args()
953 static int fuse_copy_pages(struct fuse_copy_state *cs, unsigned nbytes, in fuse_copy_pages() argument
959 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
962 unsigned count = min(nbytes, req->page_descs[i].length); in fuse_copy_pages()
969 nbytes -= count; in fuse_copy_pages()
1047 size_t nbytes, struct fuse_req *req) in fuse_read_interrupt() argument
1065 if (nbytes < reqsize) in fuse_read_interrupt()
1100 size_t nbytes) in fuse_read_single_forget() argument
[all …]
Ddir.c1257 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, in parse_dirfile() argument
1260 while (nbytes >= FUSE_NAME_OFFSET) { in parse_dirfile()
1265 if (reclen > nbytes) in parse_dirfile()
1275 nbytes -= reclen; in parse_dirfile()
1389 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, in parse_dirplusfile() argument
1398 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { in parse_dirplusfile()
1405 if (reclen > nbytes) in parse_dirplusfile()
1424 nbytes -= reclen; in parse_dirplusfile()
1437 size_t nbytes; in fuse_readdir() local
1471 nbytes = req->out.args[0].size; in fuse_readdir()
[all …]
Dfile.c1310 size_t nbytes = 0; /* # bytes already packed in req */ in fuse_get_user_pages() local
1327 while (nbytes < *nbytesp && req->num_pages < req->max_pages) { in fuse_get_user_pages()
1332 *nbytesp - nbytes, in fuse_get_user_pages()
1339 nbytes += ret; in fuse_get_user_pages()
1357 *nbytesp = nbytes; in fuse_get_user_pages()
1402 size_t nbytes = min(count, nmax); in fuse_direct_io() local
1403 int err = fuse_get_user_pages(req, iter, &nbytes, write); in fuse_direct_io()
1410 nres = fuse_send_write(req, io, pos, nbytes, owner); in fuse_direct_io()
1412 nres = fuse_send_read(req, io, pos, nbytes, owner); in fuse_direct_io()
1420 } else if (nres > nbytes) { in fuse_direct_io()
[all …]
/fs/jfs/
Dxattr.c226 s32 nbytes, nb; in ea_write() local
260 nbytes = size; in ea_write()
266 nb = min(PSIZE, nbytes); in ea_write()
299 nbytes -= nb; in ea_write()
375 int nbytes, nb; in ea_read() local
383 nbytes = sizeDXD(&ji->ea); in ea_read()
384 if (!nbytes) { in ea_read()
406 nb = min(PSIZE, nbytes); in ea_read()
418 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.c94 #define READMEM(x,nbytes) do { \ argument
96 p += XDR_QUADLEN(nbytes); \
98 #define SAVEMEM(x,nbytes) do { \ argument
100 savemem(argp, p, nbytes) : \
106 p += XDR_QUADLEN(nbytes); \
108 #define COPYMEM(x,nbytes) do { \ argument
109 memcpy((x), p, nbytes); \
110 p += XDR_QUADLEN(nbytes); \
114 #define READ_BUF(nbytes) do { \ argument
115 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
[all …]
/fs/cifs/
Dsmb2proto.h136 unsigned int *nbytes, char **buf, int *buf_type);
140 unsigned int *nbytes, struct kvec *iov, int n_vec);
Dsmb2pdu.c1933 unsigned int *nbytes, char **buf, int *buf_type) in SMB2_read() argument
1939 *nbytes = 0; in SMB2_read()
1958 *nbytes = le32_to_cpu(rsp->DataLength); in SMB2_read()
1959 if ((*nbytes > CIFS_MAX_MSGSIZE) || in SMB2_read()
1960 (*nbytes > io_parms->length)) { in SMB2_read()
1962 *nbytes, io_parms->length); in SMB2_read()
1964 *nbytes = 0; in SMB2_read()
1970 *nbytes); in SMB2_read()
2123 unsigned int *nbytes, struct kvec *iov, int n_vec) in SMB2_write() argument
2129 *nbytes = 0; in SMB2_write()
[all …]
Dcifsproto.h398 unsigned int *nbytes, char **buf,
401 unsigned int *nbytes, const char *buf,
404 unsigned int *nbytes, struct kvec *iov, const int nvec);
/fs/nfs/
Dnfs3xdr.c563 u32 nbytes; in encode_sattr3() local
572 nbytes = 6 * 4; in encode_sattr3()
574 nbytes += 4; in encode_sattr3()
576 nbytes += 4; in encode_sattr3()
578 nbytes += 4; in encode_sattr3()
580 nbytes += 8; in encode_sattr3()
582 nbytes += 8; in encode_sattr3()
584 nbytes += 8; in encode_sattr3()
585 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/xfs/libxfs/
Dxfs_dir2_sf.c450 int nbytes; /* temp for byte copies */ in xfs_dir2_sf_addname_hard() local
502 nbytes = (int)((char *)oldsfep - (char *)oldsfp); in xfs_dir2_sf_addname_hard()
503 memcpy(sfp, oldsfp, nbytes); in xfs_dir2_sf_addname_hard()
504 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes); in xfs_dir2_sf_addname_hard()
521 memcpy(sfep, oldsfep, old_isize - nbytes); in xfs_dir2_sf_addname_hard()
/fs/gfs2/
Dquota.c682 int err, nbytes; in gfs2_adjust_quota() local
716 nbytes = sizeof(struct gfs2_quota); in gfs2_adjust_quota()
759 nbytes = PAGE_CACHE_SIZE - offset; in gfs2_adjust_quota()
760 memcpy(kaddr + offset, ptr, nbytes); in gfs2_adjust_quota()
769 ptr = ptr + nbytes; in gfs2_adjust_quota()
770 nbytes = sizeof(struct gfs2_quota) - nbytes; in gfs2_adjust_quota()
/fs/crypto/
Dfname.c138 #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) argument
/fs/ocfs2/cluster/
Dnetdebug.c492 size_t nbytes, loff_t *ppos) in o2net_debug_read() argument
494 return simple_read_from_buffer(buf, nbytes, ppos, file->private_data, in o2net_debug_read()

12