Lines Matching refs:ptab
118 unsigned long *ptab; member
325 n_pte_pages, start_seg, *ptab; in cell_iommu_alloc_ptab() local
340 ptab = page_address(page); in cell_iommu_alloc_ptab()
341 memset(ptab, 0, ptab_size); in cell_iommu_alloc_ptab()
347 __func__, iommu->nid, iommu->stab, ptab, in cell_iommu_alloc_ptab()
370 iommu->stab[i] = reg | (__pa(ptab) + (n_pte_pages << 12) * in cell_iommu_alloc_ptab()
375 return ptab; in cell_iommu_alloc_ptab()
422 iommu->ptab = cell_iommu_alloc_ptab(iommu, base, size, 0, 0, in cell_iommu_setup_hardware()
466 window->table.it_base = (unsigned long)iommu->ptab; in cell_iommu_setup_window()
848 static void __init insert_16M_pte(unsigned long addr, unsigned long *ptab, in insert_16M_pte() argument
855 ptab = ptab + (segment * (1 << 12) / sizeof(unsigned long)); in insert_16M_pte()
858 addr, ptab, segment, offset); in insert_16M_pte()
860 ptab[offset] = base_pte | (__pa(addr) & CBE_IOPTE_RPN_Mask); in insert_16M_pte()
867 unsigned long base_pte, uaddr, ioaddr, *ptab; in cell_iommu_setup_fixed_ptab() local
869 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
893 insert_16M_pte(uaddr, ptab, base_pte); in cell_iommu_setup_fixed_ptab()
992 iommu->ptab = cell_iommu_alloc_ptab(iommu, dbase, dsize, 0, 0, in cell_iommu_fixed_mapping_init()