Lines Matching full:cn

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