Lines Matching refs:cup
710 struct cld_upcall *tmp, *cup; in cld_pipe_downcall() local
730 cup = NULL; in cld_pipe_downcall()
734 cup = tmp; in cld_pipe_downcall()
735 list_del_init(&cup->cu_list); in cld_pipe_downcall()
742 if (!cup) { in cld_pipe_downcall()
747 if (copy_from_user(&cup->cu_msg, src, mlen) != 0) in cld_pipe_downcall()
750 wake_up_process(cup->cu_task); in cld_pipe_downcall()
758 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, in cld_pipe_destroy_msg() local
765 wake_up_process(cup->cu_task); in cld_pipe_destroy_msg()
924 struct cld_upcall *cup; in nfsd4_cld_create() local
932 cup = alloc_cld_upcall(cn); in nfsd4_cld_create()
933 if (!cup) { in nfsd4_cld_create()
938 cup->cu_msg.cm_cmd = Cld_Create; in nfsd4_cld_create()
939 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_create()
940 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_create()
943 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_create()
945 ret = cup->cu_msg.cm_status; in nfsd4_cld_create()
949 free_cld_upcall(cup); in nfsd4_cld_create()
961 struct cld_upcall *cup; in nfsd4_cld_remove() local
969 cup = alloc_cld_upcall(cn); in nfsd4_cld_remove()
970 if (!cup) { in nfsd4_cld_remove()
975 cup->cu_msg.cm_cmd = Cld_Remove; in nfsd4_cld_remove()
976 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_remove()
977 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_remove()
980 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_remove()
982 ret = cup->cu_msg.cm_status; in nfsd4_cld_remove()
986 free_cld_upcall(cup); in nfsd4_cld_remove()
998 struct cld_upcall *cup; in nfsd4_cld_check() local
1006 cup = alloc_cld_upcall(cn); in nfsd4_cld_check()
1007 if (!cup) { in nfsd4_cld_check()
1013 cup->cu_msg.cm_cmd = Cld_Check; in nfsd4_cld_check()
1014 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_check()
1015 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_check()
1018 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_check()
1020 ret = cup->cu_msg.cm_status; in nfsd4_cld_check()
1024 free_cld_upcall(cup); in nfsd4_cld_check()
1032 struct cld_upcall *cup; in nfsd4_cld_grace_done() local
1035 cup = alloc_cld_upcall(cn); in nfsd4_cld_grace_done()
1036 if (!cup) { in nfsd4_cld_grace_done()
1041 cup->cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done()
1042 cup->cu_msg.cm_u.cm_gracetime = (int64_t)nn->boot_time; in nfsd4_cld_grace_done()
1043 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_grace_done()
1045 ret = cup->cu_msg.cm_status; in nfsd4_cld_grace_done()
1047 free_cld_upcall(cup); in nfsd4_cld_grace_done()