Lines Matching defs:tbl
519 struct iommu_table *tbl = get_iommu_table_base(dev);
522 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))))
524 ret = iommu_map_page(dev, tbl, page, offset, size, dma_get_mask(dev),
531 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)));
543 struct iommu_table *tbl = get_iommu_table_base(dev);
545 iommu_unmap_page(tbl, dma_handle, size, direction, attrs);
546 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)));
554 struct iommu_table *tbl = get_iommu_table_base(dev);
560 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl));
564 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev),
570 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
588 struct iommu_table *tbl = get_iommu_table_base(dev);
594 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
596 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs);
702 struct iommu_table *tbl;
708 tbl = get_iommu_table_base(dev);
736 IOMMU_PAGE_ALIGN(viodrv->get_desired_dma(viodev), tbl);
1170 struct iommu_table *tbl;
1178 tbl = kzalloc(sizeof(*tbl), GFP_KERNEL);
1179 if (tbl == NULL)
1182 kref_init(&tbl->it_kref);
1185 &tbl->it_index, &offset, &size);
1188 tbl->it_page_shift = IOMMU_PAGE_SHIFT_4K;
1189 tbl->it_size = size >> tbl->it_page_shift;
1191 tbl->it_offset = offset >> tbl->it_page_shift;
1192 tbl->it_busno = 0;
1193 tbl->it_type = TCE_VB;
1194 tbl->it_blocksize = 16;
1197 tbl->it_ops = &iommu_table_lpar_multi_ops;
1199 tbl->it_ops = &iommu_table_pseries_ops;
1201 return iommu_init_table(tbl, -1, 0, 0);
1319 struct iommu_table *tbl = get_iommu_table_base(dev);
1321 if (tbl)
1322 iommu_tce_table_put(tbl);