/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 34 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) argument 35 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) argument 37 static inline void mdio_lo(struct mii_bus *bus) in mdio_lo() 42 static inline void mdio_hi(struct mii_bus *bus) in mdio_hi() 47 static inline void mdc_lo(struct mii_bus *bus) in mdc_lo() 52 static inline void mdc_hi(struct mii_bus *bus) in mdc_hi() 57 static inline void mdio_active(struct mii_bus *bus) in mdio_active() 62 static inline void mdio_tristate(struct mii_bus *bus) in mdio_tristate() 67 static inline int mdio_read(struct mii_bus *bus) in mdio_read() 72 static void clock_out(struct mii_bus *bus, int bit) in clock_out() [all …]
|
D | pci.c | 25 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument 27 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid() 40 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr() 57 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945() 105 static void sb600_set_flag(int bus) in sb600_set_flag() 150 static void sb600_set_flag(int bus) in sb600_set_flag() 155 static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_read_config() 194 static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_write_config()
|
/arch/mips/pci/ |
D | ops-rc32434.c | 41 #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()
|
D | ops-mace.c | 30 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()
|
D | ops-pmcmsp.c | 332 struct pci_bus *bus, in msp_pcibios_config_access() 461 msp_pcibios_read_config_byte(struct pci_bus *bus, in msp_pcibios_read_config_byte() 509 msp_pcibios_read_config_word(struct pci_bus *bus, in msp_pcibios_read_config_word() 566 msp_pcibios_read_config_dword(struct pci_bus *bus, in msp_pcibios_read_config_dword() 619 msp_pcibios_write_config_byte(struct pci_bus *bus, in msp_pcibios_write_config_byte() 668 msp_pcibios_write_config_word(struct pci_bus *bus, in msp_pcibios_write_config_word() 720 msp_pcibios_write_config_dword(struct pci_bus *bus, in msp_pcibios_write_config_dword() 762 msp_pcibios_read_config(struct pci_bus *bus, in msp_pcibios_read_config() 813 msp_pcibios_write_config(struct pci_bus *bus, in msp_pcibios_write_config()
|
D | pci-bcm1480ht.c | 38 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument 39 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 75 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) in bcm1480ht_can_access() 96 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read() 121 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write()
|
D | ops-loongson2.c | 33 struct pci_bus *bus, in loongson_pcibios_config_access() 118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read() 142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write() 184 struct pci_bus bus = { in _rdmsr() local 200 struct pci_bus bus = { in _wrmsr() local
|
D | pci-bcm1480.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 84 static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) in bcm1480_pci_can_access() 107 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read() 132 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write()
|
D | pci-xlp.c | 60 #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
|
D | ops-sni.c | 40 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()
|
D | pci-sb1250.c | 40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) argument 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument 91 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) in sb1250_pci_can_access() 116 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read() 141 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_write()
|
/arch/x86/pci/ |
D | early.c | 11 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() 19 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() 27 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() 35 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() 42 void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) in write_pci_config_byte() 48 void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val) in write_pci_config_16()
|
/arch/x86/include/asm/ |
D | pci.h | 41 static inline int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr() 48 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() 55 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() 132 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node() 140 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus() 156 unsigned long bus; member
|
D | pci_64.h | 8 static inline void *pci_iommu(struct pci_bus *bus) in pci_iommu() 14 static inline void set_pci_iommu(struct pci_bus *bus, void *val) in set_pci_iommu()
|
/arch/sh/drivers/pci/ |
D | ops-dreamcast.c | 36 static int gapspci_config_access(unsigned char bus, unsigned int devfn) in gapspci_config_access() 46 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) in gapspci_read() 62 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in gapspci_write()
|
D | ops-sh4.c | 16 #define CONFIG_CMD(bus, devfn, where) \ argument 22 static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, in sh4_pci_read() 60 static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, in sh4_pci_write()
|
/arch/arm64/kernel/ |
D | pci.c | 37 int raw_pci_read(unsigned int domain, unsigned int bus, in raw_pci_read() 47 int raw_pci_write(unsigned int domain, unsigned int 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() 165 struct pci_bus *bus, *child; in pci_acpi_scan_root() local 210 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus() 215 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus()
|
/arch/sparc/kernel/ |
D | pci_common.c | 20 unsigned long bus, in config_out_of_range() 31 unsigned long bus, in sun4u_config_mkaddr() 53 unsigned char bus, unsigned int devfn, in sun4u_read_pci_cfg_host() 112 unsigned char bus = bus_dev->number; in sun4u_read_pci_cfg() local 166 unsigned char bus, unsigned int devfn, in sun4u_write_pci_cfg_host() 216 unsigned char bus = bus_dev->number; in sun4u_write_pci_cfg() local 262 unsigned int bus = bus_dev->number; in sun4v_read_pci_cfg() local 295 unsigned int bus = bus_dev->number; in sun4v_write_pci_cfg() local 481 struct pci_bus *bus; in pci_scan_for_target_abort() local 505 struct pci_bus *bus; in pci_scan_for_master_abort() local [all …]
|
/arch/arm/mach-orion5x/ |
D | pci.c | 49 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/ia64/pci/ |
D | pci.c | 40 #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() 376 void pcibios_add_bus(struct pci_bus *bus) in pcibios_add_bus() 381 void pcibios_remove_bus(struct pci_bus *bus) in pcibios_remove_bus() 425 char *pci_get_legacy_mem(struct pci_bus *bus) in pci_get_legacy_mem() 439 pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma, in pci_mmap_legacy_page_range() [all …]
|
/arch/powerpc/kernel/ |
D | pci-common.c | 210 resource_size_t pcibios_window_alignment(struct pci_bus *bus, in pcibios_window_alignment() 226 void pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) in pcibios_setup_bridge() 341 int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr() 499 int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) in pci_legacy_read() 539 int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) in pci_legacy_write() 584 int pci_mmap_legacy_page_range(struct pci_bus *bus, in pci_mmap_legacy_page_range() 788 int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain() 862 static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus, in pcibios_uninitialized_bridge_resource() 928 static void pcibios_fixup_bridge(struct pci_bus *bus) in pcibios_fixup_bridge() 964 void pcibios_setup_bus_self(struct pci_bus *bus) in pcibios_setup_bus_self() [all …]
|
D | pci-hotplug.c | 20 static struct pci_bus *find_bus_among_children(struct pci_bus *bus, in find_bus_among_children() 79 void pci_hp_remove_devices(struct pci_bus *bus) in pci_hp_remove_devices() 108 void pci_hp_add_devices(struct pci_bus *bus) in pci_hp_add_devices()
|
D | pci_64.c | 78 int pcibios_unmap_io_space(struct pci_bus *bus) in pcibios_unmap_io_space() 177 int pcibios_map_io_space(struct pci_bus *bus) in pcibios_map_io_space() 212 struct pci_bus *tmp_bus, *bus = NULL; in SYSCALL_DEFINE3() local 263 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node()
|
/arch/powerpc/platforms/maple/ |
D | pci.c | 88 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1() 97 u8 bus, u8 dev_fn, u8 offset) in u3_agp_cfg_access() 117 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config() 148 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config() 190 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) in u3_ht_cfa1() 196 u8 bus, u8 devfn, u8 offset) in u3_ht_cfg_access() 254 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_read_config() 292 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_write_config() 343 static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn, in u4_pcie_cfa1() 353 u8 bus, u8 dev_fn, int offset) in u4_pcie_cfg_access() [all …]
|
/arch/sh/include/asm/ |
D | topology.h | 11 #define pcibus_to_node(bus) ((void)(bus), -1) argument 12 #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ argument
|