/linux-6.6.21/drivers/char/agp/ ! |
D | intel-agp.c | 23 pci_read_config_word(agp_bridge->dev, INTEL_APSIZE, &temp); in intel_fetch_size() 24 values = A_SIZE_16(agp_bridge->driver->aperture_sizes); in intel_fetch_size() 26 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in intel_fetch_size() 28 agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i); in intel_fetch_size() 29 agp_bridge->aperture_size_idx = i; in intel_fetch_size() 42 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in __intel_8xx_fetch_size() 44 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in __intel_8xx_fetch_size() 46 agp_bridge->previous_size = in __intel_8xx_fetch_size() 47 agp_bridge->current_size = (void *) (values + i); in __intel_8xx_fetch_size() 48 agp_bridge->aperture_size_idx = i; in __intel_8xx_fetch_size() [all …]
|
D | ati-agp.c | 73 writel(agp_bridge->scratch_page, page_map->remapped+i); in ati_create_page_map() 142 if ((agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS100) || in is_r200() 143 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS200) || in is_r200() 144 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS200_B) || in is_r200() 145 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS250)) in is_r200() 157 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); in ati_fetch_size() 159 pci_read_config_dword(agp_bridge->dev, ATI_RS300_APSIZE, &temp); in ati_fetch_size() 162 values = A_SIZE_LVL2(agp_bridge->driver->aperture_sizes); in ati_fetch_size() 163 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ati_fetch_size() 165 agp_bridge->previous_size = in ati_fetch_size() [all …]
|
D | ali-agp.c | 27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size() 29 values = A_SIZE_32(agp_bridge->driver->aperture_sizes); in ali_fetch_size() 31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ali_fetch_size() 33 agp_bridge->previous_size = in ali_fetch_size() 34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size() 35 agp_bridge->aperture_size_idx = i; in ali_fetch_size() 47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush() 50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush() 58 previous_size = A_SIZE_32(agp_bridge->previous_size); in ali_cleanup() 60 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_cleanup() [all …]
|
D | amd-k7-agp.c | 49 writel(agp_bridge->scratch_page, page_map->remapped+i); in amd_create_page_map() 119 GET_PAGE_DIR_OFF(agp_bridge->gart_bus_addr)) 133 value = A_SIZE_LVL2(agp_bridge->current_size); in amd_create_gatt_table() 144 agp_bridge->gatt_table_real = (u32 *)page_dir.real; in amd_create_gatt_table() 145 agp_bridge->gatt_table = (u32 __iomem *)page_dir.remapped; in amd_create_gatt_table() 146 agp_bridge->gatt_bus_addr = virt_to_phys(page_dir.real); in amd_create_gatt_table() 153 addr = pci_bus_address(agp_bridge->dev, AGP_APERTURE_BAR); in amd_create_gatt_table() 154 agp_bridge->gart_bus_addr = addr; in amd_create_gatt_table() 164 addr = (i * PAGE_SIZE) + agp_bridge->gart_bus_addr; in amd_create_gatt_table() 166 writel(agp_bridge->scratch_page, cur_gatt+GET_GATT_OFF(addr)); in amd_create_gatt_table() [all …]
|
D | via-agp.c | 30 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in via_fetch_size() 31 pci_read_config_byte(agp_bridge->dev, VIA_APSIZE, &temp); in via_fetch_size() 32 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in via_fetch_size() 34 agp_bridge->previous_size = in via_fetch_size() 35 agp_bridge->current_size = (void *) (values + i); in via_fetch_size() 36 agp_bridge->aperture_size_idx = i; in via_fetch_size() 49 current_size = A_SIZE_8(agp_bridge->current_size); in via_configure() 51 pci_write_config_byte(agp_bridge->dev, VIA_APSIZE, in via_configure() 54 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in via_configure() 58 pci_write_config_dword(agp_bridge->dev, VIA_GARTCTRL, 0x0000000f); in via_configure() [all …]
|
D | efficeon-agp.c | 94 pci_read_config_word(agp_bridge->dev, INTEL_APSIZE, &temp); in efficeon_fetch_size() 95 values = A_SIZE_LVL2(agp_bridge->driver->aperture_sizes); in efficeon_fetch_size() 97 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in efficeon_fetch_size() 99 agp_bridge->previous_size = in efficeon_fetch_size() 100 agp_bridge->current_size = (void *) (values + i); in efficeon_fetch_size() 101 agp_bridge->aperture_size_idx = i; in efficeon_fetch_size() 112 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2200); in efficeon_tlbflush() 113 pci_write_config_dword(agp_bridge->dev, INTEL_AGPCTRL, 0x2280); in efficeon_tlbflush() 122 previous_size = A_SIZE_LVL2(agp_bridge->previous_size); in efficeon_cleanup() 123 pci_read_config_word(agp_bridge->dev, INTEL_NBXCFG, &temp); in efficeon_cleanup() [all …]
|
D | sworks-agp.c | 61 writel(agp_bridge->scratch_page, page_map->remapped+i); in serverworks_create_page_map() 131 GET_PAGE_DIR_OFF(agp_bridge->gart_bus_addr)) 146 value = A_SIZE_LVL2(agp_bridge->current_size); in serverworks_create_gatt_table() 158 writel(agp_bridge->scratch_page, serverworks_private.scratch_dir.remapped+i); in serverworks_create_gatt_table() 169 agp_bridge->gatt_table_real = (u32 *)page_dir.real; in serverworks_create_gatt_table() 170 agp_bridge->gatt_table = (u32 __iomem *)page_dir.remapped; in serverworks_create_gatt_table() 171 agp_bridge->gatt_bus_addr = virt_to_phys(page_dir.real); in serverworks_create_gatt_table() 178 pci_read_config_dword(agp_bridge->dev,serverworks_private.gart_addr_ofs,&temp); in serverworks_create_gatt_table() 179 agp_bridge->gart_bus_addr = (temp & PCI_BASE_ADDRESS_MEM_MASK); in serverworks_create_gatt_table() 192 page_dir.real = (unsigned long *)agp_bridge->gatt_table_real; in serverworks_free_gatt_table() [all …]
|
D | uninorth-agp.c | 42 A_SIZE_32(agp_bridge->driver->aperture_sizes); in uninorth_fetch_size() 50 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) in uninorth_fetch_size() 54 if (i == agp_bridge->driver->num_aperture_sizes) { in uninorth_fetch_size() 55 dev_err(&agp_bridge->dev->dev, "invalid aperture size, " in uninorth_fetch_size() 63 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) in uninorth_fetch_size() 68 agp_bridge->previous_size = in uninorth_fetch_size() 69 agp_bridge->current_size = (void *)(values + i); in uninorth_fetch_size() 70 agp_bridge->aperture_size_idx = i; in uninorth_fetch_size() 80 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_tlbflush() 82 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, ctrl); in uninorth_tlbflush() [all …]
|
D | nvidia-agp.c | 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() [all …]
|
D | sis-agp.c | 29 pci_read_config_byte(agp_bridge->dev, SIS_APSIZE, &temp_size); in sis_fetch_size() 30 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in sis_fetch_size() 31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in sis_fetch_size() 35 agp_bridge->previous_size = in sis_fetch_size() 36 agp_bridge->current_size = (void *) (values + i); in sis_fetch_size() 38 agp_bridge->aperture_size_idx = i; in sis_fetch_size() 48 pci_write_config_byte(agp_bridge->dev, SIS_TLBFLUSH, 0x02); in sis_tlbflush() 55 current_size = A_SIZE_8(agp_bridge->current_size); in sis_configure() 56 pci_write_config_byte(agp_bridge->dev, SIS_TLBCNTRL, 0x05); in sis_configure() 57 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in sis_configure() [all …]
|
D | generic.c | 67 clear_bit(key, agp_bridge->key_list); in agp_free_key() 76 bit = find_first_zero_bit(agp_bridge->key_list, MAXKEY); in agp_get_key() 78 set_bit(bit, agp_bridge->key_list); in agp_get_key() 289 temp = agp_bridge->current_size; in agp_return_size() 291 switch (agp_bridge->driver->size_type) { in agp_return_size() 324 temp = agp_bridge->current_size; in agp_num_entries() 326 switch (agp_bridge->driver->size_type) { in agp_num_entries() 431 spin_lock(&agp_bridge->mapped_lock); in agp_bind_memory() 432 list_add(&curr->mapped_list, &agp_bridge->mapped_list); in agp_bind_memory() 433 spin_unlock(&agp_bridge->mapped_lock); in agp_bind_memory() [all …]
|
D | i460-agp.c | 111 pci_read_config_byte(agp_bridge->dev, INTEL_I460_GXBCTL, &temp); in i460_fetch_size() 124 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in i460_fetch_size() 126 pci_read_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, &temp); in i460_fetch_size() 147 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in i460_fetch_size() 157 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in i460_fetch_size() 160 agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i); in i460_fetch_size() 161 agp_bridge->aperture_size_idx = i; in i460_fetch_size() 183 pci_read_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, &temp); in i460_write_agpsiz() 184 pci_write_config_byte(agp_bridge->dev, INTEL_I460_AGPSIZ, in i460_write_agpsiz() 192 previous_size = A_SIZE_8(agp_bridge->previous_size); in i460_cleanup() [all …]
|
D | parisc-agp.c | 71 agp_bridge->current_size = (void *) &parisc_agp_sizes[0]; in parisc_agp_fetch_size() 81 agp_bridge->gart_bus_addr = info->gart_base; in parisc_agp_configure() 82 agp_bridge->capndx = info->lba_cap_offset; in parisc_agp_configure() 83 agp_bridge->mode = readl(info->lba_regs+info->lba_cap_offset+PCI_AGP_STATUS); in parisc_agp_configure() 107 info->gatt[i] = cpu_to_le64(agp_bridge->scratch_page); in parisc_agp_create_gatt_table() 132 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in parisc_agp_insert_memory() 162 parisc_agp_mask_memory(agp_bridge, in parisc_agp_insert_memory() 168 agp_bridge->driver->tlb_flush(mem); in parisc_agp_insert_memory() 180 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in parisc_agp_remove_memory() 187 info->gatt[i] = cpu_to_le64(agp_bridge->scratch_page); in parisc_agp_remove_memory() [all …]
|
D | alpha-agp.c | 16 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_vm_fault() 53 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_configure() 54 agp_bridge->gart_bus_addr = agp->aperture.bus_base; in alpha_core_agp_configure() 60 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_cleanup() 67 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_tlbflush() 87 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_insert_memory() 94 temp = agp_bridge->current_size; in alpha_core_agp_insert_memory() 109 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_remove_memory()
|
D | hp-agp.c | 233 agp_bridge->current_size = (void *) &hp_zx1_sizes[0]; in hp_zx1_fetch_size() 242 agp_bridge->gart_bus_addr = hp->gart_base; in hp_zx1_configure() 243 agp_bridge->capndx = hp->lba_cap_offset; in hp_zx1_configure() 244 agp_bridge->mode = readl(hp->lba_regs+hp->lba_cap_offset+PCI_AGP_STATUS); in hp_zx1_configure() 309 hp->gatt[i] = (unsigned long) agp_bridge->scratch_page; in hp_zx1_create_gatt_table() 337 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in hp_zx1_insert_memory() 371 agp_bridge->driver->tlb_flush(mem); in hp_zx1_insert_memory() 382 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in hp_zx1_remove_memory() 389 hp->gatt[i] = agp_bridge->scratch_page; in hp_zx1_remove_memory() 392 agp_bridge->driver->tlb_flush(mem); in hp_zx1_remove_memory()
|
D | amd64-agp.c | 71 if (!PGE_EMPTY(agp_bridge, readl(agp_bridge->gatt_table+j))) in amd64_insert_memory() 82 tmp = agp_bridge->driver->mask_memory(agp_bridge, in amd64_insert_memory() 91 writel(pte, agp_bridge->gatt_table+j); in amd64_insert_memory() 92 readl(agp_bridge->gatt_table+j); /* PCI Posting. */ in amd64_insert_memory() 136 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in amd64_fetch_size() 138 agp_bridge->previous_size = in amd64_fetch_size() 139 agp_bridge->current_size = (void *) (values + i); in amd64_fetch_size() 141 agp_bridge->aperture_size_idx = i; in amd64_fetch_size() 182 unsigned long gatt_bus = virt_to_phys(agp_bridge->gatt_table_real); in amd_8151_configure() 190 agp_bridge->gart_bus_addr = in amd_8151_configure()
|
D | backend.c | 57 struct agp_bridge_data *agp_bridge; variable 59 EXPORT_SYMBOL(agp_bridge); 249 agp_bridge = bridge; in agp_alloc_bridge() 261 agp_bridge = NULL; in agp_put_bridge()
|
D | frontend.c | 280 memory = agp_allocate_memory(agp_bridge, pg_count, type); in agp_allocate_memory_wrap() 398 agp_backend_release(agp_bridge); in agp_remove_controller() 446 agp_backend_release(agp_bridge); in agp_controller_release_current() 581 agp_copy_info(agp_bridge, &kerninfo); in agp_mmap() 718 agp_copy_info(agp_bridge, &kerninfo); in agpioc_info_wrap() 749 if (!agp_bridge) in agpioc_acquire_wrap() 752 if (atomic_read(&agp_bridge->agp_in_use)) in agpioc_acquire_wrap() 755 atomic_inc(&agp_bridge->agp_in_use); in agpioc_acquire_wrap() 768 agp_backend_release(agp_bridge); in agpioc_acquire_wrap() 795 agp_enable(agp_bridge, mode.agp_mode); in agpioc_setup_wrap()
|
D | intel-gtt.c | 158 atomic_inc(&agp_bridge->current_memory_agp); in i8xx_alloc_pages() 169 atomic_dec(&agp_bridge->current_memory_agp); in i8xx_destroy_pages() 246 case 1: page = agp_bridge->driver->agp_alloc_page(agp_bridge); in alloc_agpphysmem_i8xx() 284 agp_bridge->driver->agp_destroy_page(curr->pages[0], in intel_i810_free_by_type() 286 agp_bridge->driver->agp_destroy_page(curr->pages[0], in intel_i810_free_by_type() 684 agp_bridge->current_size = in intel_fake_agp_fetch_size() 807 agp_bridge->gatt_table_real = NULL; in intel_fake_agp_create_gatt_table() 808 agp_bridge->gatt_table = NULL; in intel_fake_agp_create_gatt_table() 809 agp_bridge->gatt_bus_addr = 0; in intel_fake_agp_create_gatt_table() 825 agp_bridge->gart_bus_addr = intel_private.gma_bus_addr; in intel_fake_agp_configure()
|
D | agp.h | 43 extern struct agp_bridge_data *agp_bridge; 207 int agp_generic_alloc_pages(struct agp_bridge_data *agp_bridge,
|
D | compat_ioctl.c | 43 agp_copy_info(agp_bridge, &kerninfo); in compat_agpioc_info_wrap()
|
/linux-6.6.21/include/linux/ ! |
D | agp_backend.h | 95 extern struct agp_bridge_data *agp_bridge;
|
/linux-6.6.21/arch/x86/kernel/ ! |
D | amd_gart_64.c | 725 (agp_copy_info(agp_bridge, &info) < 0); in gart_iommu_init()
|