Home
last modified time | relevance | path

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

/fs/lockd/
Dhost.c54 const struct sockaddr *sap; /* address to search for */ member
73 static unsigned int __nlm_hash_addr4(const struct sockaddr *sap) in __nlm_hash_addr4() argument
75 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in __nlm_hash_addr4()
79 static unsigned int __nlm_hash_addr6(const struct sockaddr *sap) in __nlm_hash_addr6() argument
81 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in __nlm_hash_addr6()
89 static unsigned int nlm_hash_address(const struct sockaddr *sap) in nlm_hash_address() argument
93 switch (sap->sa_family) { in nlm_hash_address()
95 hash = __nlm_hash_addr4(sap); in nlm_hash_address()
98 hash = __nlm_hash_addr6(sap); in nlm_hash_address()
119 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
[all …]
Dmon.c220 const struct sockaddr *sap) in nsm_lookup_addr() argument
225 if (rpc_cmp_addr(nsm_addr(nsm), sap)) in nsm_lookup_addr()
269 static struct nsm_handle *nsm_create_handle(const struct sockaddr *sap, in nsm_create_handle() argument
282 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle()
312 const struct sockaddr *sap, in nsm_get_handle() argument
335 cached = nsm_lookup_addr(&ln->nsm_handles, sap); in nsm_get_handle()
358 new = nsm_create_handle(sap, salen, hostname, hostname_len); in nsm_get_handle()
/fs/nfs/
Dnfs4namespace.c434 struct sockaddr *sap; in nfs4_try_replacing_one_location() local
439 sap = kmalloc(addr_bufsize, GFP_KERNEL); in nfs4_try_replacing_one_location()
440 if (sap == NULL) in nfs4_try_replacing_one_location()
455 sap, addr_bufsize, net); in nfs4_try_replacing_one_location()
458 rpc_set_port(sap, NFS_PORT); in nfs4_try_replacing_one_location()
465 error = nfs4_update_server(server, hostname, sap, salen, net); in nfs4_try_replacing_one_location()
471 kfree(sap); in nfs4_try_replacing_one_location()
Dsuper.c531 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid() local
534 switch (sap->sa_family) { in nfs_show_mountd_netid()
570 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options() local
575 switch (sap->sa_family) { in nfs_show_mountd_options()
577 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in nfs_show_mountd_options()
582 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in nfs_show_mountd_options()
980 static void nfs_set_port(struct sockaddr *sap, int *port, in nfs_set_port() argument
986 rpc_set_port(sap, *port); in nfs_set_port()
1720 .sap = (struct sockaddr *) in nfs_request_mount()
1752 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
[all …]
Dnfs4client.c382 struct sockaddr *sap = (struct sockaddr *)&cb_addr; in nfs4_init_client() local
384 error = rpc_localaddr(clp->cl_rpcclient, sap, sizeof(cb_addr)); in nfs4_init_client()
387 error = rpc_ntop(sap, buf, sizeof(buf)); in nfs4_init_client()
1166 struct sockaddr *sap, size_t salen, struct net *net) in nfs4_update_server() argument
1173 .dstaddr = sap, in nfs4_update_server()
1209 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
Dmount_clnt.c159 .address = info->sap, in nfs_mount()
243 .address = info->sap, in nfs_umount()
Dinternal.h122 struct sockaddr *sap; member
178 struct sockaddr *sap, size_t salen,
Dclient.c296 const struct sockaddr *sap = data->addr; in nfs_match_client() local
315 if (!rpc_cmp_addr_port(sap, clap)) in nfs_match_client()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c1892 ff_layout_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) in ff_layout_ntop4() argument
1894 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in ff_layout_ntop4()
1900 ff_layout_ntop6_noscopeid(const struct sockaddr *sap, char *buf, in ff_layout_ntop6_noscopeid() argument
1903 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in ff_layout_ntop6_noscopeid()
1942 struct sockaddr *sap = (struct sockaddr *)&da->da_addr; in ff_layout_encode_netaddr() local
1950 switch (sap->sa_family) { in ff_layout_encode_netaddr()
1952 if (ff_layout_ntop4(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr()
1954 port = ntohs(((struct sockaddr_in *)sap)->sin_port); in ff_layout_encode_netaddr()
1959 if (ff_layout_ntop6_noscopeid(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr()
1961 port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in ff_layout_encode_netaddr()
/fs/nfsd/
Dnfsctl.c257 struct sockaddr *sap = (struct sockaddr *)&address; in write_unlock_ip() local
273 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
276 return nlmsvc_unlock_all_by_ip(sap); in write_unlock_ip()