Lines Matching refs:npages
125 long npages, unsigned long uaddr, in tce_build_pSeries() argument
140 while (npages--) { in tce_build_pSeries()
152 static void tce_free_pSeries(struct iommu_table *tbl, long index, long npages) in tce_free_pSeries() argument
158 while (npages--) in tce_free_pSeries()
175 long npages, unsigned long uaddr, in tce_build_pSeriesLP() argument
183 long tcenum_start = tcenum, npages_start = npages; in tce_build_pSeriesLP()
190 while (npages--) { in tce_build_pSeriesLP()
197 (npages_start - (npages + 1))); in tce_build_pSeriesLP()
218 long npages, unsigned long uaddr, in tce_buildmulti_pSeriesLP() argument
227 long tcenum_start = tcenum, npages_start = npages; in tce_buildmulti_pSeriesLP()
231 if ((npages == 1) || !firmware_has_feature(FW_FEATURE_MULTITCE)) { in tce_buildmulti_pSeriesLP()
233 tbl->it_page_shift, npages, uaddr, in tce_buildmulti_pSeriesLP()
251 npages, uaddr, direction, attrs); in tce_buildmulti_pSeriesLP()
267 limit = min_t(long, npages, 4096/TCE_ENTRY_SIZE); in tce_buildmulti_pSeriesLP()
279 npages -= limit; in tce_buildmulti_pSeriesLP()
281 } while (npages > 0 && !rc); in tce_buildmulti_pSeriesLP()
288 (npages_start - (npages + limit))); in tce_buildmulti_pSeriesLP()
295 printk("\tnpages = 0x%llx\n", (u64)npages); in tce_buildmulti_pSeriesLP()
302 static void tce_free_pSeriesLP(unsigned long liobn, long tcenum, long npages) in tce_free_pSeriesLP() argument
306 while (npages--) { in tce_free_pSeriesLP()
321 static void tce_freemulti_pSeriesLP(struct iommu_table *tbl, long tcenum, long npages) in tce_freemulti_pSeriesLP() argument
326 return tce_free_pSeriesLP(tbl->it_index, tcenum, npages); in tce_freemulti_pSeriesLP()
328 rc = plpar_tce_stuff((u64)tbl->it_index, (u64)tcenum << 12, 0, npages); in tce_freemulti_pSeriesLP()
334 printk("\tnpages = 0x%llx\n", (u64)npages); in tce_freemulti_pSeriesLP()
446 unsigned long npages = num_pfn << PAGE_SHIFT >> tceshift; in tce_setrange_multi_pSeriesLP() local
450 tcenum, tceshift, npages, (unsigned long) uaddr, in tce_setrange_multi_pSeriesLP()