Home
last modified time | relevance | path

Searched refs:nents (Results 1 – 7 of 7) sorted by relevance

/net/rds/
Dmessage.c220 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents) in rds_message_alloc_sgs() argument
225 WARN_ON(rm->m_used_sgs + nents > rm->m_total_sgs); in rds_message_alloc_sgs()
226 WARN_ON(!nents); in rds_message_alloc_sgs()
228 if (rm->m_used_sgs + nents > rm->m_total_sgs) in rds_message_alloc_sgs()
232 sg_init_table(sg_ret, nents); in rds_message_alloc_sgs()
233 rm->m_used_sgs += nents; in rds_message_alloc_sgs()
Drdma.c183 unsigned int nents; in __rds_rdma_map() local
245 nents = ret; in __rds_rdma_map()
246 sg = kcalloc(nents, sizeof(*sg), GFP_KERNEL); in __rds_rdma_map()
251 WARN_ON(!nents); in __rds_rdma_map()
252 sg_init_table(sg, nents); in __rds_rdma_map()
255 for (i = 0 ; i < nents; i++) in __rds_rdma_map()
258 rdsdebug("RDS: trans_private nents is %u\n", nents); in __rds_rdma_map()
264 trans_private = rs->rs_transport->get_mr(sg, nents, rs, in __rds_rdma_map()
268 for (i = 0 ; i < nents; i++) in __rds_rdma_map()
Dib_rdma.c368 struct scatterlist *sg, unsigned int nents) in rds_ib_map_fmr() argument
379 sg_dma_len = ib_dma_map_sg(dev, sg, nents, in rds_ib_map_fmr()
438 ibmr->sg_len = nents; in rds_ib_map_fmr()
743 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, in rds_ib_get_mr() argument
765 ret = rds_ib_map_fmr(rds_ibdev, ibmr, sg, nents); in rds_ib_get_mr()
Diw_rdma.c83 struct scatterlist *sg, unsigned int nents);
595 void *rds_iw_get_mr(struct scatterlist *sg, unsigned long nents, argument
621 ret = rds_iw_map_fastreg(rds_iwdev->mr_pool, ibmr, sg, nents);
Drds.h658 struct rds_message *rds_message_alloc(unsigned int nents, gfp_t gfp);
659 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents);
Dib.h305 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents,
Diw.h315 void *rds_iw_get_mr(struct scatterlist *sg, unsigned long nents,