Searched refs:npg (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/security/keys/ |
D | big_key.c | 162 unsigned int npg = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; in big_key_alloc_buffer() local 166 sizeof(struct page) * npg + in big_key_alloc_buffer() 167 sizeof(struct scatterlist) * npg, in big_key_alloc_buffer() 172 buf->nr_pages = npg; in big_key_alloc_buffer() 173 buf->sg = (void *)(buf->pages + npg); in big_key_alloc_buffer() 174 sg_init_table(buf->sg, npg); in big_key_alloc_buffer()
|
/Linux-v5.4/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.4/arch/x86/mm/ |
D | pageattr.c | 518 unsigned long pfn, unsigned long npg, in static_protections() argument 532 end = start + npg * PAGE_SIZE - 1; in static_protections() 544 if (lpsize != (npg * PAGE_SIZE) || (start & (lpsize - 1))) { in static_protections() 551 res = protect_pci_bios(pfn, pfn + npg - 1); in static_protections() 555 res = protect_rodata(pfn, pfn + npg - 1); in static_protections() 907 unsigned int npg = PFN_DOWN(size); in split_set_pte() local 918 prot = static_protections(ref_prot, address, pfn, npg, 0, CPA_PROTECT); in split_set_pte()
|
/Linux-v5.4/arch/x86/include/asm/ |
D | pgtable.h | 844 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 846 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|