Lines Matching refs:func
31 static void __init fix_hypertransport_config(int num, int slot, int func) in fix_hypertransport_config() argument
40 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config()
50 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config()
57 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument
80 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument
116 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument
121 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev()
123 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev()
125 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev()
127 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev()
129 d = read_pci_config(num, slot, func, 0x8); in ati_ixp4x0_rev()
134 static void __init ati_bugs(int num, int slot, int func) in ati_bugs() argument
142 d = ati_ixp4x0_rev(num, slot, func); in ati_bugs()
160 static u32 __init ati_sbx00_rev(int num, int slot, int func) in ati_sbx00_rev() argument
164 d = read_pci_config(num, slot, func, 0x8); in ati_sbx00_rev()
170 static void __init ati_bugs_contd(int num, int slot, int func) in ati_bugs_contd() argument
174 rev = ati_sbx00_rev(num, slot, func); in ati_bugs_contd()
190 d = read_pci_config(num, slot, func, 0x64); in ati_bugs_contd()
202 static void __init ati_bugs(int num, int slot, int func) in ati_bugs() argument
206 static void __init ati_bugs_contd(int num, int slot, int func) in ati_bugs_contd() argument
211 static void __init intel_remapping_check(int num, int slot, int func) in intel_remapping_check() argument
216 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in intel_remapping_check()
217 revision = read_pci_config_byte(num, slot, func, PCI_REVISION_ID); in intel_remapping_check()
298 static resource_size_t __init i830_stolen_base(int num, int slot, int func, in i830_stolen_base() argument
304 static resource_size_t __init i845_stolen_base(int num, int slot, int func, in i845_stolen_base() argument
310 static resource_size_t __init i85x_stolen_base(int num, int slot, int func, in i85x_stolen_base() argument
316 static resource_size_t __init i865_stolen_base(int num, int slot, int func, in i865_stolen_base() argument
326 static resource_size_t __init gen3_stolen_base(int num, int slot, int func, in gen3_stolen_base() argument
336 bsm = read_pci_config(num, slot, func, INTEL_BSM); in gen3_stolen_base()
341 static resource_size_t __init gen11_stolen_base(int num, int slot, int func, in gen11_stolen_base() argument
346 bsm = read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW0); in gen11_stolen_base()
348 bsm |= (u64)read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW1) << 32; in gen11_stolen_base()
353 static resource_size_t __init i830_stolen_size(int num, int slot, int func) in i830_stolen_size() argument
374 static resource_size_t __init gen3_stolen_size(int num, int slot, int func) in gen3_stolen_size() argument
403 static resource_size_t __init gen6_stolen_size(int num, int slot, int func) in gen6_stolen_size() argument
408 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen6_stolen_size()
414 static resource_size_t __init gen8_stolen_size(int num, int slot, int func) in gen8_stolen_size() argument
419 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen8_stolen_size()
425 static resource_size_t __init chv_stolen_size(int num, int slot, int func) in chv_stolen_size() argument
430 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in chv_stolen_size()
446 static resource_size_t __init gen9_stolen_size(int num, int slot, int func) in gen9_stolen_size() argument
451 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen9_stolen_size()
463 resource_size_t (*stolen_size)(int num, int slot, int func);
464 resource_size_t (*stolen_base)(int num, int slot, int func,
556 intel_graphics_stolen(int num, int slot, int func, in intel_graphics_stolen() argument
562 size = early_ops->stolen_size(num, slot, func); in intel_graphics_stolen()
563 base = early_ops->stolen_base(num, slot, func, size); in intel_graphics_stolen()
581 static void __init intel_graphics_quirks(int num, int slot, int func) in intel_graphics_quirks() argument
587 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in intel_graphics_quirks()
597 intel_graphics_stolen(num, slot, func, early_ops); in intel_graphics_quirks()
603 static void __init force_disable_hpet(int num, int slot, int func) in force_disable_hpet() argument
616 static void __init apple_airport_reset(int bus, int slot, int func) in apple_airport_reset() argument
627 pmcsr = read_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL); in apple_airport_reset()
631 write_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL, pmcsr); in apple_airport_reset()
634 pmcsr = read_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL); in apple_airport_reset()
637 bus, slot, func); in apple_airport_reset()
642 addr = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); in apple_airport_reset()
643 addr |= (u64)read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_1) << 32; in apple_airport_reset()
649 bus, slot, func); in apple_airport_reset()
678 void (*f)(int num, int slot, int func);
728 static int __init check_dev_quirk(int num, int slot, int func) in check_dev_quirk() argument
737 class = read_pci_config_16(num, slot, func, PCI_CLASS_DEVICE); in check_dev_quirk()
742 vendor = read_pci_config_16(num, slot, func, PCI_VENDOR_ID); in check_dev_quirk()
744 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in check_dev_quirk()
755 early_qrk[i].f(num, slot, func); in check_dev_quirk()
760 type = read_pci_config_byte(num, slot, func, in check_dev_quirk()
764 sec = read_pci_config_byte(num, slot, func, PCI_SECONDARY_BUS); in check_dev_quirk()
777 int slot, func; in early_pci_scan_bus() local
781 for (func = 0; func < 8; func++) { in early_pci_scan_bus()
783 if (check_dev_quirk(bus, slot, func)) in early_pci_scan_bus()