Lines Matching refs:num_tce
374 u64 tce_size, num_tce, dma_offset, next; in tce_clearrange_multi_pSeriesLP() local
381 num_tce = num_pfn << PAGE_SHIFT; in tce_clearrange_multi_pSeriesLP()
384 num_tce += next & (tce_size - 1); in tce_clearrange_multi_pSeriesLP()
388 num_tce |= tce_size - 1; in tce_clearrange_multi_pSeriesLP()
389 num_tce >>= tce_shift; in tce_clearrange_multi_pSeriesLP()
396 limit = min_t(long, num_tce, 512); in tce_clearrange_multi_pSeriesLP()
403 num_tce -= limit; in tce_clearrange_multi_pSeriesLP()
404 } while (num_tce > 0 && !rc); in tce_clearrange_multi_pSeriesLP()
413 u64 tce_size, num_tce, dma_offset, next, proto_tce, liobn; in tce_setrange_multi_pSeriesLP() local
450 num_tce = num_pfn << PAGE_SHIFT; in tce_setrange_multi_pSeriesLP()
453 num_tce += next & (tce_size - 1); in tce_setrange_multi_pSeriesLP()
457 num_tce |= tce_size - 1; in tce_setrange_multi_pSeriesLP()
458 num_tce >>= tce_shift; in tce_setrange_multi_pSeriesLP()
466 limit = min_t(long, num_tce, 4096/TCE_ENTRY_SIZE); in tce_setrange_multi_pSeriesLP()
479 num_tce -= limit; in tce_setrange_multi_pSeriesLP()
480 } while (num_tce > 0 && !rc); in tce_setrange_multi_pSeriesLP()