/linux-6.1.9/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 72 struct pci_bus *child; in cpqhp_configure_device() 135 static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) in PCI_RefinedAccessConfig() 160 struct pci_bus *fakebus; in cpqhp_set_irq() 207 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge() 211 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge() 223 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge() 228 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge() 254 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper() 255 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper() 260 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper() [all …]
|
D | cpqphp_ctrl.c | 1117 struct pci_bus *bus = ctrl->pci_bus; in set_controller_speed() 1255 struct pci_bus *bus = ctrl->pci_bus; in board_replaced() 1413 struct pci_bus *bus = ctrl->pci_bus; in board_added() 1504 ctrl->pci_bus->number = func->bus; in board_added() 1505 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), PCI_VENDOR_… in board_added() 2036 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_process_SS() local 2044 pci_bus->number = func->bus; in cpqhp_process_SS() 2048 rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); in cpqhp_process_SS() 2057 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_process_SS() 2063 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); in cpqhp_process_SS() [all …]
|
D | acpiphp_glue.c | 49 static void acpiphp_sanitize_bus(struct pci_bus *bus); 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() 290 slot->bus = bridge->pci_bus; in acpiphp_add_context() 371 static unsigned char acpiphp_max_busnr(struct pci_bus *bus) in acpiphp_max_busnr() 373 struct pci_bus *tmp; in acpiphp_max_busnr() 438 struct pci_bus *bus = bridge->subordinate; in acpiphp_native_scan_bridge() 477 struct pci_bus *bus = slot->bus; in enable_slot() 547 struct pci_bus *bus = slot->bus; in disable_slot() [all …]
|
/linux-6.1.9/include/linux/ |
D | pci-acpi.h | 34 struct pci_bus *pbus = pdev->bus; in acpi_find_root_bridge_handle() 43 static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) in acpi_pci_get_bridge_handle() 79 extern struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, 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); 101 static inline void acpi_pci_slot_enumerate(struct pci_bus *bus) { } in acpi_pci_slot_enumerate() 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); [all …]
|
D | pci.h | 76 struct pci_bus *bus; /* Bus this slot is on */ 323 struct pci_bus *bus; /* Bus this device is on */ 324 struct pci_bus *subordinate; /* Bus this device bridges to */ 537 struct pci_dev *pci_alloc_dev(struct pci_bus *bus); 559 struct pci_bus *bus; /* Root bus */ 608 struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus); 639 struct pci_bus { struct 641 struct pci_bus *parent; /* Parent bus this bridge is on */ argument 675 #define to_pci_bus(n) container_of(n, struct pci_bus, dev) argument 690 static inline bool pci_is_root_bus(struct pci_bus *pbus) in pci_is_root_bus() [all …]
|
/linux-6.1.9/arch/powerpc/include/asm/ |
D | pci.h | 65 extern int pci_domain_nr(struct pci_bus *bus); 68 extern int pci_proc_domain(struct pci_bus *bus); 78 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, 80 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, 82 extern int pci_mmap_legacy_page_range(struct pci_bus *bus, 88 extern void pcibios_claim_one_bus(struct pci_bus *b); 90 extern void pcibios_finish_adding_to_bus(struct pci_bus *bus); 98 struct pci_bus *bus, int devfn); 104 extern void of_scan_bus(struct device_node *node, struct pci_bus *bus); 105 extern void of_rescan_bus(struct device_node *node, struct pci_bus *bus); [all …]
|
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; 158 extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn, 165 extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn, 168 static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) in pci_bus_to_host() 230 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, 252 extern struct pci_bus *pci_find_bus_by_node(struct device_node *dn); [all …]
|
/linux-6.1.9/drivers/pci/ |
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 …]
|
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() 154 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_from_region() 224 int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_resource() 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() [all …]
|
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()
|
D | pci.h | 74 void pci_pme_wakeup_bus(struct pci_bus *bus); 133 int pci_proc_detach_bus(struct pci_bus *bus); 137 static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } in pci_proc_detach_bus() 144 void pci_create_legacy_files(struct pci_bus *bus); 145 void pci_remove_legacy_files(struct pci_bus *bus); 147 static inline void pci_create_legacy_files(struct pci_bus *bus) { return; } in pci_create_legacy_files() 148 static inline void pci_remove_legacy_files(struct pci_bus *bus) { return; } in pci_remove_legacy_files() 229 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, 231 bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, 233 int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *pl, int crs_timeout); [all …]
|
D | probe.c | 91 struct pci_bus *pci_bus = to_pci_bus(dev); in release_pcibus_dev() local 93 put_device(pci_bus->bridge); in release_pcibus_dev() 94 pci_bus_remove_resources(pci_bus); in release_pcibus_dev() 95 pci_release_bus_of_node(pci_bus); in release_pcibus_dev() 96 kfree(pci_bus); in release_pcibus_dev() 399 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() 439 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() 461 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() 514 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() 547 static struct pci_bus *pci_alloc_bus(struct pci_bus *parent) in pci_alloc_bus() [all …]
|
D | setup-bus.c | 493 static void pbus_assign_resources_sorted(const struct pci_bus *bus, in pbus_assign_resources_sorted() 506 void pci_setup_cardbus(struct pci_bus *bus) in pci_setup_cardbus() 665 static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type) in __pci_setup_bridge() 684 void __weak pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) in pcibios_setup_bridge() 688 void pci_setup_bridge(struct pci_bus *bus) in pci_setup_bridge() 737 static void pci_bridge_check_ranges(struct pci_bus *bus) in pci_bridge_check_ranges() 771 static struct resource *find_bus_resource_of_type(struct pci_bus *bus, in find_bus_resource_of_type() 834 resource_size_t __weak pcibios_window_alignment(struct pci_bus *bus, in pcibios_window_alignment() 844 static resource_size_t window_alignment(struct pci_bus *bus, unsigned long type) in window_alignment() 878 static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size, in pbus_size_io() [all …]
|
/linux-6.1.9/arch/x86/include/asm/ |
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() 110 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node() 116 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | pci-hotplug.c | 21 static struct pci_bus *find_bus_among_children(struct pci_bus *bus, in find_bus_among_children() 24 struct pci_bus *child = NULL; in find_bus_among_children() 25 struct pci_bus *tmp; in find_bus_among_children() 39 struct pci_bus *pci_find_bus_by_node(struct device_node *dn) in pci_find_bus_by_node() 78 void pci_hp_remove_devices(struct pci_bus *bus) in pci_hp_remove_devices() 81 struct pci_bus *child_bus; in pci_hp_remove_devices() 107 void pci_hp_add_devices(struct pci_bus *bus) in pci_hp_add_devices()
|
/linux-6.1.9/arch/mips/pci/ |
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-6.1.9/arch/alpha/include/asm/ |
D | pci.h | 23 struct pci_bus *bus; 61 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() 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, 87 extern void pci_adjust_legacy_attr(struct pci_bus *bus,
|
/linux-6.1.9/drivers/acpi/ |
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-6.1.9/arch/microblaze/include/asm/ |
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-6.1.9/arch/ia64/include/asm/ |
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-6.1.9/arch/arm/plat-orion/include/plat/ |
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-6.1.9/arch/arm64/kernel/ |
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-6.1.9/arch/sparc/kernel/ |
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-6.1.9/arch/x86/pci/ |
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-6.1.9/include/linux/platform_data/x86/ |
D | p2sb.h | 12 struct pci_bus; 17 int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem); 21 static inline int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem) in p2sb_bar()
|