Lines Matching refs:ptab
129 unsigned long *ptab; member
336 n_pte_pages, start_seg, *ptab; in cell_iommu_alloc_ptab() local
351 ptab = page_address(page); in cell_iommu_alloc_ptab()
352 memset(ptab, 0, ptab_size); in cell_iommu_alloc_ptab()
358 __func__, iommu->nid, iommu->stab, ptab, in cell_iommu_alloc_ptab()
381 iommu->stab[i] = reg | (__pa(ptab) + (n_pte_pages << 12) * in cell_iommu_alloc_ptab()
386 return ptab; in cell_iommu_alloc_ptab()
433 iommu->ptab = cell_iommu_alloc_ptab(iommu, base, size, 0, 0, in cell_iommu_setup_hardware()
494 window->table.it_base = (unsigned long)iommu->ptab; in cell_iommu_setup_window()
972 static void insert_16M_pte(unsigned long addr, unsigned long *ptab, in insert_16M_pte() argument
979 ptab = ptab + (segment * (1 << 12) / sizeof(unsigned long)); in insert_16M_pte()
982 addr, ptab, segment, offset); in insert_16M_pte()
984 ptab[offset] = base_pte | (__pa(addr) & CBE_IOPTE_RPN_Mask); in insert_16M_pte()
991 unsigned long base_pte, uaddr, ioaddr, *ptab; in cell_iommu_setup_fixed_ptab() local
993 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
1017 insert_16M_pte(uaddr, ptab, base_pte); in cell_iommu_setup_fixed_ptab()
1115 iommu->ptab = cell_iommu_alloc_ptab(iommu, dbase, dsize, 0, 0, in cell_iommu_fixed_mapping_init()