Lines Matching refs:devfn
25 static int sandbox_pci_write_config(struct udevice *bus, pci_dev_t devfn, in sandbox_pci_write_config() argument
33 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_write_config()
43 static int sandbox_pci_read_config(const struct udevice *bus, pci_dev_t devfn, in sandbox_pci_read_config() argument
54 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_read_config()
59 devfn = SANDBOX_PCI_DEVFN(PCI_DEV(devfn), in sandbox_pci_read_config()
60 PCI_FUNC(devfn)); in sandbox_pci_read_config()
61 vendor = priv->vendev[devfn].vendor; in sandbox_pci_read_config()
62 device = priv->vendev[devfn].device; in sandbox_pci_read_config()
84 u8 pdev, pfn, devfn; in sandbox_pci_probe() local
104 devfn = SANDBOX_PCI_DEVFN(pdev, pfn); in sandbox_pci_probe()
105 priv->vendev[devfn].vendor = fdt32_to_cpu(cell[2]); in sandbox_pci_probe()
106 priv->vendev[devfn].device = fdt32_to_cpu(cell[3]); in sandbox_pci_probe()