/* lock for tx reclaim operations */
spinlock_t tx_reclaim_lock;
/* lock for tx0 operations */
- spinlock_t tx0_lock;
+ spinlock_t tx_lock;
u8 msi_enabled;
u8 tx_stopped;
int mps;
u32 info;
int ret = 0;
- spin_lock_irqsave(&priv->tx0_lock, flags);
+ spin_lock_irqsave(&priv->tx_lock, flags);
if (!qtnf_tx_queue_ready(priv)) {
if (skb->dev) {
priv->tx_stopped = 1;
}
- spin_unlock_irqrestore(&priv->tx0_lock, flags);
+ spin_unlock_irqrestore(&priv->tx_lock, flags);
return NETDEV_TX_BUSY;
}
}
priv->tx_done_count++;
- spin_unlock_irqrestore(&priv->tx0_lock, flags);
+ spin_unlock_irqrestore(&priv->tx_lock, flags);
qtnf_pcie_data_tx_reclaim(priv);
init_completion(&bus->firmware_init_complete);
mutex_init(&bus->bus_lock);
- spin_lock_init(&pcie_priv->tx0_lock);
+ spin_lock_init(&pcie_priv->tx_lock);
spin_lock_init(&pcie_priv->irq_lock);
spin_lock_init(&pcie_priv->tx_reclaim_lock);