Home
last modified time | relevance | path

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

123

/fs/afs/
Dcache.c16 void *buffer, uint16_t buflen);
18 void *buffer, uint16_t buflen);
21 uint16_t buflen);
24 void *buffer, uint16_t buflen);
26 void *buffer, uint16_t buflen);
28 void *cookie_netfs_data, const void *buffer, uint16_t buflen);
31 void *buffer, uint16_t buflen);
34 void *buffer, uint16_t buflen);
38 void *buffer, uint16_t buflen);
41 uint16_t buflen);
[all …]
/fs/9p/
Dvfs_dir.c95 static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) in v9fs_alloc_rdir_buf() argument
99 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf()
116 int buflen; in v9fs_dir_readdir() local
124 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
126 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir()
130 kvec.iov_len = buflen; in v9fs_dir_readdir()
136 iov_iter_kvec(&to, READ | ITER_KVEC, &kvec, 1, buflen); in v9fs_dir_readdir()
180 int buflen; in v9fs_dir_readdir_dotl() local
187 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
189 rdir = v9fs_alloc_rdir_buf(file, buflen); in v9fs_dir_readdir_dotl()
[all …]
Dcache.c128 void *buffer, uint16_t buflen) in v9fs_cache_inode_get_aux() argument
140 uint16_t buflen) in v9fs_cache_inode_check_aux() argument
144 if (buflen != sizeof(v9inode->qid.version)) in v9fs_cache_inode_check_aux()
/fs/romfs/
Dstorage.c28 void *buf, size_t buflen) in romfs_mtd_read() argument
33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
34 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read()
108 void *buf, size_t buflen) in romfs_blk_read() argument
115 while (buflen > 0) { in romfs_blk_read()
117 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read()
124 buflen -= segment; in romfs_blk_read()
219 void *buf, size_t buflen) in romfs_dev_read() argument
226 if (buflen > limit - pos) in romfs_dev_read()
227 buflen = limit - pos; in romfs_dev_read()
[all …]
Dinternal.h43 void *buf, size_t buflen);
/fs/nfs/
Dnamespace.c50 char *nfs_path(char **p, struct dentry *dentry, char *buffer, ssize_t buflen, in nfs_path() argument
59 end = buffer+buflen; in nfs_path()
61 buflen--; in nfs_path()
70 buflen -= namelen + 1; in nfs_path()
71 if (buflen < 0) in nfs_path()
85 if (--buflen < 0) { in nfs_path()
106 buflen -= namelen; in nfs_path()
107 if (buflen < 0) { in nfs_path()
Dnfs4idmap.c171 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument
173 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string()
340 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name() argument
347 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
754 int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) in nfs_map_uid_to_name() argument
762 ret = nfs_idmap_lookup_name(id, "user", buf, buflen, idmap); in nfs_map_uid_to_name()
764 ret = nfs_map_numeric_to_string(id, buf, buflen); in nfs_map_uid_to_name()
768 int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) in nfs_map_gid_to_group() argument
776 ret = nfs_idmap_lookup_name(id, "group", buf, buflen, idmap); in nfs_map_gid_to_group()
778 ret = nfs_map_numeric_to_string(id, buf, buflen); in nfs_map_gid_to_group()
Dnfs4namespace.c33 char *buffer, ssize_t buflen) in nfs4_pathname_string() argument
35 char *end = buffer + buflen; in nfs4_pathname_string()
39 buflen--; in nfs4_pathname_string()
44 buflen -= component->len + 1; in nfs4_pathname_string()
45 if (buflen < 0) in nfs4_pathname_string()
83 static char *nfs4_path(struct dentry *dentry, char *buffer, ssize_t buflen) in nfs4_path() argument
86 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path()
Ddns_resolve.c219 static int nfs_dns_parse(struct cache_detail *cd, char *buf, int buflen) in nfs_dns_parse() argument
227 if (buf[buflen-1] != '\n') in nfs_dns_parse()
229 buf[buflen-1] = '\0'; in nfs_dns_parse()
/fs/
Ddcache.c3033 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument
3035 *buflen -= namelen; in prepend()
3036 if (*buflen < 0) in prepend()
3061 static int prepend_name(char **buffer, int *buflen, const struct qstr *name) in prepend_name() argument
3069 *buflen -= dlen + 1; in prepend_name()
3070 if (*buflen < 0) in prepend_name()
3102 char **buffer, int *buflen) in prepend_path() argument
3119 blen = *buflen; in prepend_path()
3133 blen = *buflen; in prepend_path()
3179 *buflen = blen; in prepend_path()
[all …]
Danon_inodes.c31 static char *anon_inodefs_dname(struct dentry *dentry, char *buffer, int buflen) in anon_inodefs_dname() argument
33 return dynamic_dname(dentry, buffer, buflen, "anon_inode:%s", in anon_inodefs_dname()
Dnsfs.c20 static char *ns_dname(struct dentry *dentry, char *buffer, int buflen) in ns_dname() argument
25 return dynamic_dname(dentry, buffer, buflen, "%s:[%lu]", in ns_dname()
/fs/proc/
Dkcore.c431 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
443 if (buflen == 0 || *fpos >= size) { in read_kcore()
449 if (buflen > size - *fpos) in read_kcore()
450 buflen = size - *fpos; in read_kcore()
457 if (buflen < tsz) in read_kcore()
458 tsz = buflen; in read_kcore()
471 buflen -= tsz; in read_kcore()
477 if (buflen == 0) in read_kcore()
487 if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) in read_kcore()
488 tsz = buflen; in read_kcore()
[all …]
Dvmcore.c184 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos, in __read_vmcore() argument
192 if (buflen == 0 || *fpos >= vmcore_size) in __read_vmcore()
196 if (buflen > vmcore_size - *fpos) in __read_vmcore()
197 buflen = vmcore_size - *fpos; in __read_vmcore()
201 tsz = min(elfcorebuf_sz - (size_t)*fpos, buflen); in __read_vmcore()
204 buflen -= tsz; in __read_vmcore()
210 if (buflen == 0) in __read_vmcore()
218 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, buflen); in __read_vmcore()
222 buflen -= tsz; in __read_vmcore()
228 if (buflen == 0) in __read_vmcore()
[all …]
Dself.c10 int buflen) in proc_self_readlink() argument
18 return readlink_copy(buffer, buflen, tmp); in proc_self_readlink()
Dthread_self.c10 int buflen) in proc_thread_self_readlink() argument
19 return readlink_copy(buffer, buflen, tmp); in proc_thread_self_readlink()
Dnamespaces.c61 static int proc_ns_readlink(struct dentry *dentry, char __user *buffer, int buflen) in proc_ns_readlink() argument
76 res = readlink_copy(buffer, buflen, name); in proc_ns_readlink()
/fs/kernfs/
Ddir.c42 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked() argument
44 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked()
119 char *buf, size_t buflen) in kernfs_path_from_node_locked() argument
130 return strlcpy(buf, "/", buflen); in kernfs_path_from_node_locked()
144 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
151 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
153 len < buflen ? buflen - len : 0); in kernfs_path_from_node_locked()
171 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name() argument
177 ret = kernfs_name_locked(kn, buf, buflen); in kernfs_name()
199 char *buf, size_t buflen) in kernfs_path_from_node() argument
[all …]
/fs/jffs2/
Dcompr_rubin.c32 unsigned int buflen; member
48 unsigned buflen, unsigned ofs, in init_pushpull() argument
52 pp->buflen = buflen; in init_pushpull()
59 if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) in pushbit()
/fs/xfs/libxfs/
Dxfs_symlink_remote.c46 int buflen = XFS_SYMLINK_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_symlink_blocks() local
48 return (pathlen + buflen - 1) / buflen; in xfs_symlink_blocks()
Dxfs_attr_remote.c57 int buflen = XFS_ATTR3_RMT_BUF_SPACE(mp, mp->m_sb.sb_blocksize); in xfs_attr3_rmt_blocks() local
58 return (attrlen + buflen - 1) / buflen; in xfs_attr3_rmt_blocks()
/fs/nfsd/
Dnfs4idmap.c197 idtoname_parse(struct cache_detail *cd, char *buf, int buflen) in idtoname_parse() argument
204 if (buf[buflen - 1] != '\n') in idtoname_parse()
206 buf[buflen - 1]= '\0'; in idtoname_parse()
360 nametoid_parse(struct cache_detail *cd, char *buf, int buflen) in nametoid_parse() argument
366 if (buf[buflen - 1] != '\n') in nametoid_parse()
368 buf[buflen - 1]= '\0'; in nametoid_parse()
Dnfsxdr.c505 int buflen, slen; in nfssvc_encode_entry() local
523 if ((buflen = cd->buflen - slen - 4) < 0) { in nfssvc_encode_entry()
537 cd->buflen = buflen; in nfssvc_encode_entry()
/fs/xfs/
Dxfs_ioctl32.c358 if (al_hreq.buflen < sizeof(struct attrlist) || in xfs_compat_attrlist_by_handle()
359 al_hreq.buflen > XFS_XATTR_LIST_MAX) in xfs_compat_attrlist_by_handle()
373 kbuf = kmem_zalloc_large(al_hreq.buflen, KM_SLEEP); in xfs_compat_attrlist_by_handle()
378 error = xfs_attr_list(XFS_I(d_inode(dentry)), kbuf, al_hreq.buflen, in xfs_compat_attrlist_by_handle()
383 if (copy_to_user(compat_ptr(al_hreq.buffer), kbuf, al_hreq.buflen)) in xfs_compat_attrlist_by_handle()
/fs/cifs/
Dtransport.c207 unsigned long buflen = 0; in rqst_len() local
211 buflen += iov[i].iov_len; in rqst_len()
215 buflen += rqst->rq_pagesz * (rqst->rq_npages - 1); in rqst_len()
216 buflen += rqst->rq_tailsz; in rqst_len()
219 return buflen; in rqst_len()

123