Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 4 of 4) sorted by relevance

/arch/alpha/kernel/
Dpci_iommu.c63 struct pci_iommu_arena *arena; in iommu_arena_new_node() local
74 arena = memblock_alloc(sizeof(*arena), SMP_CACHE_BYTES); in iommu_arena_new_node()
75 if (!arena) in iommu_arena_new_node()
77 sizeof(*arena)); in iommu_arena_new_node()
78 arena->ptes = memblock_alloc(mem_size, align); in iommu_arena_new_node()
79 if (!arena->ptes) in iommu_arena_new_node()
83 spin_lock_init(&arena->lock); in iommu_arena_new_node()
84 arena->hose = hose; in iommu_arena_new_node()
85 arena->dma_base = base; in iommu_arena_new_node()
86 arena->size = window_size; in iommu_arena_new_node()
[all …]
Dcore_titan.c584 struct pci_iommu_arena *arena; member
601 aper->arena = agp->hose->sg_pci; in titan_agp_setup()
603 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, 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()
686 return iommu_bind(aper->arena, aper->pg_start + pg_start, in titan_agp_bind_memory()
694 return iommu_unbind(aper->arena, aper->pg_start + pg_start, in titan_agp_unbind_memory()
702 unsigned long baddr = addr - aper->arena->dma_base; in titan_agp_translate()
[all …]
Dcore_marvel.c854 struct pci_iommu_arena *arena; member
870 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
872 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, 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()
978 return iommu_bind(aper->arena, aper->pg_start + pg_start, in marvel_agp_bind_memory()
986 return iommu_unbind(aper->arena, aper->pg_start + pg_start, in marvel_agp_unbind_memory()
994 unsigned long baddr = addr - aper->arena->dma_base; in marvel_agp_translate()
[all …]
Dcore_cia.c356 struct pci_iommu_arena *arena = pci_isa_hose->sg_isa; in verify_tb_operation() local
375 addr0 = arena->dma_base; in verify_tb_operation()
449 cia_pci_tbi(arena->hose, 0, -1); in verify_tb_operation()
464 arena->ptes[4] = pte0; in verify_tb_operation()
488 arena->ptes[5] = pte0; in verify_tb_operation()
501 arena->align_entry = 4; in verify_tb_operation()
524 arena->ptes[4] = 0; in verify_tb_operation()
525 arena->ptes[5] = 0; in verify_tb_operation()
539 alpha_mv.mv_pci_tbi(arena->hose, 0, -1); in verify_tb_operation()