Searched refs:devfn (Results 26 - 50 of 327) sorted by relevance

1234567891011>>

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/pci/
H A Dpci-bcm1480ht.c51 #define CFGOFFSET(bus,devfn,where) (((bus)<<16)+((devfn)<<8)+(where))
52 #define CFGADDR(bus,devfn,where) CFGOFFSET((bus)->number,(devfn),where)
88 static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) argument
96 devno = PCI_SLOT(devfn);
109 static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, argument
119 if (bcm1480ht_can_access(bus, devfn))
120 data = READCFG32(CFGADDR(bus, devfn, where));
134 static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, argument
[all...]
H A Dpci-sb1250.c52 #define CFGOFFSET(bus,devfn,where) (((bus)<<16) + ((devfn)<<8) + (where))
53 #define CFGADDR(bus,devfn,where) CFGOFFSET((bus)->number,(devfn),where)
103 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) argument
111 devno = PCI_SLOT(devfn);
128 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, argument
138 if (sb1250_pci_can_access(bus, devfn))
139 data = READCFG32(CFGADDR(bus, devfn, where));
153 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, argument
[all...]
H A Dfixup-ocelot.c33 if (PCI_SLOT(devices->devfn) == 1) {
44 } else if (PCI_SLOT(devices->devfn) == 2) {
55 } else if (PCI_SLOT(devices->devfn) == 4) {
58 } else if (PCI_SLOT(devices->devfn) == 5) {
H A Dfixup-tx4938.c24 u8 slot = PCI_SLOT(dev->devfn);
79 dev->bus->number, dev->devfn, PCI_SLOT(dev->devfn),
80 PCI_FUNC(dev->devfn), irq);
H A Dpci-ocelot.c53 DataForRegCf8 = ((PCI_SLOT(device->devfn) << 11) |
54 (PCI_FUNC(device->devfn) << 8) |
66 DataForRegCf8 = ((PCI_SLOT(device->devfn) << 11) |
67 (PCI_FUNC(device->devfn) << 8) |
H A Dops-bridge.c27 static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, argument
32 int slot = PCI_SLOT(devfn);
33 int fn = PCI_FUNC(devfn);
87 static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, argument
93 int slot = PCI_SLOT(devfn);
94 int fn = PCI_FUNC(devfn);
151 static int pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
155 return pci_conf1_read_config(bus, devfn, where, size, value);
157 return pci_conf0_read_config(bus, devfn, where, size, value);
160 static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, argument
226 pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
294 pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/common/
H A Dvia82c505.c15 #define CONFIG_CMD(bus, devfn, where) (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
18 via82c505_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument
21 outl(CONFIG_CMD(bus,devfn,where),0xCF8);
37 via82c505_write_config(struct pci_bus *bus, unsigned int devfn, int where, argument
40 outl(CONFIG_CMD(bus,devfn,where),0xCF8);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/pci/
H A Dnuma.c14 #define PCI_CONF1_MQ_ADDRESS(bus, devfn, reg) \
15 (0x80000000 | (BUS2LOCAL(bus) << 16) | (devfn << 8) | (reg & ~3))
18 unsigned int devfn, int reg, int len, u32 *value)
22 if (!value || (bus >= MAX_MP_BUSSES) || (devfn > 255) || (reg > 255))
27 outl_quad(PCI_CONF1_MQ_ADDRESS(bus, devfn, reg), 0xCF8, BUS2QUAD(bus));
47 unsigned int devfn, int reg, int len, u32 value)
51 if ((bus >= MAX_MP_BUSSES) || (devfn > 255) || (reg > 255))
56 outl_quad(PCI_CONF1_MQ_ADDRESS(bus, devfn, reg), 0xCF8, BUS2QUAD(bus));
17 pci_conf1_mq_read(unsigned int seg, unsigned int bus, unsigned int devfn, int reg, int len, u32 *value) argument
46 pci_conf1_mq_write(unsigned int seg, unsigned int bus, unsigned int devfn, int reg, int len, u32 value) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/
H A Dfakephp.c172 * @param temp Device template. Should be set: bus and devfn.
184 if ((dev = pci_get_slot(bus, temp->devfn)) != NULL)
187 dev = pci_scan_single_device(bus, temp->devfn);
190 bus->name, temp->devfn >> 3,
191 temp->devfn & 7);
205 for (func = 1, temp->devfn++; func < 8; func++, temp->devfn++) {
210 if ((dev = pci_get_slot(bus, temp->devfn)) != NULL)
213 dev = pci_scan_single_device(bus, temp->devfn);
216 bus->name, temp->devfn >>
239 unsigned int devfn; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-iop32x/
H A Dn2100.c84 if (PCI_SLOT(dev->devfn) == 1) {
87 } else if (PCI_SLOT(dev->devfn) == 2) {
90 } else if (PCI_SLOT(dev->devfn) == 3) {
93 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 1) {
96 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 2) {
99 } else if (PCI_SLOT(dev->devfn) == 4 && pin == 3) {
102 } else if (PCI_SLOT(dev->devfn) == 5) {
108 PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn));
132 (dev->devfn
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/maple/
H A Dpci.c85 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) argument
87 return (1 << (unsigned long)PCI_SLOT(devfn)) |
88 ((unsigned long)PCI_FUNC(devfn) << 8) |
92 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) argument
95 ((unsigned long)devfn << 8) |
121 static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, argument
131 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
152 static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, argument
162 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
192 static unsigned long u3_ht_cfa0(u8 devfn, u argument
197 u3_ht_cfa1(u8 bus, u8 devfn, u8 off) argument
202 u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) argument
213 u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument
248 u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument
291 u4_pcie_cfa0(unsigned int devfn, unsigned int off) argument
299 u4_pcie_cfa1(unsigned int bus, unsigned int devfn, unsigned int off) argument
327 u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument
358 u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/86xx/
H A Dmpc86xx.h20 extern int mpc86xx_exclude_device(u_char bus, u_char devfn);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/cobalt/
H A Dirq.c46 unsigned int mask, pending, devfn; local
55 devfn = GT_READ(GT_PCI0_CFGADDR_OFS) >> 8;
59 PCI_SLOT(devfn), PCI_FUNC(devfn));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/sysdev/
H A Dfsl_pcie.c34 indirect_read_config_pcie(struct pci_bus *bus, unsigned int devfn, int offset, argument
42 if (ppc_md.pci_exclude_device(bus->number, devfn))
46 if (devfn != 0x0 && bus->number == 0xff)
54 | (devfn << 8) | ((offset & 0xfc) )));
59 | (devfn << 8) | ((offset & 0xfc) )));
85 indirect_write_config_pcie(struct pci_bus *bus, unsigned int devfn, int offset, argument
93 if (ppc_md.pci_exclude_device(bus->number, devfn))
97 if (devfn != 0x0 && bus->number == 0xff)
105 | (devfn << 8) | ((offset & 0xfc) )));
110 | (devfn <<
[all...]
H A Dindirect_pci.c30 indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
38 if (ppc_md.pci_exclude_device(bus->number, devfn))
47 | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
69 indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
77 if (ppc_md.pci_exclude_device(bus->number, devfn))
86 | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/platforms/
H A Dapus_pci.c61 apus_pcibios_read_config(struct pci_bus *bus, int devfn, int offset, argument
64 int fnno = FNNO(devfn);
65 int devno = DEVNO(devfn);
87 bus->number, devfn>>3, devfn&7, offset, len, *val);
92 apus_pcibios_write_config(struct pci_bus *bus, int devfn, int offset, argument
95 int fnno = FNNO(devfn);
96 int devno = DEVNO(devfn);
117 bus->number, devfn>>3, devfn
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/arm/mach-ixp2000/
H A Dpci.c40 ixp2000_pci_config_addr(unsigned int bus_nr, unsigned int devfn, int where) argument
44 if (PCI_SLOT(devfn) > 7)
56 | (1 << (PCI_SLOT(devfn) + 16))
57 | (PCI_FUNC(devfn) << 8) | where);
61 | (PCI_SLOT(devfn) << 11)
62 | (PCI_FUNC(devfn) << 8) | where);
81 int ixp2000_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument
89 addr = ixp2000_pci_config_addr(bus->number, devfn, where);
109 int ixp2000_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, argument
117 addr = ixp2000_pci_config_addr(bus->number, devfn, wher
[all...]
H A Denp2611.c112 unsigned int devfn)
117 if (bus->number == 0x01 && devfn == 0x10)
123 static int enp2611_pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
126 if (enp2611_pci_valid_device(bus, devfn))
127 return ixp2000_pci_read_config(bus, devfn, where, size, value);
132 static int enp2611_pci_write_config(struct pci_bus *bus, unsigned int devfn, argument
135 if (enp2611_pci_valid_device(bus, devfn))
136 return ixp2000_pci_write_config(bus, devfn, where, size, value);
156 if (dev->bus->number == 0 && PCI_SLOT(dev->devfn) == 0) {
159 } else if (dev->bus->number == 0 && PCI_SLOT(dev->devfn)
111 enp2611_pci_valid_device(struct pci_bus *bus, unsigned int devfn) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc64/kernel/
H A Dpci_common.c21 unsigned long devfn,
32 unsigned long devfn,
37 if (config_out_of_range(pbm, bus, devfn, reg))
41 devfn <<= rbits;
44 return (void *) (pbm->config_space | bus | devfn | reg);
47 static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, argument
56 if (bus_dev == pbm->pci_bus && devfn == 0x00)
57 return pci_host_bridge_read_pci_cfg(bus_dev, devfn, where,
72 addr = sun4u_config_mkaddr(pbm, bus, devfn, where);
104 static int sun4u_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, argument
19 config_out_of_range(struct pci_pbm_info *pbm, unsigned long bus, unsigned long devfn, unsigned long reg) argument
30 sun4u_config_mkaddr(struct pci_pbm_info *pbm, unsigned long bus, unsigned long devfn, unsigned long reg) argument
148 sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 *value) argument
184 sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn, int where, int size, u32 value) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/boards/mpc1211/
H A Dpci.c54 #define CONFIG_CMD(bus, devfn, where) (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
59 static int pci_conf1_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) argument
69 writel(CONFIG_CMD(bus,devfn,where), PCIPAR);
95 writel(CONFIG_CMD(bus,devfn,(where+1)), PCIPAR);
115 PCIDBG(4,"pci_conf1_read@0x%08x=0x%x\n", CONFIG_CMD(bus,devfn,where),*value);
123 static int pci_conf1_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
137 writel(CONFIG_CMD(bus,devfn,where), PCIPAR);
141 PCIDBG(4,"pci_conf1_write@0x%08x=0x%x\n", CONFIG_CMD(bus,devfn,where),value);
149 PCIDBG(4,"pci_conf1_write@0x%08x=0x%x\n", CONFIG_CMD(bus,devfn,wher
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sh/drivers/pci/
H A Dops-dreamcast.c54 * someone implicitly messes around with the last devfn value.. otherwise we
68 static int gapspci_config_access(unsigned char bus, unsigned int devfn) argument
70 return (bus == 0) && (devfn == 0);
78 static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument
82 if (!gapspci_config_access(bus->number, devfn))
94 static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
96 if (!gapspci_config_access(bus->number, devfn))
H A Dops-sh4.c18 #define CONFIG_CMD(bus, devfn, where) \
19 P1SEGADDR((bus->number << 16) | (devfn << 8) | (where & ~3))
26 static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, argument
37 pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
63 static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, argument
71 pci_write_reg(CONFIG_CMD(bus, devfn, where), SH4_PCIPAR);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/
H A Dpci-bridge.h70 int devfn; /* pci device and function number */ member in struct:pci_dn
105 if (pdn && pdn->devfn == dev->devfn && pdn->busno == dev->bus->number)
111 u8 *bus, u8 *devfn)
116 *devfn = PCI_DN(np)->devfn;
110 pci_device_from_OF_node(struct device_node *np, u8 *bus, u8 *devfn) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/powermac/
H A Dpci.c127 #define MACRISC_CFA0(devfn, off) \
132 #define MACRISC_CFA1(bus, devfn, off) \
134 |(((unsigned int)(devfn)) << 8) \
159 static int macrisc_read_config(struct pci_bus *bus, unsigned int devfn, argument
170 addr = macrisc_cfg_access(hose, bus->number, devfn, offset);
191 static int macrisc_write_config(struct pci_bus *bus, unsigned int devfn, argument
202 addr = macrisc_cfg_access(hose, bus->number, devfn, offset);
236 static int chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) argument
243 np = pci_busdev_to_OF_node(bus, devfn);
260 chaos_read_config(struct pci_bus *bus, unsigned int devfn, in argument
272 chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument
312 u3_ht_skip_device(struct pci_controller *hose, struct pci_bus *bus, unsigned int devfn) argument
350 u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) argument
362 u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument
412 u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument
495 u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val) argument
527 u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val) argument
618 u8 bus, devfn; local
653 unsigned char bus, devfn; local
691 u8 bus, devfn; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/mach-visws/
H A Dreboot.c45 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \
46 (0x80000000 | (bus << 16) | (devfn << 8) | (reg & ~3))

Completed in 116 milliseconds

1234567891011>>