Lines Matching defs:pcip
224 pci_state_t *pcip = NULL;
242 pcip = ddi_get_soft_state(pci_statep, instance);
245 if (pcip == NULL) {
249 pcip->pci_dip = devi;
250 pcip->pci_soft_state = PCI_SOFT_STATE_CLOSED;
268 pcip->pci_fmcap = DDI_FM_ERRCB_CAPABLE |
270 ddi_fm_init(devi, &pcip->pci_fmcap, &pcip->pci_fm_ibc);
271 mutex_init(&pcip->pci_mutex, NULL, MUTEX_DRIVER, NULL);
272 mutex_init(&pcip->pci_err_mutex, NULL, MUTEX_DRIVER,
273 (void *)pcip->pci_fm_ibc);
274 mutex_init(&pcip->pci_peek_poke_mutex, NULL, MUTEX_DRIVER,
275 (void *)pcip->pci_fm_ibc);
276 if (pcip->pci_fmcap & DDI_FM_ERRCB_CAPABLE) {
298 pci_state_t *pcip;
300 pcip = ddi_get_soft_state(pci_statep, ddi_get_instance(devi));
305 if (pcip->pci_fmcap & DDI_FM_ERRCB_CAPABLE) {
309 mutex_destroy(&pcip->pci_peek_poke_mutex);
310 mutex_destroy(&pcip->pci_err_mutex);
311 mutex_destroy(&pcip->pci_mutex);
342 pci_state_t *pcip;
348 pcip = ddi_get_soft_state(pci_statep, ddi_get_instance(dip));
350 hdlp->ahi_err_mutexp = &pcip->pci_err_mutex;
351 hdlp->ahi_peekpoke_mutexp = &pcip->pci_peek_poke_mutex;
543 pci_state_t *pcip;
608 pcip = ddi_get_soft_state(pci_statep, ddi_get_instance(dip));
610 pci_common_peekpoke, &pcip->pci_err_mutex,
611 &pcip->pci_peek_poke_mutex, pci_peekpoke_cb));
832 pci_state_t *pcip = ddi_get_soft_state(pci_statep,
836 *ibc = pcip->pci_fm_ibc;
838 return (pcip->pci_fmcap);
845 pci_state_t *pcip = ddi_get_soft_state(pci_statep,
848 mutex_enter(&pcip->pci_err_mutex);
850 mutex_exit(&pcip->pci_err_mutex);