Lines Matching refs:netdev
57 netif_stop_subqueue(txq->priv->netdev, txq->q_idx); in hfi1_ipoib_stop_txq()
64 netif_wake_subqueue(txq->priv->netdev, txq->q_idx); in hfi1_ipoib_wake_txq()
69 return min_t(uint, txq->priv->netdev->tx_queue_len, in hfi1_ipoib_ring_hwat()
75 return min_t(uint, txq->priv->netdev->tx_queue_len, in hfi1_ipoib_ring_lwat()
91 struct net_device *dev = txq->priv->netdev; in hfi1_ipoib_check_queue_stopped()
119 dev_sw_netstats_tx_add(priv->netdev, 1, tx->skb->len); in hfi1_ipoib_free_tx()
121 ++priv->netdev->stats.tx_errors; in hfi1_ipoib_free_tx()
271 u32 sqpn = (u32)(priv->netdev->dev_addr[1] << 16 | in hfi1_ipoib_build_ib_tx_headers()
272 priv->netdev->dev_addr[2] << 8 | in hfi1_ipoib_build_ib_tx_headers()
273 priv->netdev->dev_addr[3]); in hfi1_ipoib_build_ib_tx_headers()
624 if (likely(txq->priv->netdev->reg_state == NETREG_REGISTERED)) { in hfi1_ipoib_sdma_sleep()
664 if (likely(txq->priv->netdev->reg_state == NETREG_REGISTERED)) in hfi1_ipoib_sdma_wakeup()
675 struct net_device *dev = txq->priv->netdev; in hfi1_ipoib_flush_txq()
685 struct net_device *dev = priv->netdev; in hfi1_ipoib_txreq_init()
798 for (i = 0; i < priv->netdev->num_tx_queues; i++) { in hfi1_ipoib_txreq_deinit()