Lines Matching full:cn
849 struct cld_net *cn = nn->cld_net; in __cld_pipe_inprogress_downcall() local
853 cn->cn_has_legacy = true; in __cld_pipe_inprogress_downcall()
875 struct cld_net *cn = nn->cld_net; in cld_pipe_downcall() local
902 spin_lock(&cn->cn_lock); in cld_pipe_downcall()
903 list_for_each_entry(tmp, &cn->cn_list, cu_list) { in cld_pipe_downcall()
911 spin_unlock(&cn->cn_lock); in cld_pipe_downcall()
1002 struct cld_net *cn; in __nfsd4_init_cld_pipe() local
1007 cn = kzalloc(sizeof(*cn), GFP_KERNEL); in __nfsd4_init_cld_pipe()
1008 if (!cn) { in __nfsd4_init_cld_pipe()
1013 cn->cn_pipe = rpc_mkpipe_data(&cld_upcall_ops, RPC_PIPE_WAIT_FOR_OPEN); in __nfsd4_init_cld_pipe()
1014 if (IS_ERR(cn->cn_pipe)) { in __nfsd4_init_cld_pipe()
1015 ret = PTR_ERR(cn->cn_pipe); in __nfsd4_init_cld_pipe()
1018 spin_lock_init(&cn->cn_lock); in __nfsd4_init_cld_pipe()
1019 INIT_LIST_HEAD(&cn->cn_list); in __nfsd4_init_cld_pipe()
1021 dentry = nfsd4_cld_register_net(net, cn->cn_pipe); in __nfsd4_init_cld_pipe()
1027 cn->cn_pipe->dentry = dentry; in __nfsd4_init_cld_pipe()
1029 cn->cn_has_legacy = false; in __nfsd4_init_cld_pipe()
1031 nn->cld_net = cn; in __nfsd4_init_cld_pipe()
1035 rpc_destroy_pipe_data(cn->cn_pipe); in __nfsd4_init_cld_pipe()
1037 kfree(cn); in __nfsd4_init_cld_pipe()
1058 struct cld_net *cn = nn->cld_net; in nfsd4_remove_cld_pipe() local
1060 nfsd4_cld_unregister_net(net, cn->cn_pipe); in nfsd4_remove_cld_pipe()
1061 rpc_destroy_pipe_data(cn->cn_pipe); in nfsd4_remove_cld_pipe()
1062 if (cn->cn_tfm) in nfsd4_remove_cld_pipe()
1063 crypto_free_shash(cn->cn_tfm); in nfsd4_remove_cld_pipe()
1072 struct cld_net *cn = nn->cld_net; in alloc_cld_upcall() local
1080 spin_lock(&cn->cn_lock); in alloc_cld_upcall()
1081 list_for_each_entry(tmp, &cn->cn_list, cu_list) { in alloc_cld_upcall()
1082 if (tmp->cu_u.cu_msg.cm_xid == cn->cn_xid) { in alloc_cld_upcall()
1083 cn->cn_xid++; in alloc_cld_upcall()
1084 spin_unlock(&cn->cn_lock); in alloc_cld_upcall()
1090 put_unaligned(cn->cn_xid++, &new->cu_u.cu_msg.cm_xid); in alloc_cld_upcall()
1091 new->cu_net = cn; in alloc_cld_upcall()
1092 list_add(&new->cu_list, &cn->cn_list); in alloc_cld_upcall()
1093 spin_unlock(&cn->cn_lock); in alloc_cld_upcall()
1103 struct cld_net *cn = victim->cu_net; in free_cld_upcall() local
1105 spin_lock(&cn->cn_lock); in free_cld_upcall()
1107 spin_unlock(&cn->cn_lock); in free_cld_upcall()
1118 struct cld_net *cn = nn->cld_net; in nfsd4_cld_create() local
1135 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_create()
1155 struct cld_net *cn = nn->cld_net; in nfsd4_cld_create_v2() local
1157 struct crypto_shash *tfm = cn->cn_tfm; in nfsd4_cld_create_v2()
1200 ret = cld_pipe_upcall(cn->cn_pipe, cmsg, nn); in nfsd4_cld_create_v2()
1221 struct cld_net *cn = nn->cld_net; in nfsd4_cld_remove() local
1238 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_remove()
1263 struct cld_net *cn = nn->cld_net; in nfsd4_cld_check_v0() local
1281 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_check_v0()
1347 struct cld_net *cn = nn->cld_net; in nfsd4_cld_check_v2() local
1349 struct crypto_shash *tfm = cn->cn_tfm; in nfsd4_cld_check_v2()
1363 if (cn->cn_has_legacy) { in nfsd4_cld_check_v2()
1420 struct cld_net *cn = nn->cld_net; in nfsd4_cld_grace_start() local
1429 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_start()
1447 struct cld_net *cn = nn->cld_net; in nfsd4_cld_grace_done_v0() local
1457 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_done_v0()
1476 struct cld_net *cn = nn->cld_net; in nfsd4_cld_grace_done() local
1485 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_done()
1529 struct cld_net *cn = nn->cld_net; in cld_running() local
1530 struct rpc_pipe *pipe = cn->cn_pipe; in cld_running()
1540 struct cld_net *cn = nn->cld_net; in nfsd4_cld_get_version() local
1549 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_get_version()
2155 struct cld_net *cn = nn->cld_net; in rpc_pipefs_event() local
2162 if (!cn) { in rpc_pipefs_event()
2169 dentry = nfsd4_cld_register_sb(sb, cn->cn_pipe); in rpc_pipefs_event()
2174 cn->cn_pipe->dentry = dentry; in rpc_pipefs_event()
2177 if (cn->cn_pipe->dentry) in rpc_pipefs_event()
2178 nfsd4_cld_unregister_sb(cn->cn_pipe); in rpc_pipefs_event()