Lines Matching refs:tbl
49 void tce_build(struct iommu_table *tbl, unsigned long index, in tce_build() argument
60 tp = ((u64*)tbl->it_base) + index; in tce_build()
75 void tce_free(struct iommu_table *tbl, long index, unsigned int npages) in tce_free() argument
79 tp = ((u64*)tbl->it_base) + index; in tce_free()
98 static int tce_table_setparms(struct pci_dev *dev, struct iommu_table *tbl) in tce_table_setparms() argument
104 tbl->it_busno = dev->bus->number; in tce_table_setparms()
107 tbl->it_size = table_size_to_number_of_entries(specified_table_size); in tce_table_setparms()
113 bitmapsz = tbl->it_size / BITS_PER_BYTE; in tce_table_setparms()
121 tbl->it_map = (unsigned long*)bmppages; in tce_table_setparms()
123 memset(tbl->it_map, 0, bitmapsz); in tce_table_setparms()
125 tbl->it_hint = 0; in tce_table_setparms()
127 spin_lock_init(&tbl->it_lock); in tce_table_setparms()
137 struct iommu_table *tbl; in build_tce_table() local
146 tbl = kzalloc(sizeof(struct iommu_table), GFP_KERNEL); in build_tce_table()
147 if (!tbl) { in build_tce_table()
153 ret = tce_table_setparms(dev, tbl); in build_tce_table()
157 tbl->bbar = bbar; in build_tce_table()
159 set_pci_iommu(dev->bus, tbl); in build_tce_table()
164 kfree(tbl); in build_tce_table()
179 void __init free_tce_table(void *tbl) in free_tce_table() argument
183 if (!tbl) in free_tce_table()
189 free_bootmem(__pa(tbl), size); in free_tce_table()