Lines Matching refs:rdip

155 pci_msi_get_cap(dev_info_t *rdip, int type, int *flagsp)  in pci_msi_get_cap()  argument
161 (void *)rdip)); in pci_msi_get_cap()
165 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_get_cap()
200 pci_msi_configure(dev_info_t *rdip, int type, int count, int inum, in pci_msi_configure() argument
208 (void *)rdip, type, count, inum, addr, data)); in pci_msi_configure()
210 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_configure()
250 ddi_intr_msix_t *msix_p = i_ddi_get_msix(rdip); in pci_msi_configure()
294 pci_msi_unconfigure(dev_info_t *rdip, int type, int inum) in pci_msi_unconfigure() argument
300 "inum 0x%x\n", (void *)rdip, type, inum)); in pci_msi_unconfigure()
302 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, &caps_ptr, &h) != in pci_msi_unconfigure()
325 ddi_intr_msix_t *msix_p = i_ddi_get_msix(rdip); in pci_msi_unconfigure()
358 pci_is_msi_enabled(dev_info_t *rdip, int type) in pci_is_msi_enabled() argument
365 "type = 0x%x\n", (void *)rdip, type)); in pci_is_msi_enabled()
367 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_is_msi_enabled()
393 pci_msi_enable_mode(dev_info_t *rdip, int type) in pci_msi_enable_mode() argument
399 (void *)rdip)); in pci_msi_enable_mode()
401 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_enable_mode()
441 pci_msi_disable_mode(dev_info_t *rdip, int type) in pci_msi_disable_mode() argument
447 (void *)rdip)); in pci_msi_disable_mode()
449 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_disable_mode()
483 pci_msi_set_mask(dev_info_t *rdip, int type, int inum) in pci_msi_set_mask() argument
492 "type = 0x%x\n", (void *)rdip, type)); in pci_msi_set_mask()
494 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_set_mask()
523 msix_p = i_ddi_get_msix(rdip); in pci_msi_set_mask()
547 pci_msi_clr_mask(dev_info_t *rdip, int type, int inum) in pci_msi_clr_mask() argument
556 "type = 0x%x\n", (void *)rdip, type)); in pci_msi_clr_mask()
558 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_clr_mask()
585 msix_p = i_ddi_get_msix(rdip); in pci_msi_clr_mask()
609 pci_msi_get_pending(dev_info_t *rdip, int type, int inum, int *pendingp) in pci_msi_get_pending() argument
617 (void *)rdip)); in pci_msi_get_pending()
619 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_get_pending()
644 ddi_intr_msix_t *msix_p = i_ddi_get_msix(rdip); in pci_msi_get_pending()
668 pci_msi_get_nintrs(dev_info_t *rdip, int type, int *nintrs) in pci_msi_get_nintrs() argument
674 (void *)rdip)); in pci_msi_get_nintrs()
676 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_get_nintrs()
705 pci_msi_set_nintrs(dev_info_t *rdip, int type, int navail) in pci_msi_set_nintrs() argument
711 "navail = 0x%x\n", (void *)rdip, navail)); in pci_msi_set_nintrs()
718 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, in pci_msi_set_nintrs()
742 pci_msi_get_supported_type(dev_info_t *rdip, int *typesp) in pci_msi_get_supported_type() argument
748 "rdip = 0x%p\n", (void *)rdip)); in pci_msi_get_supported_type()
752 if (pci_get_msi_ctrl(rdip, DDI_INTR_TYPE_MSI, &msi_ctrl, in pci_msi_get_supported_type()
758 if (pci_get_msi_ctrl(rdip, DDI_INTR_TYPE_MSIX, &msi_ctrl, in pci_msi_get_supported_type()
765 "rdip = 0x%p types 0x%x\n", (void *)rdip, *typesp)); in pci_msi_get_supported_type()
778 pci_msix_init(dev_info_t *rdip) in pci_msix_init() argument
790 DDI_INTR_NEXDBG((CE_CONT, "pci_msix_init: rdip = %p\n", (void *)rdip)); in pci_msix_init()
792 if (pci_get_msi_ctrl(rdip, DDI_INTR_TYPE_MSIX, &msix_ctrl, in pci_msix_init()
823 if ((ret = ddi_prop_lookup_int_array(DDI_DEV_T_ANY, rdip, in pci_msix_init()
855 if ((ret = ddi_regs_map_setup(rdip, rnumber, in pci_msix_init()
904 if ((ret = ddi_regs_map_setup(rdip, rnumber, in pci_msix_init()
956 pci_msix_dup(dev_info_t *rdip, int org_inum, int dup_inum) in pci_msix_dup() argument
958 ddi_intr_msix_t *msix_p = i_ddi_get_msix(rdip); in pci_msix_dup()
964 "to_vector = 0x%x\n", (void *)rdip, org_inum, dup_inum)); in pci_msix_dup()
985 return (pci_msi_configure(rdip, DDI_INTR_TYPE_MSIX, 1, dup_inum, addr, in pci_msix_dup()
1167 pci_intx_get_ispec(dev_info_t *dip, dev_info_t *rdip, int inum) in pci_intx_get_ispec() argument
1175 if ((pdptr = ddi_get_parent_data(rdip)) == NULL) in pci_intx_get_ispec()
1183 if (ddi_prop_lookup_int_array(DDI_DEV_T_ANY, rdip, in pci_intx_get_ispec()
1193 ispec->intrspec_pri = pci_class_to_pil(rdip); in pci_intx_get_ispec()
1198 if (pci_config_setup(rdip, &cfg_hdl) != DDI_SUCCESS) { in pci_intx_get_ispec()
1231 pci_class_to_val(dev_info_t *rdip, char *property_name, pci_class_val_t *rec_p, in pci_class_to_val() argument
1243 class_code = (uint32_t)ddi_prop_get_int(DDI_DEV_T_ANY, rdip, in pci_class_to_val()
1254 if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_NOTPROM, in pci_class_to_val()
1271 pci_class_to_pil(dev_info_t *rdip) in pci_class_to_pil() argument
1276 pil = pci_class_to_val(rdip, in pci_class_to_pil()
1293 pci_class_to_intr_weight(dev_info_t *rdip) in pci_class_to_intr_weight() argument
1298 intr_weight = pci_class_to_val(rdip, in pci_class_to_intr_weight()