Lines Matching refs:cup

705 	struct cld_upcall *tmp, *cup;  in cld_pipe_downcall()  local
725 cup = NULL; in cld_pipe_downcall()
729 cup = tmp; in cld_pipe_downcall()
730 list_del_init(&cup->cu_list); in cld_pipe_downcall()
737 if (!cup) { in cld_pipe_downcall()
742 if (copy_from_user(&cup->cu_msg, src, mlen) != 0) in cld_pipe_downcall()
745 wake_up_process(cup->cu_task); in cld_pipe_downcall()
753 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, in cld_pipe_destroy_msg() local
760 wake_up_process(cup->cu_task); in cld_pipe_destroy_msg()
919 struct cld_upcall *cup; in nfsd4_cld_create() local
927 cup = alloc_cld_upcall(cn); in nfsd4_cld_create()
928 if (!cup) { in nfsd4_cld_create()
933 cup->cu_msg.cm_cmd = Cld_Create; in nfsd4_cld_create()
934 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_create()
935 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_create()
938 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_create()
940 ret = cup->cu_msg.cm_status; in nfsd4_cld_create()
944 free_cld_upcall(cup); in nfsd4_cld_create()
956 struct cld_upcall *cup; in nfsd4_cld_remove() local
964 cup = alloc_cld_upcall(cn); in nfsd4_cld_remove()
965 if (!cup) { in nfsd4_cld_remove()
970 cup->cu_msg.cm_cmd = Cld_Remove; in nfsd4_cld_remove()
971 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_remove()
972 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_remove()
975 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_remove()
977 ret = cup->cu_msg.cm_status; in nfsd4_cld_remove()
981 free_cld_upcall(cup); in nfsd4_cld_remove()
993 struct cld_upcall *cup; in nfsd4_cld_check() local
1001 cup = alloc_cld_upcall(cn); in nfsd4_cld_check()
1002 if (!cup) { in nfsd4_cld_check()
1008 cup->cu_msg.cm_cmd = Cld_Check; in nfsd4_cld_check()
1009 cup->cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_check()
1010 memcpy(cup->cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_check()
1013 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_check()
1015 ret = cup->cu_msg.cm_status; in nfsd4_cld_check()
1019 free_cld_upcall(cup); in nfsd4_cld_check()
1027 struct cld_upcall *cup; in nfsd4_cld_grace_done() local
1030 cup = alloc_cld_upcall(cn); in nfsd4_cld_grace_done()
1031 if (!cup) { in nfsd4_cld_grace_done()
1036 cup->cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done()
1037 cup->cu_msg.cm_u.cm_gracetime = (int64_t)nn->boot_time; in nfsd4_cld_grace_done()
1038 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_msg); in nfsd4_cld_grace_done()
1040 ret = cup->cu_msg.cm_status; in nfsd4_cld_grace_done()
1042 free_cld_upcall(cup); in nfsd4_cld_grace_done()