Lines Matching refs:cn

796 	struct cld_net *cn = nn->cld_net;
839 cn->cn_has_legacy = true;
860 struct cld_net *cn = nn->cld_net;
887 spin_lock(&cn->cn_lock);
888 list_for_each_entry(tmp, &cn->cn_list, cu_list) {
896 spin_unlock(&cn->cn_lock);
987 struct cld_net *cn;
992 cn = kzalloc(sizeof(*cn), GFP_KERNEL);
993 if (!cn) {
998 cn->cn_pipe = rpc_mkpipe_data(&cld_upcall_ops, RPC_PIPE_WAIT_FOR_OPEN);
999 if (IS_ERR(cn->cn_pipe)) {
1000 ret = PTR_ERR(cn->cn_pipe);
1003 spin_lock_init(&cn->cn_lock);
1004 INIT_LIST_HEAD(&cn->cn_list);
1006 dentry = nfsd4_cld_register_net(net, cn->cn_pipe);
1012 cn->cn_pipe->dentry = dentry;
1013 cn->cn_has_legacy = false;
1014 nn->cld_net = cn;
1018 rpc_destroy_pipe_data(cn->cn_pipe);
1020 kfree(cn);
1041 struct cld_net *cn = nn->cld_net;
1043 nfsd4_cld_unregister_net(net, cn->cn_pipe);
1044 rpc_destroy_pipe_data(cn->cn_pipe);
1045 if (cn->cn_tfm)
1046 crypto_free_shash(cn->cn_tfm);
1055 struct cld_net *cn = nn->cld_net;
1063 spin_lock(&cn->cn_lock);
1064 list_for_each_entry(tmp, &cn->cn_list, cu_list) {
1065 if (tmp->cu_u.cu_msg.cm_xid == cn->cn_xid) {
1066 cn->cn_xid++;
1067 spin_unlock(&cn->cn_lock);
1073 put_unaligned(cn->cn_xid++, &new->cu_u.cu_msg.cm_xid);
1074 new->cu_net = cn;
1075 list_add(&new->cu_list, &cn->cn_list);
1076 spin_unlock(&cn->cn_lock);
1086 struct cld_net *cn = victim->cu_net;
1088 spin_lock(&cn->cn_lock);
1090 spin_unlock(&cn->cn_lock);
1101 struct cld_net *cn = nn->cld_net;
1118 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1138 struct cld_net *cn = nn->cld_net;
1140 struct crypto_shash *tfm = cn->cn_tfm;
1183 ret = cld_pipe_upcall(cn->cn_pipe, cmsg, nn);
1204 struct cld_net *cn = nn->cld_net;
1221 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1246 struct cld_net *cn = nn->cld_net;
1264 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1285 struct cld_net *cn = nn->cld_net;
1299 if (cn->cn_has_legacy) {
1328 struct cld_net *cn = nn->cld_net;
1332 struct crypto_shash *tfm = cn->cn_tfm;
1345 if (cn->cn_has_legacy) {
1398 struct cld_net *cn = nn->cld_net;
1407 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1425 struct cld_net *cn = nn->cld_net;
1435 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1454 struct cld_net *cn = nn->cld_net;
1463 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1507 struct cld_net *cn = nn->cld_net;
1508 struct rpc_pipe *pipe = cn->cn_pipe;
1518 struct cld_net *cn = nn->cld_net;
1527 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
2121 struct cld_net *cn = nn->cld_net;
2128 if (!cn) {
2135 dentry = nfsd4_cld_register_sb(sb, cn->cn_pipe);
2140 cn->cn_pipe->dentry = dentry;
2143 if (cn->cn_pipe->dentry)
2144 nfsd4_cld_unregister_sb(cn->cn_pipe);