Home
last modified time | relevance | path

Searched refs:sgt (Results 1 – 6 of 6) sorted by relevance

/net/ceph/
Dcrypto.c158 static int setup_sgtable(struct sg_table *sgt, struct scatterlist *prealloc_sg, in setup_sgtable() argument
170 memset(sgt, 0, sizeof(*sgt)); in setup_sgtable()
180 ret = sg_alloc_table(sgt, chunk_cnt, GFP_NOFS); in setup_sgtable()
186 sgt->sgl = prealloc_sg; in setup_sgtable()
187 sgt->nents = sgt->orig_nents = 1; in setup_sgtable()
190 for_each_sg(sgt->sgl, sg, sgt->orig_nents, i) { in setup_sgtable()
210 static void teardown_sgtable(struct sg_table *sgt) in teardown_sgtable() argument
212 if (sgt->orig_nents > 1) in teardown_sgtable()
213 sg_free_table(sgt); in teardown_sgtable()
220 struct sg_table sgt; in ceph_aes_crypt() local
[all …]
/net/smc/
Dsmc_ib.c272 buf_slot->sgt[SMC_SINGLE_LINK].sgl, in smc_ib_map_mr_sg()
273 buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, in smc_ib_map_mr_sg()
311 for_each_sg(buf_slot->sgt[SMC_SINGLE_LINK].sgl, sg, in smc_ib_sync_sg_for_cpu()
312 buf_slot->sgt[SMC_SINGLE_LINK].nents, i) { in smc_ib_sync_sg_for_cpu()
331 for_each_sg(buf_slot->sgt[SMC_SINGLE_LINK].sgl, sg, in smc_ib_sync_sg_for_device()
332 buf_slot->sgt[SMC_SINGLE_LINK].nents, i) { in smc_ib_sync_sg_for_device()
350 buf_slot->sgt[SMC_SINGLE_LINK].sgl, in smc_ib_buf_map_sg()
351 buf_slot->sgt[SMC_SINGLE_LINK].orig_nents, in smc_ib_buf_map_sg()
363 if (!buf_slot->sgt[SMC_SINGLE_LINK].sgl->dma_address) in smc_ib_buf_unmap_sg()
367 buf_slot->sgt[SMC_SINGLE_LINK].sgl, in smc_ib_buf_unmap_sg()
[all …]
Dsmc_clc.c214 (u64)sg_dma_address(conn->rmb_desc->sgt[SMC_SINGLE_LINK].sgl)); in smc_clc_send_confirm()
266 (u64)sg_dma_address(conn->rmb_desc->sgt[SMC_SINGLE_LINK].sgl)); in smc_clc_send_accept()
Dsmc_core.c269 sg_free_table(&buf_desc->sgt[SMC_SINGLE_LINK]); in smc_buf_free()
529 rc = sg_alloc_table(&buf_desc->sgt[SMC_SINGLE_LINK], 1, in smc_new_buf_create()
535 sg_set_buf(buf_desc->sgt[SMC_SINGLE_LINK].sgl, in smc_new_buf_create()
Dsmc_core.h107 struct sg_table sgt[SMC_LINKS_PER_LGR_MAX];/* virtual buffer */ member
Dsmc_tx.c342 dma_addr = sg_dma_address(conn->sndbuf_desc->sgt[SMC_SINGLE_LINK].sgl); in smc_tx_rdma_writes()