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