Lines Matching refs:gmch

26 	i915->gmch.pdev = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0));  in intel_gmch_bridge_setup()
27 if (!i915->gmch.pdev) { in intel_gmch_bridge_setup()
33 i915->gmch.pdev); in intel_gmch_bridge_setup()
50 pci_read_config_dword(i915->gmch.pdev, mchbar_reg(i915) + 4, &temp_hi); in intel_alloc_mchbar_resource()
51 pci_read_config_dword(i915->gmch.pdev, mchbar_reg(i915), &temp_lo); in intel_alloc_mchbar_resource()
60 i915->gmch.mch_res.name = "i915 MCHBAR"; in intel_alloc_mchbar_resource()
61 i915->gmch.mch_res.flags = IORESOURCE_MEM; in intel_alloc_mchbar_resource()
62 ret = pci_bus_alloc_resource(i915->gmch.pdev->bus, in intel_alloc_mchbar_resource()
63 &i915->gmch.mch_res, in intel_alloc_mchbar_resource()
67 i915->gmch.pdev); in intel_alloc_mchbar_resource()
70 i915->gmch.mch_res.start = 0; in intel_alloc_mchbar_resource()
75 pci_write_config_dword(i915->gmch.pdev, mchbar_reg(i915) + 4, in intel_alloc_mchbar_resource()
76 upper_32_bits(i915->gmch.mch_res.start)); in intel_alloc_mchbar_resource()
78 pci_write_config_dword(i915->gmch.pdev, mchbar_reg(i915), in intel_alloc_mchbar_resource()
79 lower_32_bits(i915->gmch.mch_res.start)); in intel_alloc_mchbar_resource()
92 i915->gmch.mchbar_need_disable = false; in intel_gmch_bar_setup()
95 pci_read_config_dword(i915->gmch.pdev, DEVEN, &temp); in intel_gmch_bar_setup()
98 pci_read_config_dword(i915->gmch.pdev, mchbar_reg(i915), &temp); in intel_gmch_bar_setup()
109 i915->gmch.mchbar_need_disable = true; in intel_gmch_bar_setup()
113 pci_write_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_setup()
116 pci_read_config_dword(i915->gmch.pdev, mchbar_reg(i915), &temp); in intel_gmch_bar_setup()
117 pci_write_config_dword(i915->gmch.pdev, mchbar_reg(i915), temp | 1); in intel_gmch_bar_setup()
123 if (i915->gmch.mchbar_need_disable) { in intel_gmch_bar_teardown()
127 pci_read_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_teardown()
130 pci_write_config_dword(i915->gmch.pdev, DEVEN, in intel_gmch_bar_teardown()
135 pci_read_config_dword(i915->gmch.pdev, mchbar_reg(i915), in intel_gmch_bar_teardown()
138 pci_write_config_dword(i915->gmch.pdev, mchbar_reg(i915), in intel_gmch_bar_teardown()
143 if (i915->gmch.mch_res.start) in intel_gmch_bar_teardown()
144 release_resource(&i915->gmch.mch_res); in intel_gmch_bar_teardown()
152 if (pci_read_config_word(i915->gmch.pdev, reg, &gmch_ctrl)) { in intel_gmch_vga_set_state()
165 if (pci_write_config_word(i915->gmch.pdev, reg, gmch_ctrl)) { in intel_gmch_vga_set_state()