Searched refs:npg (Results 1 – 3 of 3) sorted by relevance
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 623 unsigned long pfn, unsigned long npg, in static_protections() argument 637 end = start + npg * PAGE_SIZE - 1; in static_protections() 649 if (lpsize != (npg * PAGE_SIZE) || (start & (lpsize - 1))) { in static_protections() 656 res = protect_pci_bios(pfn, pfn + npg - 1); in static_protections() 660 res = protect_rodata(pfn, pfn + npg - 1); in static_protections() 671 unsigned long pfn, unsigned long npg, in verify_rwx() argument 698 end = start + npg * PAGE_SIZE - 1; in verify_rwx() 1094 unsigned int npg = PFN_DOWN(size); in split_set_pte() local 1105 prot = static_protections(ref_prot, address, pfn, npg, 0, CPA_PROTECT); in split_set_pte()
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v3-its.c | 2832 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local 2848 npg = FIELD_GET(GICR_VPROPBASER_4_1_SIZE, val) + 1; in allocate_vpe_l2_table() 2867 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table() 2871 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table() 2902 u64 val, gpsz, npg, pa; in allocate_vpe_l1_table() local 2985 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table() 2987 npg = 1; in allocate_vpe_l1_table() 2990 val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg - 1); in allocate_vpe_l1_table() 2993 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table() 2995 pr_debug("np = %d, npg in allocate_vpe_l1_table() [all...] |
| /linux/arch/x86/include/asm/ |
| H A D | pgtable.h | 1031 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 1033 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|