Lines Matching refs:bus
59 static void scan_d2a_subtree(dev_info_t *dip, ACPI_HANDLE acpiobj, int bus);
1021 * values for bus, segment, device and function; anything ACPI CA
1027 * on bus #0 - which means that we'll recurse when we attempt
1029 * scan_d2a_map, we don't translate the bus # and return.
1041 int bus, device, func, devfn;
1060 (acpica_get_bdf(dip, &bus, &device, &func) >= 0)) {
1061 (*PciId)->Bus = bus;
1364 * If we find more than one bus with a 0 _BBN
1658 int bus;
1691 * To get bus number of dip, get first child and get its
1692 * bus number. If NULL, just continue, because we don't
1693 * care about bus nodes with no children anyway.
1698 if (acpica_get_bdf(cdip, &bus, NULL, NULL) < 0) {
1700 cmn_err(CE_WARN, "Can't get bus number of PCI child?");
1708 if (acpica_find_pcibus(bus, &acpiobj) == AE_ERROR) {
1710 cmn_err(CE_WARN, "No ACPI bus obj for bus %d?\n", bus);
1719 scan_d2a_subtree(dip, acpiobj, bus);
1729 * bus is assumed to already be a match from caller, and is
1733 scan_d2a_subtree(dev_info_t *dip, ACPI_HANDLE acpiobj, int bus)
1761 bus = dcld_b;
1772 scan_d2a_subtree(dcld, acld, bus);
1783 * Return bus/dev/fn for PCI dip (note: not the parent "pci" node).
1786 acpica_get_bdf(dev_info_t *dip, int *bus, int *device, int *func)
1799 if (bus != NULL)
1800 *bus = (int)PCI_REG_BUS_G(pci_rp->pci_phys_hi);