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