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()
497 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
516 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
527 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
544 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
564 struct hinic_sge *sges) in tx_free_skb() argument
566 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
771 sges_size = txq->max_sges * sizeof(*txq->sges); in hinic_init_txq()
772 txq->sges = devm_kzalloc(&netdev->dev, sges_size, GFP_KERNEL); in hinic_init_txq()
773 if (!txq->sges) in hinic_init_txq()
813 devm_kfree(&netdev->dev, txq->sges); in hinic_init_txq()
831 devm_kfree(&netdev->dev, txq->sges); in hinic_clean_txq()