Home
last modified time | relevance | path

Searched refs:agp_bridge (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/char/agp/
Dintel-agp.c23 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 …]
Dati-agp.c69 writel(agp_bridge->scratch_page, page_map->remapped+i); in ati_create_page_map()
138 if ((agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS100) || in is_r200()
139 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS200) || in is_r200()
140 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS200_B) || in is_r200()
141 (agp_bridge->dev->device == PCI_DEVICE_ID_ATI_RS250)) in is_r200()
153 pci_read_config_dword(agp_bridge->dev, ATI_RS100_APSIZE, &temp); in ati_fetch_size()
155 pci_read_config_dword(agp_bridge->dev, ATI_RS300_APSIZE, &temp); in ati_fetch_size()
158 values = A_SIZE_LVL2(agp_bridge->driver->aperture_sizes); in ati_fetch_size()
159 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ati_fetch_size()
161 agp_bridge->previous_size = in ati_fetch_size()
[all …]
Dali-agp.c27 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 …]
Dvia-agp.c30 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 …]
Damd-k7-agp.c49 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 …]
Defficeon-agp.c94 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 …]
Dsworks-agp.c61 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 …]
Duninorth-agp.c41 A_SIZE_32(agp_bridge->driver->aperture_sizes); in uninorth_fetch_size()
49 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) in uninorth_fetch_size()
53 if (i == agp_bridge->driver->num_aperture_sizes) { in uninorth_fetch_size()
54 dev_err(&agp_bridge->dev->dev, "invalid aperture size, " in uninorth_fetch_size()
62 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) in uninorth_fetch_size()
67 agp_bridge->previous_size = in uninorth_fetch_size()
68 agp_bridge->current_size = (void *)(values + i); in uninorth_fetch_size()
69 agp_bridge->aperture_size_idx = i; in uninorth_fetch_size()
79 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, in uninorth_tlbflush()
81 pci_write_config_dword(agp_bridge->dev, UNI_N_CFG_GART_CTRL, ctrl); in uninorth_tlbflush()
[all …]
Dnvidia-agp.c44 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 …]
Dsis-agp.c29 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 …]
Dgeneric.c67 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 …]
Di460-agp.c111 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 …]
Dparisc-agp.c71 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()
104 info->gatt[i] = (unsigned long)agp_bridge->scratch_page; in parisc_agp_create_gatt_table()
129 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in parisc_agp_insert_memory()
159 parisc_agp_mask_memory(agp_bridge, in parisc_agp_insert_memory()
164 agp_bridge->driver->tlb_flush(mem); in parisc_agp_insert_memory()
176 agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type)) { in parisc_agp_remove_memory()
183 info->gatt[i] = agp_bridge->scratch_page; in parisc_agp_remove_memory()
[all …]
Dalpha-agp.c16 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()
Dhp-agp.c233 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()
Damd64-agp.c71 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()
Dbackend.c57 struct agp_bridge_data *agp_bridge; variable
59 EXPORT_SYMBOL(agp_bridge);
247 agp_bridge = bridge; in agp_alloc_bridge()
259 agp_bridge = NULL; in agp_put_bridge()
Dfrontend.c278 memory = agp_allocate_memory(agp_bridge, pg_count, type); in agp_allocate_memory_wrap()
396 agp_backend_release(agp_bridge); in agp_remove_controller()
444 agp_backend_release(agp_bridge); in agp_controller_release_current()
579 agp_copy_info(agp_bridge, &kerninfo); in agp_mmap()
716 agp_copy_info(agp_bridge, &kerninfo); in agpioc_info_wrap()
747 if (!agp_bridge) in agpioc_acquire_wrap()
750 if (atomic_read(&agp_bridge->agp_in_use)) in agpioc_acquire_wrap()
753 atomic_inc(&agp_bridge->agp_in_use); in agpioc_acquire_wrap()
766 agp_backend_release(agp_bridge); in agpioc_acquire_wrap()
793 agp_enable(agp_bridge, mode.agp_mode); in agpioc_setup_wrap()
Dintel-gtt.c157 atomic_inc(&agp_bridge->current_memory_agp); in i8xx_alloc_pages()
168 atomic_dec(&agp_bridge->current_memory_agp); in i8xx_destroy_pages()
245 case 1: page = agp_bridge->driver->agp_alloc_page(agp_bridge); in alloc_agpphysmem_i8xx()
283 agp_bridge->driver->agp_destroy_page(curr->pages[0], in intel_i810_free_by_type()
285 agp_bridge->driver->agp_destroy_page(curr->pages[0], in intel_i810_free_by_type()
686 agp_bridge->current_size = in intel_fake_agp_fetch_size()
809 agp_bridge->gatt_table_real = NULL; in intel_fake_agp_create_gatt_table()
810 agp_bridge->gatt_table = NULL; in intel_fake_agp_create_gatt_table()
811 agp_bridge->gatt_bus_addr = 0; in intel_fake_agp_create_gatt_table()
827 agp_bridge->gart_bus_addr = intel_private.gma_bus_addr; in intel_fake_agp_configure()
Dagp.h43 extern struct agp_bridge_data *agp_bridge;
202 int agp_generic_alloc_pages(struct agp_bridge_data *agp_bridge,
Dcompat_ioctl.c43 agp_copy_info(agp_bridge, &kerninfo); in compat_agpioc_info_wrap()
/kernel/linux/linux-5.10/include/linux/
Dagp_backend.h95 extern struct agp_bridge_data *agp_bridge;
/kernel/linux/linux-5.10/arch/x86/kernel/
Damd_gart_64.c727 (agp_copy_info(agp_bridge, &info) < 0); in gart_iommu_init()