Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 38) sorted by relevance

12

/fs/partitions/
Dldm.c680 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
684 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
689 if (base > buflen) in ldm_relative()
690 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative()
693 if (base + buffer[base] >= buflen) { in ldm_relative()
695 buffer[base], buflen); in ldm_relative()
751 static int ldm_get_vstr (const u8 *block, u8 *buffer, int buflen) in ldm_get_vstr() argument
758 if (length >= buflen) { in ldm_get_vstr()
759 ldm_error ("Truncating string %d -> %d.", length, buflen); in ldm_get_vstr()
760 length = buflen - 1; in ldm_get_vstr()
[all …]
/fs/nfsd/
Dnfs4xdr.c1222 __be32 **pp, int *buflen) in nfsd4_encode_components() argument
1230 if ((*buflen -= 4) < 0) in nfsd4_encode_components()
1239 if ((*buflen -= ((XDR_QUADLEN(strlen) << 2) + 4)) < 0) in nfsd4_encode_components()
1259 __be32 **pp, int *buflen) in nfsd4_encode_fs_location4() argument
1264 status = nfsd4_encode_components(':', location->hosts, &p, buflen); in nfsd4_encode_fs_location4()
1267 status = nfsd4_encode_components('/', location->path, &p, buflen); in nfsd4_encode_fs_location4()
1307 __be32 **pp, int *buflen) in nfsd4_encode_fs_locations() argument
1317 status = nfsd4_encode_components('/', root, &p, buflen); in nfsd4_encode_fs_locations()
1320 if ((*buflen -= 4) < 0) in nfsd4_encode_fs_locations()
1325 &p, buflen); in nfsd4_encode_fs_locations()
[all …]
Dvfs.c412 ssize_t buflen; in nfsd_getxattr() local
415 buflen = vfs_getxattr(dentry, key, NULL, 0); in nfsd_getxattr()
416 if (buflen <= 0) in nfsd_getxattr()
417 return buflen; in nfsd_getxattr()
419 *buf = kmalloc(buflen, GFP_KERNEL); in nfsd_getxattr()
423 ret = vfs_getxattr(dentry, key, *buf, buflen); in nfsd_getxattr()
435 size_t buflen; in set_nfsv4_acl_one() local
439 buflen = posix_acl_xattr_size(pacl->a_count); in set_nfsv4_acl_one()
440 buf = kmalloc(buflen, GFP_KERNEL); in set_nfsv4_acl_one()
445 len = posix_acl_to_xattr(pacl, buf, buflen); in set_nfsv4_acl_one()
[all …]
Dnfs4idmap.c206 idtoname_parse(struct cache_detail *cd, char *buf, int buflen) in idtoname_parse() argument
213 if (buf[buflen - 1] != '\n') in idtoname_parse()
215 buf[buflen - 1]= '\0'; in idtoname_parse()
377 nametoid_parse(struct cache_detail *cd, char *buf, int buflen) in nametoid_parse() argument
383 if (buf[buflen - 1] != '\n') in nametoid_parse()
385 buf[buflen - 1]= '\0'; in nametoid_parse()
Dnfsxdr.c509 int buflen, slen; in nfssvc_encode_entry() local
526 if ((buflen = cd->buflen - slen - 4) < 0) { in nfssvc_encode_entry()
540 cd->buflen = buflen; in nfssvc_encode_entry()
/fs/proc/
Dkcore.c259 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
269 if (buflen == 0 || *fpos >= size) { in read_kcore()
275 if (buflen > size - *fpos) in read_kcore()
276 buflen = size - *fpos; in read_kcore()
283 if (buflen < tsz) in read_kcore()
284 tsz = buflen; in read_kcore()
297 buflen -= tsz; in read_kcore()
303 if (buflen == 0) in read_kcore()
313 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
314 tsz = buflen; in read_kcore()
[all …]
Dvmcore.c96 size_t buflen, loff_t *fpos) in read_vmcore() argument
103 if (buflen == 0 || *fpos >= vmcore_size) in read_vmcore()
107 if (buflen > vmcore_size - *fpos) in read_vmcore()
108 buflen = vmcore_size - *fpos; in read_vmcore()
113 if (buflen < tsz) in read_vmcore()
114 tsz = buflen; in read_vmcore()
117 buflen -= tsz; in read_vmcore()
123 if (buflen == 0) in read_vmcore()
130 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_vmcore()
131 tsz = buflen; in read_vmcore()
[all …]
/fs/9p/
Dvfs_dir.c75 int buflen; in v9fs_dir_readdir() local
82 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
83 statbuf = kmalloc(buflen, GFP_KERNEL); in v9fs_dir_readdir()
88 err = v9fs_file_readn(filp, statbuf, NULL, buflen, in v9fs_dir_readdir()
95 err = p9stat_read(statbuf + i, buflen-i, &st, in v9fs_dir_readdir()
Dvfs_inode.c905 static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen) in v9fs_readlink() argument
933 strncpy(buffer, st->extension, buflen); in v9fs_readlink()
938 retval = buflen; in v9fs_readlink()
954 int buflen) in v9fs_vfs_readlink() argument
963 if (buflen > PATH_MAX) in v9fs_vfs_readlink()
964 buflen = PATH_MAX; in v9fs_vfs_readlink()
969 retval = v9fs_readlink(dentry, link, buflen); in v9fs_vfs_readlink()
/fs/nfs/
Dnamespace.c49 char *buffer, ssize_t buflen) in nfs_path() argument
51 char *end = buffer+buflen; in nfs_path()
55 buflen--; in nfs_path()
59 buflen -= namelen + 1; in nfs_path()
60 if (buflen < 0) in nfs_path()
72 buflen -= namelen; in nfs_path()
73 if (buflen < 0) in nfs_path()
Dnfs4namespace.c29 char *buffer, ssize_t buflen) in nfs4_pathname_string() argument
31 char *end = buffer + buflen; in nfs4_pathname_string()
35 buflen--; in nfs4_pathname_string()
40 buflen -= component->len + 1; in nfs4_pathname_string()
41 if (buflen < 0) in nfs4_pathname_string()
57 char *buffer, ssize_t buflen) in nfs4_path() argument
67 return nfs_path(srvpath, mnt_parent->mnt_root, dentry, buffer, buflen); in nfs4_path()
Dinternal.h188 char *buffer, ssize_t buflen);
205 char *buffer, ssize_t buflen) in nfs_devname() argument
208 dentry, buffer, buflen); in nfs_devname()
Didmap.c358 char __user *dst, size_t buflen) in idmap_pipe_upcall() argument
361 size_t mlen = min(msg->len, buflen); in idmap_pipe_upcall()
479 static unsigned int fnvhash32(const void *buf, size_t buflen) in fnvhash32() argument
481 const unsigned char *p, *end = (const unsigned char *)buf + buflen; in fnvhash32()
Dnfs4proc.c2656 static void buf_to_pages(const void *buf, size_t buflen, in buf_to_pages() argument
2663 while (p < buf + buflen) { in buf_to_pages()
2690 static inline ssize_t nfs4_read_cached_acl(struct inode *inode, char *buf, size_t buflen) in nfs4_read_cached_acl() argument
2705 if (acl->len > buflen) in nfs4_read_cached_acl()
2736 static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t buflen) in __nfs4_get_acl_uncached() argument
2742 .acl_len = buflen, in __nfs4_get_acl_uncached()
2744 size_t resp_len = buflen; in __nfs4_get_acl_uncached()
2754 if (buflen < PAGE_SIZE) { in __nfs4_get_acl_uncached()
2766 buf_to_pages(buf, buflen, args.acl_pages, &args.acl_pgbase); in __nfs4_get_acl_uncached()
2777 if (resp_len > buflen) in __nfs4_get_acl_uncached()
[all …]
/fs/
Ddcache.c1882 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument
1884 *buflen -= namelen; in prepend()
1885 if (*buflen < 0) in prepend()
1892 static int prepend_name(char **buffer, int *buflen, struct qstr *name) in prepend_name() argument
1894 return prepend(buffer, buflen, name->name, name->len); in prepend_name()
1916 char *buffer, int buflen) in __d_path() argument
1920 char *end = buffer + buflen; in __d_path()
1924 prepend(&end, &buflen, "\0", 1); in __d_path()
1926 (prepend(&end, &buflen, " (deleted)", 10) != 0)) in __d_path()
1929 if (buflen < 1) in __d_path()
[all …]
/fs/cifs/
Dlink.c228 cifs_readlink(struct dentry *direntry, char __user *pBuffer, int buflen) in cifs_readlink() argument
258 full_path, inode, pBuffer, buflen)); in cifs_readlink()
259 if (buflen > PATH_MAX) in cifs_readlink()
262 len = buflen; in cifs_readlink()
Dcifsproto.h258 char *syminfo, const int buflen,
263 char *symlinkinfo, const int buflen, __u16 fid,
364 __u16 fid, struct cifs_ntsd **acl_inf, __u32 *buflen);
369 char *acl_inf, const int buflen, const int acl_type,
373 const char *local_acl, const int buflen, const int acl_type,
Dxattr.c269 __u32 buflen = 0; in cifs_getxattr() local
280 &buflen); in cifs_getxattr()
Dcifsfs.h89 int buflen);
/fs/jffs2/
Dcompr_rubin.c29 unsigned int buflen; member
45 unsigned buflen, unsigned ofs, in init_pushpull() argument
49 pp->buflen = buflen; in init_pushpull()
56 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) in pushbit()
/fs/ocfs2/
Dsymlink.c104 int buflen) in ocfs2_readlink() argument
123 ret = vfs_readlink(dentry, buffer, buflen, link); in ocfs2_readlink()
/fs/gfs2/
Drgrp.c81 unsigned int buflen, u32 block, in gfs2_setbit() argument
88 end = buf1 + offset + buflen; in gfs2_setbit()
117 unsigned int buflen, u32 block) in gfs2_testbit() argument
125 end = buffer + buflen; in gfs2_testbit()
149 static u32 gfs2_bitfit(const u8 *buffer, unsigned int buflen, u32 goal, in gfs2_bitfit() argument
162 end = buffer + buflen; in gfs2_bitfit()
222 unsigned int buflen, u8 state) in gfs2_bitcount() argument
225 const u8 *end = buffer + buflen; in gfs2_bitcount()
/fs/xfs/linux-2.6/
Dxfs_ioctl.c312 int buflen, in do_readlink() argument
322 if (len > (unsigned) buflen) in do_readlink()
323 len = buflen; in do_readlink()
431 if (al_hreq.buflen > XATTR_LIST_MAX) in xfs_attrlist_by_handle()
444 kbuf = kmalloc(al_hreq.buflen, GFP_KERNEL); in xfs_attrlist_by_handle()
449 error = -xfs_attr_list(XFS_I(dentry->d_inode), kbuf, al_hreq.buflen, in xfs_attrlist_by_handle()
454 if (copy_to_user(al_hreq.buffer, kbuf, al_hreq.buflen)) in xfs_attrlist_by_handle()
Dxfs_ioctl32.c369 if (al_hreq.buflen > XATTR_LIST_MAX) in xfs_compat_attrlist_by_handle()
383 kbuf = kmalloc(al_hreq.buflen, GFP_KERNEL); in xfs_compat_attrlist_by_handle()
388 error = -xfs_attr_list(XFS_I(dentry->d_inode), kbuf, al_hreq.buflen, in xfs_compat_attrlist_by_handle()
393 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle()
/fs/reiserfs/
Dnamei.c425 int buflen, paste_size; in reiserfs_add_entry() local
443 buflen = DEH_SIZE + ROUND_UP(namelen); in reiserfs_add_entry()
444 if (buflen > sizeof(small_buf)) { in reiserfs_add_entry()
445 buffer = kmalloc(buflen, GFP_NOFS); in reiserfs_add_entry()
453 STAT_DATA_V1) ? (DEH_SIZE + namelen) : buflen; in reiserfs_add_entry()

12