Lines Matching refs:buf
61 char *buf, *p; in nfs4_pathname_string() local
69 p = buf = kmalloc(len + 1, GFP_KERNEL); in nfs4_pathname_string()
70 if (!buf) in nfs4_pathname_string()
82 return buf; in nfs4_pathname_string()
136 char *buf; in nfs4_validate_fspath() local
139 buf = kmalloc(4096, GFP_KERNEL); in nfs4_validate_fspath()
140 if (!buf) in nfs4_validate_fspath()
143 path = nfs4_path(dentry, buf, 4096); in nfs4_validate_fspath()
145 kfree(buf); in nfs4_validate_fspath()
151 kfree(buf); in nfs4_validate_fspath()
156 kfree(buf); in nfs4_validate_fspath()
301 const struct nfs4_string *buf = &location->servers[s]; in try_location() local
302 if (buf->len > len) in try_location()
303 len = buf->len; in try_location()
327 const struct nfs4_string *buf = &location->servers[s]; in try_location() local
329 if (memchr(buf->data, IPV6_SCOPE_DELIMITER, buf->len)) in try_location()
333 nfs_parse_server_name(buf->data, buf->len, in try_location()
342 memcpy(ctx->nfs_server.hostname, buf->data, buf->len); in try_location()
343 ctx->nfs_server.hostname[buf->len] = '\0'; in try_location()
346 memcpy(p, buf->data, buf->len); in try_location()
347 p += buf->len; in try_location()
499 const struct nfs4_string *buf = &location->servers[s]; in nfs4_try_replacing_one_location() local
502 if (buf->len <= 0 || buf->len > PAGE_SIZE) in nfs4_try_replacing_one_location()
505 if (memchr(buf->data, IPV6_SCOPE_DELIMITER, buf->len) != NULL) in nfs4_try_replacing_one_location()
508 salen = nfs_parse_server_name(buf->data, buf->len, in nfs4_try_replacing_one_location()
515 hostname = kmemdup_nul(buf->data, buf->len, GFP_KERNEL); in nfs4_try_replacing_one_location()