Lines Matching refs:tphci_state
67 static void *tphci_state; variable
68 struct tphci_state { struct
159 if ((rval = ddi_soft_state_init(&tphci_state, in _init()
160 sizeof (struct tphci_state), 2)) != 0) { in _init()
165 ddi_soft_state_fini(&tphci_state); in _init()
185 ddi_soft_state_fini(&tphci_state); in _fini()
200 struct tphci_state *phci; in tphci_open()
206 phci = ddi_get_soft_state(tphci_state, getminor(*devp)); in tphci_open()
219 struct tphci_state *phci; in tphci_close()
224 phci = ddi_get_soft_state(tphci_state, getminor(dev)); in tphci_close()
248 struct tphci_state *phci = NULL; in tphci_attach()
267 if (ddi_soft_state_zalloc(tphci_state, instance) != DDI_SUCCESS) { in tphci_attach()
271 phci = ddi_get_soft_state(tphci_state, instance); in tphci_attach()
308 ddi_soft_state_free(tphci_state, instance); in tphci_attach()
335 ddi_soft_state_free(tphci_state, instance); in tphci_detach()
351 struct tphci_state *phci; in tphci_getinfo()
356 phci = ddi_get_soft_state(tphci_state, instance); in tphci_getinfo()