Searched refs:nbytes (Results 1 - 25 of 34) sorted by relevance

12

/fs/coda/
H A Dpsdev.c98 size_t nbytes, loff_t *off)
116 if ( nbytes < sizeof(struct coda_out_hdr) ) {
119 count = nbytes;
122 if ( nbytes > size ) {
125 nbytes = size;
127 CODA_ALLOC(dcbuf, union outputArgs *, nbytes);
128 if (copy_from_user(dcbuf, buf, nbytes)) {
129 CODA_FREE(dcbuf, nbytes);
137 CODA_FREE(dcbuf, nbytes);
144 count = nbytes;
97 coda_psdev_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *off) argument
203 coda_psdev_read(struct file * file, char __user * buf, size_t nbytes, loff_t *off) argument
[all...]
/fs/
H A Dsync.c224 * a file in the range offset .. (offset+nbytes-1) inclusive. If nbytes is
269 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes,
282 endbyte = offset + nbytes;
304 nbytes = 0;
308 if (nbytes == 0)
355 loff_t, offset, loff_t, nbytes)
357 return sys_sync_file_range(fd, offset, nbytes, flags);
H A Dbinfmt_misc.c531 bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) argument
542 res = simple_read_from_buffer(buf, nbytes, ppos, page, strlen(page));
650 bm_status_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
654 return simple_read_from_buffer(buf, nbytes, ppos, s, strlen(s));
/fs/xfs/
H A Dxfs_inode_item.c47 int *nbytes)
57 *nbytes += XFS_IFORK_DSIZE(ip);
64 *nbytes += ip->i_df.if_broot_bytes;
71 *nbytes += roundup(ip->i_df.if_bytes, 4);
89 int *nbytes)
99 *nbytes += XFS_IFORK_ASIZE(ip);
106 *nbytes += ip->i_afp->if_broot_bytes;
113 *nbytes += roundup(ip->i_afp->if_bytes, 4);
134 int *nbytes)
140 *nbytes
44 xfs_inode_item_data_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) argument
86 xfs_inode_item_attr_fork_size( struct xfs_inode_log_item *iip, int *nvecs, int *nbytes) argument
131 xfs_inode_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
[all...]
H A Dxfs_icreate_item.c49 int *nbytes)
52 *nbytes += sizeof(struct xfs_icreate_log);
46 xfs_icreate_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
H A Dxfs_dquot_item.c47 int *nbytes)
50 *nbytes += sizeof(struct xfs_dq_logformat) +
283 int *nbytes)
286 *nbytes += sizeof(struct xfs_qoff_logitem);
44 xfs_qm_dquot_logitem_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
280 xfs_qm_qoff_logitem_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
H A Dxfs_log_cil.c177 int nbytes = 0; local
186 lip->li_ops->iop_size(lip, &niovecs, &nbytes);
200 nbytes = 0;
206 * account for that slack space here. Then round nbytes up
210 nbytes += niovecs * sizeof(uint64_t);
211 nbytes = round_up(nbytes, sizeof(uint64_t));
221 buf_size = nbytes +
261 lv->lv_buf = (char *)lv + buf_size - nbytes;
266 ASSERT(lv->lv_buf_len <= nbytes);
[all...]
H A Dxfs_extfree_item.c89 int *nbytes)
92 *nbytes += xfs_efi_item_sizeof(EFI_ITEM(lip));
356 int *nbytes)
359 *nbytes += xfs_efd_item_sizeof(EFD_ITEM(lip));
86 xfs_efi_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
353 xfs_efd_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
H A Dxfs_buf_item.c66 int *nbytes)
81 *nbytes += xfs_buf_log_format_size(blfp) + XFS_BLF_CHUNK;
110 *nbytes += XFS_BLF_CHUNK;
135 int *nbytes)
151 *nbytes += xfs_buf_log_format_size(&bip->bli_formats[i]);
180 nvecs, nbytes);
62 xfs_buf_item_size_segment( struct xfs_buf_log_item *bip, struct xfs_buf_log_format *blfp, int *nvecs, int *nbytes) argument
132 xfs_buf_item_size( struct xfs_log_item *lip, int *nvecs, int *nbytes) argument
H A Dxfs_buf.c293 size_t nbytes, offset; local
369 nbytes = min_t(size_t, size, PAGE_SIZE - offset);
370 size -= nbytes;
1173 int rbytes, nbytes = PAGE_SIZE - offset; local
1175 if (nbytes > size)
1176 nbytes = size;
1178 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes,
1180 if (rbytes < nbytes)
1184 sector += BTOBB(nbytes);
1185 size -= nbytes;
[all...]
/fs/fuse/
H A Ddev.c294 unsigned nbytes = 0; local
298 nbytes += args[i].size;
300 return nbytes;
952 static int fuse_copy_pages(struct fuse_copy_state *cs, unsigned nbytes, argument
958 for (i = 0; i < req->num_pages && (nbytes || zeroing); i++) {
961 unsigned count = min(nbytes, req->page_descs[i].length);
968 nbytes -= count;
1046 size_t nbytes, struct fuse_req *req)
1064 if (nbytes < reqsize)
1099 size_t nbytes)
1198 fuse_dev_do_read(struct fuse_conn *fc, struct file *file, struct fuse_copy_state *cs, size_t nbytes) argument
1765 copy_out_args(struct fuse_copy_state *cs, struct fuse_out *out, unsigned nbytes) argument
1795 fuse_dev_do_write(struct fuse_conn *fc, struct fuse_copy_state *cs, size_t nbytes) argument
[all...]
H A Ddir.c1212 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, argument
1215 while (nbytes >= FUSE_NAME_OFFSET) {
1220 if (reclen > nbytes)
1230 nbytes -= reclen;
1344 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, argument
1353 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) {
1360 if (reclen > nbytes)
1378 nbytes -= reclen;
1391 size_t nbytes; local
1425 nbytes
[all...]
H A Dfile.c1286 size_t nbytes = 0; /* # bytes already packed in req */ local
1303 while (nbytes < *nbytesp && req->num_pages < req->max_pages) {
1308 *nbytesp - nbytes,
1315 nbytes += ret;
1333 *nbytesp = nbytes;
1378 size_t nbytes = min(count, nmax); local
1379 int err = fuse_get_user_pages(req, iter, &nbytes, write);
1386 nres = fuse_send_write(req, io, pos, nbytes, owner);
1388 nres = fuse_send_read(req, io, pos, nbytes, owner);
1396 } else if (nres > nbytes) {
[all...]
/fs/jfs/
H A Dxattr.c226 s32 nbytes, nb; local
260 nbytes = size;
266 nb = min(PSIZE, nbytes);
299 nbytes -= nb;
375 int nbytes, nb; local
383 nbytes = sizeDXD(&ji->ea);
384 if (!nbytes) {
385 jfs_error(sb, "nbytes is 0\n");
406 nb = min(PSIZE, nbytes);
418 nbytes
[all...]
H A Djfs_logmgr.c369 int nbytes; /* number of bytes to move */ local
444 nbytes = min(freespace, srclen);
446 memcpy(dst, src, nbytes);
447 dstoffset += nbytes;
460 srclen -= nbytes;
461 src += nbytes;
492 nbytes = min(freespace, srclen);
494 memcpy(dst, src, nbytes);
496 dstoffset += nbytes;
497 srclen -= nbytes;
[all...]
/fs/cifs/
H A Dsmb2proto.h131 unsigned int *nbytes, char **buf, int *buf_type);
135 unsigned int *nbytes, struct kvec *iov, int n_vec);
H A Dcifsproto.h393 unsigned int *nbytes, char **buf,
396 unsigned int *nbytes, const char *buf,
399 unsigned int *nbytes, struct kvec *iov, const int nvec);
H A Dsmb2pdu.c1822 unsigned int *nbytes, char **buf, int *buf_type)
1828 *nbytes = 0;
1847 *nbytes = le32_to_cpu(rsp->DataLength);
1848 if ((*nbytes > CIFS_MAX_MSGSIZE) ||
1849 (*nbytes > io_parms->length)) {
1851 *nbytes, io_parms->length);
1853 *nbytes = 0;
1859 *nbytes);
2012 unsigned int *nbytes, struct kvec *iov, int n_vec)
2018 *nbytes
1821 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, char **buf, int *buf_type) argument
2011 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, struct kvec *iov, int n_vec) argument
[all...]
H A Dcifssmb.c1647 unsigned int *nbytes, char **buf, int *pbuf_type)
1673 *nbytes = 0;
1715 *nbytes = data_length;
1723 *nbytes = 0;
1756 unsigned int *nbytes, const char *buf,
1771 *nbytes = 0;
1860 *nbytes = le16_to_cpu(pSMBr->CountHigh);
1861 *nbytes = (*nbytes) << 16;
1862 *nbytes
1646 CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, char **buf, int *pbuf_type) argument
1755 CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, const char *buf, const char __user *ubuf, const int long_op) argument
2161 CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, struct kvec *iov, int n_vec) argument
[all...]
/fs/nfs/
H A Dpnfs_dev.c67 unsigned int nbytes = NFS4_DEVICEID4_SIZE; local
70 while (nbytes--) {
H A Dnfs3xdr.c563 u32 nbytes; local
572 nbytes = 6 * 4;
574 nbytes += 4;
576 nbytes += 4;
578 nbytes += 4;
580 nbytes += 8;
582 nbytes += 8;
584 nbytes += 8;
585 p = xdr_reserve_space(xdr, nbytes);
/fs/nfsd/
H A Dnfs4xdr.c94 #define READMEM(x,nbytes) do { \
96 p += XDR_QUADLEN(nbytes); \
98 #define SAVEMEM(x,nbytes) do { \
100 savemem(argp, p, nbytes) : \
106 p += XDR_QUADLEN(nbytes); \
108 #define COPYMEM(x,nbytes) do { \
109 memcpy((x), p, nbytes); \
110 p += XDR_QUADLEN(nbytes); \
113 /* READ_BUF, read_buf(): nbytes must be <= PAGE_SIZE */
114 #define READ_BUF(nbytes) d
138 read_buf(struct nfsd4_compoundargs *argp, u32 nbytes) argument
226 savemem(struct nfsd4_compoundargs *argp, __be32 *p, int nbytes) argument
[all...]
/fs/xfs/libxfs/
H A Dxfs_dir2_sf.c450 int nbytes; /* temp for byte copies */ local
502 nbytes = (int)((char *)oldsfep - (char *)oldsfp);
503 memcpy(sfp, oldsfp, nbytes);
504 sfep = (xfs_dir2_sf_entry_t *)((char *)sfp + nbytes);
521 memcpy(sfep, oldsfep, old_isize - nbytes);
/fs/ocfs2/cluster/
H A Dnetdebug.c492 size_t nbytes, loff_t *ppos)
494 return simple_read_from_buffer(buf, nbytes, ppos, file->private_data,
491 o2net_debug_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
/fs/gfs2/
H A Dquota.c682 int err, nbytes; local
716 nbytes = sizeof(struct gfs2_quota);
759 nbytes = PAGE_CACHE_SIZE - offset;
760 memcpy(kaddr + offset, ptr, nbytes);
769 ptr = ptr + nbytes;
770 nbytes = sizeof(struct gfs2_quota) - nbytes;

Completed in 376 milliseconds

12