Home
last modified time | relevance | path

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

/net/rds/
Dib_fmr.c91 struct scatterlist *sg, unsigned int nents) in rds_ib_map_fmr() argument
103 sg_dma_len = ib_dma_map_sg(dev, sg, nents, DMA_BIDIRECTIONAL); in rds_ib_map_fmr()
161 ibmr->sg_len = nents; in rds_ib_map_fmr()
179 unsigned long nents, in rds_ib_reg_fmr() argument
186 ibmr = rds_ib_alloc_fmr(rds_ibdev, nents); in rds_ib_reg_fmr()
192 ret = rds_ib_map_fmr(rds_ibdev, ibmr, sg, nents); in rds_ib_reg_fmr()
Dmessage.c221 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents) in rds_message_alloc_sgs() argument
226 WARN_ON(rm->m_used_sgs + nents > rm->m_total_sgs); in rds_message_alloc_sgs()
227 WARN_ON(!nents); in rds_message_alloc_sgs()
229 if (rm->m_used_sgs + nents > rm->m_total_sgs) in rds_message_alloc_sgs()
233 sg_init_table(sg_ret, nents); in rds_message_alloc_sgs()
234 rm->m_used_sgs += nents; in rds_message_alloc_sgs()
Drdma.c182 unsigned int nents; in __rds_rdma_map() local
252 nents = ret; in __rds_rdma_map()
253 sg = kcalloc(nents, sizeof(*sg), GFP_KERNEL); in __rds_rdma_map()
258 WARN_ON(!nents); in __rds_rdma_map()
259 sg_init_table(sg, nents); in __rds_rdma_map()
262 for (i = 0 ; i < nents; i++) in __rds_rdma_map()
265 rdsdebug("RDS: trans_private nents is %u\n", nents); in __rds_rdma_map()
271 trans_private = rs->rs_transport->get_mr(sg, nents, rs, in __rds_rdma_map()
275 for (i = 0 ; i < nents; i++) in __rds_rdma_map()
Dib_mr.h120 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents,
144 unsigned long nents, u32 *key);
Dib_frmr.c340 unsigned long nents, u32 *key) in rds_ib_reg_frmr() argument
349 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); in rds_ib_reg_frmr()
357 ret = rds_ib_map_frmr(rds_ibdev, ibmr->pool, ibmr, sg, nents); in rds_ib_reg_frmr()
Dib_rdma.c539 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, in rds_ib_get_mr() argument
559 ibmr = rds_ib_reg_frmr(rds_ibdev, ic, sg, nents, key_ret); in rds_ib_get_mr()
561 ibmr = rds_ib_reg_fmr(rds_ibdev, sg, nents, key_ret); in rds_ib_get_mr()
Drds.h753 struct rds_message *rds_message_alloc(unsigned int nents, gfp_t gfp);
754 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents);
/net/sunrpc/xprtrdma/
Dsvc_rdma_recvfrom.c226 int nents = PAGE_ALIGN(*page_offset + rs_length) >> PAGE_SHIFT; in rdma_read_chunk_frmr() local
238 nents = min_t(unsigned int, nents, xprt->sc_frmr_pg_list_len); in rdma_read_chunk_frmr()
239 read = min_t(int, (nents << PAGE_SHIFT) - *page_offset, rs_length); in rdma_read_chunk_frmr()
243 frmr->sg_nents = nents; in rdma_read_chunk_frmr()
245 for (pno = 0; pno < nents; pno++) { in rdma_read_chunk_frmr()
/net/ceph/
Dcrypto.c184 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()