Lines Matching refs:cup

674 	struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, cu_msg);  in __cld_pipe_upcall()  local
685 wait_for_completion(&cup->cu_done); in __cld_pipe_upcall()
712 struct cld_upcall *tmp, *cup; in cld_pipe_downcall() local
732 cup = NULL; in cld_pipe_downcall()
736 cup = tmp; in cld_pipe_downcall()
737 list_del_init(&cup->cu_list); in cld_pipe_downcall()
744 if (!cup) { in cld_pipe_downcall()
749 if (copy_from_user(&cup->cu_msg, src, mlen) != 0) in cld_pipe_downcall()
752 complete(&cup->cu_done); in cld_pipe_downcall()
760 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, in cld_pipe_destroy_msg() local
767 complete(&cup->cu_done); in cld_pipe_destroy_msg()
926 struct cld_upcall *cup; in nfsd4_cld_create() local
934 cup = alloc_cld_upcall(cn); in nfsd4_cld_create()
935 if (!cup) { in nfsd4_cld_create()
940 cup->cu_msg.cm_cmd = Cld_Create; in nfsd4_cld_create()
941 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_create()
942 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_create()
945 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_create()
947 ret = cup->cu_msg.cm_status; in nfsd4_cld_create()
951 free_cld_upcall(cup); in nfsd4_cld_create()
963 struct cld_upcall *cup; in nfsd4_cld_remove() local
971 cup = alloc_cld_upcall(cn); in nfsd4_cld_remove()
972 if (!cup) { in nfsd4_cld_remove()
977 cup->cu_msg.cm_cmd = Cld_Remove; in nfsd4_cld_remove()
978 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_remove()
979 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_remove()
982 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_remove()
984 ret = cup->cu_msg.cm_status; in nfsd4_cld_remove()
988 free_cld_upcall(cup); in nfsd4_cld_remove()
1000 struct cld_upcall *cup; in nfsd4_cld_check() local
1008 cup = alloc_cld_upcall(cn); in nfsd4_cld_check()
1009 if (!cup) { in nfsd4_cld_check()
1015 cup->cu_msg.cm_cmd = Cld_Check; in nfsd4_cld_check()
1016 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_check()
1017 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_check()
1020 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_check()
1022 ret = cup->cu_msg.cm_status; in nfsd4_cld_check()
1026 free_cld_upcall(cup); in nfsd4_cld_check()
1034 struct cld_upcall *cup; in nfsd4_cld_grace_done() local
1037 cup = alloc_cld_upcall(cn); in nfsd4_cld_grace_done()
1038 if (!cup) { in nfsd4_cld_grace_done()
1043 cup->cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done()
1044 cup->cu_msg.cm_u.cm_gracetime = (int64_t)nn->boot_time; in nfsd4_cld_grace_done()
1045 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_grace_done()
1047 ret = cup->cu_msg.cm_status; in nfsd4_cld_grace_done()
1049 free_cld_upcall(cup); in nfsd4_cld_grace_done()