Lines Matching refs:function
26 uint8 function, uint16 deviceId) in jmicron_fixup_ahci() argument
29 if (function != 0) in jmicron_fixup_ahci()
43 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in jmicron_fixup_ahci()
46 uint32 val = pci->ReadConfig(domain, bus, device, function, 0x40, 4); in jmicron_fixup_ahci()
71 pci->WriteConfig(domain, bus, device, function, 0x40, 4, val); in jmicron_fixup_ahci()
75 uint8 irq = pci->ReadConfig(domain, bus, device, function, 0x3c, 1); in jmicron_fixup_ahci()
84 uint8 function, uint16 deviceId) in intel_fixup_ahci() argument
109 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in intel_fixup_ahci()
112 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
114 pci->ReadConfig(domain, bus, device, function, 0x90, 1)); in intel_fixup_ahci()
116 uint8 map = pci->ReadConfig(domain, bus, device, function, 0x90, 1); in intel_fixup_ahci()
118 uint32 bar5 = pci->ReadConfig(domain, bus, device, function, 0x24, 4); in intel_fixup_ahci()
119 uint16 pcicmd = pci->ReadConfig(domain, bus, device, function, in intel_fixup_ahci()
124 pci->WriteConfig(domain, bus, device, function, PCI_command, 2, in intel_fixup_ahci()
127 pci->WriteConfig(domain, bus, device, function, 0x24, 4, 0xffffffff); in intel_fixup_ahci()
129 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
130 pci->WriteConfig(domain, bus, device, function, 0x24, 4, 0); in intel_fixup_ahci()
132 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
136 pci->WriteConfig(domain, bus, device, function, 0x90, 1, map); in intel_fixup_ahci()
138 pci->WriteConfig(domain, bus, device, function, 0x24, 4, 0xffffffff); in intel_fixup_ahci()
140 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
141 pci->WriteConfig(domain, bus, device, function, 0x24, 4, 0); in intel_fixup_ahci()
143 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
146 pci->WriteConfig(domain, bus, device, function, 0x24, 4, bar5); in intel_fixup_ahci()
148 pci->WriteConfig(domain, bus, device, function, PCI_command, 2, pcicmd); in intel_fixup_ahci()
152 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci()
154 pci->ReadConfig(domain, bus, device, function, 0x90, 1)); in intel_fixup_ahci()
159 ati_fixup_ixp(PCI *pci, uint8 domain, uint8 bus, uint8 device, uint8 function, in ati_fixup_ixp() argument
180 domain, bus, device, function, deviceId); in ati_fixup_ixp()
192 uint8 function) in pci_fixup_device() argument
194 uint16 vendorId = pci->ReadConfig(domain, bus, device, function, in pci_fixup_device()
196 uint16 deviceId = pci->ReadConfig(domain, bus, device, function, in pci_fixup_device()
204 jmicron_fixup_ahci(pci, domain, bus, device, function, deviceId); in pci_fixup_device()
208 intel_fixup_ahci(pci, domain, bus, device, function, deviceId); in pci_fixup_device()
212 ati_fixup_ixp(pci, domain, bus, device, function, deviceId); in pci_fixup_device()