Home
last modified time | relevance | path

Searched refs:aper (Results 1 – 15 of 15) sorted by relevance

/linux/arch/alpha/kernel/
H A Dcore_titan.c592 struct titan_agp_aperture *aper; in titan_agp_setup() local
597 aper = kmalloc_obj(struct titan_agp_aperture); in titan_agp_setup()
598 if (aper == NULL) in titan_agp_setup()
601 aper->arena = agp->hose->sg_pci; in titan_agp_setup()
602 aper->pg_count = alpha_agpgart_size / PAGE_SIZE; in titan_agp_setup()
603 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in titan_agp_setup()
604 aper->pg_count - 1); 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()
[all …]
H A Dcore_marvel.c859 struct marvel_agp_aperture *aper; in marvel_agp_setup() local
864 aper = kmalloc_obj(*aper); in marvel_agp_setup()
865 if (aper == NULL) return -ENOMEM; in marvel_agp_setup()
867 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
868 aper->pg_count = alpha_agpgart_size / PAGE_SIZE; in marvel_agp_setup()
869 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in marvel_agp_setup()
870 aper->pg_count - 1); in marvel_agp_setup()
872 if (aper->pg_start < 0) { in marvel_agp_setup()
874 kfree(aper); in marvel_agp_setup()
879 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in marvel_agp_setup()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmmgf100.c250 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()
318 map->type |= (u64)aper << 33; in gf100_vmm_valid()
375 .aper = gf100_vmm_aper,
390 .aper = gf100_vmm_aper,
H A Dvmmnv50.c237 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()
320 map->type |= (u64)aper << 4; in nv50_vmm_valid()
H A Dvmmgk20a.c40 .aper = gf100_vmm_aper,
55 .aper = gf100_vmm_aper,
H A Dvmmgm20b.c28 .aper = gk20a_vmm_aper,
44 .aper = gk20a_vmm_aper,
H A Dvmmgk104.c71 .aper = gf100_vmm_aper,
86 .aper = gf100_vmm_aper,
H A Dvmmgm200.c113 .aper = gf100_vmm_aper,
129 .aper = gf100_vmm_aper,
H A Dvmmgv100.c66 .aper = gf100_vmm_aper,
/linux/drivers/char/agp/
H A Damd64-agp.c244 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()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Duchan.c403 case NVKM_MEM_TARGET_INST: args->v0.aper = NVIF_CHAN_V0_INST_APER_INST; break; in nvkm_uchan_new()
404 case NVKM_MEM_TARGET_VRAM: args->v0.aper = NVIF_CHAN_V0_INST_APER_VRAM; break; in nvkm_uchan_new()
405 case NVKM_MEM_TARGET_HOST: args->v0.aper = NVIF_CHAN_V0_INST_APER_HOST; break; in nvkm_uchan_new()
406 case NVKM_MEM_TARGET_NCOH: args->v0.aper = NVIF_CHAN_V0_INST_APER_NCOH; break; in nvkm_uchan_new()
/linux/drivers/soc/tegra/cbb/
H A Dtegra194-cbb.c1738 const struct tegra194_cbb_aperture *aper, unsigned int max) in get_init_localaddress() argument
1744 if (aper[t_f].targflow == info->targflow) { in get_init_localaddress()
1748 if (aper[t_sr].targ_subrange == info->targ_subrange) { in get_init_localaddress()
1749 addr = aper[t_sr].init_localaddress; in get_init_localaddress()
1757 } while (aper[t_sr].targflow == aper[t_sr - 1].targflow); in get_init_localaddress()
/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dif0020.h30 __u8 aper; member
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/
H A Dfbsr.c52 r535_fbsr_memlist(struct nvkm_gsp_device *device, u32 handle, enum nvkm_memory_target aper, in r535_fbsr_memlist() argument
69 if (aper == NVKM_MEM_TARGET_HOST) { in r535_fbsr_memlist()
/linux/arch/x86/kernel/
H A Damd_gart_64.c497 static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size) in check_iommu_size() argument
507 a = aper + iommu_size; in check_iommu_size()