Searched refs:bits_per_level (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/arch/x86/kvm/mmu/ |
D | mmu_internal.h | 24 #define __PT_LEVEL_SHIFT(level, bits_per_level) \ argument 25 (PAGE_SHIFT + ((level) - 1) * (bits_per_level)) 26 #define __PT_INDEX(address, level, bits_per_level) \ argument 27 (((address) >> __PT_LEVEL_SHIFT(level, bits_per_level)) & ((1 << (bits_per_level)) - 1)) 29 #define __PT_LVL_ADDR_MASK(base_addr_mask, level, bits_per_level) \ argument 30 ((base_addr_mask) & ~((1ULL << (PAGE_SHIFT + (((level) - 1) * (bits_per_level)))) - 1)) 32 #define __PT_LVL_OFFSET_MASK(base_addr_mask, level, bits_per_level) \ argument 33 ((base_addr_mask) & ((1ULL << (PAGE_SHIFT + (((level) - 1) * (bits_per_level)))) - 1)) 35 #define __PT_ENT_PER_PAGE(bits_per_level) (1 << (bits_per_level)) argument
|
/linux-6.1.9/drivers/iommu/ |
D | io-pgtable-dart.c | 40 (sizeof(dart_iopte) << (d)->bits_per_level) 71 int bits_per_level; member 175 return (iova >> (3 * data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_table() 182 return (iova >> (2 * data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_l1_index() 183 ((1 << data->bits_per_level) - 1); in dart_get_l1_index() 189 return (iova >> (data->bits_per_level + ilog2(sizeof(dart_iopte)))) & in dart_get_l2_index() 190 ((1 << data->bits_per_level) - 1); in dart_get_l2_index() 370 int tbl_bits, bits_per_level, va_bits, pg_shift; in dart_alloc_pgtable() local 373 bits_per_level = pg_shift - ilog2(sizeof(dart_iopte)); in dart_alloc_pgtable() 377 tbl_bits = max_t(int, 0, va_bits - (bits_per_level * DART_LEVELS)); in dart_alloc_pgtable() [all …]
|
D | io-pgtable-arm.c | 41 (((ARM_LPAE_MAX_LEVELS - (l)) * (d)->bits_per_level) + \ 45 (sizeof(arm_lpae_iopte) << (d)->bits_per_level) 57 ((l) == (d)->start_level ? (d)->pgd_bits - (d)->bits_per_level : 0) 61 ((1 << ((d)->bits_per_level + ARM_LPAE_PGD_IDX(l,d))) - 1)) 146 int bits_per_level; member 792 data->bits_per_level = pg_shift - ilog2(sizeof(arm_lpae_iopte)); in arm_lpae_alloc_pgtable() 795 levels = DIV_ROUND_UP(va_bits, data->bits_per_level); in arm_lpae_alloc_pgtable() 799 data->pgd_bits = va_bits - (data->bits_per_level * (levels - 1)); in arm_lpae_alloc_pgtable() 940 data->pgd_bits += data->bits_per_level; in arm_64_lpae_alloc_pgtable_s2() 1160 ilog2(ARM_LPAE_GRANULE(data)), data->bits_per_level, data->pgd); in arm_lpae_dump_ops()
|