Searched refs:nalloc (Results 1 – 4 of 4) sorted by relevance
/drivers/staging/lustre/lnet/lnet/ |
D | lib-socket.c | 158 int nalloc; in lnet_ipif_enumerate() local 166 nalloc = 16; /* first guess at max interfaces */ in lnet_ipif_enumerate() 169 if (nalloc * sizeof(*ifr) > PAGE_SIZE) { in lnet_ipif_enumerate() 171 nalloc = PAGE_SIZE / sizeof(*ifr); in lnet_ipif_enumerate() 173 nalloc); in lnet_ipif_enumerate() 176 LIBCFS_ALLOC(ifr, nalloc * sizeof(*ifr)); in lnet_ipif_enumerate() 179 nalloc); in lnet_ipif_enumerate() 185 ifc.ifc_len = nalloc * sizeof(*ifr); in lnet_ipif_enumerate() 196 LASSERT(nfound <= nalloc); in lnet_ipif_enumerate() 198 if (nfound < nalloc || toobig) in lnet_ipif_enumerate() [all …]
|
/drivers/target/ |
D | target_core_transport.c | 2372 unsigned int nalloc, nent; in target_alloc_sgl() local 2375 nalloc = nent = DIV_ROUND_UP(length, PAGE_SIZE); in target_alloc_sgl() 2377 nalloc++; in target_alloc_sgl() 2378 sg = kmalloc_array(nalloc, sizeof(struct scatterlist), GFP_KERNEL); in target_alloc_sgl() 2382 sg_init_table(sg, nalloc); in target_alloc_sgl()
|
/drivers/md/ |
D | raid10.c | 145 int nalloc; in r10buf_pool_alloc() local 153 nalloc = conf->copies; /* resync */ in r10buf_pool_alloc() 155 nalloc = 2; /* recovery */ in r10buf_pool_alloc() 160 for (j = nalloc ; j-- ; ) { in r10buf_pool_alloc() 176 for (j = 0 ; j < nalloc; j++) { in r10buf_pool_alloc() 208 for ( ; j < nalloc; j++) { in r10buf_pool_alloc()
|
/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 347 bnad_rxq_refill_page(struct bnad *bnad, struct bna_rcb *rcb, u32 nalloc) in bnad_rxq_refill_page() argument 363 while (nalloc--) { in bnad_rxq_refill_page() 421 bnad_rxq_refill_skb(struct bnad *bnad, struct bna_rcb *rcb, u32 nalloc) in bnad_rxq_refill_skb() argument 435 while (nalloc--) { in bnad_rxq_refill_skb()
|