Lines Matching refs:nic_dev

111 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb,  in tx_map_skb()  argument
114 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb()
162 static void tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_unmap_skb() argument
165 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb()
180 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_xmit_frame() local
189 txq = &nic_dev->txqs[skb->queue_mapping]; in hinic_xmit_frame()
207 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
222 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_xmit_frame()
226 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame()
264 static void tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_free_skb() argument
267 tx_unmap_skb(nic_dev, skb, sges); in tx_free_skb()
278 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_all_tx_skbs() local
297 tx_free_skb(nic_dev, skb, txq->free_sges); in free_all_tx_skbs()
312 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in free_tx_poll() local
350 tx_free_skb(nic_dev, skb, txq->free_sges); in free_tx_poll()
353 if (__netif_subqueue_stopped(nic_dev->netdev, qp->q_id) && in free_tx_poll()
359 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in free_tx_poll()
397 struct hinic_dev *nic_dev; in tx_irq() local
399 nic_dev = netdev_priv(txq->netdev); in tx_irq()
404 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, txq->sq->msix_entry); in tx_irq()
412 struct hinic_dev *nic_dev = netdev_priv(txq->netdev); in tx_request_irq() local
413 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_request_irq()
419 tx_napi_add(txq, nic_dev->tx_weight); in tx_request_irq()
421 hinic_hwdev_msix_set(nic_dev->hwdev, sq->msix_entry, in tx_request_irq()
456 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_init_txq() local
457 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_init_txq()