Lines Matching defs:cn

841 			struct cld_net *cn = nn->cld_net;
845 cn->cn_has_legacy = true;
867 struct cld_net *cn = nn->cld_net;
894 spin_lock(&cn->cn_lock);
895 list_for_each_entry(tmp, &cn->cn_list, cu_list) {
903 spin_unlock(&cn->cn_lock);
994 struct cld_net *cn;
999 cn = kzalloc(sizeof(*cn), GFP_KERNEL);
1000 if (!cn) {
1005 cn->cn_pipe = rpc_mkpipe_data(&cld_upcall_ops, RPC_PIPE_WAIT_FOR_OPEN);
1006 if (IS_ERR(cn->cn_pipe)) {
1007 ret = PTR_ERR(cn->cn_pipe);
1010 spin_lock_init(&cn->cn_lock);
1011 INIT_LIST_HEAD(&cn->cn_list);
1013 dentry = nfsd4_cld_register_net(net, cn->cn_pipe);
1019 cn->cn_pipe->dentry = dentry;
1021 cn->cn_has_legacy = false;
1023 nn->cld_net = cn;
1027 rpc_destroy_pipe_data(cn->cn_pipe);
1029 kfree(cn);
1050 struct cld_net *cn = nn->cld_net;
1052 nfsd4_cld_unregister_net(net, cn->cn_pipe);
1053 rpc_destroy_pipe_data(cn->cn_pipe);
1054 if (cn->cn_tfm)
1055 crypto_free_shash(cn->cn_tfm);
1064 struct cld_net *cn = nn->cld_net;
1072 spin_lock(&cn->cn_lock);
1073 list_for_each_entry(tmp, &cn->cn_list, cu_list) {
1074 if (tmp->cu_u.cu_msg.cm_xid == cn->cn_xid) {
1075 cn->cn_xid++;
1076 spin_unlock(&cn->cn_lock);
1082 put_unaligned(cn->cn_xid++, &new->cu_u.cu_msg.cm_xid);
1083 new->cu_net = cn;
1084 list_add(&new->cu_list, &cn->cn_list);
1085 spin_unlock(&cn->cn_lock);
1095 struct cld_net *cn = victim->cu_net;
1097 spin_lock(&cn->cn_lock);
1099 spin_unlock(&cn->cn_lock);
1110 struct cld_net *cn = nn->cld_net;
1127 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1147 struct cld_net *cn = nn->cld_net;
1149 struct crypto_shash *tfm = cn->cn_tfm;
1192 ret = cld_pipe_upcall(cn->cn_pipe, cmsg, nn);
1213 struct cld_net *cn = nn->cld_net;
1230 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1255 struct cld_net *cn = nn->cld_net;
1273 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1339 struct cld_net *cn = nn->cld_net;
1341 struct crypto_shash *tfm = cn->cn_tfm;
1355 if (cn->cn_has_legacy) {
1412 struct cld_net *cn = nn->cld_net;
1421 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1439 struct cld_net *cn = nn->cld_net;
1449 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1468 struct cld_net *cn = nn->cld_net;
1477 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
1521 struct cld_net *cn = nn->cld_net;
1522 struct rpc_pipe *pipe = cn->cn_pipe;
1532 struct cld_net *cn = nn->cld_net;
1541 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn);
2150 struct cld_net *cn = nn->cld_net;
2157 if (!cn) {
2164 dentry = nfsd4_cld_register_sb(sb, cn->cn_pipe);
2169 cn->cn_pipe->dentry = dentry;
2172 if (cn->cn_pipe->dentry)
2173 nfsd4_cld_unregister_sb(cn->cn_pipe);