Lines Matching defs:len
36 ssize_t len = 0;
42 if (component->len > NAME_MAX)
44 len += 1 + component->len; /* Adding "/foo" */
45 if (len > PATH_MAX)
48 return len;
60 ssize_t len;
64 len = nfs4_pathname_len(pathname);
65 if (len < 0)
66 return ERR_PTR(len);
67 *_len = len;
69 p = buf = kmalloc(len + 1, GFP_KERNEL);
77 memcpy(p, component->data, component->len);
78 p += component->len;
135 unsigned short len;
149 fs_path = nfs4_pathname_string(&locations->fs_path, &len);
155 n = strncmp(path, fs_path, len);
167 size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa,
172 ret = rpc_pton(net, string, len, sa, salen);
174 ret = rpc_uaddr2sockaddr(net, string, len, sa, salen);
176 ret = nfs_dns_resolve_name(net, string, len, sa, salen);
291 unsigned int len, s;
299 len = 0;
302 if (buf->len > len)
303 len = buf->len;
307 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL);
319 source = kmalloc(len + 1 + ctx->nfs_server.export_path_len + 1,
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;
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);