Lines Matching refs:bus
49 #define PCI_DEVID(bus, devfn) ((((u16)(bus)) << 8) | (devfn)) argument
55 struct pci_bus *bus; /* The bus this slot is on */ member
260 struct pci_bus *bus; /* bus this device is on */ member
397 struct pci_dev *pci_alloc_dev(struct pci_bus *bus);
409 struct pci_bus *bus; /* root bus */ member
512 if (pci_is_root_bus(dev->bus)) in pci_upstream_bridge()
515 return dev->bus->self; in pci_upstream_bridge()
570 void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where);
571 int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val);
572 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
579 int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn,
581 int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn,
741 void pcie_bus_configure_settings(struct pci_bus *bus);
760 void pcibios_resource_survey_bus(struct pci_bus *bus);
761 void pcibios_add_bus(struct pci_bus *bus);
762 void pcibios_remove_bus(struct pci_bus *bus);
779 void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region,
781 void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res,
785 void pci_bus_add_devices(const struct pci_bus *bus);
786 struct pci_bus *pci_scan_bus_parented(struct device *parent, int bus,
788 struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata);
789 struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
792 int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax);
795 struct pci_bus *pci_scan_root_bus(struct device *parent, int bus,
800 void pcie_update_link_speed(struct pci_bus *bus, u16 link_status);
805 int pci_scan_slot(struct pci_bus *bus, int devfn);
806 struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn);
807 void pci_device_add(struct pci_dev *dev, struct pci_bus *bus);
808 unsigned int pci_scan_child_bus(struct pci_bus *bus);
821 void pci_stop_root_bus(struct pci_bus *bus);
822 void pci_remove_root_bus(struct pci_bus *bus);
823 void pci_setup_cardbus(struct pci_bus *bus);
825 #define dev_is_pci(d) ((d)->bus == &pci_bus_type)
851 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn);
852 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus,
854 static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, in pci_get_bus_and_slot() argument
857 return pci_get_domain_bus_and_slot(0, bus, devfn); in pci_get_bus_and_slot()
862 int pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn,
864 int pci_bus_read_config_word(struct pci_bus *bus, unsigned int devfn,
866 int pci_bus_read_config_dword(struct pci_bus *bus, unsigned int devfn,
868 int pci_bus_write_config_byte(struct pci_bus *bus, unsigned int devfn,
870 int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn,
872 int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn,
875 int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn,
877 int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn,
879 int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn,
881 int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn,
884 struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops);
888 return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); in pci_read_config_byte()
892 return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); in pci_read_config_word()
897 return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); in pci_read_config_dword()
901 return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); in pci_write_config_byte()
905 return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); in pci_write_config_word()
910 return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); in pci_write_config_dword()
1008 int pci_probe_reset_bus(struct pci_bus *bus);
1009 int pci_reset_bus(struct pci_bus *bus);
1010 int pci_try_reset_bus(struct pci_bus *bus);
1055 void pci_pme_wakeup_bus(struct pci_bus *bus);
1073 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
1075 unsigned int pci_rescan_bus(struct pci_bus *bus);
1085 void pci_bus_assign_resources(const struct pci_bus *bus);
1086 void pci_bus_size_bridges(struct pci_bus *bus);
1091 void pci_assign_unassigned_bus_resources(struct pci_bus *bus);
1092 void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus);
1109 struct pci_bus *pci_bus_get(struct pci_bus *bus);
1110 void pci_bus_put(struct pci_bus *bus);
1115 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, unsigned int flags);
1116 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n);
1117 void pci_bus_remove_resources(struct pci_bus *bus);
1119 #define pci_bus_for_each_resource(bus, res, i) \ argument
1121 (res = pci_bus_resource_n(bus, i)) || i < PCI_BRIDGE_RESOURCE_NUM; \
1124 int __must_check pci_bus_alloc_resource(struct pci_bus *bus,
1141 pcibios_resource_to_bus(pdev->bus, ®ion, &pdev->resource[bar]); in pci_bus_address()
1177 int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
1183 unsigned char pci_bus_max_busnr(struct pci_bus *bus);
1184 void pci_setup_bridge(struct pci_bus *bus);
1185 resource_size_t pcibios_window_alignment(struct pci_bus *bus,
1326 static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } in pci_domain_nr() argument
1327 static inline int pci_proc_domain(struct pci_bus *bus) { return 0; } in pci_proc_domain() argument
1337 static inline int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr() argument
1339 return bus->domain_nr; in pci_domain_nr()
1341 void pci_bus_assign_domain_nr(struct pci_bus *bus, struct device *parent);
1343 static inline void pci_bus_assign_domain_nr(struct pci_bus *bus, in pci_bus_assign_domain_nr() argument
1448 static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, in pci_get_slot() argument
1451 static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, in pci_get_bus_and_slot() argument
1455 static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } in pci_domain_nr() argument
1864 void pci_set_bus_of_node(struct pci_bus *bus);
1865 void pci_release_bus_of_node(struct pci_bus *bus);
1868 struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus);
1876 static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) in pci_bus_to_OF_node() argument
1878 return bus ? bus->dev.of_node : NULL; in pci_bus_to_OF_node()
1884 static inline void pci_set_bus_of_node(struct pci_bus *bus) { } in pci_set_bus_of_node() argument
1885 static inline void pci_release_bus_of_node(struct pci_bus *bus) { } in pci_release_bus_of_node() argument