Lines Matching refs:sges

133 		      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()
506 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
522 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
533 hinic_sq_prepare_wqe(txq->sq, sq_wqe, txq->sges, nr_sges); in hinic_lb_xmit_frame()
587 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
606 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
617 hinic_sq_prepare_wqe(txq->sq, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
634 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
654 struct hinic_sge *sges) in tx_free_skb() argument
656 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
873 txq->sges = devm_kcalloc(&netdev->dev, txq->max_sges, in hinic_init_txq()
874 sizeof(*txq->sges), GFP_KERNEL); in hinic_init_txq()
875 if (!txq->sges) in hinic_init_txq()
913 devm_kfree(&netdev->dev, txq->sges); in hinic_init_txq()
931 devm_kfree(&netdev->dev, txq->sges); in hinic_clean_txq()