Lines Matching refs:nfs_server
331 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
340 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
344 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
346 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP_TLS; in nfs_validate_transport_protocol()
368 switch (ctx->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
612 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
620 ctx->nfs_server.protocol = ret; in nfs_fs_context_parse_param()
673 ctx->nfs_server.port = result.uint_32; in nfs_fs_context_parse_param()
770 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
777 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
788 ctx->nfs_server.protocol = ret; in nfs_fs_context_parse_param()
825 &ctx->nfs_server.address, in nfs_fs_context_parse_param()
826 sizeof(ctx->nfs_server._address)); in nfs_fs_context_parse_param()
829 ctx->nfs_server.addrlen = len; in nfs_fs_context_parse_param()
856 ctx->nfs_server.nconnect = result.uint_32; in nfs_fs_context_parse_param()
862 ctx->nfs_server.max_connect = result.uint_32; in nfs_fs_context_parse_param()
987 kfree(ctx->nfs_server.hostname); in nfs_parse_source()
990 ctx->nfs_server.hostname = kmemdup_nul(dev_name, len, GFP_KERNEL); in nfs_parse_source()
991 if (!ctx->nfs_server.hostname) in nfs_parse_source()
996 ctx->nfs_server.export_path = kmemdup_nul(end, len, GFP_KERNEL); in nfs_parse_source()
997 if (!ctx->nfs_server.export_path) in nfs_parse_source()
1000 trace_nfs_mount_path(ctx->nfs_server.export_path); in nfs_parse_source()
1042 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs23_parse_monolithic()
1115 ctx->nfs_server.addrlen = sizeof(data->addr); in nfs23_parse_monolithic()
1116 ctx->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_parse_monolithic()
1122 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_parse_monolithic()
1124 ctx->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_parse_monolithic()
1125 if (!ctx->nfs_server.hostname) in nfs23_parse_monolithic()
1273 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs4_parse_monolithic()
1292 if (data->host_addrlen > sizeof(ctx->nfs_server.address)) in nfs4_parse_monolithic()
1296 ctx->nfs_server.addrlen = data->host_addrlen; in nfs4_parse_monolithic()
1301 ctx->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_parse_monolithic()
1319 ctx->nfs_server.hostname = c; in nfs4_parse_monolithic()
1324 ctx->nfs_server.export_path = c; in nfs4_parse_monolithic()
1346 ctx->nfs_server.protocol = data->proto; in nfs4_parse_monolithic()
1387 struct sockaddr_storage *sap = &ctx->nfs_server._address; in nfs_fs_context_validate()
1408 ctx->protofamily != ctx->nfs_server.address.sa_family) in nfs_fs_context_validate()
1416 if (ctx->mountfamily != ctx->nfs_server.address.sa_family) in nfs_fs_context_validate()
1430 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_fs_context_validate()
1444 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_fs_context_validate()
1448 nfs_set_port(sap, &ctx->nfs_server.port, port); in nfs_fs_context_validate()
1533 ctx->nfs_server.export_path = NULL; in nfs_fs_context_dup()
1534 ctx->nfs_server.hostname = NULL; in nfs_fs_context_dup()
1552 kfree(ctx->nfs_server.export_path); in nfs_fs_context_free()
1553 kfree(ctx->nfs_server.hostname); in nfs_fs_context_free()
1595 struct nfs_server *nfss = fc->root->d_sb->s_fs_info; in nfs_init_fs_context()
1608 ctx->nfs_server.port = nfss->port; in nfs_init_fs_context()
1609 ctx->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_init_fs_context()
1613 memcpy(&ctx->nfs_server._address, &nfss->nfs_client->cl_addr, in nfs_init_fs_context()
1614 ctx->nfs_server.addrlen); in nfs_init_fs_context()
1631 ctx->nfs_server.port = NFS_UNSPEC_PORT; in nfs_init_fs_context()
1632 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_init_fs_context()