Searched refs:npg (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/security/keys/ |
D | big_key.c | 166 unsigned int npg = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; in big_key_alloc_buffer() local 170 sizeof(struct page) * npg + in big_key_alloc_buffer() 171 sizeof(struct scatterlist) * npg, in big_key_alloc_buffer() 176 buf->nr_pages = npg; in big_key_alloc_buffer() 177 buf->sg = (void *)(buf->pages + npg); in big_key_alloc_buffer() 178 sg_init_table(buf->sg, npg); in big_key_alloc_buffer()
|
/Linux-v4.19/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-v4.19/arch/x86/include/asm/ |
D | pgtable.h | 828 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 830 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|