Searched refs:nents (Results 1 – 9 of 9) sorted by relevance
/net/rds/ |
D | message.c | 311 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()
|
D | rdma.c | 183 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()
|
D | ib_mr.h | 120 void *rds_ib_get_mr(struct scatterlist *sg, unsigned long nents, 139 unsigned long nents, u32 *key);
|
D | ib_frmr.c | 404 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()
|
D | ib_rdma.c | 550 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()
|
D | rds.h | 853 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/ |
D | smc_ib.c | 748 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()
|
D | smc_core.c | 2037 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/ |
D | crypto.c | 190 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()
|