• Home
  • Raw
  • Download

Lines Matching refs:bus

210 resource_size_t pcibios_window_alignment(struct pci_bus *bus,  in pcibios_window_alignment()  argument
213 struct pci_controller *phb = pci_bus_to_host(bus); in pcibios_window_alignment()
216 return phb->controller_ops.window_alignment(bus, type); in pcibios_window_alignment()
226 void pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) in pcibios_setup_bridge() argument
228 struct pci_controller *hose = pci_bus_to_host(bus); in pcibios_setup_bridge()
231 hose->controller_ops.setup_bridge(bus, type); in pcibios_setup_bridge()
236 struct pci_controller *phb = pci_bus_to_host(dev->bus); in pcibios_reset_secondary_bus()
341 int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr() argument
343 struct pci_controller *hose = pci_bus_to_host(bus); in pci_domain_nr()
436 struct pci_controller *hose = pci_bus_to_host(pdev->bus); in pci_iobar_pfn()
499 int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) in pci_legacy_read() argument
502 struct pci_controller *hose = pci_bus_to_host(bus); in pci_legacy_read()
539 int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) in pci_legacy_write() argument
542 struct pci_controller *hose = pci_bus_to_host(bus); in pci_legacy_write()
584 int pci_mmap_legacy_page_range(struct pci_bus *bus, in pci_mmap_legacy_page_range() argument
588 struct pci_controller *hose = pci_bus_to_host(bus); in pci_mmap_legacy_page_range()
595 pci_domain_nr(bus), bus->number, in pci_mmap_legacy_page_range()
611 current->comm, current->pid, pci_domain_nr(bus), bus->number); in pci_mmap_legacy_page_range()
643 pcibios_resource_to_bus(dev->bus, &region, in pci_resource_to_user()
788 int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() argument
790 struct pci_controller *hose = pci_bus_to_host(bus); in pci_proc_domain()
812 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pcibios_fixup_resources()
835 pcibios_resource_to_bus(dev->bus, &reg, res); in pcibios_fixup_resources()
862 static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus, in pcibios_uninitialized_bridge_resource() argument
865 struct pci_controller *hose = pci_bus_to_host(bus); in pcibios_uninitialized_bridge_resource()
866 struct pci_dev *dev = bus->self; in pcibios_uninitialized_bridge_resource()
878 pcibios_resource_to_bus(dev->bus, &region, res); in pcibios_uninitialized_bridge_resource()
928 static void pcibios_fixup_bridge(struct pci_bus *bus) in pcibios_fixup_bridge() argument
933 struct pci_dev *dev = bus->self; in pcibios_fixup_bridge()
935 pci_bus_for_each_resource(bus, res, i) { in pcibios_fixup_bridge()
938 if (i >= 3 && bus->self->transparent) in pcibios_fixup_bridge()
957 if (pcibios_uninitialized_bridge_resource(bus, res)) { in pcibios_fixup_bridge()
964 void pcibios_setup_bus_self(struct pci_bus *bus) in pcibios_setup_bus_self() argument
969 if (bus->self != NULL) in pcibios_setup_bus_self()
970 pcibios_fixup_bridge(bus); in pcibios_setup_bus_self()
976 ppc_md.pcibios_fixup_bus(bus); in pcibios_setup_bus_self()
979 phb = pci_bus_to_host(bus); in pcibios_setup_bus_self()
981 phb->controller_ops.dma_bus_setup(bus); in pcibios_setup_bus_self()
990 set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); in pcibios_setup_device()
997 phb = pci_bus_to_host(dev->bus); in pcibios_setup_device()
1013 if (dev->bus->is_added) in pcibios_add_device()
1024 void pcibios_setup_bus_devices(struct pci_bus *bus) in pcibios_setup_bus_devices() argument
1029 bus->number, bus->self ? pci_name(bus->self) : "PHB"); in pcibios_setup_bus_devices()
1031 list_for_each_entry(dev, &bus->devices, bus_list) { in pcibios_setup_bus_devices()
1047 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() argument
1053 pci_read_bridge_bases(bus); in pcibios_fixup_bus()
1056 pcibios_setup_bus_self(bus); in pcibios_fixup_bus()
1059 pcibios_setup_bus_devices(bus); in pcibios_fixup_bus()
1063 void pci_fixup_cardbus(struct pci_bus *bus) in pci_fixup_cardbus() argument
1066 pcibios_setup_bus_devices(bus); in pci_fixup_cardbus()
1073 !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) in skip_isa_ioresource_align()
1176 static void pcibios_allocate_bus_resources(struct pci_bus *bus) in pcibios_allocate_bus_resources() argument
1183 pci_domain_nr(bus), bus->number); in pcibios_allocate_bus_resources()
1185 pci_bus_for_each_resource(bus, res, i) { in pcibios_allocate_bus_resources()
1193 if (bus->parent == NULL) in pcibios_allocate_bus_resources()
1197 pr = pci_find_parent_resource(bus->self, res); in pcibios_allocate_bus_resources()
1208 bus->self ? pci_name(bus->self) : "PHB", bus->number, in pcibios_allocate_bus_resources()
1212 struct pci_dev *dev = bus->self; in pcibios_allocate_bus_resources()
1230 i, bus->number); in pcibios_allocate_bus_resources()
1243 list_for_each_entry(b, &bus->children, node) in pcibios_allocate_bus_resources()
1315 static void __init pcibios_reserve_legacy_regions(struct pci_bus *bus) in pcibios_reserve_legacy_regions() argument
1317 struct pci_controller *hose = pci_bus_to_host(bus); in pcibios_reserve_legacy_regions()
1322 pr_debug("Reserving legacy ranges for domain %04x\n", pci_domain_nr(bus)); in pcibios_reserve_legacy_regions()
1338 pci_domain_nr(bus), bus->number, res); in pcibios_reserve_legacy_regions()
1366 pci_domain_nr(bus), bus->number, res); in pcibios_reserve_legacy_regions()
1406 void pcibios_claim_one_bus(struct pci_bus *bus) in pcibios_claim_one_bus() argument
1411 list_for_each_entry(dev, &bus->devices, bus_list) { in pcibios_claim_one_bus()
1430 list_for_each_entry(child_bus, &bus->children, node) in pcibios_claim_one_bus()
1442 void pcibios_finish_adding_to_bus(struct pci_bus *bus) in pcibios_finish_adding_to_bus() argument
1445 pci_domain_nr(bus), bus->number); in pcibios_finish_adding_to_bus()
1448 pcibios_allocate_bus_resources(bus); in pcibios_finish_adding_to_bus()
1449 pcibios_claim_one_bus(bus); in pcibios_finish_adding_to_bus()
1451 if (bus->self) in pcibios_finish_adding_to_bus()
1452 pci_assign_unassigned_bridge_resources(bus->self); in pcibios_finish_adding_to_bus()
1454 pci_assign_unassigned_bus_resources(bus); in pcibios_finish_adding_to_bus()
1458 eeh_add_device_tree_late(bus); in pcibios_finish_adding_to_bus()
1461 pci_bus_add_devices(bus); in pcibios_finish_adding_to_bus()
1464 eeh_add_sysfs_files(bus); in pcibios_finish_adding_to_bus()
1470 struct pci_controller *phb = pci_bus_to_host(dev->bus); in pcibios_enable_device()
1481 struct pci_controller *phb = pci_bus_to_host(dev->bus); in pcibios_disable_device()
1540 null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, in null_read_config() argument
1547 null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, in null_write_config() argument
1566 static struct pci_bus bus; in fake_pci_bus() local
1571 bus.number = busnr; in fake_pci_bus()
1572 bus.sysdata = hose; in fake_pci_bus()
1573 bus.ops = hose? hose->ops: &null_pci_ops; in fake_pci_bus()
1574 return &bus; in fake_pci_bus()
1578 int early_##rw##_config_##size(struct pci_controller *hose, int bus, \
1581 return pci_bus_##rw##_config_##size(fake_pci_bus(hose, bus), \
1592 int early_find_capability(struct pci_controller *hose, int bus, int devfn, in EARLY_PCI_OP()
1595 return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); in EARLY_PCI_OP()
1598 struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) in pcibios_get_phb_of_node() argument
1600 struct pci_controller *hose = bus->sysdata; in pcibios_get_phb_of_node()
1612 struct pci_bus *bus; in pcibios_scan_phb() local
1630 bus = pci_create_root_bus(hose->parent, hose->first_busno, in pcibios_scan_phb()
1632 if (bus == NULL) { in pcibios_scan_phb()
1638 hose->bus = bus; in pcibios_scan_phb()
1643 mode = hose->controller_ops.probe_mode(bus); in pcibios_scan_phb()
1646 of_scan_bus(node, bus); in pcibios_scan_phb()
1649 pci_bus_update_busn_res_end(bus, 255); in pcibios_scan_phb()
1650 hose->last_busno = pci_scan_child_bus(bus); in pcibios_scan_phb()
1651 pci_bus_update_busn_res_end(bus, hose->last_busno); in pcibios_scan_phb()
1661 if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { in pcibios_scan_phb()
1663 list_for_each_entry(child, &bus->children, node) in pcibios_scan_phb()
1679 (dev->bus->parent == NULL)) { in fixup_hide_host_resource_fsl()