Lines Matching refs:ncg
68 nfscmd_globals_t *ncg = zone_getspecific(nfscmd_zone_key, curzone); in nfscmd_args() local
70 mutex_enter(&ncg->nfscmd_lock); in nfscmd_args()
71 if (ncg->nfscmd_dh != NULL) in nfscmd_args()
72 door_ki_rele(ncg->nfscmd_dh); in nfscmd_args()
73 ncg->nfscmd_dh = door_ki_lookup(did); in nfscmd_args()
74 mutex_exit(&ncg->nfscmd_lock); in nfscmd_args()
94 nfscmd_globals_t *ncg; in nfscmd_zone_init() local
96 ncg = kmem_zalloc(sizeof (*ncg), KM_SLEEP); in nfscmd_zone_init()
97 mutex_init(&ncg->nfscmd_lock, NULL, MUTEX_DEFAULT, NULL); in nfscmd_zone_init()
99 return (ncg); in nfscmd_zone_init()
106 nfscmd_globals_t *ncg = data; in nfscmd_zone_fini() local
108 mutex_destroy(&ncg->nfscmd_lock); in nfscmd_zone_fini()
109 if (ncg->nfscmd_dh) in nfscmd_zone_fini()
110 door_ki_rele(ncg->nfscmd_dh); in nfscmd_zone_fini()
111 kmem_free(ncg, sizeof (*ncg)); in nfscmd_zone_fini()
129 nfscmd_globals_t *ncg = zone_getspecific(nfscmd_zone_key, curzone); in nfscmd_send() local
132 mutex_enter(&ncg->nfscmd_lock); in nfscmd_send()
133 dh = ncg->nfscmd_dh; in nfscmd_send()
136 mutex_exit(&ncg->nfscmd_lock); in nfscmd_send()
183 mutex_enter(&ncg->nfscmd_lock); in nfscmd_send()
184 if (dh == ncg->nfscmd_dh) in nfscmd_send()
185 ncg->nfscmd_dh = NULL; in nfscmd_send()
186 mutex_exit(&ncg->nfscmd_lock); in nfscmd_send()