Lines Matching refs:PCI_DEVFN
71 return bus->number == 0 && (devfn == PCI_DEVFN(0, 0)); in __query()
74 (devfn == PCI_DEVFN(2, 0) || devfn == PCI_DEVFN(3, 0)); in __query()
87 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_read_config_byte()
107 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_read_config_word()
127 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_read_config_dword()
147 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_write_config_byte()
152 (devfn == PCI_DEVFN(2, 0) || devfn == PCI_DEVFN(3, 0)) in pci_ampci_write_config_byte()
167 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_write_config_word()
185 if (bus->number == 0 && devfn == PCI_DEVFN(0, 0)) { in pci_ampci_write_config_dword()
417 o->read (bus, PCI_DEVFN(2, 0), PCI_VENDOR_ID, 4, &x); in unit_disable_pcnet()
418 o->read (bus, PCI_DEVFN(2, 0), PCI_COMMAND, 2, &x); in unit_disable_pcnet()
422 o->write(bus, PCI_DEVFN(2, 0), PCI_COMMAND, 2, x); in unit_disable_pcnet()
423 o->read (bus, PCI_DEVFN(2, 0), PCI_COMMAND, 2, &x); in unit_disable_pcnet()
424 o->write(bus, PCI_DEVFN(2, 0), PCI_BASE_ADDRESS_0, 4, 0x00030001); in unit_disable_pcnet()
425 o->read (bus, PCI_DEVFN(2, 0), PCI_BASE_ADDRESS_0, 4, &x); in unit_disable_pcnet()
484 o->read (&bus, PCI_DEVFN(3, 0), PCI_COMMAND, 2, &x); in unit_pci_init()
488 o->write(&bus, PCI_DEVFN(3, 0), PCI_COMMAND, 2, x); in unit_pci_init()
490 o->read (&bus, PCI_DEVFN(3, 0), PCI_IO_BASE, 1, &x); in unit_pci_init()
491 o->read (&bus, PCI_DEVFN(3, 0), PCI_IO_BASE_UPPER16, 4, &x); in unit_pci_init()
492 o->read (&bus, PCI_DEVFN(3, 0), PCI_MEMORY_BASE, 4, &x); in unit_pci_init()
493 o->read (&bus, PCI_DEVFN(3, 0), PCI_PREF_MEMORY_BASE, 4, &x); in unit_pci_init()
495 o->write(&bus, PCI_DEVFN(3, 0), PCI_IO_BASE, 1, 0x01); in unit_pci_init()
496 o->read (&bus, PCI_DEVFN(3, 0), PCI_IO_BASE, 1, &x); in unit_pci_init()
497 o->write(&bus, PCI_DEVFN(3, 0), PCI_IO_BASE_UPPER16, 4, 0x00020000); in unit_pci_init()
498 o->read (&bus, PCI_DEVFN(3, 0), PCI_IO_BASE_UPPER16, 4, &x); in unit_pci_init()
499 o->write(&bus, PCI_DEVFN(3, 0), PCI_MEMORY_BASE, 4, 0xEBB0EA00); in unit_pci_init()
500 o->read (&bus, PCI_DEVFN(3, 0), PCI_MEMORY_BASE, 4, &x); in unit_pci_init()
501 o->write(&bus, PCI_DEVFN(3, 0), PCI_PREF_MEMORY_BASE, 4, 0xE9F0E800); in unit_pci_init()
502 o->read (&bus, PCI_DEVFN(3, 0), PCI_PREF_MEMORY_BASE, 4, &x); in unit_pci_init()