Lines Matching defs:nexp
127 iommulib_nex_t *nexp;
249 nexp = kmem_zalloc(sizeof (iommulib_nex_t), KM_SLEEP);
256 kmem_free(nexp, sizeof (iommulib_nex_t));
265 nexp->nex_dip = dip;
266 nexp->nex_ops = *nexops;
269 nexp->nex_next = iommulib_nexus_list;
270 iommulib_nexus_list = nexp;
271 nexp->nex_prev = NULL;
273 if (nexp->nex_next != NULL)
274 nexp->nex_next->nex_prev = nexp;
276 nexp->nex_ref = 0;
283 DEVI(dip)->devi_iommulib_nex_handle = nexp;
292 *handle = nexp;
303 iommulib_nex_t *nexp = (iommulib_nex_t *)handle;
306 ASSERT(nexp);
308 if (nexp->nex_ref != 0)
313 dip = nexp->nex_dip;
319 if (nexp->nex_prev == NULL) {
320 iommulib_nexus_list = nexp->nex_next;
322 nexp->nex_prev->nex_next = nexp->nex_next;
325 if (nexp->nex_next != NULL)
326 nexp->nex_next->nex_prev = nexp->nex_prev;
330 kmem_free(nexp, sizeof (iommulib_nex_t));
607 iommulib_nex_t *nexp;
617 nexp = (iommulib_nex_t *)unitp->ilu_nex;
628 atomic_dec_uint(&nexp->nex_ref);