Lines Matching refs:nexp
126 iommulib_nex_t *nexp;
263 nexp = kmem_zalloc(sizeof (iommulib_nex_t), KM_SLEEP);
270 kmem_free(nexp, sizeof (iommulib_nex_t));
279 nexp->nex_dip = dip;
280 nexp->nex_ops = *nexops;
283 nexp->nex_next = iommulib_nexus_list;
284 iommulib_nexus_list = nexp;
285 nexp->nex_prev = NULL;
287 if (nexp->nex_next != NULL)
288 nexp->nex_next->nex_prev = nexp;
290 nexp->nex_ref = 0;
297 DEVI(dip)->devi_iommulib_nex_handle = nexp;
306 *handle = nexp;
317 iommulib_nex_t *nexp = (iommulib_nex_t *)handle;
320 ASSERT(nexp);
322 if (nexp->nex_ref != 0)
327 dip = nexp->nex_dip;
333 if (nexp->nex_prev == NULL) {
334 iommulib_nexus_list = nexp->nex_next;
336 nexp->nex_prev->nex_next = nexp->nex_next;
339 if (nexp->nex_next != NULL)
340 nexp->nex_next->nex_prev = nexp->nex_prev;
344 kmem_free(nexp, sizeof (iommulib_nex_t));
636 iommulib_nex_t *nexp;
646 nexp = (iommulib_nex_t *)unitp->ilu_nex;
657 atomic_dec_uint(&nexp->nex_ref);