Lines Matching full:levels
81 unsigned long size, unsigned int levels);
217 unsigned long size, unsigned int levels) in pnv_pci_ioda2_table_do_free_pages() argument
222 if (levels) { in pnv_pci_ioda2_table_do_free_pages()
233 levels - 1); in pnv_pci_ioda2_table_do_free_pages()
257 unsigned int levels, unsigned long limit, in pnv_pci_ioda2_table_do_alloc_pages() argument
268 --levels; in pnv_pci_ioda2_table_do_alloc_pages()
269 if (!levels) { in pnv_pci_ioda2_table_do_alloc_pages()
276 levels, limit, current_offset, total_allocated); in pnv_pci_ioda2_table_do_alloc_pages()
291 __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_table_alloc_pages() argument
303 if (!levels || (levels > POWERNV_IOMMU_MAX_LEVELS)) in pnv_pci_ioda2_table_alloc_pages()
309 /* Adjust direct table size from window_size and levels */ in pnv_pci_ioda2_table_alloc_pages()
310 entries_shift = (entries_shift + levels - 1) / levels; in pnv_pci_ioda2_table_alloc_pages()
314 if ((level_shift - 3) * levels + page_shift >= 55) in pnv_pci_ioda2_table_alloc_pages()
330 if (levels == 1 && offset < tce_table_size) in pnv_pci_ioda2_table_alloc_pages()
341 if (levels == 1 && (offset < tce_table_size || in pnv_pci_ioda2_table_alloc_pages()
350 tbl->it_indirect_levels = levels - 1; in pnv_pci_ioda2_table_alloc_pages()
354 pr_debug("Created TCE table: ws=%08llx ts=%lx @%08llx base=%lx uas=%p levels=%d/%d\n", in pnv_pci_ioda2_table_alloc_pages()
356 tbl->it_userspace, 1, levels); in pnv_pci_ioda2_table_alloc_pages()
362 1ULL << (level_shift - 3), levels - 1); in pnv_pci_ioda2_table_alloc_pages()
365 1ULL << (level_shift - 3), levels - 1); in pnv_pci_ioda2_table_alloc_pages()