/linux/arch/alpha/kernel/ |
A D | core_titan.c | 598 if (aper == NULL) in titan_agp_setup() 603 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in titan_agp_setup() 605 if (aper->pg_start < 0) { in titan_agp_setup() 607 kfree(aper); in titan_agp_setup() 612 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in titan_agp_setup() 625 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup() 629 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup() 630 status = iommu_release(aper->arena, aper->pg_start, in titan_agp_cleanup() 636 kfree(aper); in titan_agp_cleanup() 686 return iommu_bind(aper->arena, aper->pg_start + pg_start, in titan_agp_bind_memory() [all …]
|
A D | core_marvel.c | 867 aper = kmalloc(sizeof(*aper), GFP_KERNEL); in marvel_agp_setup() 872 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in marvel_agp_setup() 875 if (aper->pg_start < 0) { in marvel_agp_setup() 877 kfree(aper); in marvel_agp_setup() 882 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in marvel_agp_setup() 895 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup() 899 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup() 900 status = iommu_release(aper->arena, aper->pg_start, in marvel_agp_cleanup() 906 kfree(aper); in marvel_agp_cleanup() 978 return iommu_bind(aper->arena, aper->pg_start + pg_start, in marvel_agp_bind_memory() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | vmmgf100.c | 250 int kindn, aper, ret = -ENOSYS; in gf100_vmm_valid() local 272 aper = vmm->func->aper(target); in gf100_vmm_valid() 273 if (WARN_ON(aper < 0)) in gf100_vmm_valid() 274 return aper; in gf100_vmm_valid() 285 if (aper != 0 || !(page->type & NVKM_VMM_PAGE_COMP)) { in gf100_vmm_valid() 286 VMM_DEBUG(vmm, "comp %d %02x", aper, page->type); in gf100_vmm_valid() 316 map->type |= (u64)aper << 33; in gf100_vmm_valid() 373 .aper = gf100_vmm_aper, 388 .aper = gf100_vmm_aper,
|
A D | vmmnv50.c | 237 u8 aper, kind, kind_inv, comp, priv, ro; in nv50_vmm_valid() local 264 aper = 3; in nv50_vmm_valid() 266 aper = 0; in nv50_vmm_valid() 270 aper = 2; in nv50_vmm_valid() 273 aper = 3; in nv50_vmm_valid() 294 if (aper != 0 || !(page->type & NVKM_VMM_PAGE_COMP)) { in nv50_vmm_valid() 295 VMM_DEBUG(vmm, "comp %d %02x", aper, page->type); in nv50_vmm_valid() 317 map->type |= (u64)aper << 4; in nv50_vmm_valid()
|
A D | vmmgp100.c | 417 int kindn, aper, ret = -ENOSYS; in gp100_vmm_valid() local 439 aper = vmm->func->aper(target); in gp100_vmm_valid() 440 if (WARN_ON(aper < 0)) in gp100_vmm_valid() 441 return aper; in gp100_vmm_valid() 451 if (aper != 0 || !(page->type & NVKM_VMM_PAGE_COMP)) { in gp100_vmm_valid() 452 VMM_DEBUG(vmm, "comp %d %02x", aper, page->type); in gp100_vmm_valid() 475 map->type |= (u64)aper << 1; in gp100_vmm_valid() 491 u32 aper; in gp100_vmm_fault_cancel() local 499 aper = (args->v0.inst >> 8) & 3; in gp100_vmm_fault_cancel() 501 args->v0.inst |= aper << 28; in gp100_vmm_fault_cancel() [all …]
|
A D | vmmgk20a.c | 40 .aper = gf100_vmm_aper, 55 .aper = gf100_vmm_aper,
|
A D | vmmgm20b.c | 28 .aper = gk20a_vmm_aper, 44 .aper = gk20a_vmm_aper,
|
A D | vmmgk104.c | 71 .aper = gf100_vmm_aper, 86 .aper = gf100_vmm_aper,
|
A D | vmmgm200.c | 113 .aper = gf100_vmm_aper, 129 .aper = gf100_vmm_aper,
|
A D | vmmgp10b.c | 28 .aper = gk20a_vmm_aper,
|
A D | vmmtu102.c | 55 .aper = gf100_vmm_aper,
|
A D | vmmgv100.c | 66 .aper = gf100_vmm_aper,
|
A D | vmm.h | 143 int (*aper)(enum nvkm_memory_target); member
|
/linux/arch/x86/kernel/ |
A D | aperture_64.c | 172 u64 aper; in read_agp() local 197 aper = (aper_low & ~((1<<22)-1)) | ((u64)aper_hi << 32); in read_agp() 204 bus, slot, func, aper, aper + (32ULL << (old_order + 20)) - 1, in read_agp() 206 if (aper + (32ULL<<(20 + *order)) > 0x100000000ULL) { in read_agp() 213 bus, slot, func, aper, aper + (32ULL << (*order + 20)) - 1, in read_agp() 216 if (!aperture_valid(aper, (32*1024*1024) << *order, 32<<20)) in read_agp() 218 return (u32)aper; in read_agp()
|
A D | amd_gart_64.c | 498 static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size) in check_iommu_size() argument 508 a = aper + iommu_size; in check_iommu_size()
|
/linux/drivers/char/agp/ |
A D | amd64-agp.c | 244 static int agp_aperture_valid(u64 aper, u32 size) in agp_aperture_valid() argument 246 if (!aperture_valid(aper, size, 32*1024*1024)) in agp_aperture_valid() 255 !(aperture_resource = request_mem_region(aper, size, "aperture"))) { in agp_aperture_valid() 273 u64 aper, nb_aper; in fix_northbridge() local 298 aper = pci_bus_address(agp, AGP_APERTURE_BAR); in fix_northbridge() 304 if (order >=0 && aper + (32ULL<<(20 + order)) > 0x100000000ULL) { in fix_northbridge() 316 aper, 32 << order); in fix_northbridge() 317 if (order < 0 || !agp_aperture_valid(aper, (32*1024*1024)<<order)) in fix_northbridge() 321 pci_write_config_dword(nb, AMD64_GARTAPERTUREBASE, aper >> 25); in fix_northbridge()
|