Home
last modified time | relevance | path

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

12345

/drivers/pci/hotplug/
Dsgi_hotplug.c60 struct pci_bus *pci_bus; member
108 static int sn_pci_slot_valid(struct pci_bus *pci_bus, int device) in sn_pci_slot_valid() argument
113 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(pci_bus); in sn_pci_slot_valid()
119 ioboard_type = sn_ioboard_to_pci_bus(pci_bus); in sn_pci_slot_valid()
121 segment = pci_domain_nr(pci_bus) & 0xf; in sn_pci_slot_valid()
132 static int sn_pci_bus_valid(struct pci_bus *pci_bus) in sn_pci_bus_valid() argument
139 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(pci_bus); in sn_pci_bus_valid()
145 ioboard_type = sn_ioboard_to_pci_bus(pci_bus); in sn_pci_bus_valid()
163 struct pci_bus *pci_bus, int device, in sn_hp_slot_private_alloc() argument
169 pcibus_info = SN_PCIBUS_BUSSOFT_INFO(pci_bus); in sn_hp_slot_private_alloc()
[all …]
Dcpqphp_pci.c86 struct pci_bus *child; in cpqhp_configure_device()
142 static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) in PCI_RefinedAccessConfig()
167 struct pci_bus *fakebus; in cpqhp_set_irq()
212 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge()
216 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge()
228 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge()
233 pci_bus_read_config_byte (ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
259 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper()
260 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper()
265 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper()
[all …]
Dcpqphp_ctrl.c1132 struct pci_bus *bus = ctrl->pci_bus; in set_controller_speed()
1272 struct pci_bus *bus = ctrl->pci_bus; in board_replaced()
1430 struct pci_bus *bus = ctrl->pci_bus; in board_added()
1522 ctrl->pci_bus->number = func->bus; in board_added()
1523 …rc = pci_bus_read_config_dword (ctrl->pci_bus, PCI_DEVFN(func->device, func->function), PCI_VENDOR… in board_added()
2088 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_process_SS() local
2099 pci_bus->number = func->bus; in cpqhp_process_SS()
2103 rc = pci_bus_read_config_byte (pci_bus, devfn, 0x0B, &class_code); in cpqhp_process_SS()
2112 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_process_SS()
2118 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); in cpqhp_process_SS()
[all …]
Dacpiphp_glue.c63 static void acpiphp_sanitize_bus(struct pci_bus *bus);
182 put_device(&bridge->pci_bus->dev); in free_bridge()
198 struct pci_bus *bus; in acpiphp_post_dock_fixup()
272 struct pci_bus *pbus = bridge->pci_bus; in acpiphp_add_context()
324 slot->bus = bridge->pci_bus; in acpiphp_add_context()
404 static unsigned char acpiphp_max_busnr(struct pci_bus *bus) in acpiphp_max_busnr()
406 struct pci_bus *tmp; in acpiphp_max_busnr()
486 struct pci_bus *bus = slot->bus; in enable_slot()
542 struct pci_bus *bus = slot->bus; in disable_slot()
564 struct pci_bus *bus = slot->bus; in slot_no_hotplug()
[all …]
Dcpci_hotplug.h47 struct pci_bus *bus;
80 int cpci_hp_register_bus(struct pci_bus *bus, u8 first, u8 last);
81 int cpci_hp_unregister_bus(struct pci_bus *bus);
Dacpiphp.h76 struct pci_bus *pci_bus; member
92 struct pci_bus *bus;
Dcpqphp_core.c334 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping()
606 struct pci_bus *bus = ctrl->pci_bus; in ctrl_slot_setup()
827 struct pci_bus *bus; in cpqhpc_probe()
1082 ctrl->pci_bus = kmemdup(pdev->bus, sizeof(*ctrl->pci_bus), GFP_KERNEL); in cpqhpc_probe()
1083 if (!ctrl->pci_bus) { in cpqhpc_probe()
1141 rc = get_slot_mapping(ctrl->pci_bus, pdev->bus->number, in cpqhpc_probe()
1298 kfree(ctrl->pci_bus); in cpqhpc_probe()
1364 kfree (ctrl->pci_bus); in unload_cpqphpd()
/drivers/pci/
Dsearch.c32 struct pci_bus *bus; in pci_for_each_dma_alias()
106 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) in pci_do_find_bus()
108 struct pci_bus *child; in pci_do_find_bus()
109 struct pci_bus *tmp; in pci_do_find_bus()
131 struct pci_bus *pci_find_bus(int domain, int busnr) in pci_find_bus()
133 struct pci_bus *bus = NULL; in pci_find_bus()
134 struct pci_bus *tmp_bus; in pci_find_bus()
156 struct pci_bus *pci_find_next_bus(const struct pci_bus *from) in pci_find_next_bus()
159 struct pci_bus *b = NULL; in pci_find_next_bus()
165 b = list_entry(n, struct pci_bus, node); in pci_find_next_bus()
[all …]
Dbus.c54 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource()
70 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n()
86 void pci_bus_remove_resources(struct pci_bus *bus) in pci_bus_remove_resources()
114 static void pci_clip_resource_to_region(struct pci_bus *bus, in pci_clip_resource_to_region()
132 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_from_region()
202 int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_resource()
241 struct pci_bus *bus = dev->bus; in pci_bus_clip_resource()
276 void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } in pcibios_resource_survey_bus()
310 void pci_bus_add_devices(const struct pci_bus *bus) in pci_bus_add_devices()
313 struct pci_bus *child; in pci_bus_add_devices()
[all …]
Dpci.h110 int pci_proc_detach_bus(struct pci_bus *bus);
114 static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } in pci_proc_detach_bus()
121 void pci_create_legacy_files(struct pci_bus *bus);
122 void pci_remove_legacy_files(struct pci_bus *bus);
124 static inline void pci_create_legacy_files(struct pci_bus *bus) { return; } in pci_create_legacy_files()
125 static inline void pci_remove_legacy_files(struct pci_bus *bus) { return; } in pci_remove_legacy_files()
199 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl,
206 void __pci_bus_size_bridges(struct pci_bus *bus,
208 void __pci_bus_assign_resources(const struct pci_bus *bus,
219 static inline int pci_ari_enabled(struct pci_bus *bus) in pci_ari_enabled()
[all …]
Dprobe.c88 struct pci_bus *pci_bus = to_pci_bus(dev); in release_pcibus_dev() local
90 if (pci_bus->bridge) in release_pcibus_dev()
91 put_device(pci_bus->bridge); in release_pcibus_dev()
92 pci_bus_remove_resources(pci_bus); in release_pcibus_dev()
93 pci_release_bus_of_node(pci_bus); in release_pcibus_dev()
94 kfree(pci_bus); in release_pcibus_dev()
350 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io()
390 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio()
412 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref()
465 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases()
[all …]
Dhost-bridge.c11 static struct pci_bus *find_pci_root_bus(struct pci_bus *bus) in find_pci_root_bus()
19 static struct pci_host_bridge *find_pci_host_bridge(struct pci_bus *bus) in find_pci_host_bridge()
21 struct pci_bus *root_bus = find_pci_root_bus(bus); in find_pci_host_bridge()
34 void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, in pcibios_resource_to_bus()
59 void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res, in pcibios_bus_to_resource()
Dsetup-bus.c454 static void pbus_assign_resources_sorted(const struct pci_bus *bus, in pbus_assign_resources_sorted()
467 void pci_setup_cardbus(struct pci_bus *bus) in pci_setup_cardbus()
622 static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type) in __pci_setup_bridge()
641 void pci_setup_bridge(struct pci_bus *bus) in pci_setup_bridge()
687 static void pci_bridge_check_ranges(struct pci_bus *bus) in pci_bridge_check_ranges()
747 static struct resource *find_free_bus_resource(struct pci_bus *bus, in find_free_bus_resource()
799 resource_size_t __weak pcibios_window_alignment(struct pci_bus *bus, in pcibios_window_alignment()
809 static resource_size_t window_alignment(struct pci_bus *bus, in window_alignment()
844 static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size, in pbus_size_io()
952 static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, in pbus_size_mem()
[all …]
Dremove.c48 void pci_remove_bus(struct pci_bus *bus) in pci_remove_bus()
64 struct pci_bus *bus = dev->subordinate; in pci_stop_bus_device()
84 struct pci_bus *bus = dev->subordinate; in pci_remove_bus_device()
126 void pci_stop_root_bus(struct pci_bus *bus) in pci_stop_root_bus()
143 void pci_remove_root_bus(struct pci_bus *bus) in pci_remove_root_bus()
Dof.c32 void pci_set_bus_of_node(struct pci_bus *bus) in pci_set_bus_of_node()
40 void pci_release_bus_of_node(struct pci_bus *bus) in pci_release_bus_of_node()
46 struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus) in pcibios_get_phb_of_node()
Diov.c34 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) in virtfn_add_bus()
36 struct pci_bus *child; in virtfn_add_bus()
54 static void virtfn_remove_bus(struct pci_bus *physbus, struct pci_bus *virtbus) in virtfn_remove_bus()
69 struct pci_bus *bus; in virtfn_add()
541 int pci_iov_bus_range(struct pci_bus *bus) in pci_iov_bus_range()
Dpci.c111 unsigned char pci_bus_max_busnr(struct pci_bus *bus) in pci_bus_max_busnr()
113 struct pci_bus *tmp; in pci_bus_max_busnr()
144 static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, in __pci_find_next_cap_ttl()
165 static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, in __pci_find_next_cap()
180 static int __pci_bus_find_cap_start(struct pci_bus *bus, in __pci_bus_find_cap_start()
246 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) in pci_bus_find_capability()
413 const struct pci_bus *bus = dev->bus; in pci_find_parent_resource()
712 static void pci_wakeup_bus(struct pci_bus *bus) in pci_wakeup_bus()
765 static void __pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state) in __pci_bus_set_current_state()
1643 void pci_pme_wakeup_bus(struct pci_bus *bus) in pci_pme_wakeup_bus()
[all …]
/drivers/acpi/
Dpci_slot.c122 struct pci_bus *pci_bus = context; in register_slot() local
134 if (pci_slot->bus == pci_bus && pci_slot->number == device) in register_slot()
145 pci_slot = pci_create_slot(pci_bus, device, name, NULL); in register_slot()
155 get_device(&pci_bus->dev); in register_slot()
158 pci_slot, pci_bus->number, device, name); in register_slot()
163 void acpi_pci_slot_enumerate(struct pci_bus *bus) in acpi_pci_slot_enumerate()
175 void acpi_pci_slot_remove(struct pci_bus *bus) in acpi_pci_slot_remove()
/drivers/dca/
Ddca-core.c47 static struct pci_bus *dca_pci_rc_from_dev(struct device *dev) in dca_pci_rc_from_dev()
50 struct pci_bus *bus = pdev->bus; in dca_pci_rc_from_dev()
58 static struct dca_domain *dca_allocate_domain(struct pci_bus *rc) in dca_allocate_domain()
128 static struct dca_domain *dca_find_domain(struct pci_bus *rc) in dca_find_domain()
141 struct pci_bus *rc; in dca_get_domain()
158 struct pci_bus *rc; in dca_find_provider_by_dev()
191 struct pci_bus *pci_rc; in dca_add_requester()
375 struct pci_bus *rc; in register_dca_provider()
415 struct pci_bus *pci_rc; in unregister_dca_provider()
/drivers/pcmcia/
Dcardbus.c30 static void cardbus_config_irq_and_cls(struct pci_bus *bus, int irq) in cardbus_config_irq_and_cls()
69 struct pci_bus *bus = s->cb_dev->subordinate; in cb_alloc()
110 struct pci_bus *bus; in cb_free()
/drivers/pci/pcie/
Dpme.c78 static bool pcie_pme_walk_bus(struct pci_bus *bus) in pcie_pme_walk_bus()
110 static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn) in pcie_pme_from_pci_bridge()
141 struct pci_bus *bus; in pcie_pme_handle_request()
329 struct pci_bus *bus = port->bus; in pcie_pme_mark_devices()
379 static bool pcie_pme_check_wakeup(struct pci_bus *bus) in pcie_pme_check_wakeup()
/drivers/pci/host/
Dpci-host-generic.c30 void __iomem *(*map_bus)(struct pci_bus *, unsigned int, int);
47 static void __iomem *gen_pci_map_cfg_bus_cam(struct pci_bus *bus, in gen_pci_map_cfg_bus_cam()
63 static void __iomem *gen_pci_map_cfg_bus_ecam(struct pci_bus *bus, in gen_pci_map_cfg_bus_ecam()
79 static int gen_pci_config_read(struct pci_bus *bus, unsigned int devfn, in gen_pci_config_read()
102 static int gen_pci_config_write(struct pci_bus *bus, unsigned int devfn, in gen_pci_config_write()
Dpci-keystone.h47 int ks_dw_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus,
49 int ks_dw_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus,
Dpcie-xilinx.c168 static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) in xilinx_pcie_valid_device()
200 static void __iomem *xilinx_pcie_config_base(struct pci_bus *bus, in xilinx_pcie_config_base()
223 static int xilinx_pcie_read_config(struct pci_bus *bus, unsigned int devfn, in xilinx_pcie_read_config()
261 static int xilinx_pcie_write_config(struct pci_bus *bus, unsigned int devfn, in xilinx_pcie_write_config()
438 static void xilinx_pcie_add_bus(struct pci_bus *bus) in xilinx_pcie_add_bus()
727 static struct pci_bus *xilinx_pcie_scan_bus(int nr, struct pci_sys_data *sys) in xilinx_pcie_scan_bus()
730 struct pci_bus *bus; in xilinx_pcie_scan_bus()
/drivers/pci/pcie/aer/
Daer_inject.c66 struct pci_bus *bus;
113 static struct pci_ops *__find_pci_bus_ops(struct pci_bus *bus) in __find_pci_bus_ops()
184 static int pci_read_aer(struct pci_bus *bus, unsigned int devfn, int where, in pci_read_aer()
215 static int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, in pci_write_aer()
256 struct pci_bus *bus, in pci_bus_ops_init()
264 static int pci_bus_set_aer_ops(struct pci_bus *bus) in pci_bus_set_aer_ops()

12345