Lines Matching refs:clp
853 struct nfs_client *clp = ERR_PTR(-EIO);
867 if (!IS_ERR(clp)) {
870 .net = clp->cl_net,
873 .servername = clp->cl_hostname,
878 if (da->da_transport != clp->cl_proto)
880 if (da->da_addr.ss_family != clp->cl_addr.ss_family)
883 rpc_clnt_add_xprt(clp->cl_rpcclient, &xprt_args,
887 clp = get_v3_ds_connect(mds_srv,
891 if (IS_ERR(clp))
893 clp->cl_rpcclient->cl_softerr = 0;
894 clp->cl_rpcclient->cl_softrtry = 0;
897 if (IS_ERR(clp)) {
898 status = PTR_ERR(clp);
903 WRITE_ONCE(ds->ds_clp, clp);
915 struct nfs_client *clp = ERR_PTR(-EIO);
927 if (!IS_ERR(clp) && clp->cl_mvops->session_trunk) {
930 .net = clp->cl_net,
933 .servername = clp->cl_hostname,
934 .xprtsec = clp->cl_xprtsec,
937 .clp = clp,
940 .add_xprt_test = clp->cl_mvops->session_trunk,
944 if (da->da_transport != clp->cl_proto &&
945 clp->cl_proto != XPRT_TRANSPORT_TCP_TLS)
960 * clp->cl_hostname. And set the protocol to
980 if (da->da_addr.ss_family != clp->cl_addr.ss_family)
987 xprtdata.cred = nfs4_get_clid_cred(clp);
988 rpc_clnt_add_xprt(clp->cl_rpcclient, &xprt_args,
998 clp = nfs4_set_ds_client(mds_srv,
1003 if (IS_ERR(clp))
1006 status = nfs4_init_ds_session(clp,
1009 nfs_put_client(clp);
1010 clp = ERR_PTR(-EIO);
1017 if (IS_ERR(clp)) {
1018 status = PTR_ERR(clp);
1023 WRITE_ONCE(ds->ds_clp, clp);