Searched refs:devfn (Results 101 - 125 of 492) sorted by relevance

1234567891011>>

/linux-master/drivers/pci/hotplug/
H A Dshpchp_pci.c51 if (PCI_SLOT(dev->devfn) == p_slot->device)
76 if (PCI_SLOT(dev->devfn) != p_slot->device)
H A Ds390_pci_hpc.c60 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn);
137 zdev->devfn, name);
H A Dcpqphp_ctrl.c2034 unsigned int devfn; local
2045 devfn = PCI_DEVFN(func->device, func->function);
2048 rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code);
2057 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type);
2063 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR);
2322 unsigned int devfn; local
2338 devfn = PCI_DEVFN(func->device, func->function);
2341 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &temp_byte);
2348 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_PRIMARY_BUS, func->bus);
2363 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SECONDARY_BU
[all...]
/linux-master/arch/powerpc/platforms/chrp/
H A Dpci.c34 static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, argument
46 cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off);
61 static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, argument
73 cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off);
97 static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
101 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8)
112 static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
116 unsigned long addr = (offset & 0xff) | ((devfn & 0xff) << 8)
/linux-master/drivers/infiniband/hw/hfi1/
H A Defivar.c122 PCI_SLOT(dd->pcidev->devfn),
123 PCI_FUNC(dd->pcidev->devfn));
/linux-master/arch/x86/include/asm/
H A Damd_nb.h94 PCI_SLOT(misc->devfn) == PCI_SLOT(pdev->devfn))
/linux-master/drivers/ssb/
H A Ddriver_gige.c110 static int ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
116 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0))
140 static int ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn, argument
146 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0))
/linux-master/arch/alpha/kernel/
H A Dsys_sable.c413 slot = PCI_SLOT(dev->devfn);
416 else if (PCI_SLOT(dev->bus->self->devfn) == 3) {
417 slot = PCI_SLOT(dev->devfn) + 11;
423 if (PCI_SLOT(dev->bus->self->devfn) == 3) {
424 slot = PCI_SLOT(dev->devfn) + 11;
432 slot = PCI_SLOT(dev->devfn);
H A Dsys_takara.c183 unsigned int busslot = PCI_SLOT(dev->bus->self->devfn);
216 int slot = PCI_SLOT(dev->devfn);
224 busslot = PCI_SLOT(dev->bus->self->devfn);
H A Dsys_eiger.c180 slot = PCI_SLOT(dev->devfn);
184 && (PCI_SLOT(dev->bus->self->devfn)
186 slot = PCI_SLOT(dev->devfn);
/linux-master/arch/sparc/kernel/
H A Dprom_32.c97 unsigned int devfn; local
104 devfn = (regs->phys_hi >> 8) & 0xff;
105 if (devfn & 0x07) {
108 devfn >> 3,
109 devfn & 0x07);
113 devfn >> 3);
/linux-master/arch/powerpc/include/asm/
H A Dpci-bridge.h165 extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn,
169 unsigned char bus_number, unsigned int devfn,
172 extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn,
182 u8 *bus, u8 *devfn);
206 int devfn; /* pci device and function number */ member in struct:pci_dn
240 int devfn);
/linux-master/arch/powerpc/kernel/
H A Drtas_pci.c62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where);
79 unsigned int devfn,
87 pdn = pci_get_pdn_by_devfn(bus, devfn);
113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where);
129 unsigned int devfn,
134 pdn = pci_get_pdn_by_devfn(bus, devfn);
78 rtas_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument
128 rtas_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
H A Dpci_32.c162 int pci_device_from_OF_node(struct device_node *node, u8 *bus, u8 *devfn) argument
179 *devfn = (be32_to_cpup(&reg[0]) >> 8) & 0xff;
194 dev->devfn == *devfn) {
327 unsigned long, bus, unsigned long, devfn)
/linux-master/arch/powerpc/platforms/powernv/
H A Docxl.c146 link->dev == PCI_SLOT(dev->devfn)) {
157 link->dev = PCI_SLOT(dev->devfn);
195 link->fn_desired_actags[PCI_FUNC(dev->devfn)] = 0;
204 link->fn_desired_actags[PCI_FUNC(dev->devfn)] += actag;
207 link->fn_desired_actags[PCI_FUNC(dev->devfn)]);
273 *base = link->fn_actags[PCI_FUNC(dev->devfn)].start;
274 *enabled = link->fn_actags[PCI_FUNC(dev->devfn)].count;
275 *supported = link->fn_desired_actags[PCI_FUNC(dev->devfn)];
306 if (link->fn_desired_actags[i] && (i == PCI_FUNC(dev->devfn))) {
362 rc = opal_npu_tl_set(phb->opal_id, dev->devfn, ca
[all...]
/linux-master/arch/mips/pci/
H A Dpcie-octeon.c1538 unsigned int devfn, int reg, int size,
1578 if ((bus->parent == NULL) && (devfn >> 3 != 0))
1596 if ((bus->parent == NULL) && (devfn >= 2))
1612 if ((bus_number == 2) && (devfn >> 3 != 2))
1619 if ((bus_number == 2) && (devfn >> 3 != 3))
1624 !((devfn == (2 << 3)) || (devfn == (3 << 3))))
1635 !((devfn >> 3 >= 1) && (devfn >> 3 <= 4)))
1638 if ((bus_number == 5) && (devfn >>
1537 octeon_pcie_read_config(unsigned int pcie_port, struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
1709 octeon_pcie0_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
1715 octeon_pcie1_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
1721 octeon_dummy_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
1730 octeon_pcie_write_config(unsigned int pcie_port, struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
1765 octeon_pcie0_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
1771 octeon_pcie1_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
1777 octeon_dummy_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
[all...]
H A Dpci-xtalk-bridge.c98 int slot = PCI_SLOT(dev->devfn);
119 static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, argument
124 int slot = PCI_SLOT(devfn);
125 int fn = PCI_FUNC(devfn);
156 static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, argument
162 int slot = PCI_SLOT(devfn);
163 int fn = PCI_FUNC(devfn);
195 static int pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
199 return pci_conf1_read_config(bus, devfn, where, size, value);
201 return pci_conf0_read_config(bus, devfn, wher
204 pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
243 pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
284 pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) argument
[all...]
H A Dpci-mt7620.c137 static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, argument
140 unsigned int slot = PCI_SLOT(devfn);
141 u8 func = PCI_FUNC(devfn);
169 static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, argument
172 unsigned int slot = PCI_SLOT(devfn);
173 u8 func = PCI_FUNC(devfn);
H A Dfixup-malta.c93 if (PCI_SLOT(pdev->devfn) == 10) {
127 if (PCI_SLOT(pdev->devfn) == 10) {
H A Dfixup-cobalt.c56 if (dev->devfn == PCI_DEVFN(0, 0) &&
93 if (dev->devfn != PCI_DEVFN(0, 0))
/linux-master/drivers/pci/controller/
H A Dpci-ixp4xx.c186 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) argument
191 return (PCI_CONF1_ADDRESS(0, 0, PCI_FUNC(devfn), where) &
192 ~PCI_CONF1_ENABLE) | BIT(32-PCI_SLOT(devfn));
195 return (PCI_CONF1_ADDRESS(bus_num, PCI_SLOT(devfn),
196 PCI_FUNC(devfn), where) &
293 static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
307 addr = ixp4xx_config_addr(bus_num, devfn, where);
310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd);
340 static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, argument
[all...]
H A Dpci-mvebu.c53 #define PCIE_CONF_ADDR(bus, devfn, where) \
54 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \
55 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
106 int devfn; member in struct:mvebu_pcie_port
346 int devfn);
348 static int mvebu_pcie_child_rd_conf(struct pci_bus *bus, u32 devfn, int where, argument
355 port = mvebu_pcie_find_port(pcie, bus, devfn);
364 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where),
384 static int mvebu_pcie_child_wr_conf(struct pci_bus *bus, u32 devfn, argument
391 port = mvebu_pcie_find_port(pcie, bus, devfn);
961 mvebu_pcie_find_port(struct mvebu_pcie *pcie, struct pci_bus *bus, int devfn) argument
985 mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 val) argument
999 mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) argument
1177 mvebu_get_tgt_attr(struct device_node *np, int devfn, unsigned long type, unsigned int *tgt, unsigned int *attr) argument
[all...]
H A Dpci-versatile.c48 unsigned int devfn, int offset)
52 if (pci_slot_ignore & (1 << PCI_SLOT(devfn)))
55 return versatile_cfg_base[1] + ((busnr << 16) | (devfn << 8) | offset);
47 versatile_map_bus(struct pci_bus *bus, unsigned int devfn, int offset) argument
/linux-master/arch/powerpc/platforms/52xx/
H A Dmpc52xx_pci.c108 mpc52xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, argument
115 if (ppc_md.pci_exclude_device(hose, bus->number, devfn))
121 (devfn << 8) |
165 mpc52xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, argument
172 if (ppc_md.pci_exclude_device(hose, bus->number, devfn))
178 (devfn << 8) |
/linux-master/drivers/pcmcia/
H A Dti113x.h240 if(PCI_FUNC(socket->dev->devfn)==1)
487 func0 = pci_get_slot(socket->dev->bus, socket->dev->devfn & ~0x07);
655 int devfn; local
706 devfn = socket->dev->devfn & ~0x07;
708 (socket->dev->devfn & 0x07) ? devfn : devfn | 0x01);
789 if ((PCI_FUNC(socket->dev->devfn) == 0) ||
848 if (disable_clkrun && PCI_FUNC(socket->dev->devfn)
[all...]

Completed in 232 milliseconds

1234567891011>>