Home
last modified time | relevance | path

Searched refs:sap (Results 1 – 11 of 11) sorted by relevance

/fs/lockd/
Dhost.c55 const struct sockaddr *sap; /* address to search for */ member
75 static unsigned int __nlm_hash_addr4(const struct sockaddr *sap) in __nlm_hash_addr4() argument
77 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in __nlm_hash_addr4()
81 static unsigned int __nlm_hash_addr6(const struct sockaddr *sap) in __nlm_hash_addr6() argument
83 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in __nlm_hash_addr6()
91 static unsigned int nlm_hash_address(const struct sockaddr *sap) in nlm_hash_address() argument
95 switch (sap->sa_family) { in nlm_hash_address()
97 hash = __nlm_hash_addr4(sap); in nlm_hash_address()
100 hash = __nlm_hash_addr6(sap); in nlm_hash_address()
121 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
[all …]
Dmon.c223 const struct sockaddr *sap) in nsm_lookup_addr() argument
228 if (rpc_cmp_addr(nsm_addr(nsm), sap)) in nsm_lookup_addr()
272 static struct nsm_handle *nsm_create_handle(const struct sockaddr *sap, in nsm_create_handle() argument
288 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle()
318 const struct sockaddr *sap, in nsm_get_handle() argument
341 cached = nsm_lookup_addr(&ln->nsm_handles, sap); in nsm_get_handle()
364 new = nsm_create_handle(sap, salen, hostname, hostname_len); in nsm_get_handle()
/fs/nfs/
Dnfs4namespace.c488 struct sockaddr *sap; in nfs4_try_replacing_one_location() local
493 sap = kmalloc(addr_bufsize, GFP_KERNEL); in nfs4_try_replacing_one_location()
494 if (sap == NULL) in nfs4_try_replacing_one_location()
509 sap, addr_bufsize, net, 0); in nfs4_try_replacing_one_location()
512 rpc_set_port(sap, NFS_PORT); in nfs4_try_replacing_one_location()
519 error = nfs4_update_server(server, hostname, sap, salen, net); in nfs4_try_replacing_one_location()
525 kfree(sap); in nfs4_try_replacing_one_location()
Dfs_context.c958 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs23_parse_monolithic() local
1030 memcpy(sap, &data->addr, sizeof(data->addr)); in nfs23_parse_monolithic()
1033 if (sap->sa_family != AF_INET || in nfs23_parse_monolithic()
1034 !nfs_verify_server_address(sap)) in nfs23_parse_monolithic()
1190 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs4_parse_monolithic() local
1214 if (copy_from_user(sap, data->host_addr, data->host_addrlen)) in nfs4_parse_monolithic()
1216 if (!nfs_verify_server_address(sap)) in nfs4_parse_monolithic()
1218 ctx->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_parse_monolithic()
1304 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs_fs_context_validate() local
1338 if (!nfs_verify_server_address(sap)) in nfs_fs_context_validate()
[all …]
Dsuper.c338 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid() local
341 switch (sap->sa_family) { in nfs_show_mountd_netid()
370 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options() local
375 switch (sap->sa_family) { in nfs_show_mountd_options()
377 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in nfs_show_mountd_options()
382 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in nfs_show_mountd_options()
825 .sap = (struct sockaddr *) in nfs_request_mount()
857 memcpy(request.sap, &ctx->nfs_server.address, in nfs_request_mount()
862 nfs_set_port(request.sap, &ctx->mount_server.port, 0); in nfs_request_mount()
Dnfs4client.c249 struct sockaddr *sap = (struct sockaddr *)&cb_addr; in nfs4_alloc_client() local
251 err = rpc_localaddr(clp->cl_rpcclient, sap, sizeof(cb_addr)); in nfs4_alloc_client()
254 err = rpc_ntop(sap, buf, sizeof(buf)); in nfs4_alloc_client()
1339 struct sockaddr *sap, size_t salen, struct net *net) in nfs4_update_server() argument
1346 .dstaddr = sap, in nfs4_update_server()
1368 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
Dinternal.h183 struct sockaddr *sap; member
225 struct sockaddr *sap, size_t salen,
838 static inline void nfs_set_port(struct sockaddr *sap, int *port, in nfs_set_port() argument
844 rpc_set_port(sap, *port); in nfs_set_port()
Dmount_clnt.c161 .address = info->sap, in nfs_mount()
248 .address = info->sap, in nfs_umount()
Dclient.c287 const struct sockaddr *sap = data->addr; in nfs_match_client() local
326 if (!rpc_cmp_addr_port(sap, clap)) in nfs_match_client()
330 sap)) in nfs_match_client()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c2235 ff_layout_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) in ff_layout_ntop4() argument
2237 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in ff_layout_ntop4()
2243 ff_layout_ntop6_noscopeid(const struct sockaddr *sap, char *buf, in ff_layout_ntop6_noscopeid() argument
2246 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in ff_layout_ntop6_noscopeid()
2285 struct sockaddr *sap = (struct sockaddr *)&da->da_addr; in ff_layout_encode_netaddr() local
2292 switch (sap->sa_family) { in ff_layout_encode_netaddr()
2294 if (ff_layout_ntop4(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr()
2296 port = ntohs(((struct sockaddr_in *)sap)->sin_port); in ff_layout_encode_netaddr()
2299 if (ff_layout_ntop6_noscopeid(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr()
2301 port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in ff_layout_encode_netaddr()
/fs/nfsd/
Dnfsctl.c259 struct sockaddr *sap = (struct sockaddr *)&address; in write_unlock_ip() local
275 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
278 return nlmsvc_unlock_all_by_ip(sap); in write_unlock_ip()