Lines Matching refs:agp_bridge
29 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in via_fetch_size()
30 pci_read_config_byte(agp_bridge->dev, VIA_APSIZE, &temp); in via_fetch_size()
31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in via_fetch_size()
33 agp_bridge->previous_size = in via_fetch_size()
34 agp_bridge->current_size = (void *) (values + i); in via_fetch_size()
35 agp_bridge->aperture_size_idx = i; in via_fetch_size()
48 current_size = A_SIZE_8(agp_bridge->current_size); in via_configure()
50 pci_write_config_byte(agp_bridge->dev, VIA_APSIZE, in via_configure()
53 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in via_configure()
57 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, 0x0000000f); in via_configure()
60 pci_write_config_dword(agp_bridge->dev, VIA_ATTBASE, in via_configure()
61 (agp_bridge->gatt_bus_addr & 0xfffff000) | 3); in via_configure()
70 previous_size = A_SIZE_8(agp_bridge->previous_size); in via_cleanup()
71 pci_write_config_byte(agp_bridge->dev, VIA_APSIZE, in via_cleanup()
83 pci_read_config_dword(agp_bridge->dev, VIA_GARTCTRL, &temp); in via_tlbflush()
85 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush()
87 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, temp); in via_tlbflush()
111 values = A_SIZE_16(agp_bridge->driver->aperture_sizes); in via_fetch_size_agp3()
112 pci_read_config_word(agp_bridge->dev, VIA_AGP3_APSIZE, &temp); in via_fetch_size_agp3()
115 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in via_fetch_size_agp3()
117 agp_bridge->previous_size = in via_fetch_size_agp3()
118 agp_bridge->current_size = (void *) (values + i); in via_fetch_size_agp3()
119 agp_bridge->aperture_size_idx = i; in via_fetch_size_agp3()
132 current_size = A_SIZE_16(agp_bridge->current_size); in via_configure_agp3()
135 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in via_configure_agp3()
139 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_ATTBASE, in via_configure_agp3()
140 agp_bridge->gatt_bus_addr & 0xfffff000); in via_configure_agp3()
147 pci_read_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, &temp); in via_configure_agp3()
148 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp | (3<<7)); in via_configure_agp3()
157 previous_size = A_SIZE_16(agp_bridge->previous_size); in via_cleanup_agp3()
158 pci_write_config_byte(agp_bridge->dev, VIA_APSIZE, previous_size->size_value); in via_cleanup_agp3()
166 pci_read_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, &temp); in via_tlbflush_agp3()
167 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp & ~(1<<7)); in via_tlbflush_agp3()
168 pci_write_config_dword(agp_bridge->dev, VIA_AGP3_GARTCTRL, temp); in via_tlbflush_agp3()