Home
last modified time | relevance | path

Searched refs:devfn (Results 1 – 25 of 185) sorted by relevance

12345678

/arch/mips/pci/
Dops-rc32434.c47 struct pci_bus *bus, unsigned int devfn, in config_access() argument
50 unsigned int slot = PCI_SLOT(devfn); in config_access()
51 u8 func = PCI_FUNC(devfn); in config_access()
72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, in read_config_byte() argument
78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_byte()
83 static int read_config_word(struct pci_bus *bus, unsigned int devfn, in read_config_word() argument
89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_word()
94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, in read_config_dword() argument
104 if (bus->number == 0 && PCI_SLOT(devfn) > 21) in read_config_dword()
108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); in read_config_dword()
[all …]
Dops-sni.c24 static int set_config_address(unsigned int busno, unsigned int devfn, int reg) in set_config_address() argument
26 if ((devfn > 255) || (reg > 255)) in set_config_address()
29 if (busno == 0 && devfn >= PCI_DEVFN(8, 0)) in set_config_address()
34 ((devfn & 0xff) << 8) | in set_config_address()
40 static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_read() argument
45 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_read()
63 static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, in pcimt_write() argument
68 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_write()
91 static int pcit_set_config_address(unsigned int busno, unsigned int devfn, int reg) in pcit_set_config_address() argument
93 if ((devfn > 255) || (reg > 255) || (busno > 255)) in pcit_set_config_address()
[all …]
Dops-emma2rh.c26 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument
36 if (PCI_SLOT(devfn) >= 10) in check_args()
40 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
47 unsigned int devfn, int where) in set_pci_configuration_address() argument
56 config_win0 = (1 << (22 + PCI_SLOT(devfn))) | (5 << 9); in set_pci_configuration_address()
61 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
69 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
79 if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) in pci_config_read()
84 if (set_pci_configuration_address(bus_num, devfn, where) < 0) in pci_config_read()
88 *(volatile u32 *)(base + (PCI_FUNC(devfn) << 8) + in pci_config_read()
[all …]
Dops-loongson2.c34 unsigned int devfn, int where, in loongson_pcibios_config_access() argument
41 int device = PCI_SLOT(devfn); in loongson_pcibios_config_access()
42 int function = PCI_FUNC(devfn); in loongson_pcibios_config_access()
118 static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_read() argument
128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in loongson_pcibios_read()
142 static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, in loongson_pcibios_write() argument
155 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in loongson_pcibios_write()
167 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in loongson_pcibios_write()
187 u32 devfn = PCI_DEVFN(PCI_IDSEL_CS5536, 0); in _rdmsr() local
191 loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); in _rdmsr()
[all …]
Dops-pmcmsp.c333 unsigned int devfn, in msp_pcibios_config_access() argument
339 unsigned char dev_fn = (unsigned char)devfn; in msp_pcibios_config_access()
462 unsigned int devfn, in msp_pcibios_read_config_byte() argument
473 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_byte()
510 unsigned int devfn, in msp_pcibios_read_config_word() argument
532 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_word()
567 unsigned int devfn, in msp_pcibios_read_config_dword() argument
584 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_read_config_dword()
620 unsigned int devfn, in msp_pcibios_write_config_byte() argument
627 if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in msp_pcibios_write_config_byte()
[all …]
Dops-vr41xx.c23 unsigned int devfn, int where) in set_pci_configuration_address() argument
29 if (PCI_SLOT(devfn) < 11 || where > 0xff) in set_pci_configuration_address()
32 writel((1U << PCI_SLOT(devfn)) | (PCI_FUNC(devfn) << 8) | in set_pci_configuration_address()
41 writel(((uint32_t)number << 16) | ((devfn & 0xff) << 8) | in set_pci_configuration_address()
48 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_read() argument
54 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_read()
76 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_config_write() argument
82 if (set_pci_configuration_address(bus->number, devfn, where) < 0) in pci_config_write()
Dpci-bcm1480ht.c38 #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() argument
83 devno = PCI_SLOT(devfn); in bcm1480ht_can_access()
96 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_read() argument
106 if (bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_read()
107 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480ht_pcibios_read()
121 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480ht_pcibios_write() argument
124 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480ht_pcibios_write()
132 if (!bcm1480ht_can_access(bus, devfn)) in bcm1480ht_pcibios_write()
Dops-lantiq.c27 unsigned int devfn, unsigned int where, u32 *data) in ltq_pci_config_access() argument
35 if ((bus->number != 0) || ((devfn & 0xf8) > 0x78) in ltq_pci_config_access()
36 || ((devfn & 0xf8) == 0) || ((devfn & 0xf8) == 0x68)) in ltq_pci_config_access()
42 cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << in ltq_pci_config_access()
71 int ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_read_config_dword() argument
76 if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) in ltq_pci_read_config_dword()
89 int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, in ltq_pci_write_config_dword() argument
98 devfn, where, &data)) in ltq_pci_write_config_dword()
109 if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) in ltq_pci_write_config_dword()
Dops-gt64xxx_pci0.c31 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in gt64xxx_pci0_pcibios_config_access() argument
36 if ((busnum == 0) && (devfn >= PCI_DEVFN(31, 0))) in gt64xxx_pci0_pcibios_config_access()
46 (devfn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) | in gt64xxx_pci0_pcibios_config_access()
51 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access()
60 if (busnum == 0 && PCI_SLOT(devfn) == 0) { in gt64xxx_pci0_pcibios_config_access()
91 static int gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_read() argument
96 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, in gt64xxx_pci0_pcibios_read()
110 static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, in gt64xxx_pci0_pcibios_write() argument
119 devfn, where, &data)) in gt64xxx_pci0_pcibios_write()
130 if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, in gt64xxx_pci0_pcibios_write()
Dops-nile4.c18 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument
23 if ((busnum == 0) && (PCI_SLOT(devfn) > 8)) in nile4_pcibios_config_access()
29 if ((busnum == 0) && (devfn == PCI_DEVFN(0, 0))) { in nile4_pcibios_config_access()
52 ((1 << (PCI_SLOT(devfn) + 15)) | (PCI_FUNC(devfn) << 8) in nile4_pcibios_config_access()
55 adr = KSEG1ADDR(PCI_WINDOW1) | (busnum << 16) | (devfn << 8) | in nile4_pcibios_config_access()
75 static int nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, in nile4_pcibios_read() argument
86 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read()
101 static int nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, in nile4_pcibios_write() argument
112 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_write()
127 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) in nile4_pcibios_write()
Dops-bcm63xx.c65 unsigned int devfn, int where) in bcm63xx_setup_cfg_access() argument
70 slot = PCI_SLOT(devfn); in bcm63xx_setup_cfg_access()
71 func = PCI_FUNC(devfn); in bcm63xx_setup_cfg_access()
101 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_read() argument
109 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_read()
122 unsigned int devfn, int where, int size, in bcm63xx_do_cfg_write() argument
130 if (bcm63xx_setup_cfg_access(type, busn, devfn, where)) in bcm63xx_do_cfg_write()
147 static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, in bcm63xx_pci_read() argument
154 if (type == 0 && PCI_SLOT(devfn) == CARDBUS_PCI_IDSEL) in bcm63xx_pci_read()
157 return bcm63xx_do_cfg_read(type, bus->number, devfn, in bcm63xx_pci_read()
[all …]
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() argument
74 if (PCI_SLOT(devfn) != 0 || in pci_cfg_read_32bit()
75 !nlm_node_present(PCI_FUNC(devfn))) in pci_cfg_read_32bit()
78 if (PCI_SLOT(devfn) == 0) /* b.0.0 hangs */ in pci_cfg_read_32bit()
80 if (devfn == 44) /* b.5.4 hangs */ in pci_cfg_read_32bit()
83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { in pci_cfg_read_32bit()
87 pci_cfg_addr(bus->number, devfn, where)); 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() argument
98 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
[all …]
Dops-mace.c30 static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, in mkaddr() argument
34 ((devfn & 0xff) << 8) | in mkaddr()
40 mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_read_config() argument
47 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_read_config()
67 (devfn == (1 << 3) || devfn == (2 << 3))) in mace_pci_read_config()
76 mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, in mace_pci_write_config() argument
79 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_write_config()
Dpci-bcm1480.c40 #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() argument
92 devno = PCI_SLOT(devfn); in bcm1480_pci_can_access()
107 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_read() argument
117 if (bcm1480_pci_can_access(bus, devfn)) in bcm1480_pcibios_read()
118 data = READCFG32(CFGADDR(bus, devfn, where)); in bcm1480_pcibios_read()
132 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, in bcm1480_pcibios_write() argument
135 u32 cfgaddr = CFGADDR(bus, devfn, where); in bcm1480_pcibios_write()
143 if (!bcm1480_pci_can_access(bus, devfn)) in bcm1480_pcibios_write()
Dpci-sb1250.c40 #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() argument
99 devno = PCI_SLOT(devfn); in sb1250_pci_can_access()
116 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_read() argument
126 if (sb1250_pci_can_access(bus, devfn)) in sb1250_pcibios_read()
127 data = READCFG32(CFGADDR(bus, devfn, where)); in sb1250_pcibios_read()
141 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, in sb1250_pcibios_write() argument
144 u32 cfgaddr = CFGADDR(bus, devfn, where); in sb1250_pcibios_write()
152 if (!sb1250_pci_can_access(bus, devfn)) in sb1250_pcibios_write()
/arch/x86/pci/
Ddirect.c17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument
19 | (devfn << 8) | (reg & 0xFC))
22 unsigned int devfn, int reg, int len, u32 *value) in pci_conf1_read() argument
26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read()
33 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_read()
53 unsigned int devfn, int reg, int len, u32 value) in pci_conf1_write() argument
57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) in pci_conf1_write()
62 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_write()
96 unsigned int devfn, int reg, int len, u32 *value) in pci_conf2_read() argument
102 if ((bus > 255) || (devfn > 255) || (reg > 255)) { in pci_conf2_read()
[all …]
Dintel_mid_pci.c62 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) in fixed_bar_cap() argument
74 devfn, pos, 4, &pcie_cap)) in fixed_bar_cap()
83 devfn, pos + 4, 4, &cap_data); in fixed_bar_cap()
94 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed() argument
107 raw_pci_ext_ops->read(domain, busnum, devfn, in pci_device_update_fixed()
130 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, in pci_device_update_fixed()
135 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); in pci_device_update_fixed()
148 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok() argument
160 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok()
161 || devfn == PCI_DEVFN(0, 0) in type1_access_ok()
[all …]
Dnumachip.c21 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
26 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base()
31 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read_numachip() argument
36 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read_numachip()
42 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip()
48 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip()
71 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write_numachip() argument
76 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write_numachip()
80 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip()
84 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()
Dolpc.c173 static int is_simulated(unsigned int bus, unsigned int devfn) in is_simulated() argument
175 return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || in is_simulated()
176 (PCI_SLOT(devfn) == SB_SLOT))); in is_simulated()
201 unsigned int devfn, int reg, int len, uint32_t *value) in pci_olpc_read() argument
208 if (!is_simulated(bus, devfn)) in pci_olpc_read()
209 return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); in pci_olpc_read()
218 switch (devfn) { in pci_olpc_read()
263 unsigned int devfn, int reg, int len, uint32_t value) in pci_olpc_write() argument
268 if (!is_simulated(bus, devfn)) in pci_olpc_write()
269 return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); in pci_olpc_write()
[all …]
Dmmconfig_32.c27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument
39 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base() argument
41 u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); in pci_exp_set_dev_base()
52 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read() argument
57 if ((bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_mmcfg_read()
63 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read()
71 pci_exp_set_dev_base(base, bus, devfn); in pci_mmcfg_read()
91 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write() argument
96 if ((bus > 255) || (devfn > 255) || (reg > 4095)) in pci_mmcfg_write()
100 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write()
[all …]
Dlegacy.c40 int devfn; in pcibios_scan_specific_bus() local
46 for (devfn = 0; devfn < 256; devfn += stride) { in pcibios_scan_specific_bus()
47 if (!raw_pci_read(0, busn, devfn, PCI_VENDOR_ID, 2, &l) && in pcibios_scan_specific_bus()
49 DBG("Found device at %02x:%02x [%04x]\n", busn, devfn, l); in pcibios_scan_specific_bus()
/arch/powerpc/platforms/pasemi/
Dpci.c25 #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() argument
33 if (bus == 0 && devfn == 0) in pa_pxp_offset_valid()
40 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr() argument
42 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); in pa_pxp_cfg_addr()
45 static inline int is_root_port(int busno, int devfn) in is_root_port() argument
47 return ((busno == 0) && (PCI_FUNC(devfn) < 4) && in is_root_port()
48 ((PCI_SLOT(devfn) == 16) || (PCI_SLOT(devfn) == 17))); in is_root_port()
57 static int workaround_5945(struct pci_bus *bus, unsigned int devfn, in workaround_5945() argument
65 if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) in workaround_5945()
[all …]
/arch/powerpc/platforms/maple/
Dpci.c81 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) in u3_agp_cfa0() argument
83 return (1 << (unsigned long)PCI_SLOT(devfn)) | in u3_agp_cfa0()
84 ((unsigned long)PCI_FUNC(devfn) << 8) | in u3_agp_cfa0()
88 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1() argument
91 ((unsigned long)devfn << 8) | in u3_agp_cfa1()
117 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_read_config() argument
127 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_read_config()
148 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, in u3_agp_write_config() argument
158 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_write_config()
185 static unsigned long u3_ht_cfa0(u8 devfn, u8 off) in u3_ht_cfa0() argument
[all …]
/arch/alpha/kernel/
Dsys_miata.c184 if((slot == 7) && (PCI_FUNC(dev->devfn) == 3)) { in miata_map_irq()
186 struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7); in miata_map_irq()
206 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
209 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle()
210 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle()
211 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
217 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle()
218 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle()
219 slot = PCI_SLOT(dev->devfn) + 9; in miata_swizzle()
227 slot = PCI_SLOT(dev->devfn); in miata_swizzle()
/arch/sh/drivers/pci/
Dops-dreamcast.c36 static int gapspci_config_access(unsigned char bus, unsigned int devfn) in gapspci_config_access() argument
38 return (bus == 0) && (devfn == 0); 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() argument
50 if (!gapspci_config_access(bus->number, devfn)) in gapspci_read()
62 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in gapspci_write() argument
64 if (!gapspci_config_access(bus->number, devfn)) in gapspci_write()

12345678