Lines Matching refs:sges

134 		      struct hinic_sge *sges)  in tx_map_skb()  argument
150 hinic_set_sge(&sges[0], dma_addr, skb_headlen(skb)); in tx_map_skb()
163 hinic_set_sge(&sges[i + 1], dma_addr, skb_frag_size(frag)); in tx_map_skb()
170 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[j + 1]), in tx_map_skb()
171 sges[j + 1].len, DMA_TO_DEVICE); in tx_map_skb()
173 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_map_skb()
185 struct hinic_sge *sges) in tx_unmap_skb() argument
193 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[i + 1]), in tx_unmap_skb()
194 sges[i + 1].len, DMA_TO_DEVICE); in tx_unmap_skb()
196 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_unmap_skb()
507 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
523 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
534 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_lb_xmit_frame()
588 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
607 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
618 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
635 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
655 struct hinic_sge *sges) in tx_free_skb() argument
657 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
874 sges_size = txq->max_sges * sizeof(*txq->sges); in hinic_init_txq()
875 txq->sges = devm_kzalloc(&netdev->dev, sges_size, GFP_KERNEL); in hinic_init_txq()
876 if (!txq->sges) in hinic_init_txq()
916 devm_kfree(&netdev->dev, txq->sges); in hinic_init_txq()
934 devm_kfree(&netdev->dev, txq->sges); in hinic_clean_txq()