Home
last modified time | relevance | path

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

/net/rds/
Dmessage.c311 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents) in rds_message_alloc_sgs() argument
316 if (nents <= 0) { in rds_message_alloc_sgs()
321 if (rm->m_used_sgs + nents > rm->m_total_sgs) { in rds_message_alloc_sgs()
323 rm->m_total_sgs, rm->m_used_sgs, nents); in rds_message_alloc_sgs()
328 sg_init_table(sg_ret, nents); in rds_message_alloc_sgs()
329 rm->m_used_sgs += nents; in rds_message_alloc_sgs()
Drdma.c183 unsigned int nents = 0; in __rds_rdma_map() local
271 nents = ret; in __rds_rdma_map()
272 sg = kmalloc_array(nents, sizeof(*sg), GFP_KERNEL); in __rds_rdma_map()
277 WARN_ON(!nents); in __rds_rdma_map()
278 sg_init_table(sg, nents); in __rds_rdma_map()
281 for (i = 0 ; i < nents; i++) in __rds_rdma_map()
284 rdsdebug("RDS: trans_private nents is %u\n", nents); in __rds_rdma_map()
291 sg, nents, rs, &mr->r_key, cp ? cp->cp_conn : NULL, in __rds_rdma_map()
Dib_mr.h120 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents,
139 unsigned long nents, u32 *key);
Dib_frmr.c404 unsigned long nents, u32 *key) in rds_ib_reg_frmr() argument
418 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); in rds_ib_reg_frmr()
426 ret = rds_ib_map_frmr(rds_ibdev, ibmr->pool, ibmr, sg, nents); in rds_ib_reg_frmr()
Dib_rdma.c550 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, in rds_ib_get_mr() argument
619 ibmr = rds_ib_reg_frmr(rds_ibdev, ic, sg, nents, key_ret); in rds_ib_get_mr()
Drds.h853 struct rds_message *rds_message_alloc(unsigned int nents, gfp_t gfp);
854 struct scatterlist *rds_message_alloc_sgs(struct rds_message *rm, int nents);
/net/smc/
Dsmc_ib.c748 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_is_sg_need_sync()
775 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_cpu()
798 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_device()
Dsmc_core.c2037 int rc, i, nents, offset, buf_size, size, access_flags; in smcr_buf_map_link() local
2048 nents = PAGE_ALIGN(buf_size + offset) / PAGE_SIZE; in smcr_buf_map_link()
2050 nents = 1; in smcr_buf_map_link()
2053 rc = sg_alloc_table(&buf_desc->sgt[lnk->link_idx], nents, GFP_KERNEL); in smcr_buf_map_link()
2059 for_each_sg(buf_desc->sgt[lnk->link_idx].sgl, sg, nents, i) { in smcr_buf_map_link()
2076 if (rc != nents) { in smcr_buf_map_link()
/net/ceph/
Dcrypto.c190 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()