Home
last modified time | relevance | path

Searched refs:pg_shift (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/arch/x86/platform/efi/
Defi.c701 static void * __init efi_map_regions(int *count, int *pg_shift) in efi_map_regions() argument
720 new_memmap = realloc_pages(new_memmap, *pg_shift); in efi_map_regions()
724 left += PAGE_SIZE << *pg_shift; in efi_map_regions()
725 (*pg_shift)++; in efi_map_regions()
810 int count = 0, pg_shift = 0; in __efi_enter_virtual_mode() local
821 new_memmap = efi_map_regions(&count, &pg_shift); in __efi_enter_virtual_mode()
846 if (efi_setup_page_tables(pa, 1 << pg_shift)) in __efi_enter_virtual_mode()
/linux-6.6.21/drivers/iommu/
Dio-pgtable-dart.c370 int tbl_bits, bits_per_level, va_bits, pg_shift; in dart_alloc_pgtable() local
372 pg_shift = __ffs(cfg->pgsize_bitmap); in dart_alloc_pgtable()
373 bits_per_level = pg_shift - ilog2(sizeof(dart_iopte)); in dart_alloc_pgtable()
375 va_bits = cfg->ias - pg_shift; in dart_alloc_pgtable()
Dio-pgtable-arm.c761 int levels, va_bits, pg_shift; in arm_lpae_alloc_pgtable() local
778 pg_shift = __ffs(cfg->pgsize_bitmap); in arm_lpae_alloc_pgtable()
779 data->bits_per_level = pg_shift - ilog2(sizeof(arm_lpae_iopte)); in arm_lpae_alloc_pgtable()
781 va_bits = cfg->ias - pg_shift; in arm_lpae_alloc_pgtable()
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_mr.c920 unsigned int pg_shift) in cal_best_bt_pg_sz() argument
929 for_each_set_bit_from(pg_shift, &cap, sizeof(cap) * BITS_PER_BYTE) { in cal_best_bt_pg_sz()
930 if (!(BIT(pg_shift) & cap)) in cal_best_bt_pg_sz()
933 ba_per_bt = BIT(pg_shift) / BA_BYTE_LEN; in cal_best_bt_pg_sz()
945 return pg_shift; in cal_best_bt_pg_sz()
Dhns_roce_hw_v2.c2448 u32 pg_shift, size, min_size; in alloc_link_table_buf() local
2451 pg_shift = hr_dev->caps.llm_buf_pg_sz + PAGE_SHIFT; in alloc_link_table_buf()
2453 min_size = HNS_ROCE_EXT_LLM_MIN_PAGES(hr_dev->caps.sl_num) << pg_shift; in alloc_link_table_buf()
2457 link_tbl->buf = hns_roce_buf_alloc(hr_dev, size, pg_shift, 0); in alloc_link_table_buf()
/linux-6.6.21/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.h88 unsigned short pg_shift; member
/linux-6.6.21/drivers/infiniband/hw/qedr/
Dverbs.c623 struct qedr_pbl_info *pbl_info, u32 pg_shift) in qedr_populate_pbls() argument
649 rdma_umem_for_each_dma_block (umem, &biter, BIT(pg_shift)) { in qedr_populate_pbls()