Lines Matching +full:cell +full:- +full:value
1 // SPDX-License-Identifier: GPL-2.0+
25 uint offset, ulong value, in sandbox_pci_write_config() argument
34 return ret == -ENODEV ? 0 : ret; in sandbox_pci_write_config()
36 if (!ops || !ops->write_config) in sandbox_pci_write_config()
37 return -ENOSYS; in sandbox_pci_write_config()
39 return ops->write_config(emul, offset, value, size); in sandbox_pci_write_config()
60 vendor = priv->vendev[devfn].vendor; in sandbox_pci_read_config()
61 device = priv->vendev[devfn].device; in sandbox_pci_read_config()
69 return ret == -ENODEV ? 0 : ret; in sandbox_pci_read_config()
73 if (!ops || !ops->read_config) in sandbox_pci_read_config()
74 return -ENOSYS; in sandbox_pci_read_config()
76 return ops->read_config(emul, offset, valuep, size); in sandbox_pci_read_config()
82 const fdt32_t *cell; in sandbox_pci_probe() local
86 cell = ofnode_get_property(dev_ofnode(dev), "sandbox,dev-info", &len); in sandbox_pci_probe()
87 if (!cell) in sandbox_pci_probe()
96 fdt32_to_cpu(cell[0]), fdt32_to_cpu(cell[1]), in sandbox_pci_probe()
97 fdt32_to_cpu(cell[2]), fdt32_to_cpu(cell[3])); in sandbox_pci_probe()
99 pdev = fdt32_to_cpu(cell[0]); in sandbox_pci_probe()
100 pfn = fdt32_to_cpu(cell[1]); in sandbox_pci_probe()
104 priv->vendev[devfn].vendor = fdt32_to_cpu(cell[2]); in sandbox_pci_probe()
105 priv->vendev[devfn].device = fdt32_to_cpu(cell[3]); in sandbox_pci_probe()
107 cell += FDT_DEV_INFO_CELLS; in sandbox_pci_probe()