Searched refs:npg (Results 1 – 7 of 7) sorted by relevance
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
D | brw_test.c | 74 int npg; in brw_client_init() local 88 npg = breq->blk_npg; in brw_client_init() 91 len = npg * PAGE_CACHE_SIZE; in brw_client_init() 103 npg = (len + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in brw_client_init() 106 if (npg > LNET_MAX_IOV || npg <= 0) in brw_client_init() 118 npg, len, opc == LST_BRW_READ); in brw_client_init() 263 int npg; in brw_client_prep_rpc() local 276 npg = breq->blk_npg; in brw_client_prep_rpc() 277 len = npg * PAGE_CACHE_SIZE; in brw_client_prep_rpc() 289 npg = (len + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in brw_client_prep_rpc() [all …]
|
D | conrpc.c | 820 int npg = 0; in lstcon_testrpc_prep() local 825 npg = sfw_id_pages(test->tes_span); in lstcon_testrpc_prep() 827 npg * PAGE_CACHE_SIZE : in lstcon_testrpc_prep() 831 rc = lstcon_rpc_prep(nd, SRPC_SERVICE_TEST, feats, npg, nob, crpc); in lstcon_testrpc_prep() 848 for (i = 0; i < npg; i++) { in lstcon_testrpc_prep() 876 npg, &bulk->bk_iovs[0]); in lstcon_testrpc_prep()
|
D | framework.c | 1163 int npg = sfw_id_pages(request->tsr_ndest); in sfw_add_test() local 1167 len = npg * PAGE_CACHE_SIZE; in sfw_add_test() 1174 return sfw_alloc_pages(rpc, CFS_CPT_ANY, npg, len, 1); in sfw_add_test()
|
/linux-4.1.27/fs/nfs/blocklayout/ |
D | blocklayout.c | 118 bl_alloc_init_bio(int npg, struct block_device *bdev, sector_t disk_sector, in bl_alloc_init_bio() argument 123 npg = min(npg, BIO_MAX_PAGES); in bl_alloc_init_bio() 124 bio = bio_alloc(GFP_NOIO, npg); in bl_alloc_init_bio() 126 while (!bio && (npg /= 2)) in bl_alloc_init_bio() 127 bio = bio_alloc(GFP_NOIO, npg); in bl_alloc_init_bio() 140 do_add_page_to_bio(struct bio *bio, int npg, int rw, sector_t isect, in do_add_page_to_bio() argument 151 npg, rw, (unsigned long long)isect, offset, *len); in do_add_page_to_bio() 174 bio = bl_alloc_init_bio(npg, map->bdev, in do_add_page_to_bio()
|
/linux-4.1.27/arch/tile/include/asm/ |
D | pgtable.h | 385 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 387 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|
/linux-4.1.27/arch/x86/include/asm/ |
D | pgtable.h | 549 static inline unsigned long pages_to_mb(unsigned long npg) in pages_to_mb() argument 551 return npg >> (20 - PAGE_SHIFT); in pages_to_mb()
|
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd.c | 1983 int npg; in kiblnd_create_tx_pool() local 1998 npg = (size * IBLND_MSG_SIZE + PAGE_SIZE - 1) / PAGE_SIZE; in kiblnd_create_tx_pool() 1999 if (kiblnd_alloc_pages(&tpo->tpo_tx_pages, ps->ps_cpt, npg) != 0) { in kiblnd_create_tx_pool() 2000 CERROR("Can't allocate tx pages: %d\n", npg); in kiblnd_create_tx_pool()
|