Lines Matching refs:tphci_state
64 static void *tphci_state; variable
65 struct tphci_state { struct
156 if ((rval = ddi_soft_state_init(&tphci_state, in _init()
157 sizeof (struct tphci_state), 2)) != 0) { in _init()
162 ddi_soft_state_fini(&tphci_state); in _init()
182 ddi_soft_state_fini(&tphci_state); in _fini()
197 struct tphci_state *phci; in tphci_open()
203 phci = ddi_get_soft_state(tphci_state, getminor(*devp)); in tphci_open()
216 struct tphci_state *phci; in tphci_close()
221 phci = ddi_get_soft_state(tphci_state, getminor(dev)); in tphci_close()
245 struct tphci_state *phci = NULL; in tphci_attach()
264 if (ddi_soft_state_zalloc(tphci_state, instance) != DDI_SUCCESS) { in tphci_attach()
268 phci = ddi_get_soft_state(tphci_state, instance); in tphci_attach()
305 ddi_soft_state_free(tphci_state, instance); in tphci_attach()
332 ddi_soft_state_free(tphci_state, instance); in tphci_detach()
348 struct tphci_state *phci; in tphci_getinfo()
353 phci = ddi_get_soft_state(tphci_state, instance); in tphci_getinfo()