Lines Matching defs:tbl

521 	struct iommu_table *tbl = get_iommu_table_base(dev);
524 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))))
526 ret = iommu_map_page(dev, tbl, page, offset, size, dma_get_mask(dev),
533 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)));
545 struct iommu_table *tbl = get_iommu_table_base(dev);
547 iommu_unmap_page(tbl, dma_handle, size, direction, attrs);
548 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)));
556 struct iommu_table *tbl = get_iommu_table_base(dev);
562 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl));
567 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev),
573 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
591 struct iommu_table *tbl = get_iommu_table_base(dev);
597 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
599 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs);
705 struct iommu_table *tbl;
711 tbl = get_iommu_table_base(dev);
739 IOMMU_PAGE_ALIGN(viodrv->get_desired_dma(viodev), tbl);
1173 struct iommu_table *tbl;
1181 tbl = kzalloc(sizeof(*tbl), GFP_KERNEL);
1182 if (tbl == NULL)
1185 kref_init(&tbl->it_kref);
1188 &tbl->it_index, &offset, &size);
1191 tbl->it_page_shift = IOMMU_PAGE_SHIFT_4K;
1192 tbl->it_size = size >> tbl->it_page_shift;
1194 tbl->it_offset = offset >> tbl->it_page_shift;
1195 tbl->it_busno = 0;
1196 tbl->it_type = TCE_VB;
1197 tbl->it_blocksize = 16;
1200 tbl->it_ops = &iommu_table_lpar_multi_ops;
1202 tbl->it_ops = &iommu_table_pseries_ops;
1204 return iommu_init_table(tbl, -1, 0, 0);
1334 struct iommu_table *tbl = get_iommu_table_base(dev);
1336 if (tbl)
1337 iommu_tce_table_put(tbl);