Lines Matching refs:pmubusp
225 pmubus_devstate_t *pmubusp; /* per pmubus state pointer */
241 pmubusp = ddi_get_soft_state(per_pmubus_state, instance);
242 pmubusp->pmubus_dip = dip;
246 "reg", (caddr_t)&pmubusp->pmubus_regp,
247 &pmubusp->pmubus_reglen) != DDI_SUCCESS) {
255 "ranges", (caddr_t)&pmubusp->pmubus_rangep,
256 &pmubusp->pmubus_rnglen) != DDI_SUCCESS) {
264 pmubusp->pmubus_nranges =
265 pmubusp->pmubus_rnglen / sizeof (pmu_rangespec_t);
268 if (pci_config_setup(dip, &pmubusp->pmubus_reghdl) !=
276 mutex_init(&pmubusp->pmubus_reg_access_lock, NULL,
287 kmem_free(pmubusp->pmubus_rangep, pmubusp->pmubus_rnglen);
290 kmem_free(pmubusp->pmubus_regp, pmubusp->pmubus_reglen);
306 pmubus_devstate_t *pmubusp = ddi_get_soft_state(per_pmubus_state,
311 mutex_destroy(&pmubusp->pmubus_reg_access_lock);
314 pci_config_teardown(&pmubusp->pmubus_reghdl);
317 kmem_free(pmubusp->pmubus_rangep, pmubusp->pmubus_rnglen);
320 kmem_free(pmubusp->pmubus_regp, pmubusp->pmubus_reglen);
588 pmubus_apply_range(pmubus_devstate_t *pmubusp, dev_info_t *rdip,
592 int nranges = pmubusp->pmubus_nranges;
601 for (i = 0, rangep = pmubusp->pmubus_rangep; i < nranges; i++, rangep++)
621 if (pci_regp->pci_phys_hi == pmubusp->pmubus_regp->pci_phys_hi) {
657 pmubus_devstate_t *pmubusp = ddi_get_soft_state(per_pmubus_state,
755 ret = pmubus_apply_range(pmubusp, rdip, &pmubus_rp, &pci_reg);
775 pmubus_mapreqp->mapreq_softsp = pmubusp;