Lines Matching refs:tbl
45 static int tce_build_iSeries(struct iommu_table *tbl, long index, long npages,
56 if (tbl->it_type == TCE_VB) {
68 rc = HvCallXm_setTce((u64)tbl->it_index, (u64)index, tce);
78 static void tce_free_iSeries(struct iommu_table *tbl, long index, long npages)
83 rc = HvCallXm_setTce((u64)tbl->it_index, (u64)index, 0);
120 struct iommu_table* tbl)
138 tbl->it_size = (parms->itc_size * TCE_PAGE_SIZE) / TCE_ENTRY_SIZE;
139 tbl->it_busno = parms->itc_busno;
140 tbl->it_offset = parms->itc_offset;
141 tbl->it_index = parms->itc_index;
142 tbl->it_blocksize = 1;
143 tbl->it_type = virtbus ? TCE_VB : TCE_PCI;
154 static struct iommu_table *iommu_table_find(struct iommu_table * tbl)
167 (it->it_offset == tbl->it_offset) &&
168 (it->it_index == tbl->it_index) &&
169 (it->it_size == tbl->it_size)) {
180 struct iommu_table *tbl;
187 tbl = kzalloc(sizeof(struct iommu_table), GFP_KERNEL);
189 iommu_table_getparms_iSeries(pdn->busno, *lsn, 0, tbl);
192 pdn->iommu_table = iommu_table_find(tbl);
194 pdn->iommu_table = iommu_init_table(tbl, -1);
196 kfree(tbl);