Lines Matching refs:nic_dev

132 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb,  in tx_map_skb()  argument
135 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb()
183 static void tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_unmap_skb() argument
186 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb()
493 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_lb_xmit_frame() local
502 txq = &nic_dev->txqs[q_id]; in hinic_lb_xmit_frame()
506 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
518 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_lb_xmit_frame()
522 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
554 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_xmit_frame() local
563 txq = &nic_dev->txqs[q_id]; in hinic_xmit_frame()
587 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
602 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_xmit_frame()
606 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
634 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
653 static void tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_free_skb() argument
656 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
667 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_all_tx_skbs() local
686 tx_free_skb(nic_dev, skb, txq->free_sges); in free_all_tx_skbs()
701 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_tx_poll() local
741 tx_free_skb(nic_dev, skb, txq->free_sges); in free_tx_poll()
744 if (__netif_subqueue_stopped(nic_dev->netdev, qp->q_id) && in free_tx_poll()
749 if (!netif_testing(nic_dev->netdev)) in free_tx_poll()
750 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in free_tx_poll()
766 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in free_tx_poll()
767 hinic_hwdev_set_msix_state(nic_dev->hwdev, in free_tx_poll()
780 struct hinic_dev *nic_dev; in tx_irq() local
782 nic_dev = netdev_priv(txq->netdev); in tx_irq()
784 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq()
786 hinic_hwdev_set_msix_state(nic_dev->hwdev, in tx_irq()
790 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, txq->sq->msix_entry); in tx_irq()
798 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in tx_request_irq() local
801 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_request_irq()
811 nic_dev->tx_weight); in tx_request_irq()
813 hinic_hwdev_msix_set(nic_dev->hwdev, sq->msix_entry, in tx_request_irq()
818 intr_coal = &nic_dev->tx_intr_coalesce[qp->q_id]; in tx_request_irq()
826 netif_err(nic_dev, drv, txq->netdev, in tx_request_irq()
862 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_init_txq() local
863 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_init_txq()