Home
last modified time | relevance | path

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

123456789

/arch/powerpc/platforms/pasemi/
Dgpio_mdio.c44 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) argument
45 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) argument
47 static inline void mdio_lo(struct mii_bus *bus) in mdio_lo()
52 static inline void mdio_hi(struct mii_bus *bus) in mdio_hi()
57 static inline void mdc_lo(struct mii_bus *bus) in mdc_lo()
62 static inline void mdc_hi(struct mii_bus *bus) in mdc_hi()
67 static inline void mdio_active(struct mii_bus *bus) in mdio_active()
72 static inline void mdio_tristate(struct mii_bus *bus) in mdio_tristate()
77 static inline int mdio_read(struct mii_bus *bus) in mdio_read()
82 static void clock_out(struct mii_bus *bus, int bit) in clock_out()
[all …]
Dpci.c34 #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) argument
36 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid()
49 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr()
66 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945()
109 static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_read_config()
146 static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, in pa_pxp_write_config()
/arch/mips/pci/
Dops-rc32434.c42 #define PCI_CFG_SET(bus, slot, func, off) \ argument
48 struct pci_bus *bus, unsigned int devfn, in config_access()
73 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte()
84 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word()
95 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword()
130 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, in write_config_byte()
149 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, in write_config_word()
169 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, in write_config_dword()
178 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, in pci_config_read()
191 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, in pci_config_write()
Dops-pnx8550.c42 calc_cfg_addr(struct pci_bus *bus, unsigned int devfn, int where) in calc_cfg_addr()
53 config_access(unsigned int pci_cmd, struct pci_bus *bus, unsigned int devfn, int where, unsigned in… in config_access()
113 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 * val) in read_config_byte()
141 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 * val) in read_config_word()
166 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 * val) in read_config_dword()
181 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) in write_config_byte()
209 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) in write_config_word()
233 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) in write_config_dword()
247 static int config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) in config_read()
267 static int config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in config_write()
Dops-au1000.c93 static int config_access(unsigned char access_type, struct pci_bus *bus, in config_access()
189 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte()
204 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word()
217 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword()
226 static int write_config_byte(struct pci_bus *bus, unsigned int devfn, in write_config_byte()
243 static int write_config_word(struct pci_bus *bus, unsigned int devfn, in write_config_word()
260 static int write_config_dword(struct pci_bus *bus, unsigned int devfn, in write_config_dword()
269 static int config_read(struct pci_bus *bus, unsigned int devfn, in config_read()
292 static int config_write(struct pci_bus *bus, unsigned int devfn, in config_write()
Dops-titan-ht.c35 static int titan_ht_config_read_dword(struct pci_bus *bus, unsigned int devfn, in titan_ht_config_read_dword()
67 static int titan_ht_config_read(struct pci_bus *bus, unsigned int devfn, in titan_ht_config_read()
80 static inline int titan_ht_config_write_dword(struct pci_bus *bus, in titan_ht_config_write_dword()
106 static int titan_ht_config_write(struct pci_bus *bus, unsigned int devfn, in titan_ht_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.c32 static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, in mkaddr()
42 mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_read_config()
78 mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_write_config()
Dops-pmcmsp.c376 struct pci_bus *bus, in msp_pcibios_config_access()
512 msp_pcibios_read_config_byte(struct pci_bus *bus, in msp_pcibios_read_config_byte()
560 msp_pcibios_read_config_word(struct pci_bus *bus, in msp_pcibios_read_config_word()
617 msp_pcibios_read_config_dword(struct pci_bus *bus, in msp_pcibios_read_config_dword()
670 msp_pcibios_write_config_byte(struct pci_bus *bus, in msp_pcibios_write_config_byte()
719 msp_pcibios_write_config_word(struct pci_bus *bus, in msp_pcibios_write_config_word()
771 msp_pcibios_write_config_dword(struct pci_bus *bus, in msp_pcibios_write_config_dword()
813 msp_pcibios_read_config(struct pci_bus *bus, in msp_pcibios_read_config()
864 msp_pcibios_write_config(struct pci_bus *bus, in msp_pcibios_write_config()
Dpci-bcm1480.c52 #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) argument
53 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
96 static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) in bcm1480_pci_can_access()
119 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read()
144 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write()
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.c52 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) argument
53 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) argument
103 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) in sb1250_pci_can_access()
128 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read()
153 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()
20 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte()
29 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16()
38 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config()
46 void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) in write_pci_config_byte()
53 void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val) in write_pci_config_16()
66 void early_dump_pci_device(u8 bus, u8 slot, u8 func) in early_dump_pci_device()
89 unsigned bus, slot, func; in early_dump_pci_devices() local
Dmmconfig_32.c28 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr()
48 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base()
60 static int pci_mmcfg_read(unsigned int seg, unsigned int bus, in pci_mmcfg_read()
95 static int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write()
/arch/mn10300/unit-asb2305/
Dpci.c33 #define CONFIG_CMD(bus, devfn, where) \ argument
46 static inline int __query(const struct pci_bus *bus, unsigned int devfn) in __query()
106 static int pci_ampci_read_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_byte()
126 static int pci_ampci_read_config_word(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_word()
146 static int pci_ampci_read_config_dword(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config_dword()
166 static int pci_ampci_write_config_byte(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_byte()
186 static int pci_ampci_write_config_word(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_word()
204 static int pci_ampci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config_dword()
222 static int pci_ampci_read_config(struct pci_bus *bus, unsigned int devfn, in pci_ampci_read_config()
238 static int pci_ampci_write_config(struct pci_bus *bus, unsigned int devfn, in pci_ampci_write_config()
[all …]
/arch/x86/include/asm/
Dpci.h30 static inline int pci_domain_nr(struct pci_bus *bus) in pci_domain_nr()
36 static inline int pci_proc_domain(struct pci_bus *bus) in pci_proc_domain()
105 static inline int __pcibus_to_node(const struct pci_bus *bus) in __pcibus_to_node()
112 static inline cpumask_t __pcibus_to_cpumask(struct pci_bus *bus) in __pcibus_to_cpumask()
118 cpumask_of_pcibus(const struct pci_bus *bus) in cpumask_of_pcibus()
/arch/powerpc/kernel/
Dpci_64.c129 struct pci_bus *bus, int devfn) in of_create_pci_dev()
193 struct pci_bus *bus, int rescan_existing) in __of_scan_bus()
237 struct pci_bus *bus) in of_scan_bus()
244 struct pci_bus *bus) in of_rescan_bus()
253 struct pci_bus *bus; in of_scan_pci_bridge() local
340 struct pci_bus *bus; in scan_phb() local
414 int pcibios_unmap_io_space(struct pci_bus *bus) in pcibios_unmap_io_space()
457 int __devinit pcibios_map_io_space(struct pci_bus *bus) in pcibios_map_io_space()
555 struct pci_bus *bus = NULL; in sys_pciconfig_iobase() local
605 int pcibus_to_node(struct pci_bus *bus) in pcibus_to_node()
Dpci_32.c237 static struct device_node *scan_OF_for_pci_bus(struct pci_bus *bus) in scan_OF_for_pci_bus()
265 pci_busdev_to_OF_node(struct pci_bus *bus, int devfn) in pci_busdev_to_OF_node()
303 pci_device_from_OF_node(struct device_node* node, u8* bus, u8* devfn) in pci_device_from_OF_node()
373 struct pci_bus *bus; in pcibios_scan_phb() local
453 pci_bus_to_hose(int bus) in pci_bus_to_hose()
469 long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) in sys_pciconfig_iobase()
524 null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, in null_read_config()
531 null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, in null_write_config()
550 static struct pci_bus bus; in fake_pci_bus() local
579 int early_find_capability(struct pci_controller *hose, int bus, int devfn, in early_find_capability()
/arch/arm/mach-orion5x/
Dpci.c45 static int pcie_valid_config(int bus, int dev) in pcie_valid_config()
72 static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in pcie_rd_conf()
90 static int pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, in pcie_rd_conf_wa()
116 static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, in pcie_wr_conf()
230 #define PCI_CONF_BUS(bus) (((bus) & 0xff) << 16) argument
278 static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, in orion5x_pci_hw_rd_conf()
300 static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, in orion5x_pci_hw_wr_conf()
327 static int orion5x_pci_valid_config(int bus, u32 devfn) in orion5x_pci_valid_config()
347 static int orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_rd_conf()
359 static int orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, in orion5x_pci_wr_conf()
[all …]
/arch/powerpc/platforms/maple/
Dpci.c92 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1()
101 u8 bus, u8 dev_fn, u8 offset) in u3_agp_cfg_access()
121 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config()
152 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config()
194 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) in u3_ht_cfa1()
200 u8 bus, u8 devfn, u8 offset) in u3_ht_cfg_access()
210 static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_read_config()
245 static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, in u3_ht_write_config()
293 static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn, in u4_pcie_cfa1()
303 u8 bus, u8 dev_fn, int offset) in u4_pcie_cfg_access()
[all …]
/arch/sparc/kernel/
Dpci_common.c20 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
480 struct pci_bus *bus; in pci_scan_for_target_abort() local
504 struct pci_bus *bus; in pci_scan_for_master_abort() local
[all …]
/arch/powerpc/platforms/powermac/
Dpci.c130 #define MACRISC_CFA1(bus, devfn, off) \ argument
137 u8 bus, u8 dev_fn, u8 offset) in macrisc_cfg_access()
157 static int macrisc_read_config(struct pci_bus *bus, unsigned int devfn, in macrisc_read_config()
189 static int macrisc_write_config(struct pci_bus *bus, unsigned int devfn, in macrisc_write_config()
231 static int chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) in chaos_validate_dev()
255 chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, in chaos_read_config()
267 chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, in chaos_write_config()
308 struct pci_bus *bus, unsigned int devfn) in u3_ht_skip_device()
343 #define U3_HT_CFA1(bus, devfn, off) \ argument
348 static void __iomem *u3_ht_cfg_access(struct pci_controller *hose, u8 bus, in u3_ht_cfg_access()
[all …]
Dlow_i2c.c375 static int kw_i2c_open(struct pmac_i2c_bus *bus) in kw_i2c_open()
382 static void kw_i2c_close(struct pmac_i2c_bus *bus) in kw_i2c_close()
388 static int kw_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in kw_i2c_xfer()
559 struct pmac_i2c_bus *bus; in kw_i2c_add() local
644 u8 bus; member
659 static int pmu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in pmu_i2c_xfer()
765 struct pmac_i2c_bus *bus; in pmu_i2c_probe() local
824 static int smu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, in smu_i2c_xfer()
883 struct pmac_i2c_bus *bus; in smu_i2c_probe() local
945 struct pmac_i2c_bus *bus; in pmac_i2c_find_bus() local
[all …]
/arch/x86/kernel/
Daperture_64.c41 int bus; member
116 static u32 __init find_cap(int bus, int slot, int func, int cap) in find_cap()
142 static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) in read_agp()
209 int bus, slot, func; in search_agp_bridge() local
288 int bus; in early_gart_iommu_check() local
343 int bus; in early_gart_iommu_check() local
384 int bus; in gart_iommu_hole_init() local
486 int bus; in gart_iommu_hole_init() local
/arch/mips/pmc-sierra/yosemite/
Dht.c58 int dev, bus, func; in titan_ht_config_read_dword() local
86 int dev, bus, func; in titan_ht_config_read_word() local
132 int dev, bus, func; in titan_ht_config_read_byte() local
174 int dev, bus, func; in titan_ht_config_write_dword() local
201 int dev, bus, func; in titan_ht_config_write_word() local
233 int dev, bus, func; in titan_ht_config_write_byte() local
275 int bus = dev->bus->number; in titan_pcibios_set_master() local
293 int bus = dev->bus->number; in pcibios_enable_resources() local

123456789