• Home
  • Raw
  • Download

Lines Matching refs:sges

132 		      struct hinic_sge *sges)  in tx_map_skb()  argument
148 hinic_set_sge(&sges[0], dma_addr, skb_headlen(skb)); in tx_map_skb()
161 hinic_set_sge(&sges[i + 1], dma_addr, skb_frag_size(frag)); in tx_map_skb()
168 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[j + 1]), in tx_map_skb()
169 sges[j + 1].len, DMA_TO_DEVICE); in tx_map_skb()
171 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_map_skb()
183 struct hinic_sge *sges) in tx_unmap_skb() argument
191 dma_unmap_page(&pdev->dev, hinic_sge_to_dma(&sges[i + 1]), in tx_unmap_skb()
192 sges[i + 1].len, DMA_TO_DEVICE); in tx_unmap_skb()
194 dma_unmap_single(&pdev->dev, hinic_sge_to_dma(&sges[0]), sges[0].len, in tx_unmap_skb()
505 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
521 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
532 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_lb_xmit_frame()
586 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
605 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
616 hinic_sq_prepare_wqe(txq->sq, prod_idx, sq_wqe, txq->sges, nr_sges); in hinic_xmit_frame()
633 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
653 struct hinic_sge *sges) in tx_free_skb() argument
655 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
871 txq->sges = devm_kcalloc(&netdev->dev, txq->max_sges, in hinic_init_txq()
872 sizeof(*txq->sges), GFP_KERNEL); in hinic_init_txq()
873 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()