Searched refs:dstates (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/common/io/ |
H A D | tclient.c | 61 static void *dstates; variable 118 if ((e = ddi_soft_state_init(&dstates, in _init() 124 ddi_soft_state_fini(&dstates); in _init() 138 ddi_soft_state_fini(&dstates); in _fini() 159 if (ddi_soft_state_zalloc(dstates, instance) != DDI_SUCCESS) { in tcli_attach() 165 dstatep = ddi_get_soft_state(dstates, instance); in tcli_attach() 172 ddi_soft_state_free(dstates, instance); in tcli_attach() 193 ddi_soft_state_free(dstates, instance); in tcli_detach() 225 if ((dstatep = ddi_get_soft_state(dstates, in tcli_open() 244 dstatep = ddi_get_soft_state(dstates, MINOR_TO_INST(minor)); in tcli_close() [all …]
|
H A D | gen_drv.c | 72 static void *dstates; variable 194 if ((e = ddi_soft_state_init(&dstates, in _init() 200 ddi_soft_state_fini(&dstates); in _init() 214 ddi_soft_state_fini(&dstates); in _fini() 256 if (ddi_soft_state_zalloc(dstates, instance) != in gen_attach() 264 dstatep = ddi_get_soft_state(dstates, instance); in gen_attach() 287 ddi_soft_state_free(dstates, instance); in gen_attach() 299 ddi_soft_state_free(dstates, instance); in gen_attach() 488 dstatep = ddi_get_soft_state(dstates, ddi_get_instance(devi)); in gen_attach() 577 dstatep = ddi_get_soft_state(dstates, instance); in gen_detach() [all …]
|