Lines Matching refs:num

32 static void __init fix_hypertransport_config(int num, int slot, int func)  in fix_hypertransport_config()  argument
41 htcfg = read_pci_config(num, slot, func, 0x68); in fix_hypertransport_config()
51 write_pci_config(num, slot, func, 0x68, htcfg); in fix_hypertransport_config()
58 static void __init via_bugs(int num, int slot, int func) in via_bugs() argument
81 static void __init nvidia_bugs(int num, int slot, int func) in nvidia_bugs() argument
89 if (num) in nvidia_bugs()
117 static u32 __init ati_ixp4x0_rev(int num, int slot, int func) in ati_ixp4x0_rev() argument
122 b = read_pci_config_byte(num, slot, func, 0xac); in ati_ixp4x0_rev()
124 write_pci_config_byte(num, slot, func, 0xac, b); in ati_ixp4x0_rev()
126 d = read_pci_config(num, slot, func, 0x70); in ati_ixp4x0_rev()
128 write_pci_config(num, slot, func, 0x70, d); in ati_ixp4x0_rev()
130 d = read_pci_config(num, slot, func, 0x8); in ati_ixp4x0_rev()
135 static void __init ati_bugs(int num, int slot, int func) in ati_bugs() argument
143 d = ati_ixp4x0_rev(num, slot, func); in ati_bugs()
161 static u32 __init ati_sbx00_rev(int num, int slot, int func) in ati_sbx00_rev() argument
165 d = read_pci_config(num, slot, func, 0x8); in ati_sbx00_rev()
171 static void __init ati_bugs_contd(int num, int slot, int func) in ati_bugs_contd() argument
175 rev = ati_sbx00_rev(num, slot, func); in ati_bugs_contd()
191 d = read_pci_config(num, slot, func, 0x64); in ati_bugs_contd()
203 static void __init ati_bugs(int num, int slot, int func) in ati_bugs() argument
207 static void __init ati_bugs_contd(int num, int slot, int func) in ati_bugs_contd() argument
212 static void __init intel_remapping_check(int num, int slot, int func) in intel_remapping_check() argument
217 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in intel_remapping_check()
218 revision = read_pci_config_byte(num, slot, func, PCI_REVISION_ID); in intel_remapping_check()
299 static resource_size_t __init i830_stolen_base(int num, int slot, int func, in i830_stolen_base() argument
305 static resource_size_t __init i845_stolen_base(int num, int slot, int func, in i845_stolen_base() argument
311 static resource_size_t __init i85x_stolen_base(int num, int slot, int func, in i85x_stolen_base() argument
317 static resource_size_t __init i865_stolen_base(int num, int slot, int func, in i865_stolen_base() argument
327 static resource_size_t __init gen3_stolen_base(int num, int slot, int func, in gen3_stolen_base() argument
337 bsm = read_pci_config(num, slot, func, INTEL_BSM); in gen3_stolen_base()
342 static resource_size_t __init gen11_stolen_base(int num, int slot, int func, in gen11_stolen_base() argument
347 bsm = read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW0); in gen11_stolen_base()
349 bsm |= (u64)read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW1) << 32; in gen11_stolen_base()
354 static resource_size_t __init i830_stolen_size(int num, int slot, int func) in i830_stolen_size() argument
375 static resource_size_t __init gen3_stolen_size(int num, int slot, int func) in gen3_stolen_size() argument
404 static resource_size_t __init gen6_stolen_size(int num, int slot, int func) in gen6_stolen_size() argument
409 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen6_stolen_size()
415 static resource_size_t __init gen8_stolen_size(int num, int slot, int func) in gen8_stolen_size() argument
420 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen8_stolen_size()
426 static resource_size_t __init chv_stolen_size(int num, int slot, int func) in chv_stolen_size() argument
431 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in chv_stolen_size()
447 static resource_size_t __init gen9_stolen_size(int num, int slot, int func) in gen9_stolen_size() argument
452 gmch_ctrl = read_pci_config_16(num, slot, func, SNB_GMCH_CTRL); in gen9_stolen_size()
464 resource_size_t (*stolen_size)(int num, int slot, int func);
465 resource_size_t (*stolen_base)(int num, int slot, int func,
568 intel_graphics_stolen(int num, int slot, int func, in intel_graphics_stolen() argument
574 size = early_ops->stolen_size(num, slot, func); in intel_graphics_stolen()
575 base = early_ops->stolen_base(num, slot, func, size); in intel_graphics_stolen()
593 static void __init intel_graphics_quirks(int num, int slot, int func) in intel_graphics_quirks() argument
606 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in intel_graphics_quirks()
616 intel_graphics_stolen(num, slot, func, early_ops); in intel_graphics_quirks()
622 static void __init force_disable_hpet(int num, int slot, int func) in force_disable_hpet() argument
697 void (*f)(int num, int slot, int func);
747 static int __init check_dev_quirk(int num, int slot, int func) in check_dev_quirk() argument
756 class = read_pci_config_16(num, slot, func, PCI_CLASS_DEVICE); in check_dev_quirk()
761 vendor = read_pci_config_16(num, slot, func, PCI_VENDOR_ID); in check_dev_quirk()
763 device = read_pci_config_16(num, slot, func, PCI_DEVICE_ID); in check_dev_quirk()
774 early_qrk[i].f(num, slot, func); in check_dev_quirk()
779 type = read_pci_config_byte(num, slot, func, in check_dev_quirk()
783 sec = read_pci_config_byte(num, slot, func, PCI_SECONDARY_BUS); in check_dev_quirk()
784 if (sec > num) in check_dev_quirk()