Lines Matching refs:hostp
143 nlm_reclaim_client(struct nlm_globals *g, struct nlm_host *hostp) in nlm_reclaim_client() argument
151 sysid = hostp->nh_sysid | LM_SYSID_CLIENT; in nlm_reclaim_client()
155 state = nlm_host_get_state(hostp); in nlm_reclaim_client()
158 struct nlm_host *, hostp, int, state); in nlm_reclaim_client()
183 nlm_host_cancel_slocks(g, hostp); in nlm_reclaim_client()
190 error = nlm_reclaim_lock(hostp, llp->ll_vp, in nlm_reclaim_client()
220 nsp_head = nsp = nlm_get_active_shres(hostp); in nlm_reclaim_client()
222 error = nlm_reclaim_share(hostp, nsp->ns_vp, in nlm_reclaim_client()
232 nlm_shres_untrack(hostp, nsp->ns_vp, in nlm_reclaim_client()
242 } while (state != nlm_host_get_state(hostp)); in nlm_reclaim_client()
266 struct nlm_host *hostp; in nlm_frlock() local
280 hostp = nlm_host_findcreate(g, sv->sv_hostname, netid, &sv->sv_addr); in nlm_frlock()
281 if (hostp == NULL) in nlm_frlock()
295 error = nlm_frlock_getlk(hostp, vp, flkp, flags, in nlm_frlock()
301 error = nlm_frlock_setlk(hostp, vp, flkp, flags, in nlm_frlock()
304 nlm_host_monitor(g, hostp, 0); in nlm_frlock()
312 nlm_host_release(g, hostp); in nlm_frlock()
317 nlm_frlock_getlk(struct nlm_host *hostp, vnode_t *vp, in nlm_frlock_getlk() argument
345 error = nlm_call_test(&flk0, hostp, fhp, vers); in nlm_frlock_getlk()
369 nlm_frlock_setlk(struct nlm_host *hostp, vnode_t *vp, in nlm_frlock_setlk() argument
403 flkp->l_sysid = hostp->nh_sysid | LM_SYSID_CLIENT; in nlm_frlock_setlk()
412 error = nlm_call_unlock(flkp, hostp, fhp, vers); in nlm_frlock_setlk()
440 error = nlm_call_lock(vp, flkp, hostp, fhp, flcb, vers, xflags); in nlm_frlock_setlk()
469 nlm_client_cancel_all(struct nlm_globals *g, struct nlm_host *hostp) in nlm_client_cancel_all() argument
477 sysid = hostp->nh_sysid | LM_SYSID_CLIENT; in nlm_client_cancel_all()
478 nlm_host_cancel_slocks(g, hostp); in nlm_client_cancel_all()
489 (void) nlm_call_unlock(&llp->ll_flock, hostp, in nlm_client_cancel_all()
501 nsp_head = nsp = nlm_get_active_shres(hostp); in nlm_client_cancel_all()
505 (void) nlm_call_unshare(nsp->ns_shr, hostp, in nlm_client_cancel_all()
509 nlm_shres_untrack(hostp, nsp->ns_vp, nsp->ns_shr); in nlm_client_cancel_all()
618 nlm_register_lock_locally(struct vnode *vp, struct nlm_host *hostp, in nlm_register_lock_locally() argument
624 if (hostp == NULL) { in nlm_register_lock_locally()
635 hostp = nlm_host_findcreate(g, sv->sv_hostname, in nlm_register_lock_locally()
640 if (hostp != NULL) { in nlm_register_lock_locally()
641 sysid = hostp->nh_sysid | LM_SYSID_CLIENT; in nlm_register_lock_locally()
644 nlm_host_release(g, hostp); in nlm_register_lock_locally()
661 nlm_reclaim_lock(struct nlm_host *hostp, vnode_t *vp, in nlm_reclaim_lock() argument
673 state = nlm_host_get_state(hostp); in nlm_reclaim_lock()
681 return (nlm_call_lock(vp, flp, hostp, &lm_fh, in nlm_reclaim_lock()
749 struct nlm_host *hostp, struct netobj *fhp, in nlm_call_lock() argument
770 oh.oh_sysid = hostp->nh_sysid; in nlm_call_lock()
775 nslp = nlm_slock_register(g, hostp, &args.alock, vp); in nlm_call_lock()
784 error = nlm_host_get_rpc(hostp, vers, &rpcp); in nlm_call_lock()
792 nlm_host_rele_rpc(hostp, rpcp); in nlm_call_lock()
811 error = nlm_host_wait_grace(hostp); in nlm_call_lock()
905 (void) nlm_call_cancel(&args, hostp, vers); in nlm_call_lock()
950 struct nlm_host *hostp, int vers) in nlm_call_cancel() argument
979 error = nlm_host_get_rpc(hostp, vers, &rpcp); in nlm_call_cancel()
985 nlm_host_rele_rpc(hostp, rpcp); in nlm_call_cancel()
1036 nlm_call_unlock(struct flock64 *flp, struct nlm_host *hostp, in nlm_call_unlock() argument
1048 oh.oh_sysid = hostp->nh_sysid; in nlm_call_unlock()
1058 error = nlm_host_get_rpc(hostp, vers, &rpcp); in nlm_call_unlock()
1064 nlm_host_rele_rpc(hostp, rpcp); in nlm_call_unlock()
1078 error = nlm_host_wait_grace(hostp); in nlm_call_unlock()
1106 nlm_call_test(struct flock64 *flp, struct nlm_host *hostp, in nlm_call_test() argument
1120 oh.oh_sysid = hostp->nh_sysid; in nlm_call_test()
1130 error = nlm_host_get_rpc(hostp, vers, &rpcp); in nlm_call_test()
1136 nlm_host_rele_rpc(hostp, rpcp); in nlm_call_test()
1151 error = nlm_host_wait_grace(hostp); in nlm_call_test()
1285 nlm_reclaim_share(struct nlm_host *hostp, vnode_t *vp, in nlm_reclaim_share() argument
1292 state = nlm_host_get_state(hostp); in nlm_reclaim_share()
1305 return (nlm_call_share(shr, hostp, &lm_fh, vers, 1)); in nlm_reclaim_share()