Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c133 struct hinic_sge *sges) in tx_map_skb() argument
149 hinic_set_sge(&sges[0], dma_addr, skb_headlen(skb)); in tx_map_skb()
162 hinic_set_sge(&sges[i + 1], dma_addr, skb_frag_size(frag)); in tx_map_skb()
169 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[j + 1]), in tx_map_skb()
170 sges[j + 1].len, DMA_TO_DEVICE); in tx_map_skb()
172 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_map_skb()
184 struct hinic_sge *sges) in tx_unmap_skb() argument
192 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[i + 1]), in tx_unmap_skb()
193 sges[i + 1].len, DMA_TO_DEVICE); in tx_unmap_skb()
195 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_unmap_skb()
[all …]
H A Dhinic_hw_qp.c595 struct hinic_sge *sges, int nr_sges) in hinic_sq_prepare_wqe() argument
604 sq_wqe->buf_descs[i].sge = sges[i]; in hinic_sq_prepare_wqe()
777 void hinic_sq_get_sges(struct hinic_sq_wqe *sq_wqe, struct hinic_sge *sges, in hinic_sq_get_sges() argument
783 sges[i] = sq_wqe->buf_descs[i].sge; in hinic_sq_get_sges()
784 hinic_be32_to_cpu(&sges[i], sizeof(sges[i])); in hinic_sq_get_sges()
H A Dhinic_hw_qp.h179 struct hinic_sge *sges, int nr_sges);
203 void hinic_sq_get_sges(struct hinic_sq_wqe *wqe, struct hinic_sge *sges,
H A Dhinic_tx.h36 struct hinic_sge *sges; member
/linux/drivers/infiniband/core/
H A Drw.c298 ctx->map.sges = sge = kzalloc_objs(*sge, sg_cnt); in rdma_rw_init_map_wrs()
299 if (!ctx->map.sges) in rdma_rw_init_map_wrs()
338 kfree(ctx->map.sges); in rdma_rw_init_map_wrs()
414 size_t sges_size = array_size(nr_bvec, sizeof(*ctx->map.sges)); in rdma_rw_init_map_wrs_bvec()
427 ctx->map.sges = sge = mem; in rdma_rw_init_map_wrs_bvec()
472 ib_dma_unmap_bvec(dev, ctx->map.sges[i].addr, in rdma_rw_init_map_wrs_bvec()
473 ctx->map.sges[i].length, dir); in rdma_rw_init_map_wrs_bvec()
474 kfree(ctx->map.sges); in rdma_rw_init_map_wrs_bvec()
949 kfree(ctx->map.sges); in rdma_rw_ctx_destroy()
1003 ib_dma_unmap_bvec(dev, ctx->map.sges[i].addr, in rdma_rw_ctx_destroy_bvec()
[all …]
/linux/include/rdma/
H A Drw.h31 struct ib_sge *sges;
30 struct ib_sge *sges; global() member
/linux/drivers/scsi/bfa/
H A Dbfi_ms.h677 struct bfi_sge_s sges[BFI_SGE_INLINE_MAX]; member