Lines Matching refs:cup
717 struct cld_upcall *tmp, *cup; in cld_pipe_downcall() local
737 cup = NULL; in cld_pipe_downcall()
741 cup = tmp; in cld_pipe_downcall()
742 list_del_init(&cup->cu_list); in cld_pipe_downcall()
749 if (!cup) { in cld_pipe_downcall()
754 if (copy_from_user(&cup->cu_msg, src, mlen) != 0) in cld_pipe_downcall()
757 wake_up_process(cup->cu_task); in cld_pipe_downcall()
765 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, in cld_pipe_destroy_msg() local
772 wake_up_process(cup->cu_task); in cld_pipe_destroy_msg()
931 struct cld_upcall *cup; in nfsd4_cld_create() local
939 cup = alloc_cld_upcall(cn); in nfsd4_cld_create()
940 if (!cup) { in nfsd4_cld_create()
945 cup->cu_msg.cm_cmd = Cld_Create; in nfsd4_cld_create()
946 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_create()
947 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_create()
950 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_create()
952 ret = cup->cu_msg.cm_status; in nfsd4_cld_create()
956 free_cld_upcall(cup); in nfsd4_cld_create()
968 struct cld_upcall *cup; in nfsd4_cld_remove() local
976 cup = alloc_cld_upcall(cn); in nfsd4_cld_remove()
977 if (!cup) { in nfsd4_cld_remove()
982 cup->cu_msg.cm_cmd = Cld_Remove; in nfsd4_cld_remove()
983 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_remove()
984 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_remove()
987 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_remove()
989 ret = cup->cu_msg.cm_status; in nfsd4_cld_remove()
993 free_cld_upcall(cup); in nfsd4_cld_remove()
1005 struct cld_upcall *cup; in nfsd4_cld_check() local
1013 cup = alloc_cld_upcall(cn); in nfsd4_cld_check()
1014 if (!cup) { in nfsd4_cld_check()
1020 cup->cu_msg.cm_cmd = Cld_Check; in nfsd4_cld_check()
1021 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_check()
1022 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_check()
1025 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_check()
1027 ret = cup->cu_msg.cm_status; in nfsd4_cld_check()
1031 free_cld_upcall(cup); in nfsd4_cld_check()
1039 struct cld_upcall *cup; in nfsd4_cld_grace_done() local
1042 cup = alloc_cld_upcall(cn); in nfsd4_cld_grace_done()
1043 if (!cup) { in nfsd4_cld_grace_done()
1048 cup->cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done()
1049 cup->cu_msg.cm_u.cm_gracetime = (int64_t)nn->boot_time; in nfsd4_cld_grace_done()
1050 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_grace_done()
1052 ret = cup->cu_msg.cm_status; in nfsd4_cld_grace_done()
1054 free_cld_upcall(cup); in nfsd4_cld_grace_done()