Lines Matching refs:func
44 pci_read(int bus, int dev, int func, uint32_t reg, uint32_t *val) in pci_read() argument
52 io.function = func; in pci_read()
65 pci_write(int bus, int dev, int func, uint32_t reg, uint32_t val) in pci_write() argument
72 io.function = func; in pci_write()
170 io.function = dev->func; in pci_device_netbsd_read()
206 io.function = dev->func; in pci_device_netbsd_write()
240 int bus, dev, func, err; in pci_device_netbsd_probe() local
244 func = device->func; in pci_device_netbsd_probe()
246 err = pci_read(bus, dev, func, PCI_BHLC_REG, ®); in pci_device_netbsd_probe()
257 err = pci_read(bus, dev, func, bar, ®); in pci_device_netbsd_probe()
262 err = pci_write(bus, dev, func, bar, ~0); in pci_device_netbsd_probe()
265 pci_read(bus, dev, func, bar, &size); in pci_device_netbsd_probe()
266 pci_write(bus, dev, func, bar, reg); in pci_device_netbsd_probe()
289 err = pci_read(bus, dev, func, bar, ®); in pci_device_netbsd_probe()
294 err = pci_write(bus, dev, func, bar, ~0); in pci_device_netbsd_probe()
297 pci_read(bus, dev, func, bar, &size); in pci_device_netbsd_probe()
298 pci_write(bus, dev, func, bar, reg64 >> 32); in pci_device_netbsd_probe()
328 int bus, dev, func, ndevs, nfuncs; in pci_system_netbsd_create() local
347 for (func = 0; func < nfuncs; func++) { in pci_system_netbsd_create()
348 if (pci_read(bus, dev, func, PCI_ID_REG, in pci_system_netbsd_create()
372 for (func = 0; func < nfuncs; func++) { in pci_system_netbsd_create()
373 if (pci_read(bus, dev, func, PCI_ID_REG, in pci_system_netbsd_create()
383 device->base.func = func; in pci_system_netbsd_create()
387 if (pci_read(bus, dev, func, PCI_CLASS_REG, in pci_system_netbsd_create()
396 if (pci_read(bus, dev, func, PCI_SUBSYS_ID_REG, in pci_system_netbsd_create()