Lines Matching refs:cup

754 	struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, cu_u);  in __cld_pipe_upcall()  local
765 wait_for_completion(&cup->cu_done); in __cld_pipe_upcall()
854 struct cld_upcall *tmp, *cup; in cld_pipe_downcall() local
886 cup = NULL; in cld_pipe_downcall()
890 cup = tmp; in cld_pipe_downcall()
892 list_del_init(&cup->cu_list); in cld_pipe_downcall()
899 if (!cup) { in cld_pipe_downcall()
907 if (copy_from_user(&cup->cu_u.cu_msg_v2, src, mlen) != 0) in cld_pipe_downcall()
910 complete(&cup->cu_done); in cld_pipe_downcall()
918 struct cld_upcall *cup = container_of(cmsg, struct cld_upcall, in cld_pipe_destroy_msg() local
925 complete(&cup->cu_done); in cld_pipe_destroy_msg()
1099 struct cld_upcall *cup; in nfsd4_cld_create() local
1107 cup = alloc_cld_upcall(nn); in nfsd4_cld_create()
1108 if (!cup) { in nfsd4_cld_create()
1113 cup->cu_u.cu_msg.cm_cmd = Cld_Create; in nfsd4_cld_create()
1114 cup->cu_u.cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_create()
1115 memcpy(cup->cu_u.cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_create()
1118 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_create()
1120 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_create()
1124 free_cld_upcall(cup); in nfsd4_cld_create()
1136 struct cld_upcall *cup; in nfsd4_cld_create_v2() local
1148 cup = alloc_cld_upcall(nn); in nfsd4_cld_create_v2()
1149 if (!cup) { in nfsd4_cld_create_v2()
1154 cmsg = &cup->cu_u.cu_msg_v2; in nfsd4_cld_create_v2()
1190 free_cld_upcall(cup); in nfsd4_cld_create_v2()
1202 struct cld_upcall *cup; in nfsd4_cld_remove() local
1210 cup = alloc_cld_upcall(nn); in nfsd4_cld_remove()
1211 if (!cup) { in nfsd4_cld_remove()
1216 cup->cu_u.cu_msg.cm_cmd = Cld_Remove; in nfsd4_cld_remove()
1217 cup->cu_u.cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_remove()
1218 memcpy(cup->cu_u.cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_remove()
1221 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_remove()
1223 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_remove()
1227 free_cld_upcall(cup); in nfsd4_cld_remove()
1244 struct cld_upcall *cup; in nfsd4_cld_check_v0() local
1252 cup = alloc_cld_upcall(nn); in nfsd4_cld_check_v0()
1253 if (!cup) { in nfsd4_cld_check_v0()
1259 cup->cu_u.cu_msg.cm_cmd = Cld_Check; in nfsd4_cld_check_v0()
1260 cup->cu_u.cu_msg.cm_u.cm_name.cn_len = clp->cl_name.len; in nfsd4_cld_check_v0()
1261 memcpy(cup->cu_u.cu_msg.cm_u.cm_name.cn_id, clp->cl_name.data, in nfsd4_cld_check_v0()
1264 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_check_v0()
1266 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_check_v0()
1270 free_cld_upcall(cup); in nfsd4_cld_check_v0()
1397 struct cld_upcall *cup; in nfsd4_cld_grace_start() local
1400 cup = alloc_cld_upcall(nn); in nfsd4_cld_grace_start()
1401 if (!cup) { in nfsd4_cld_grace_start()
1406 cup->cu_u.cu_msg.cm_cmd = Cld_GraceStart; in nfsd4_cld_grace_start()
1407 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_start()
1409 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_grace_start()
1411 free_cld_upcall(cup); in nfsd4_cld_grace_start()
1424 struct cld_upcall *cup; in nfsd4_cld_grace_done_v0() local
1427 cup = alloc_cld_upcall(nn); in nfsd4_cld_grace_done_v0()
1428 if (!cup) { in nfsd4_cld_grace_done_v0()
1433 cup->cu_u.cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done_v0()
1434 cup->cu_u.cu_msg.cm_u.cm_gracetime = nn->boot_time; in nfsd4_cld_grace_done_v0()
1435 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_done_v0()
1437 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_grace_done_v0()
1439 free_cld_upcall(cup); in nfsd4_cld_grace_done_v0()
1453 struct cld_upcall *cup; in nfsd4_cld_grace_done() local
1456 cup = alloc_cld_upcall(nn); in nfsd4_cld_grace_done()
1457 if (!cup) { in nfsd4_cld_grace_done()
1462 cup->cu_u.cu_msg.cm_cmd = Cld_GraceDone; in nfsd4_cld_grace_done()
1463 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_grace_done()
1465 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_grace_done()
1467 free_cld_upcall(cup); in nfsd4_cld_grace_done()
1517 struct cld_upcall *cup; in nfsd4_cld_get_version() local
1521 cup = alloc_cld_upcall(nn); in nfsd4_cld_get_version()
1522 if (!cup) { in nfsd4_cld_get_version()
1526 cup->cu_u.cu_msg.cm_cmd = Cld_GetVersion; in nfsd4_cld_get_version()
1527 ret = cld_pipe_upcall(cn->cn_pipe, &cup->cu_u.cu_msg, nn); in nfsd4_cld_get_version()
1529 ret = cup->cu_u.cu_msg.cm_status; in nfsd4_cld_get_version()
1532 version = cup->cu_u.cu_msg.cm_u.cm_version; in nfsd4_cld_get_version()
1552 free_cld_upcall(cup); in nfsd4_cld_get_version()