Lines Matching refs:agp_bridge

44 	pci_read_config_byte(agp_bridge->dev, NVIDIA_0_APSIZE, &size_value);  in nvidia_fetch_size()
46 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in nvidia_fetch_size()
48 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in nvidia_fetch_size()
50 agp_bridge->previous_size = in nvidia_fetch_size()
51 agp_bridge->current_size = (void *) (values + i); in nvidia_fetch_size()
52 agp_bridge->aperture_size_idx = i; in nvidia_fetch_size()
113 current_size = A_SIZE_8(agp_bridge->current_size); in nvidia_configure()
116 pci_write_config_byte(agp_bridge->dev, NVIDIA_0_APSIZE, in nvidia_configure()
120 apbase = pci_bus_address(agp_bridge->dev, AGP_APERTURE_BAR); in nvidia_configure()
121 agp_bridge->gart_bus_addr = apbase; in nvidia_configure()
144 (agp_bridge->gatt_bus_addr + (i % num_dirs) * 64 * 1024) | 1); in nvidia_configure()
152 pci_read_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, &temp); in nvidia_configure()
153 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp | 0x100); in nvidia_configure()
156 apbase_phys = pci_resource_start(agp_bridge->dev, AGP_APERTURE_BAR); in nvidia_configure()
172 pci_read_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, &temp); in nvidia_cleanup()
173 pci_write_config_dword(agp_bridge->dev, NVIDIA_0_APSIZE, temp & ~(0x100)); in nvidia_cleanup()
183 previous_size = A_SIZE_8(agp_bridge->previous_size); in nvidia_cleanup()
184 pci_write_config_byte(agp_bridge->dev, NVIDIA_0_APSIZE, in nvidia_cleanup()
188 nvidia_init_iorr(agp_bridge->gart_bus_addr, in nvidia_cleanup()
218 if (!PGE_EMPTY(agp_bridge, readl(agp_bridge->gatt_table+nvidia_private.pg_offset+j))) in nvidia_insert_memory()
227 writel(agp_bridge->driver->mask_memory(agp_bridge, in nvidia_insert_memory()
229 agp_bridge->gatt_table+nvidia_private.pg_offset+j); in nvidia_insert_memory()
233 readl(agp_bridge->gatt_table+nvidia_private.pg_offset+j - 1); in nvidia_insert_memory()
235 agp_bridge->driver->tlb_flush(mem); in nvidia_insert_memory()
254 writel(agp_bridge->scratch_page, agp_bridge->gatt_table+nvidia_private.pg_offset+i); in nvidia_remove_memory()
256 agp_bridge->driver->tlb_flush(mem); in nvidia_remove_memory()