Home
last modified time | relevance | path

Searched refs:cmn_p (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpcipsy.c70 pci_common_t *cmn_p; in pci_obj_setup() local
74 cmn_p = get_pci_common_soft_state(pci_p->pci_id); in pci_obj_setup()
75 if (cmn_p == NULL) { in pci_obj_setup()
81 cmn_p = get_pci_common_soft_state(id); in pci_obj_setup()
82 cmn_p->pci_common_id = id; in pci_obj_setup()
86 if (cmn_p->pci_p[pci_p->pci_side]) { in pci_obj_setup()
89 ASSERT(cmn_p->pci_p[pci_p->pci_side] == NULL); in pci_obj_setup()
92 cmn_p->pci_p[pci_p->pci_side] = pci_p; in pci_obj_setup()
93 pci_p->pci_common_p = cmn_p; in pci_obj_setup()
95 if (cmn_p->pci_common_refcnt == 0) { in pci_obj_setup()
[all …]
H A Dpci_fm.c203 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_err_callback() local
204 ecc_t *ecc_p = cmn_p->pci_common_ecc_p; in pci_err_callback()
212 mutex_enter(&cmn_p->pci_fm_mutex); in pci_err_callback()
238 mutex_exit(&cmn_p->pci_fm_mutex); in pci_err_callback()
253 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_fm_create() local
295 if (cmn_p->pci_common_refcnt == 0) { in pci_fm_create()
296 mutex_init(&cmn_p->pci_fm_mutex, NULL, MUTEX_DRIVER, in pci_fm_create()
310 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_fm_destroy() local
316 if (cmn_p->pci_common_refcnt != 0) in pci_fm_destroy()
319 mutex_destroy(&cmn_p->pci_fm_mutex); in pci_fm_destroy()
H A Dpci_counters.c44 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_kstat_create() local
46 if (cmn_p->pci_common_attachcnt == 0) in pci_kstat_create()
55 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_kstat_destroy() local
59 if (cmn_p->pci_common_attachcnt == 0) in pci_kstat_destroy()
266 pci_common_t *cmn_p = pci_p->pci_common_p; in pci_rem_upstream_kstat() local
268 if (cmn_p->pci_common_uksp != NULL) in pci_rem_upstream_kstat()
269 kstat_delete(cmn_p->pci_common_uksp); in pci_rem_upstream_kstat()
270 cmn_p->pci_common_uksp = NULL; in pci_rem_upstream_kstat()
H A Dpcisch.c93 pci_common_t *cmn_p; in pci_obj_setup() local
103 cmn_p = get_pci_common_soft_state(cmn_id); in pci_obj_setup()
104 if (cmn_p == NULL) { in pci_obj_setup()
110 cmn_p = get_pci_common_soft_state(cmn_id); in pci_obj_setup()
111 cmn_p->pci_common_id = cmn_id; in pci_obj_setup()
112 cmn_p->pci_common_tsb_cookie = IOMMU_TSB_COOKIE_NONE; in pci_obj_setup()
116 if (cmn_p->pci_p[pci_p->pci_side]) { in pci_obj_setup()
119 ASSERT(cmn_p->pci_p[pci_p->pci_side] == NULL); in pci_obj_setup()
122 cmn_p->pci_p[pci_p->pci_side] = pci_p; in pci_obj_setup()
123 pci_p->pci_common_p = cmn_p; in pci_obj_setup()
[all …]
H A Dpci_ecc.c292 pci_common_t *cmn_p = ecc_p->ecc_pci_cmn_p; in ecc_intr() local
302 mutex_enter(&cmn_p->pci_fm_mutex); in ecc_intr()
304 mutex_exit(&cmn_p->pci_fm_mutex); in ecc_intr()
627 pci_common_t *cmn_p; in ecc_delayed_ce() local
632 cmn_p = ecc_p->ecc_pci_cmn_p; in ecc_delayed_ce()
633 cb_p = cmn_p->pci_common_cb_p; in ecc_delayed_ce()
652 mutex_enter(&cmn_p->pci_fm_mutex); in ecc_delayed_ce()
654 mutex_exit(&cmn_p->pci_fm_mutex); in ecc_delayed_ce()
H A Dpci_pbm.c320 pci_common_t *cmn_p = pci_p->pci_common_p; in pbm_afsr_report() local
322 ASSERT(MUTEX_HELD(&cmn_p->pci_fm_mutex)); in pbm_afsr_report()
/illumos-gate/usr/src/uts/sun4u/sys/pci/
H A Dpcisch.h544 #define PCI_BRIDGE_TYPE(cmn_p) \ argument
545 (((cmn_p->pci_chip_id >> 16) == PCI_CHIP_SCHIZO) ? PCI_SCHIZO : \
546 ((cmn_p->pci_chip_id >> 16) == PCI_CHIP_TOMATILLO) ? PCI_TOMATILLO : \
547 ((cmn_p->pci_chip_id >> 16) == PCI_CHIP_XMITS) ? PCI_XMITS : "")
H A Dpcipsy.h167 #define PCI_BRIDGE_TYPE(cmn_p) PCI_PSYCHO argument
H A Dpci_fm.h209 extern void pci_fmri_create(dev_info_t *dip, pci_common_t *cmn_p);