Home
last modified time | relevance | path

Searched defs:bus (Results 1 – 25 of 260) sorted by relevance

1234567891011

/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c46 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) argument
47 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) argument
49 static inline void mdio_lo(struct mii_bus *bus) in mdio_lo()
54 static inline void mdio_hi(struct mii_bus *bus) in mdio_hi()
59 static inline void mdc_lo(struct mii_bus *bus) in mdc_lo()
64 static inline void mdc_hi(struct mii_bus *bus) in mdc_hi()
69 static inline void mdio_active(struct mii_bus *bus) in mdio_active()
74 static inline void mdio_tristate(struct mii_bus *bus) in mdio_tristate()
79 static inline int mdio_read(struct mii_bus *bus) in mdio_read()
84 static void clock_out(struct mii_bus *bus, int bit) in clock_out()
[all …]
Dpci.c36 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument
38 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid()
51 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr()
68 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945()
111 static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_read_config()
148 static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_write_config()
/arch/mips/pci/
Dops-rc32434.c41 #define PCI_CFG_SET(bus, slot, func, off) \ argument
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()
Dpci-bcm1480ht.c51 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
52 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
88 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) in bcm1480ht_can_access()
109 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read()
134 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write()
Dops-mace.c30 static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, in mkaddr()
40 mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_read_config()
76 mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_write_config()
Dops-loongson2.c36 struct pci_bus *bus, in loongson_pcibios_config_access()
121 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read()
145 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write()
187 struct pci_bus bus = { in _rdmsr() local
203 struct pci_bus bus = { in _wrmsr() local
Dops-pmcmsp.c361 struct pci_bus *bus, in msp_pcibios_config_access()
490 msp_pcibios_read_config_byte(struct pci_bus *bus, in msp_pcibios_read_config_byte()
538 msp_pcibios_read_config_word(struct pci_bus *bus, in msp_pcibios_read_config_word()
595 msp_pcibios_read_config_dword(struct pci_bus *bus, in msp_pcibios_read_config_dword()
648 msp_pcibios_write_config_byte(struct pci_bus *bus, in msp_pcibios_write_config_byte()
697 msp_pcibios_write_config_word(struct pci_bus *bus, in msp_pcibios_write_config_word()
749 msp_pcibios_write_config_dword(struct pci_bus *bus, in msp_pcibios_write_config_dword()
791 msp_pcibios_read_config(struct pci_bus *bus, in msp_pcibios_read_config()
842 msp_pcibios_write_config(struct pci_bus *bus, in msp_pcibios_write_config()
Dpci-bcm1480.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
97 static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) in bcm1480_pci_can_access()
120 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read()
145 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write()
Dpci-xlp.c60 #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument
63 static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_read_32bit()
92 static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, in pci_cfg_write_32bit()
102 static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, in nlm_pcibios_read()
125 static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, in nlm_pcibios_write()
181 struct pci_bus *bus, *p; in xlp_get_pcie_link() local
Dops-sni.c40 static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_read()
63 static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_write()
100 static int pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcit_read()
137 static int pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcit_write()
Dpci-sb1250.c53 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) argument
54 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
104 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) in sb1250_pci_can_access()
129 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read()
154 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_write()
/arch/x86/pci/
Dearly.c10 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config()
18 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte()
26 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16()
34 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config()
41 void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) in write_pci_config_byte()
47 void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val) in write_pci_config_16()
59 void early_dump_pci_device(u8 bus, u8 slot, u8 func) in early_dump_pci_device()
83 unsigned bus, slot, func; in early_dump_pci_devices() local
/arch/mn10300/unit-asb2305/
Dpci.c55 #define CONFIG_CMD(bus, devfn, where) \ argument
68 static inline int __query(const struct pci_bus *bus, unsigned int devfn) in __query()
82 static int pci_ampci_read_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_byte()
102 static int pci_ampci_read_config_word(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_word()
122 static int pci_ampci_read_config_dword(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_dword()
142 static int pci_ampci_write_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_byte()
162 static int pci_ampci_write_config_word(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_word()
180 static int pci_ampci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_dword()
198 static int pci_ampci_read_config(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config()
214 static int pci_ampci_write_config(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config()
[all …]
/arch/arm64/kernel/
Dpci.c28 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus()
60 int raw_pci_read(unsigned int domain, unsigned int bus, in raw_pci_read()
70 int raw_pci_write(unsigned int domain, unsigned int bus, in raw_pci_write()
82 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node()
97 int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) in acpi_pci_bus_find_domain_nr()
170 struct pci_bus *bus, *child; in pci_acpi_scan_root() local
205 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus()
210 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus()
/arch/sh/drivers/pci/
Dops-dreamcast.c39 static int gapspci_config_access(unsigned char bus, unsigned int devfn) in gapspci_config_access()
49 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) in gapspci_read()
65 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in gapspci_write()
/arch/x86/include/asm/
Dpci.h38 static inline int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr()
45 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain()
52 static inline void *_pci_root_bus_fwnode(struct pci_bus *bus) in _pci_root_bus_fwnode()
62 static inline bool is_vmd(struct pci_bus *bus) in is_vmd()
142 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node()
150 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus()
166 unsigned long bus; member
Dpci_64.h7 static inline void *pci_iommu(struct pci_bus *bus) in pci_iommu()
13 static inline void set_pci_iommu(struct pci_bus *bus, void *val) in set_pci_iommu()
/arch/sparc/kernel/
Dpci_common.c19 unsigned long bus, in config_out_of_range()
30 unsigned long bus, in sun4u_config_mkaddr()
52 unsigned char bus, unsigned int devfn, in sun4u_read_pci_cfg_host()
111 unsigned char bus = bus_dev->number; in sun4u_read_pci_cfg() local
165 unsigned char bus, unsigned int devfn, in sun4u_write_pci_cfg_host()
215 unsigned char bus = bus_dev->number; in sun4u_write_pci_cfg() local
261 unsigned int bus = bus_dev->number; in sun4v_read_pci_cfg() local
294 unsigned int bus = bus_dev->number; in sun4v_write_pci_cfg() local
501 struct pci_bus *bus; in pci_scan_for_target_abort() local
525 struct pci_bus *bus; in pci_scan_for_master_abort() local
[all …]
/arch/arm/mach-orion5x/
Dpci.c49 static int pcie_valid_config(int bus, int dev) in pcie_valid_config()
76 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in pcie_rd_conf()
94 static int pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, in pcie_rd_conf_wa()
120 static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, in pcie_wr_conf()
225 #define PCI_CONF_BUS(bus) (((bus) & 0xff) << 16) argument
273 static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, in orion5x_pci_hw_rd_conf()
295 static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, in orion5x_pci_hw_wr_conf()
322 static int orion5x_pci_valid_config(int bus, u32 devfn) in orion5x_pci_valid_config()
342 static int orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_rd_conf()
354 static int orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_wr_conf()
[all …]
/arch/microblaze/pci/
Dpci-common.c302 int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) in pci_legacy_read()
342 int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) in pci_legacy_write()
387 int pci_mmap_legacy_page_range(struct pci_bus *bus, in pci_mmap_legacy_page_range()
636 int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain()
685 static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus, in pcibios_uninitialized_bridge_resource()
747 static void pcibios_fixup_bridge(struct pci_bus *bus) in pcibios_fixup_bridge()
784 void pcibios_setup_bus_self(struct pci_bus *bus) in pcibios_setup_bus_self()
791 void pcibios_setup_bus_devices(struct pci_bus *bus) in pcibios_setup_bus_devices()
812 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus()
916 static void pcibios_allocate_bus_resources(struct pci_bus *bus) in pcibios_allocate_bus_resources()
[all …]
/arch/powerpc/kernel/
Dpci_of_scan.c125 struct pci_bus *bus, int devfn) in of_create_pci_dev()
205 struct pci_bus *bus; in of_scan_pci_bridge() local
300 static struct pci_dev *of_scan_pci_dev(struct pci_bus *bus, in of_scan_pci_dev()
347 static void __of_scan_bus(struct device_node *node, struct pci_bus *bus, in __of_scan_bus()
384 void of_scan_bus(struct device_node *node, struct pci_bus *bus) in of_scan_bus()
398 void of_rescan_bus(struct device_node *node, struct pci_bus *bus) in of_rescan_bus()
Dpci-common.c199 resource_size_t pcibios_window_alignment(struct pci_bus *bus, in pcibios_window_alignment()
215 void pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) in pcibios_setup_bridge()
299 int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr()
540 int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) in pci_legacy_read()
580 int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) in pci_legacy_write()
625 int pci_mmap_legacy_page_range(struct pci_bus *bus, in pci_mmap_legacy_page_range()
829 int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain()
903 static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus, in pcibios_uninitialized_bridge_resource()
969 static void pcibios_fixup_bridge(struct pci_bus *bus) in pcibios_fixup_bridge()
1005 void pcibios_setup_bus_self(struct pci_bus *bus) in pcibios_setup_bus_self()
[all …]
Dpci_64.c76 int pcibios_unmap_io_space(struct pci_bus *bus) in pcibios_unmap_io_space()
175 int pcibios_map_io_space(struct pci_bus *bus) in pcibios_map_io_space()
210 struct pci_bus *tmp_bus, *bus = NULL; in sys_pciconfig_iobase() local
261 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node()
/arch/ia64/pci/
Dpci.c40 #define PCI_SAL_ADDRESS(seg, bus, devfn, reg) \ argument
45 #define PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg) \ argument
48 int raw_pci_read(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_read()
75 int raw_pci_write(unsigned int seg, unsigned int bus, unsigned int devfn, in raw_pci_write()
99 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read()
106 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write()
377 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus()
382 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus()
479 char *ia64_pci_get_legacy_mem(struct pci_bus *bus) in ia64_pci_get_legacy_mem()
493 pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma, in pci_mmap_legacy_page_range()
[all …]
/arch/powerpc/platforms/maple/
Dpci.c91 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1()
100 u8 bus, u8 dev_fn, u8 offset) in u3_agp_cfg_access()
120 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config()
151 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config()
193 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) in u3_ht_cfa1()
199 u8 bus, u8 devfn, u8 offset) in u3_ht_cfg_access()
257 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_read_config()
295 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_write_config()
346 static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn, in u4_pcie_cfa1()
356 u8 bus, u8 dev_fn, int offset) in u4_pcie_cfg_access()
[all …]

1234567891011