Searched refs:npg (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/fs/nfs/blocklayout/ |
D | blocklayout.c | 119 bl_alloc_init_bio(int npg, struct block_device *bdev, sector_t disk_sector, in bl_alloc_init_bio() argument 124 npg = min(npg, BIO_MAX_PAGES); in bl_alloc_init_bio() 125 bio = bio_alloc(GFP_NOIO, npg); in bl_alloc_init_bio() 127 while (!bio && (npg /= 2)) in bl_alloc_init_bio() 128 bio = bio_alloc(GFP_NOIO, npg); in bl_alloc_init_bio() 146 do_add_page_to_bio(struct bio *bio, int npg, int rw, sector_t isect, in do_add_page_to_bio() argument 156 npg, rw, (unsigned long long)isect, offset, *len); in do_add_page_to_bio() 179 bio = bl_alloc_init_bio(npg, map->bdev, in do_add_page_to_bio()
|
/Linux-v5.10/arch/x86/mm/pat/ |
D | set_memory.c | 527 unsigned long pfn, unsigned long npg, in static_protections() argument 541 end = start + npg * PAGE_SIZE - 1; in static_protections() 553 if (lpsize != (npg * PAGE_SIZE) || (start & (lpsize - 1))) { in static_protections() 560 res = protect_pci_bios(pfn, pfn + npg - 1); in static_protections() 564 res = protect_rodata(pfn, pfn + npg - 1); in static_protections() 927 unsigned int npg = PFN_DOWN(size); in split_set_pte() local 938 prot = static_protections(ref_prot, address, pfn, npg, 0, CPA_PROTECT); in split_set_pte()
|
/Linux-v5.10/drivers/irqchip/ |
D | irq-gic-v3-its.c | 2724 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local 2740 npg = FIELD_GET(GICR_VPROPBASER_4_1_SIZE, val) + 1; in allocate_vpe_l2_table() 2759 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table() 2763 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table() 2794 u64 val, gpsz, npg, pa; in allocate_vpe_l1_table() local 2877 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table() 2879 npg = 1; in allocate_vpe_l1_table() 2882 val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg - 1); in allocate_vpe_l1_table() 2885 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table() 2888 np, npg, psz, epp, esz); in allocate_vpe_l1_table()
|
/Linux-v5.10/arch/x86/include/asm/ |
D | pgtable.h | 852 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 854 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|