Lines Matching refs:g

78 #define	NLM_IN_GRACE(g) (ddi_get_lbolt() < (g)->grace_threshold)  argument
282 struct nlm_globals *g; in nlm_do_notify1() local
286 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_notify1()
292 host = nlm_host_find_by_sysid(g, (sysid_t)sysid); in nlm_do_notify1()
298 nlm_host_release(g, host); in nlm_do_notify1()
322 struct nlm_globals *g; in nlm_do_test() local
340 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_test()
341 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_test()
360 if (NLM_IN_GRACE(g)) { in nlm_do_test()
439 nlm_host_release(g, host); in nlm_do_test()
463 struct nlm_globals *g; in nlm_do_lock() local
482 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_lock()
483 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_lock()
485 DTRACE_PROBE4(no__host, struct nlm_globals *, g, in nlm_do_lock()
491 DTRACE_PROBE3(start, struct nlm_globals *, g, in nlm_do_lock()
515 if (argp->reclaim == 0 && NLM_IN_GRACE(g)) { in nlm_do_lock()
648 nlm_host_monitor(g, host, argp->state); in nlm_do_lock()
663 DTRACE_PROBE3(lock__end, struct nlm_globals *, g, in nlm_do_lock()
670 nlm_host_release(g, host); in nlm_do_lock()
773 struct nlm_globals *g; in nlm_do_cancel() local
788 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_cancel()
789 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_cancel()
802 DTRACE_PROBE3(start, struct nlm_globals *, g, in nlm_do_cancel()
805 if (NLM_IN_GRACE(g)) { in nlm_do_cancel()
851 DTRACE_PROBE3(cancel__end, struct nlm_globals *, g, in nlm_do_cancel()
858 nlm_host_release(g, host); in nlm_do_cancel()
870 struct nlm_globals *g; in nlm_do_unlock() local
894 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_unlock()
895 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_unlock()
905 DTRACE_PROBE3(start, struct nlm_globals *, g, in nlm_do_unlock()
908 if (NLM_IN_GRACE(g)) { in nlm_do_unlock()
936 DTRACE_PROBE3(unlock__end, struct nlm_globals *, g, in nlm_do_unlock()
944 nlm_host_release(g, host); in nlm_do_unlock()
967 struct nlm_globals *g; in nlm_do_granted() local
976 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_granted()
981 host = nlm_host_find_by_sysid(g, oh->oh_sysid); in nlm_do_granted()
991 if (NLM_IN_GRACE(g)) { in nlm_do_granted()
996 error = nlm_slock_grant(g, host, &argp->alock); in nlm_do_granted()
1011 nlm_host_release(g, host); in nlm_do_granted()
1022 struct nlm_globals *g; in nlm_do_free_all() local
1027 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_free_all()
1030 mutex_enter(&g->clean_lock); in nlm_do_free_all()
1036 mutex_enter(&g->lock); in nlm_do_free_all()
1037 for (hostp = avl_first(&g->nlm_hosts_tree); hostp != NULL; in nlm_do_free_all()
1038 hostp = AVL_NEXT(&g->nlm_hosts_tree, hostp)) { in nlm_do_free_all()
1045 TAILQ_REMOVE(&g->nlm_idle_hosts, hostp, in nlm_do_free_all()
1054 mutex_exit(&g->lock); in nlm_do_free_all()
1067 nlm_host_release(g, hostp); in nlm_do_free_all()
1070 mutex_exit(&g->clean_lock); in nlm_do_free_all()
1127 struct nlm_globals *g; in nlm_do_share() local
1142 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_share()
1143 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_share()
1149 DTRACE_PROBE3(share__start, struct nlm_globals *, g, in nlm_do_share()
1152 if (argp->reclaim == 0 && NLM_IN_GRACE(g)) { in nlm_do_share()
1174 nlm_host_monitor(g, host, 0); in nlm_do_share()
1180 DTRACE_PROBE3(share__end, struct nlm_globals *, g, in nlm_do_share()
1184 nlm_host_release(g, host); in nlm_do_share()
1195 struct nlm_globals *g; in nlm_do_unshare() local
1208 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_unshare()
1209 host = nlm_host_find(g, netid, addr); in nlm_do_unshare()
1215 DTRACE_PROBE3(unshare__start, struct nlm_globals *, g, in nlm_do_unshare()
1218 if (NLM_IN_GRACE(g)) { in nlm_do_unshare()
1238 DTRACE_PROBE3(unshare__end, struct nlm_globals *, g, in nlm_do_unshare()
1244 nlm_host_release(g, host); in nlm_do_unshare()