Home
last modified time | relevance | path

Searched refs:sges (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_tx.c112 struct hinic_sge *sges) in tx_map_skb() argument
128 hinic_set_sge(&sges[0], dma_addr, skb_headlen(skb)); in tx_map_skb()
141 hinic_set_sge(&sges[i + 1], dma_addr, skb_frag_size(frag)); in tx_map_skb()
148 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[j + 1]), in tx_map_skb()
149 sges[j + 1].len, DMA_TO_DEVICE); in tx_map_skb()
151 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_map_skb()
163 struct hinic_sge *sges) in tx_unmap_skb() argument
171 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[i + 1]), in tx_unmap_skb()
172 sges[i + 1].len, DMA_TO_DEVICE); in tx_unmap_skb()
174 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_unmap_skb()
[all …]
Dhinic_hw_qp.h153 struct hinic_sq_wqe *wqe, struct hinic_sge *sges,
176 void hinic_sq_get_sges(struct hinic_sq_wqe *wqe, struct hinic_sge *sges,
Dhinic_hw_qp.c541 struct hinic_sq_wqe *sq_wqe, struct hinic_sge *sges, in hinic_sq_prepare_wqe() argument
551 sq_wqe->buf_descs[i].sge = sges[i]; in hinic_sq_prepare_wqe()
713 void hinic_sq_get_sges(struct hinic_sq_wqe *sq_wqe, struct hinic_sge *sges, in hinic_sq_get_sges() argument
719 sges[i] = sq_wqe->buf_descs[i].sge; in hinic_sq_get_sges()
720 hinic_be32_to_cpu(&sges[i], sizeof(sges[i])); in hinic_sq_get_sges()
Dhinic_tx.h44 struct hinic_sge *sges; member
/Linux-v4.19/net/smc/
Dsmc_tx.c270 int num_sges, struct ib_sge sges[]) in smc_tx_rdma_write() argument
280 rdma_wr.wr.sg_list = sges; in smc_tx_rdma_write()
323 struct ib_sge sges[SMC_IB_MAX_SEND_SGE]; in smcr_tx_rdma_writes() local
332 sges[srcchunk].addr = dma_addr + src_off; in smcr_tx_rdma_writes()
333 sges[srcchunk].length = src_len; in smcr_tx_rdma_writes()
334 sges[srcchunk].lkey = link->roce_pd->local_dma_lkey; in smcr_tx_rdma_writes()
347 rc = smc_tx_rdma_write(conn, dst_off, num_sges, sges); in smcr_tx_rdma_writes()
/Linux-v4.19/include/rdma/
Drw.h38 struct ib_sge *sges; member
/Linux-v4.19/drivers/infiniband/core/
Drw.c189 ctx->map.sges = sge = kcalloc(sg_cnt, sizeof(*sge), GFP_KERNEL); in rdma_rw_init_map_wrs()
190 if (!ctx->map.sges) in rdma_rw_init_map_wrs()
229 kfree(ctx->map.sges); in rdma_rw_init_map_wrs()
596 kfree(ctx->map.sges); in rdma_rw_ctx_destroy()
/Linux-v4.19/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c55 svc_rdma_get_rw_ctxt(struct svcxprt_rdma *rdma, unsigned int sges) in svc_rdma_get_rw_ctxt() argument
76 if (sg_alloc_table_chained(&ctxt->rw_sg_table, sges, in svc_rdma_get_rw_ctxt()
/Linux-v4.19/drivers/scsi/bfa/
Dbfi_ms.h685 struct bfi_sge_s sges[BFI_SGE_INLINE_MAX]; member
Dbfa_svc.h339 struct bfa_sge_s sges[BFI_SGE_INLINE_MAX]; member
Dbfi.h151 struct bfi_sge_s sges[BFI_SGPG_SGES_MAX]; member
Dbfa_fcpim.c2490 sge = &m->sges[0]; in bfa_ioim_send_ioreq()
2508 sgpge = sgpg->sgpg->sges; in bfa_ioim_send_ioreq()