Searched refs:npools (Results 1 – 6 of 6) sorted by relevance
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_bulk.c | 284 static unsigned long enc_pools_cleanup(struct page ***pools, int npools) in enc_pools_cleanup() argument 289 for (i = 0; i < npools; i++) { in enc_pools_cleanup() 312 static void enc_pools_insert(struct page ***pools, int npools, int npages) in enc_pools_insert() argument 320 LASSERT(npages_to_npools(npages) == npools); in enc_pools_insert() 337 np_idx = npools - 1; in enc_pools_insert() 373 LASSERT(np_idx < npools); in enc_pools_insert() 397 int npools, alloced = 0; in enc_pools_add_pages() local 411 npools = npages_to_npools(npages); in enc_pools_add_pages() 412 OBD_ALLOC(pools, npools * sizeof(*pools)); in enc_pools_add_pages() 416 for (i = 0; i < npools; i++) { in enc_pools_add_pages() [all …]
|
/linux-4.1.27/lib/ |
D | iommu-common.c | 59 bool large_pool, u32 npools, in iommu_tbl_pool_init() argument 66 if (npools == 0) in iommu_tbl_pool_init() 69 iommu->nr_pools = npools; in iommu_tbl_pool_init() 70 BUG_ON(npools > IOMMU_NR_POOLS); in iommu_tbl_pool_init() 113 unsigned int npools = iommu->nr_pools; in iommu_tbl_range_alloc() local 134 pool_nr = pool_hash & (npools - 1); in iommu_tbl_range_alloc()
|
/linux-4.1.27/net/sunrpc/ |
D | svc.c | 60 unsigned int npools; member 243 int npools = -1; in svc_pool_map_get() local 249 return m->npools; in svc_pool_map_get() 257 npools = svc_pool_map_init_percpu(m); in svc_pool_map_get() 260 npools = svc_pool_map_init_pernode(m); in svc_pool_map_get() 264 if (npools < 0) { in svc_pool_map_get() 266 npools = 1; in svc_pool_map_get() 269 m->npools = npools; in svc_pool_map_get() 272 return m->npools; in svc_pool_map_get() 295 m->npools = 0; in svc_pool_map_put() [all …]
|
/linux-4.1.27/fs/nfsd/ |
D | nfsctl.c | 485 int npools; in write_pool_threads() local 490 npools = nfsd_nrpools(net); in write_pool_threads() 491 if (npools == 0) { in write_pool_threads() 502 nthreads = kcalloc(npools, sizeof(int), GFP_KERNEL); in write_pool_threads() 508 for (i = 0; i < npools; i++) { in write_pool_threads() 523 rv = nfsd_get_nrthreads(npools, nthreads, net); in write_pool_threads() 529 for (i = 0; i < npools && size > 0; i++) { in write_pool_threads() 530 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); in write_pool_threads()
|
/linux-4.1.27/include/linux/ |
D | iommu-common.h | 37 bool large_pool, u32 npools,
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 173 unsigned npools; member 533 _manager->npools--; in ttm_dma_free_pool() 631 _manager->npools++; in ttm_dma_pool_init() 1024 if (!_manager->npools) in ttm_dma_pool_shrink_scan() 1026 pool_offset = ++start_pool % _manager->npools; in ttm_dma_pool_shrink_scan()
|