/fs/lockd/ |
D | host.c | 55 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 …]
|
D | mon.c | 223 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/ |
D | nfs4namespace.c | 488 struct sockaddr_storage *sap; in nfs4_try_replacing_one_location() local 493 sap = kmalloc(sizeof(*sap), GFP_KERNEL); in nfs4_try_replacing_one_location() 494 if (sap == NULL) in nfs4_try_replacing_one_location() 509 sap, sizeof(*sap), net, 0); in nfs4_try_replacing_one_location() 512 rpc_set_port((struct sockaddr *)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()
|
D | fs_context.c | 1042 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs23_parse_monolithic() local 1115 memcpy(sap, &data->addr, sizeof(data->addr)); in nfs23_parse_monolithic() 1120 if (sap->ss_family != AF_INET || in nfs23_parse_monolithic() 1121 !nfs_verify_server_address(sap)) in nfs23_parse_monolithic() 1276 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs4_parse_monolithic() local 1300 if (copy_from_user(sap, data->host_addr, data->host_addrlen)) in nfs4_parse_monolithic() 1302 if (!nfs_verify_server_address(sap)) in nfs4_parse_monolithic() 1304 ctx->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_parse_monolithic() 1390 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs_fs_context_validate() local 1424 if (!nfs_verify_server_address(sap)) in nfs_fs_context_validate() [all …]
|
D | super.c | 342 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid() local 345 switch (sap->sa_family) { in nfs_show_mountd_netid() 374 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options() local 379 switch (sap->sa_family) { in nfs_show_mountd_options() 381 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in nfs_show_mountd_options() 386 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in nfs_show_mountd_options() 828 .sap = &ctx->mount_server._address, in nfs_request_mount() 859 memcpy(request.sap, &ctx->nfs_server._address, in nfs_request_mount() 864 nfs_set_port(request.sap, &ctx->mount_server.port, 0); in nfs_request_mount()
|
D | nfs4client.c | 249 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() 1332 struct sockaddr_storage *sap, size_t salen, struct net *net) in nfs4_update_server() argument 1339 .dstaddr = (struct sockaddr *)sap, in nfs4_update_server() 1362 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
|
D | internal.h | 187 struct sockaddr_storage *sap; member 230 struct sockaddr_storage *sap, size_t salen, 912 static inline void nfs_set_port(struct sockaddr_storage *sap, int *port, in nfs_set_port() argument 918 rpc_set_port((struct sockaddr *)sap, *port); in nfs_set_port()
|
D | mount_clnt.c | 161 .address = (struct sockaddr *)info->sap, in nfs_mount() 248 .address = (struct sockaddr *)info->sap, in nfs_umount()
|
D | client.c | 283 const struct sockaddr *sap = (struct sockaddr *)data->addr; in nfs_match_client() local 322 if (!rpc_cmp_addr_port(sap, clap)) in nfs_match_client() 326 sap)) in nfs_match_client()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 2309 ff_layout_ntop4(const struct sockaddr *sap, char *buf, const size_t buflen) in ff_layout_ntop4() argument 2311 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in ff_layout_ntop4() 2317 ff_layout_ntop6_noscopeid(const struct sockaddr *sap, char *buf, in ff_layout_ntop6_noscopeid() argument 2320 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in ff_layout_ntop6_noscopeid() 2359 struct sockaddr *sap = (struct sockaddr *)&da->da_addr; in ff_layout_encode_netaddr() local 2366 switch (sap->sa_family) { in ff_layout_encode_netaddr() 2368 if (ff_layout_ntop4(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr() 2370 port = ntohs(((struct sockaddr_in *)sap)->sin_port); in ff_layout_encode_netaddr() 2373 if (ff_layout_ntop6_noscopeid(sap, addrbuf, sizeof(addrbuf)) == 0) in ff_layout_encode_netaddr() 2375 port = ntohs(((struct sockaddr_in6 *)sap)->sin6_port); in ff_layout_encode_netaddr()
|
/fs/nfsd/ |
D | nfsctl.c | 215 struct sockaddr *sap = (struct sockaddr *)&address; in write_unlock_ip() local 231 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip() 235 return nlmsvc_unlock_all_by_ip(sap); in write_unlock_ip()
|