Home
last modified time | relevance | path

Searched refs:npg (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/fs/nfs/blocklayout/
H A Dblocklayout.c119 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
155 dprintk("%s: npg %d rw %d isect %llu offset %u len %d\n", __func__, in do_add_page_to_bio()
156 npg, rw, (unsigned long long)isect, offset, *len); in do_add_page_to_bio()
179 bio = bl_alloc_init_bio(npg, ma in do_add_page_to_bio()
[all...]
/kernel/linux/linux-6.6/arch/x86/mm/pat/
H A Dset_memory.c574 unsigned long pfn, unsigned long npg, in static_protections()
588 end = start + npg * PAGE_SIZE - 1; in static_protections()
600 if (lpsize != (npg * PAGE_SIZE) || (start & (lpsize - 1))) { in static_protections()
607 res = protect_pci_bios(pfn, pfn + npg - 1); in static_protections()
611 res = protect_rodata(pfn, pfn + npg - 1); in static_protections()
622 unsigned long pfn, unsigned long npg) in verify_rwx()
644 end = start + npg * PAGE_SIZE - 1; in verify_rwx()
1005 unsigned int npg = PFN_DOWN(size); in split_set_pte() local
1016 prot = static_protections(ref_prot, address, pfn, npg, 0, CPA_PROTECT); in split_set_pte()
573 static_protections(pgprot_t prot, unsigned long start, unsigned long pfn, unsigned long npg, unsigned long lpsize, int warnlvl) static_protections() argument
621 verify_rwx(pgprot_t old, pgprot_t new, unsigned long start, unsigned long pfn, unsigned long npg) verify_rwx() argument
/kernel/linux/linux-5.10/arch/x86/mm/pat/
H A Dset_memory.c527 unsigned long pfn, unsigned long npg, in static_protections()
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()
526 static_protections(pgprot_t prot, unsigned long start, unsigned long pfn, unsigned long npg, unsigned long lpsize, int warnlvl) static_protections() argument
/kernel/linux/linux-6.6/fs/nfs/blocklayout/
H A Dblocklayout.c124 do_add_page_to_bio(struct bio *bio, int npg, enum req_op op, sector_t isect, in do_add_page_to_bio() argument
133 dprintk("%s: npg %d rw %d isect %llu offset %u len %d\n", __func__, in do_add_page_to_bio()
134 npg, (__force u32)op, (unsigned long long)isect, offset, *len); in do_add_page_to_bio()
157 bio = bio_alloc(map->bdev, bio_max_segs(npg), op, GFP_NOIO); in do_add_page_to_bio()
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-gic-v3-its.c2749 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2765 npg = FIELD_GET(GICR_VPROPBASER_4_1_SIZE, val) + 1; in allocate_vpe_l2_table()
2784 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2788 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2819 u64 val, gpsz, npg, pa; in allocate_vpe_l1_table() local
2902 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2904 npg = 1; in allocate_vpe_l1_table()
2907 val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg - 1); in allocate_vpe_l1_table()
2910 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2912 pr_debug("np = %d, npg in allocate_vpe_l1_table()
[all...]
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-gic-v3-its.c2772 unsigned int psz, esz, idx, npg, gpsz; in allocate_vpe_l2_table() local
2788 npg = FIELD_GET(GICR_VPROPBASER_4_1_SIZE, val) + 1; in allocate_vpe_l2_table()
2807 return (id < (npg * psz / (esz * SZ_8))); in allocate_vpe_l2_table()
2811 if (idx >= (npg * psz / GITS_LVL1_ENTRY_SIZE)) in allocate_vpe_l2_table()
2842 u64 val, gpsz, npg, pa; in allocate_vpe_l1_table() local
2925 npg = DIV_ROUND_UP(nl2 * SZ_8, psz); in allocate_vpe_l1_table()
2927 npg = 1; in allocate_vpe_l1_table()
2930 val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg - 1); in allocate_vpe_l1_table()
2933 np = DIV_ROUND_UP(npg * psz, PAGE_SIZE); in allocate_vpe_l1_table()
2935 pr_debug("np = %d, npg in allocate_vpe_l1_table()
[all...]
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dpgtable.h852 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()
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dpgtable.h1061 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument
1063 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()

Completed in 25 milliseconds