Lines Matching refs:devfn
22 unsigned long devfn,
33 unsigned long devfn,
38 if (config_out_of_range(pbm, bus, devfn, reg))
42 devfn <<= rbits;
45 return (void *) (pbm->config_space | bus | devfn | reg);
54 unsigned char bus, unsigned int devfn,
61 addr = sun4u_config_mkaddr(pbm, bus, devfn, where);
96 sun4u_read_pci_cfg_host(pbm, bus, devfn,
101 sun4u_read_pci_cfg_host(pbm, bus, devfn,
109 static int sun4u_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
130 if (!bus_dev->number && !PCI_SLOT(devfn))
131 return sun4u_read_pci_cfg_host(pbm, bus, devfn, where,
134 addr = sun4u_config_mkaddr(pbm, bus, devfn, where);
167 unsigned char bus, unsigned int devfn,
172 addr = sun4u_config_mkaddr(pbm, bus, devfn, where);
204 sun4u_write_pci_cfg_host(pbm, bus, devfn,
206 sun4u_write_pci_cfg_host(pbm, bus, devfn,
213 static int sun4u_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
220 if (!bus_dev->number && !PCI_SLOT(devfn))
221 return sun4u_write_pci_cfg_host(pbm, bus, devfn, where,
224 addr = sun4u_config_mkaddr(pbm, bus, devfn, where);
258 static int sun4v_read_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
264 unsigned int device = PCI_SLOT(devfn);
265 unsigned int func = PCI_FUNC(devfn);
268 if (config_out_of_range(pbm, bus, devfn, where)) {
291 static int sun4v_write_pci_cfg(struct pci_bus *bus_dev, unsigned int devfn,
297 unsigned int device = PCI_SLOT(devfn);
298 unsigned int func = PCI_FUNC(devfn);
300 if (config_out_of_range(pbm, bus, devfn, where)) {