/linux/drivers/pci/hotplug/ |
A D | cpqphp_pci.c | 72 struct pci_bus *child; in cpqhp_configure_device() 160 struct pci_bus *fakebus; in cpqhp_set_irq() 254 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper() 562 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_base_addr_length() local 568 pci_bus->number = func->bus; in cpqhp_save_base_addr_length() 707 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_used_resources() local 713 pci_bus->number = func->bus; in cpqhp_save_used_resources() 960 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_configure_board() local 966 pci_bus->number = func->bus; in cpqhp_configure_board() 1039 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_valid_replace() local [all …]
|
A D | cpqphp_ctrl.c | 1118 struct pci_bus *bus = ctrl->pci_bus; in set_controller_speed() 1256 struct pci_bus *bus = ctrl->pci_bus; in board_replaced() 1414 struct pci_bus *bus = ctrl->pci_bus; in board_added() 1506 ctrl->pci_bus->number = func->bus; in board_added() 2045 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_process_SS() local 2056 pci_bus->number = func->bus; in cpqhp_process_SS() 2235 ctrl->pci_bus->number = func->bus; in configure_new_device() 2345 struct pci_bus *pci_bus; in configure_new_function() local 2348 pci_bus = ctrl->pci_bus; in configure_new_function() 2349 pci_bus->number = func->bus; in configure_new_function() [all …]
|
A D | acpiphp_glue.c | 176 put_device(&bridge->pci_bus->dev); in free_bridge() 192 struct pci_bus *bus; in acpiphp_post_dock_fixup() 237 struct pci_bus *pbus = bridge->pci_bus; in acpiphp_add_context() 289 slot->bus = bridge->pci_bus; in acpiphp_add_context() 372 struct pci_bus *tmp; in acpiphp_max_busnr() 476 struct pci_bus *bus = slot->bus; in enable_slot() 546 struct pci_bus *bus = slot->bus; in disable_slot() 568 struct pci_bus *bus = slot->bus; in slot_no_hotplug() 700 struct pci_bus *bus = slot->bus; in acpiphp_check_bridge() 870 bridge->pci_bus = bus; in acpiphp_enumerate_slots() [all …]
|
/linux/include/linux/ |
A D | pci-acpi.h | 34 struct pci_bus *pbus = pdev->bus; in acpi_find_root_bridge_handle() 84 void acpi_pci_add_bus(struct pci_bus *bus); 85 void acpi_pci_remove_bus(struct pci_bus *bus); 97 void acpi_pci_slot_enumerate(struct pci_bus *bus); 98 void acpi_pci_slot_remove(struct pci_bus *bus); 102 static inline void acpi_pci_slot_remove(struct pci_bus *bus) { } in acpi_pci_slot_remove() 107 void acpiphp_enumerate_slots(struct pci_bus *bus); 108 void acpiphp_remove_slots(struct pci_bus *bus); 113 static inline void acpiphp_remove_slots(struct pci_bus *bus) { } in acpiphp_remove_slots() 137 static inline void acpi_pci_add_bus(struct pci_bus *bus) { } in acpi_pci_add_bus() [all …]
|
A D | pci.h | 546 struct pci_bus *bus; /* Root bus */ 626 struct pci_bus { struct 752 int (*add_bus)(struct pci_bus *bus); 753 void (*remove_bus)(struct pci_bus *bus); 1058 void pcibios_fixup_bus(struct pci_bus *); 1069 void pci_fixup_cardbus(struct pci_bus *); 1092 struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, 1116 void pci_remove_bus(struct pci_bus *b); 1136 struct pci_bus *pci_find_next_bus(const struct pci_bus *from); 1343 void pci_resume_bus(struct pci_bus *bus); [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | pci.h | 67 extern int pci_domain_nr(struct pci_bus *bus); 70 extern int pci_proc_domain(struct pci_bus *bus); 80 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, 82 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, 84 extern int pci_mmap_legacy_page_range(struct pci_bus *bus, 90 extern void pcibios_claim_one_bus(struct pci_bus *b); 92 extern void pcibios_finish_adding_to_bus(struct pci_bus *bus); 100 struct pci_bus *bus, int devfn); 106 extern void of_scan_bus(struct device_node *node, struct pci_bus *bus); 107 extern void of_rescan_bus(struct device_node *node, struct pci_bus *bus); [all …]
|
A D | pci-bridge.h | 19 void (*dma_bus_setup)(struct pci_bus *bus); 23 int (*probe_mode)(struct pci_bus *bus); 34 resource_size_t (*window_alignment)(struct pci_bus *bus, 36 void (*setup_bridge)(struct pci_bus *bus, 53 struct pci_bus *bus; 226 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, 258 extern struct pci_bus *pci_find_bus_by_node(struct device_node *dn); 261 extern void pci_hp_remove_devices(struct pci_bus *bus); 264 extern void pci_hp_add_devices(struct pci_bus *bus); 266 extern int pcibios_unmap_io_space(struct pci_bus *bus); [all …]
|
/linux/drivers/pci/ |
A D | search.c | 32 struct pci_bus *bus; in pci_for_each_dma_alias() 116 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) in pci_do_find_bus() 118 struct pci_bus *child; in pci_do_find_bus() 119 struct pci_bus *tmp; in pci_do_find_bus() 141 struct pci_bus *pci_find_bus(int domain, int busnr) in pci_find_bus() 143 struct pci_bus *bus = NULL; in pci_find_bus() 144 struct pci_bus *tmp_bus; in pci_find_bus() 166 struct pci_bus *pci_find_next_bus(const struct pci_bus *from) in pci_find_next_bus() 169 struct pci_bus *b = NULL; in pci_find_next_bus() 174 b = list_entry(n, struct pci_bus, node); in pci_find_next_bus() [all …]
|
A D | bus.c | 47 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource() 63 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n() 79 void pci_bus_remove_resources(struct pci_bus *bus) in pci_bus_remove_resources() 136 static void pci_clip_resource_to_region(struct pci_bus *bus, in pci_clip_resource_to_region() 263 struct pci_bus *bus = dev->bus; in pci_bus_clip_resource() 299 void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } in pcibios_resource_survey_bus() 338 void pci_bus_add_devices(const struct pci_bus *bus) in pci_bus_add_devices() 341 struct pci_bus *child; in pci_bus_add_devices() 378 struct pci_bus *bus; in pci_walk_bus() 410 struct pci_bus *pci_bus_get(struct pci_bus *bus) in pci_bus_get() [all …]
|
A D | host-bridge.c | 12 static struct pci_bus *find_pci_root_bus(struct pci_bus *bus) in find_pci_root_bus() 20 struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus) in pci_find_host_bridge() 22 struct pci_bus *root_bus = find_pci_root_bus(bus); in pci_find_host_bridge() 30 struct pci_bus *root_bus = find_pci_root_bus(dev->bus); in pci_get_host_bridge_device() 51 void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, in pcibios_resource_to_bus() 76 void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res, in pcibios_bus_to_resource()
|
A D | pci.h | 74 void pci_pme_wakeup_bus(struct pci_bus *bus); 133 int pci_proc_detach_bus(struct pci_bus *bus); 144 void pci_create_legacy_files(struct pci_bus *bus); 145 void pci_remove_legacy_files(struct pci_bus *bus); 239 void __pci_bus_size_bridges(struct pci_bus *bus, 248 struct pci_bus *pci_bus_get(struct pci_bus *bus); 249 void pci_bus_put(struct pci_bus *bus); 482 int pci_iov_bus_range(struct pci_bus *bus); 500 static inline int pci_iov_bus_range(struct pci_bus *bus) in pci_iov_bus_range() 632 void pci_set_bus_of_node(struct pci_bus *bus); [all …]
|
A D | probe.c | 91 struct pci_bus *pci_bus = to_pci_bus(dev); in release_pcibus_dev() local 96 kfree(pci_bus); in release_pcibus_dev() 547 static struct pci_bus *pci_alloc_bus(struct pci_bus *parent) in pci_alloc_bus() 549 struct pci_bus *b; in pci_alloc_bus() 865 struct pci_bus *b; in pci_set_bus_msi_domain() 1076 static struct pci_bus *pci_alloc_child_bus(struct pci_bus *parent, in pci_alloc_child_bus() 1079 struct pci_bus *child; in pci_alloc_child_bus() 1158 struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, in pci_add_new_bus() 3156 struct pci_bus *b; in pci_scan_root_bus_bridge() 3197 struct pci_bus *b; in pci_scan_root_bus() [all …]
|
A D | setup-bus.c | 1214 struct pci_bus *b = dev->subordinate; in __pci_bus_size_bridges() 1364 struct pci_bus *b; in pdev_assign_fixed_resources() 1383 struct pci_bus *b; in __pci_bus_assign_resources() 1452 struct pci_bus *child; in pci_bus_allocate_dev_resources() 1465 struct pci_bus *child; in pci_bus_allocate_resources() 1492 struct pci_bus *b; in __pci_bridge_assign_resources() 1599 struct pci_bus *b = dev->subordinate; in pci_bus_release_bridge_resources() 1638 struct pci_bus *b; in pci_bus_dump_resources() 1656 struct pci_bus *child_bus; in pci_bus_get_depth() 1850 struct pci_bus *root_bus; in pci_assign_unassigned_resources() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | pci-hotplug.c | 20 static struct pci_bus *find_bus_among_children(struct pci_bus *bus, in find_bus_among_children() 23 struct pci_bus *child = NULL; in find_bus_among_children() 24 struct pci_bus *tmp; in find_bus_among_children() 38 struct pci_bus *pci_find_bus_by_node(struct device_node *dn) in pci_find_bus_by_node() 77 void pci_hp_remove_devices(struct pci_bus *bus) in pci_hp_remove_devices() 80 struct pci_bus *child_bus; in pci_hp_remove_devices() 106 void pci_hp_add_devices(struct pci_bus *bus) in pci_hp_add_devices()
|
/linux/arch/x86/include/asm/ |
A D | pci.h | 36 static inline struct pci_sysdata *to_pci_sysdata(const struct pci_bus *bus) in to_pci_sysdata() 44 static inline int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr() 49 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() 56 static inline void *_pci_root_bus_fwnode(struct pci_bus *bus) in _pci_root_bus_fwnode() 65 static inline bool is_vmd(struct pci_bus *bus) in is_vmd() 113 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node() 119 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus()
|
/linux/arch/mips/pci/ |
A D | ops-rc32434.c | 47 struct pci_bus *bus, unsigned int devfn, in config_access() 72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte() 83 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word() 94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword() 129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, in write_config_byte() 148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, in write_config_word() 168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, in write_config_dword() 177 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, in pci_config_read() 190 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, in pci_config_write()
|
/linux/drivers/acpi/ |
A D | pci_slot.c | 91 struct pci_bus *pci_bus = context; in register_slot() local 103 if (pci_slot->bus == pci_bus && pci_slot->number == device) in register_slot() 112 pci_slot = pci_create_slot(pci_bus, device, name, NULL); in register_slot() 122 get_device(&pci_bus->dev); in register_slot() 125 pci_slot, pci_bus->number, device, name); in register_slot() 130 void acpi_pci_slot_enumerate(struct pci_bus *bus) in acpi_pci_slot_enumerate() 142 void acpi_pci_slot_remove(struct pci_bus *bus) in acpi_pci_slot_remove()
|
/linux/arch/alpha/include/asm/ |
A D | pci.h | 23 struct pci_bus *bus; 67 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() 86 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, 88 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, 90 extern int pci_mmap_legacy_page_range(struct pci_bus *bus, 93 extern void pci_adjust_legacy_attr(struct pci_bus *bus,
|
/linux/arch/microblaze/include/asm/ |
A D | pci.h | 39 extern int pci_domain_nr(struct pci_bus *bus); 42 extern int pci_proc_domain(struct pci_bus *bus); 51 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, 53 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, 55 extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
|
/linux/arch/arm/plat-orion/include/plat/ |
A D | pcie.h | 14 struct pci_bus; 24 int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, 26 int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, 28 int orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, 30 int orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus,
|
/linux/arch/ia64/include/asm/ |
A D | pci.h | 38 extern int pci_mmap_legacy_page_range(struct pci_bus *bus, 42 char *pci_get_legacy_mem(struct pci_bus *bus); 43 int pci_legacy_read(struct pci_bus *bus, u16 port, u32 *val, u8 size); 44 int pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size); 61 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain()
|
/linux/arch/arm64/kernel/ |
A D | pci.c | 40 struct pci_bus *b = pci_find_bus(domain, bus); in raw_pci_read() 50 struct pci_bus *b = pci_find_bus(domain, bus); in raw_pci_write() 59 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node() 74 int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) in acpi_pci_bus_find_domain_nr() 177 struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) in pci_acpi_scan_root() 180 struct pci_bus *bus, *child; in pci_acpi_scan_root() 225 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus() 230 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus()
|
/linux/arch/x86/pci/ |
A D | i386.c | 233 static void pcibios_allocate_bus_resources(struct pci_bus *bus) in pcibios_allocate_bus_resources() 235 struct pci_bus *child; in pcibios_allocate_bus_resources() 307 static void pcibios_allocate_resources(struct pci_bus *bus, int pass) in pcibios_allocate_resources() 310 struct pci_bus *child; in pcibios_allocate_resources() 341 static void pcibios_allocate_rom_resources(struct pci_bus *bus) in pcibios_allocate_rom_resources() 344 struct pci_bus *child; in pcibios_allocate_rom_resources() 357 struct pci_bus *bus; in pcibios_assign_resources() 375 void pcibios_resource_survey_bus(struct pci_bus *bus) in pcibios_resource_survey_bus() 390 struct pci_bus *bus; in pcibios_resource_survey()
|
/linux/arch/sparc/kernel/ |
A D | pci_impl.h | 156 struct pci_bus *pci_bus; member 168 struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm, 173 void pci_scan_for_target_abort(struct pci_pbm_info *, struct pci_bus *); 174 void pci_scan_for_master_abort(struct pci_pbm_info *, struct pci_bus *); 175 void pci_scan_for_parity_error(struct pci_pbm_info *, struct pci_bus *);
|
/linux/drivers/dca/ |
A D | dca-core.c | 31 static struct pci_bus *dca_pci_rc_from_dev(struct device *dev) in dca_pci_rc_from_dev() 34 struct pci_bus *bus = pdev->bus; in dca_pci_rc_from_dev() 42 static struct dca_domain *dca_allocate_domain(struct pci_bus *rc) in dca_allocate_domain() 112 static struct dca_domain *dca_find_domain(struct pci_bus *rc) in dca_find_domain() 125 struct pci_bus *rc; in dca_get_domain() 142 struct pci_bus *rc; in dca_find_provider_by_dev() 175 struct pci_bus *pci_rc; in dca_add_requester() 360 struct pci_bus *rc; in register_dca_provider() 400 struct pci_bus *pci_rc; in unregister_dca_provider()
|