Lines Matching refs:arg

383 nlmtonlm4(struct nlm_lock *arg, struct nlm4_lock *arg4)  in nlmtonlm4()  argument
385 arg4->caller_name = arg->caller_name; in nlmtonlm4()
386 arg4->fh = arg->fh; in nlmtonlm4()
387 arg4->oh = arg->oh; in nlmtonlm4()
388 arg4->svid = arg->svid; in nlmtonlm4()
389 arg4->l_offset = arg->l_offset; in nlmtonlm4()
390 arg4->l_len = arg->l_len; in nlmtonlm4()
426 nlm_test_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_test_1_svc() argument
431 nlmtonlm4(&arg->alock, &arg4); in nlm_test_1_svc()
436 holder = testlock(&arg4, arg->exclusive, 0); in nlm_test_1_svc()
444 res.cookie = arg->cookie; in nlm_test_1_svc()
458 nlm_test_msg_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_test_msg_1_svc() argument
469 nlmtonlm4(&arg->alock, &arg4); in nlm_test_msg_1_svc()
474 holder = testlock(&arg4, arg->exclusive, 0); in nlm_test_msg_1_svc()
476 res.cookie = arg->cookie; in nlm_test_msg_1_svc()
513 nlm_lock_1_svc(nlm_lockargs *arg, struct svc_req *rqstp) in nlm_lock_1_svc() argument
517 nlmtonlm4(&arg->alock, &arg4.alock); in nlm_lock_1_svc()
518 arg4.cookie = arg->cookie; in nlm_lock_1_svc()
519 arg4.block = arg->block; in nlm_lock_1_svc()
520 arg4.exclusive = arg->exclusive; in nlm_lock_1_svc()
521 arg4.reclaim = arg->reclaim; in nlm_lock_1_svc()
522 arg4.state = arg->state; in nlm_lock_1_svc()
528 res.cookie = arg->cookie; in nlm_lock_1_svc()
535 nlm_lock_msg_1_svc(nlm_lockargs *arg, struct svc_req *rqstp) in nlm_lock_msg_1_svc() argument
540 nlmtonlm4(&arg->alock, &arg4.alock); in nlm_lock_msg_1_svc()
541 arg4.cookie = arg->cookie; in nlm_lock_msg_1_svc()
542 arg4.block = arg->block; in nlm_lock_msg_1_svc()
543 arg4.exclusive = arg->exclusive; in nlm_lock_msg_1_svc()
544 arg4.reclaim = arg->reclaim; in nlm_lock_msg_1_svc()
545 arg4.state = arg->state; in nlm_lock_msg_1_svc()
550 res.cookie = arg->cookie; in nlm_lock_msg_1_svc()
564 nlm_cancel_1_svc(nlm_cancargs *arg, struct svc_req *rqstp) in nlm_cancel_1_svc() argument
569 nlmtonlm4(&arg->alock, &arg4); in nlm_cancel_1_svc()
575 res.cookie = arg->cookie; in nlm_cancel_1_svc()
586 nlm_cancel_msg_1_svc(nlm_cancargs *arg, struct svc_req *rqstp) in nlm_cancel_msg_1_svc() argument
591 nlmtonlm4(&arg->alock, &arg4); in nlm_cancel_msg_1_svc()
596 res.cookie = arg->cookie; in nlm_cancel_msg_1_svc()
615 nlm_unlock_1_svc(nlm_unlockargs *arg, struct svc_req *rqstp) in nlm_unlock_1_svc() argument
620 nlmtonlm4(&arg->alock, &arg4); in nlm_unlock_1_svc()
626 res.cookie = arg->cookie; in nlm_unlock_1_svc()
632 nlm_unlock_msg_1_svc(nlm_unlockargs *arg, struct svc_req *rqstp) in nlm_unlock_msg_1_svc() argument
637 nlmtonlm4(&arg->alock, &arg4); in nlm_unlock_msg_1_svc()
643 res.cookie = arg->cookie; in nlm_unlock_msg_1_svc()
668 nlm_granted_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_granted_1_svc() argument
675 res.stat.stat = lock_answer(arg->alock.svid, &arg->cookie, in nlm_granted_1_svc()
680 res.cookie = arg->cookie; in nlm_granted_1_svc()
686 nlm_granted_msg_1_svc(nlm_testargs *arg, struct svc_req *rqstp) in nlm_granted_msg_1_svc() argument
693 res.cookie = arg->cookie; in nlm_granted_msg_1_svc()
694 res.stat.stat = lock_answer(arg->alock.svid, &arg->cookie, in nlm_granted_msg_1_svc()
708 nlm_test_res_1_svc(nlm_testres *arg, struct svc_req *rqstp) in nlm_test_res_1_svc() argument
712 (void)lock_answer(-1, &arg->cookie, arg->stat.stat, in nlm_test_res_1_svc()
713 &arg->stat.nlm_testrply_u.holder.svid, NLM_VERS); in nlm_test_res_1_svc()
723 nlm_lock_res_1_svc(nlm_res *arg, struct svc_req *rqstp) in nlm_lock_res_1_svc() argument
728 (void)lock_answer(-1, &arg->cookie, arg->stat.stat, NULL, NLM_VERS); in nlm_lock_res_1_svc()
739 nlm_cancel_res_1_svc(nlm_res *arg __unused, struct svc_req *rqstp) in nlm_cancel_res_1_svc()
752 nlm_unlock_res_1_svc(nlm_res *arg, struct svc_req *rqstp) in nlm_unlock_res_1_svc() argument
757 lock_answer(-1, &arg->cookie, arg->stat.stat, NULL, NLM_VERS); in nlm_unlock_res_1_svc()
768 nlm_granted_res_1_svc(nlm_res *arg __unused, struct svc_req *rqstp) in nlm_granted_res_1_svc()
791 nlm_share_3_svc(nlm_shareargs *arg, struct svc_req *rqstp) in nlm_share_3_svc() argument
798 res.cookie = arg->cookie; in nlm_share_3_svc()
811 nlm_unshare_3_svc(nlm_shareargs *arg, struct svc_req *rqstp) in nlm_unshare_3_svc() argument
818 res.cookie = arg->cookie; in nlm_unshare_3_svc()
835 nlm_nm_lock_3_svc(nlm_lockargs *arg, struct svc_req *rqstp) in nlm_nm_lock_3_svc() argument
843 res.cookie = arg->cookie; in nlm_nm_lock_3_svc()
859 nlm_free_all_3_svc(nlm_notify *arg __unused, struct svc_req *rqstp) in nlm_free_all_3_svc()
876 nlm4_test_4_svc(nlm4_testargs *arg, struct svc_req *rqstp) in nlm4_test_4_svc() argument
885 log_netobj(&(arg->cookie)); in nlm4_test_4_svc()
887 syslog(LOG_DEBUG, "Caller Name: %s\n",arg->alock.caller_name); in nlm4_test_4_svc()
889 log_netobj(&(arg->alock.fh)); in nlm4_test_4_svc()
891 log_netobj(&(arg->alock.oh)); in nlm4_test_4_svc()
892 syslog(LOG_DEBUG, "SVID: %d\n", arg->alock.svid); in nlm4_test_4_svc()
894 (unsigned long long)arg->alock.l_offset); in nlm4_test_4_svc()
896 (unsigned long long)arg->alock.l_len); in nlm4_test_4_svc()
898 (arg->exclusive ? "true" : "false")); in nlm4_test_4_svc()
901 holder = testlock(&arg->alock, arg->exclusive, LOCK_V4); in nlm4_test_4_svc()
910 res.cookie = arg->cookie; in nlm4_test_4_svc()
922 nlm4_test_msg_4_svc(nlm4_testargs *arg, struct svc_req *rqstp) in nlm4_test_msg_4_svc() argument
935 holder = testlock(&arg->alock, arg->exclusive, LOCK_V4); in nlm4_test_msg_4_svc()
937 res.cookie = arg->cookie; in nlm4_test_msg_4_svc()
972 nlm4_lock_4_svc(nlm4_lockargs *arg, struct svc_req *rqstp) in nlm4_lock_4_svc() argument
980 log_netobj(&(arg->cookie)); in nlm4_lock_4_svc()
982 syslog(LOG_DEBUG, "Caller Name: %s\n",arg->alock.caller_name); in nlm4_lock_4_svc()
984 log_netobj(&(arg->alock.fh)); in nlm4_lock_4_svc()
986 log_netobj(&(arg->alock.oh)); in nlm4_lock_4_svc()
987 syslog(LOG_DEBUG, "SVID: %d\n", arg->alock.svid); in nlm4_lock_4_svc()
989 (unsigned long long)arg->alock.l_offset); in nlm4_lock_4_svc()
991 (unsigned long long)arg->alock.l_len); in nlm4_lock_4_svc()
992 syslog(LOG_DEBUG, "Block: %s\n", (arg->block ? "true" : "false")); in nlm4_lock_4_svc()
993 syslog(LOG_DEBUG, "Exclusive: %s\n", (arg->exclusive ? "true" : "false")); in nlm4_lock_4_svc()
994 syslog(LOG_DEBUG, "Reclaim: %s\n", (arg->reclaim ? "true" : "false")); in nlm4_lock_4_svc()
995 syslog(LOG_DEBUG, "State num: %d\n", arg->state); in nlm4_lock_4_svc()
999 res.cookie = arg->cookie; in nlm4_lock_4_svc()
1001 res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_V4); in nlm4_lock_4_svc()
1006 nlm4_lock_msg_4_svc(nlm4_lockargs *arg, struct svc_req *rqstp) in nlm4_lock_msg_4_svc() argument
1013 res.cookie = arg->cookie; in nlm4_lock_msg_4_svc()
1014 res.stat.stat = (enum nlm4_stats)getlock(arg, rqstp, LOCK_MON | LOCK_ASYNC | LOCK_V4); in nlm4_lock_msg_4_svc()
1027 nlm4_cancel_4_svc(nlm4_cancargs *arg, struct svc_req *rqstp) in nlm4_cancel_4_svc() argument
1035 res.cookie = arg->cookie; in nlm4_cancel_4_svc()
1041 res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_CANCEL); in nlm4_cancel_4_svc()
1046 nlm4_cancel_msg_4_svc(nlm4_cancargs *arg, struct svc_req *rqstp) in nlm4_cancel_msg_4_svc() argument
1053 res.cookie = arg->cookie; in nlm4_cancel_msg_4_svc()
1058 res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_CANCEL | LOCK_V4); in nlm4_cancel_msg_4_svc()
1072 nlm4_unlock_4_svc(nlm4_unlockargs *arg, struct svc_req *rqstp) in nlm4_unlock_4_svc() argument
1079 res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_V4); in nlm4_unlock_4_svc()
1080 res.cookie = arg->cookie; in nlm4_unlock_4_svc()
1086 nlm4_unlock_msg_4_svc(nlm4_unlockargs *arg, struct svc_req *rqstp) in nlm4_unlock_msg_4_svc() argument
1093 res.stat.stat = (enum nlm4_stats)unlock(&arg->alock, LOCK_V4); in nlm4_unlock_msg_4_svc()
1094 res.cookie = arg->cookie; in nlm4_unlock_msg_4_svc()
1119 nlm4_granted_4_svc(nlm4_testargs *arg, struct svc_req *rqstp) in nlm4_granted_4_svc() argument
1126 res.stat.stat = lock_answer(arg->alock.svid, &arg->cookie, in nlm4_granted_4_svc()
1131 res.cookie = arg->cookie; in nlm4_granted_4_svc()
1137 nlm4_granted_msg_4_svc(nlm4_testargs *arg, struct svc_req *rqstp) in nlm4_granted_msg_4_svc() argument
1144 res.cookie = arg->cookie; in nlm4_granted_msg_4_svc()
1145 res.stat.stat = lock_answer(arg->alock.svid, &arg->cookie, in nlm4_granted_msg_4_svc()
1158 nlm4_test_res_4_svc(nlm4_testres *arg, struct svc_req *rqstp) in nlm4_test_res_4_svc() argument
1163 (void)lock_answer(-1, &arg->cookie, arg->stat.stat, in nlm4_test_res_4_svc()
1164 (int *)&arg->stat.nlm4_testrply_u.holder.svid, in nlm4_test_res_4_svc()
1175 nlm4_lock_res_4_svc(nlm4_res *arg, struct svc_req *rqstp) in nlm4_lock_res_4_svc() argument
1180 (void)lock_answer(-1, &arg->cookie, arg->stat.stat, NULL, NLM_VERS4); in nlm4_lock_res_4_svc()
1191 nlm4_cancel_res_4_svc(nlm4_res *arg __unused, struct svc_req *rqstp) in nlm4_cancel_res_4_svc()
1204 nlm4_unlock_res_4_svc(nlm4_res *arg __unused, struct svc_req *rqstp) in nlm4_unlock_res_4_svc()
1217 nlm4_granted_res_4_svc(nlm4_res *arg __unused, struct svc_req *rqstp) in nlm4_granted_res_4_svc()
1240 nlm4_share_4_svc(nlm4_shareargs *arg, struct svc_req *rqstp) in nlm4_share_4_svc() argument
1247 res.cookie = arg->cookie; in nlm4_share_4_svc()
1260 nlm4_unshare_4_svc(nlm4_shareargs *arg, struct svc_req *rqstp) in nlm4_unshare_4_svc() argument
1267 res.cookie = arg->cookie; in nlm4_unshare_4_svc()
1284 nlm4_nm_lock_4_svc(nlm4_lockargs *arg, struct svc_req *rqstp) in nlm4_nm_lock_4_svc() argument
1292 res.cookie = arg->cookie; in nlm4_nm_lock_4_svc()
1308 nlm4_free_all_4_svc(struct nlm4_notify *arg __unused, struct svc_req *rqstp) in nlm4_free_all_4_svc()
1323 nlm_sm_notify_0_svc(struct nlm_sm_status *arg, struct svc_req *rqstp __unused) in nlm_sm_notify_0_svc() argument
1326 notify(arg->mon_name, arg->state); in nlm_sm_notify_0_svc()