Lines Matching refs:argp
1701 nlm_sm_notify(struct nlm_sm_status *argp) in nlm_sm_notify() argument
1706 NLM_DEBUG(3, "nlm_sm_notify(): mon_name = %s\n", argp->mon_name); in nlm_sm_notify()
1707 memcpy(&sysid, &argp->priv, sizeof(sysid)); in nlm_sm_notify()
1710 nlm_host_notify(host, argp->state); in nlm_sm_notify()
1827 nlm_do_test(nlm4_testargs *argp, nlm4_testres *result, struct svc_req *rqstp, in nlm_do_test() argument
1840 host = nlm_find_host_by_name(argp->alock.caller_name, in nlm_do_test()
1853 nlm_convert_to_fhandle_t(&fh, &argp->alock.fh); in nlm_do_test()
1854 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_test()
1861 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test()
1868 fl.l_start = argp->alock.l_offset; in nlm_do_test()
1869 fl.l_len = argp->alock.l_len; in nlm_do_test()
1870 fl.l_pid = argp->alock.svid; in nlm_do_test()
1873 if (argp->exclusive) in nlm_do_test()
1925 nlm_do_lock(nlm4_lockargs *argp, nlm4_res *result, struct svc_req *rqstp, in nlm_do_lock() argument
1938 host = nlm_find_host_by_name(argp->alock.caller_name, in nlm_do_lock()
1948 if (monitor && host->nh_state && argp->state in nlm_do_lock()
1949 && host->nh_state != argp->state) { in nlm_do_lock()
1954 nlm_host_notify(host, argp->state); in nlm_do_lock()
1960 nlm_convert_to_fhandle_t(&fh, &argp->alock.fh); in nlm_do_lock()
1961 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_lock()
1963 if (time_uptime < nlm_grace_threshold && !argp->reclaim) { in nlm_do_lock()
1968 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_lock()
1975 fl.l_start = argp->alock.l_offset; in nlm_do_lock()
1976 fl.l_len = argp->alock.l_len; in nlm_do_lock()
1977 fl.l_pid = argp->alock.svid; in nlm_do_lock()
1980 if (argp->exclusive) in nlm_do_lock()
1984 if (argp->block) { in nlm_do_lock()
2037 af->af_granted.exclusive = argp->exclusive; in nlm_do_lock()
2039 strdup(argp->alock.caller_name, M_RPC); in nlm_do_lock()
2041 &argp->alock.fh, M_RPC); in nlm_do_lock()
2043 &argp->alock.oh, M_RPC); in nlm_do_lock()
2044 af->af_granted.alock.svid = argp->alock.svid; in nlm_do_lock()
2045 af->af_granted.alock.l_offset = argp->alock.l_offset; in nlm_do_lock()
2046 af->af_granted.alock.l_len = argp->alock.l_len; in nlm_do_lock()
2101 nlm_host_monitor(host, argp->state); in nlm_do_lock()
2114 nlm_do_cancel(nlm4_cancargs *argp, nlm4_res *result, struct svc_req *rqstp, in nlm_do_cancel() argument
2127 host = nlm_find_host_by_name(argp->alock.caller_name, in nlm_do_cancel()
2140 nlm_convert_to_fhandle_t(&fh, &argp->alock.fh); in nlm_do_cancel()
2141 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_cancel()
2154 fl.l_start = argp->alock.l_offset; in nlm_do_cancel()
2155 fl.l_len = argp->alock.l_len; in nlm_do_cancel()
2156 fl.l_pid = argp->alock.svid; in nlm_do_cancel()
2159 if (argp->exclusive) in nlm_do_cancel()
2204 nlm_do_unlock(nlm4_unlockargs *argp, nlm4_res *result, struct svc_req *rqstp, in nlm_do_unlock() argument
2216 host = nlm_find_host_by_name(argp->alock.caller_name, in nlm_do_unlock()
2229 nlm_convert_to_fhandle_t(&fh, &argp->alock.fh); in nlm_do_unlock()
2230 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_unlock()
2243 fl.l_start = argp->alock.l_offset; in nlm_do_unlock()
2244 fl.l_len = argp->alock.l_len; in nlm_do_unlock()
2245 fl.l_pid = argp->alock.svid; in nlm_do_unlock()
2266 nlm_do_granted(nlm4_testargs *argp, nlm4_res *result, struct svc_req *rqstp, in nlm_do_granted() argument
2281 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_granted()
2289 if (argp->alock.svid == nw->nw_lock.svid in nlm_do_granted()
2290 && argp->alock.l_offset == nw->nw_lock.l_offset in nlm_do_granted()
2291 && argp->alock.l_len == nw->nw_lock.l_len in nlm_do_granted()
2292 && argp->alock.fh.n_len == nw->nw_lock.fh.n_len in nlm_do_granted()
2293 && !memcmp(argp->alock.fh.n_bytes, nw->nw_lock.fh.n_bytes, in nlm_do_granted()
2311 nlm_do_granted_res(nlm4_res *argp, struct svc_req *rqstp) in nlm_do_granted_res() argument
2317 if (argp->cookie.n_len != sizeof(struct nlm_grantcookie)) { in nlm_do_granted_res()
2322 host = nlm_find_host_by_sysid(ng_sysid(&argp->cookie)); in nlm_do_granted_res()
2330 if (ng_cookie(&argp->cookie) == in nlm_do_granted_res()
2340 host->nh_sysid, ng_sysid(&argp->cookie), in nlm_do_granted_res()
2341 ng_cookie(&argp->cookie)); in nlm_do_granted_res()
2345 if (argp->stat.stat != nlm4_granted) { in nlm_do_granted_res()
2370 nlm_do_free_all(nlm4_notify *argp) in nlm_do_free_all() argument
2375 if (!strcmp(host->nh_caller_name, argp->name)) in nlm_do_free_all()
2376 nlm_host_notify(host, argp->state); in nlm_do_free_all()