Lines Matching refs:num_tce
393 u64 tce_size, num_tce, dma_offset, next; in tce_clearrange_multi_pSeriesLP() local
400 num_tce = num_pfn << PAGE_SHIFT; in tce_clearrange_multi_pSeriesLP()
403 num_tce += next & (tce_size - 1); in tce_clearrange_multi_pSeriesLP()
407 num_tce |= tce_size - 1; in tce_clearrange_multi_pSeriesLP()
408 num_tce >>= tce_shift; in tce_clearrange_multi_pSeriesLP()
415 limit = min_t(long, num_tce, 512); in tce_clearrange_multi_pSeriesLP()
422 num_tce -= limit; in tce_clearrange_multi_pSeriesLP()
423 } while (num_tce > 0 && !rc); in tce_clearrange_multi_pSeriesLP()
432 u64 tce_size, num_tce, dma_offset, next, proto_tce, liobn; in tce_setrange_multi_pSeriesLP() local
456 num_tce = num_pfn << PAGE_SHIFT; in tce_setrange_multi_pSeriesLP()
459 num_tce += next & (tce_size - 1); in tce_setrange_multi_pSeriesLP()
463 num_tce |= tce_size - 1; in tce_setrange_multi_pSeriesLP()
464 num_tce >>= tce_shift; in tce_setrange_multi_pSeriesLP()
472 limit = min_t(long, num_tce, 4096/TCE_ENTRY_SIZE); in tce_setrange_multi_pSeriesLP()
485 num_tce -= limit; in tce_setrange_multi_pSeriesLP()
486 } while (num_tce > 0 && !rc); in tce_setrange_multi_pSeriesLP()