Lines Matching defs:tbl

189 	struct iommu_map_table *tbl;
216 tbl = &iommu->tbl;
218 tbl = &iommu->atu->tbl;
220 entry = iommu_tbl_range_alloc(dev, tbl, npages, NULL,
226 *dma_addrp = (tbl->table_map_base + (entry << IO_PAGE_SHIFT));
252 iommu_tbl_range_free(tbl, *dma_addrp, npages, IOMMU_ERROR_CODE);
329 struct iommu_map_table *tbl;
341 tbl = &iommu->tbl;
344 tbl = &atu->tbl;
347 entry = ((dvma - tbl->table_map_base) >> IO_PAGE_SHIFT);
349 iommu_tbl_range_free(tbl, dvma, npages, IOMMU_ERROR_CODE);
362 struct iommu_map_table *tbl;
382 tbl = &iommu->tbl;
384 tbl = &atu->tbl;
386 entry = iommu_tbl_range_alloc(dev, tbl, npages, NULL,
392 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT));
425 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE);
436 struct iommu_map_table *tbl;
459 tbl = &iommu->tbl;
462 tbl = &atu->tbl;
464 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT;
466 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE);
481 struct iommu_map_table *tbl;
517 tbl = &iommu->tbl;
519 tbl = &atu->tbl;
521 base_shift = tbl->table_map_base >> IO_PAGE_SHIFT;
535 entry = iommu_tbl_range_alloc(dev, tbl, npages,
541 tbl, paddr, npages);
548 dma_addr = tbl->table_map_base + (entry << IO_PAGE_SHIFT);
611 iommu_tbl_range_free(tbl, vaddr, npages,
650 struct iommu_map_table *tbl;
659 tbl = &iommu->tbl;
662 tbl = &atu->tbl;
664 entry = ((dma_handle - tbl->table_map_base) >> shift);
667 iommu_tbl_range_free(tbl, dma_handle, npages,
852 atu->tbl.table_map_base = atu->base;
854 atu->tbl.map = kzalloc(map_size, GFP_KERNEL);
855 if (!atu->tbl.map)
858 iommu_tbl_pool_init(&atu->tbl, num_iotte, IO_PAGE_SHIFT,
892 iommu->tbl.table_map_base = dma_offset;
898 iommu->tbl.map = kzalloc(sz, GFP_KERNEL);
899 if (!iommu->tbl.map) {
903 iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT,
907 sz = probe_existing_entries(pbm, &iommu->tbl);