Home
last modified time | relevance | path

Searched refs:pci_bus (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/Linux-v6.6/drivers/pci/hotplug/
Dcpqphp_pci.c72 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 …]
Dcpqphp_ctrl.c1117 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 …]
Dacpiphp_glue.c49 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()
446 struct pci_bus *bus = bridge->subordinate; in acpiphp_native_scan_bridge()
485 struct pci_bus *bus = slot->bus; in enable_slot()
558 struct pci_bus *bus = slot->bus; in disable_slot()
[all …]
/Linux-v6.6/include/linux/
Dpci-acpi.h34 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 …]
Dpci.h77 struct pci_bus *bus; /* Bus this slot is on */
324 struct pci_bus *bus; /* Bus this device is on */
325 struct pci_bus *subordinate; /* Bus this device bridges to */
543 struct pci_dev *pci_alloc_dev(struct pci_bus *bus);
565 struct pci_bus *bus; /* Root bus */
616 struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus);
647 struct pci_bus { struct
649 struct pci_bus *parent; /* Parent bus this bridge is on */ argument
683 #define to_pci_bus(n) container_of(n, struct pci_bus, dev) argument
698 static inline bool pci_is_root_bus(struct pci_bus *pbus) in pci_is_root_bus()
[all …]
/Linux-v6.6/arch/powerpc/include/asm/
Dpci.h65 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,
85 extern void pci_adjust_legacy_attr(struct pci_bus *bus,
89 extern void pcibios_claim_one_bus(struct pci_bus *b);
91 extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
99 struct pci_bus *bus, int devfn);
105 extern void of_scan_bus(struct device_node *node, struct pci_bus *bus);
[all …]
Dpci-bridge.h20 void (*dma_bus_setup)(struct pci_bus *bus);
24 int (*probe_mode)(struct pci_bus *bus);
35 resource_size_t (*window_alignment)(struct pci_bus *bus,
37 void (*setup_bridge)(struct pci_bus *bus,
57 struct pci_bus *bus;
165 extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn,
172 extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn,
175 static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) in pci_bus_to_host()
239 extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus,
261 extern struct pci_bus *pci_find_bus_by_node(struct device_node *dn);
[all …]
/Linux-v6.6/drivers/pci/
Dsearch.c32 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 …]
Dbus.c48 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource()
64 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n()
80 void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res) in pci_bus_remove_resource()
101 void pci_bus_remove_resources(struct pci_bus *bus) in pci_bus_remove_resources()
158 static void pci_clip_resource_to_region(struct pci_bus *bus, in pci_clip_resource_to_region()
176 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_from_region()
250 int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_resource()
289 struct pci_bus *bus = dev->bus; in pci_bus_clip_resource()
324 void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } in pcibios_resource_survey_bus()
366 void pci_bus_add_devices(const struct pci_bus *bus) in pci_bus_add_devices()
[all …]
Dhost-bridge.c12 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()
Dpci.h83 void pci_pme_wakeup_bus(struct pci_bus *bus);
142 int pci_proc_detach_bus(struct pci_bus *bus);
146 static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } in pci_proc_detach_bus()
153 void pci_create_legacy_files(struct pci_bus *bus);
154 void pci_remove_legacy_files(struct pci_bus *bus);
156 static inline void pci_create_legacy_files(struct pci_bus *bus) { } in pci_create_legacy_files()
157 static inline void pci_remove_legacy_files(struct pci_bus *bus) { } in pci_remove_legacy_files()
238 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
240 bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
242 int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *pl, int crs_timeout);
[all …]
Dprobe.c90 struct pci_bus *pci_bus = to_pci_bus(dev); in release_pcibus_dev() local
92 put_device(pci_bus->bridge); in release_pcibus_dev()
93 pci_bus_remove_resources(pci_bus); in release_pcibus_dev()
94 pci_release_bus_of_node(pci_bus); in release_pcibus_dev()
95 kfree(pci_bus); in release_pcibus_dev()
398 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io()
438 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio()
460 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref()
513 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases()
546 static struct pci_bus *pci_alloc_bus(struct pci_bus *parent) in pci_alloc_bus()
[all …]
Dsetup-bus.c490 static void pbus_assign_resources_sorted(const struct pci_bus *bus, in pbus_assign_resources_sorted()
503 void pci_setup_cardbus(struct pci_bus *bus) in pci_setup_cardbus()
662 static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type) in __pci_setup_bridge()
681 void __weak pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) in pcibios_setup_bridge()
685 void pci_setup_bridge(struct pci_bus *bus) in pci_setup_bridge()
734 static void pci_bridge_check_ranges(struct pci_bus *bus) in pci_bridge_check_ranges()
768 static struct resource *find_bus_resource_of_type(struct pci_bus *bus, in find_bus_resource_of_type()
830 resource_size_t __weak pcibios_window_alignment(struct pci_bus *bus, in pcibios_window_alignment()
840 static resource_size_t window_alignment(struct pci_bus *bus, unsigned long type) in window_alignment()
874 static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size, in pbus_size_io()
[all …]
/Linux-v6.6/arch/powerpc/kernel/
Dpci-hotplug.c21 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-v6.6/arch/x86/include/asm/
Dpci.h36 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()
111 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node()
117 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus()
/Linux-v6.6/arch/mips/pci/
Dops-rc32434.c47 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-v6.6/arch/alpha/include/asm/
Dpci.h23 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-v6.6/drivers/acpi/
Dpci_slot.c91 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-v6.6/arch/ia64/include/asm/
Dpci.h38 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-v6.6/arch/arm/plat-orion/include/plat/
Dpcie.h14 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-v6.6/arch/arm64/kernel/
Dpci.c38 struct pci_bus *b = pci_find_bus(domain, bus); in raw_pci_read()
48 struct pci_bus *b = pci_find_bus(domain, bus); in raw_pci_write()
57 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node()
72 int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) in acpi_pci_bus_find_domain_nr()
175 struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) in pci_acpi_scan_root()
178 struct pci_bus *bus, *child; in pci_acpi_scan_root()
223 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus()
228 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus()
/Linux-v6.6/arch/sparc/kernel/
Dpci_impl.h155 struct pci_bus *pci_bus; member
167 struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm,
172 void pci_scan_for_target_abort(struct pci_pbm_info *, struct pci_bus *);
173 void pci_scan_for_master_abort(struct pci_pbm_info *, struct pci_bus *);
174 void pci_scan_for_parity_error(struct pci_pbm_info *, struct pci_bus *);
/Linux-v6.6/arch/x86/pci/
Di386.c233 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-v6.6/include/linux/platform_data/x86/
Dp2sb.h12 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()
/Linux-v6.6/drivers/dca/
Ddca-core.c31 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()
358 struct pci_bus *rc; in register_dca_provider()
398 struct pci_bus *pci_rc; in unregister_dca_provider()

12345678910>>...14