Lines Matching refs:ppb

283 	ppb_devstate_t *ppb;  in ppb_attach()  local
304 ppb = ddi_get_soft_state(ppb_state, instance); in ppb_attach()
305 ppb->dip = devi; in ppb_attach()
311 ppb->ppb_fmcap = DDI_FM_ERRCB_CAPABLE | in ppb_attach()
314 ppb->ppb_fmcap = DDI_FM_EREPORT_CAPABLE | in ppb_attach()
318 ddi_fm_init(devi, &ppb->ppb_fmcap, &ppb->ppb_fm_ibc); in ppb_attach()
319 mutex_init(&ppb->ppb_mutex, NULL, MUTEX_DRIVER, NULL); in ppb_attach()
320 mutex_init(&ppb->ppb_err_mutex, NULL, MUTEX_DRIVER, in ppb_attach()
321 (void *)ppb->ppb_fm_ibc); in ppb_attach()
322 mutex_init(&ppb->ppb_peek_poke_mutex, NULL, MUTEX_DRIVER, in ppb_attach()
323 (void *)ppb->ppb_fm_ibc); in ppb_attach()
325 if (ppb->ppb_fmcap & (DDI_FM_ERRCB_CAPABLE | in ppb_attach()
328 if (ppb->ppb_fmcap & DDI_FM_ERRCB_CAPABLE) in ppb_attach()
332 if (ppb->ppb_fmcap & DDI_FM_ERRCB_CAPABLE) in ppb_attach()
334 if (ppb->ppb_fmcap & (DDI_FM_ERRCB_CAPABLE | in ppb_attach()
342 ppb->parent_bus = PCIE_PCIECAP_DEV_TYPE_PCI_PSEUDO; in ppb_attach()
344 (ppb->parent_bus != PCIE_PCIECAP_DEV_TYPE_PCIE_DEV); in ppb_attach()
352 ppb->parent_bus = in ppb_attach()
370 if (ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) in ppb_attach()
390 ppb = ddi_get_soft_state(ppb_state, ddi_get_instance(devi)); in ppb_attach()
391 ppb_restore_config_regs(ppb); in ppb_attach()
404 ppb_devstate_t *ppb; in ppb_detach() local
411 ppb = ddi_get_soft_state(ppb_state, ddi_get_instance(devi)); in ppb_detach()
412 if (ppb->ppb_fmcap & DDI_FM_ERRCB_CAPABLE) in ppb_detach()
414 if (ppb->ppb_fmcap & (DDI_FM_ERRCB_CAPABLE | in ppb_detach()
421 ret = (ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) ? in ppb_detach()
426 mutex_destroy(&ppb->ppb_peek_poke_mutex); in ppb_detach()
427 mutex_destroy(&ppb->ppb_err_mutex); in ppb_detach()
428 mutex_destroy(&ppb->ppb_mutex); in ppb_detach()
439 ppb = ddi_get_soft_state(ppb_state, ddi_get_instance(devi)); in ppb_detach()
440 ppb_save_config_regs(ppb); in ppb_detach()
455 ppb_devstate_t *ppb = ddi_get_soft_state(ppb_state, in ppb_bus_map() local
462 hdlp->ahi_err_mutexp = &ppb->ppb_err_mutex; in ppb_bus_map()
463 hdlp->ahi_peekpoke_mutexp = &ppb->ppb_peek_poke_mutex; in ppb_bus_map()
481 ppb_devstate_t *ppb = ddi_get_soft_state(ppb_state, in ppb_ctlops() local
518 if ((ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) && in ppb_ctlops()
520 pf_init(rdip, (void *)ppb->ppb_fm_ibc, asp->cmd); in ppb_ctlops()
533 if ((ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) && in ppb_ctlops()
548 ddi_ctlops, &ppb->ppb_err_mutex, in ppb_ctlops()
549 &ppb->ppb_peek_poke_mutex, ppb_peekpoke_cb)); in ppb_ctlops()
640 ppb_devstate_t *ppb; in ppb_initchild() local
645 ppb = (ppb_devstate_t *)ddi_get_soft_state(ppb_state, in ppb_initchild()
700 if (ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) { in ppb_initchild()
740 ppb_devstate_t *ppb; in ppb_removechild() local
742 ppb = (ppb_devstate_t *)ddi_get_soft_state(ppb_state, in ppb_removechild()
745 if (ppb->parent_bus == PCIE_PCIECAP_DEV_TYPE_PCIE_DEV) { in ppb_removechild()
1068 ppb_devstate_t *ppb = ddi_get_soft_state(ppb_state, in ppb_fm_init() local
1072 *ibc = ppb->ppb_fm_ibc; in ppb_fm_init()
1074 return (ppb->ppb_fmcap); in ppb_fm_init()
1081 ppb_devstate_t *ppb = ddi_get_soft_state(ppb_state, in ppb_fm_callback() local
1084 mutex_enter(&ppb->ppb_err_mutex); in ppb_fm_callback()
1086 mutex_exit(&ppb->ppb_err_mutex); in ppb_fm_callback()