Lines Matching refs:nic_dev

133 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb,  in tx_map_skb()  argument
136 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb()
184 static void tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_unmap_skb() argument
187 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb()
494 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_lb_xmit_frame() local
503 txq = &nic_dev->txqs[q_id]; in hinic_lb_xmit_frame()
507 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
519 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_lb_xmit_frame()
523 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_lb_xmit_frame()
555 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_xmit_frame() local
564 txq = &nic_dev->txqs[q_id]; in hinic_xmit_frame()
588 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
603 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_xmit_frame()
607 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
635 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
654 static void tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_free_skb() argument
657 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
668 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_all_tx_skbs() local
687 tx_free_skb(nic_dev, skb, txq->free_sges); in free_all_tx_skbs()
702 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_tx_poll() local
742 tx_free_skb(nic_dev, skb, txq->free_sges); in free_tx_poll()
745 if (__netif_subqueue_stopped(nic_dev->netdev, qp->q_id) && in free_tx_poll()
750 if (!netif_testing(nic_dev->netdev)) in free_tx_poll()
751 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in free_tx_poll()
767 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in free_tx_poll()
768 hinic_hwdev_set_msix_state(nic_dev->hwdev, in free_tx_poll()
781 struct hinic_dev *nic_dev; in tx_irq() local
783 nic_dev = netdev_priv(txq->netdev); in tx_irq()
785 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq()
787 hinic_hwdev_set_msix_state(nic_dev->hwdev, in tx_irq()
791 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, txq->sq->msix_entry); in tx_irq()
799 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in tx_request_irq() local
802 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_request_irq()
811 netif_napi_add(txq->netdev, &txq->napi, free_tx_poll, 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()