linux/drivers/net/ethernet/ti/davinci_emac.c
/**
 * emac_dev_tx_timeout - EMAC Transmit timeout function
 * @ndev: The DaVinci EMAC network adapter
 *
 * Called when system detects that a skb timeout period has expired
 * potentially due to a fault in the adapter in not being able to send
 * it out on the wire. We teardown the TX channel assuming a hardware
 * error and re-initialize the TX channel for hardware operation
 *
 */
EMAC Transmit timeout function
@ndev: The DaVinci EMAC network adapter

Called when system detects that a skb timeout period has expired
potentially due to a fault in the adapter in not being able to send
it out on the wire. We teardown the TX channel assuming a hardware
error and re-initialize the TX channel for hardware operation
EMAC Transmit timeout function @ndev : The DaVinci EMAC network adapter Called when system detects that a skb timeout period has expired potentially due to a fault in the adapter in not being able to send it out on the wire . We teardown the TX channel assuming a hardware error and re - initialize the TX channel for hardware operation
static void emac_dev_tx_timeout(struct net_device *ndev)
{
	struct emac_priv *priv = netdev_priv(ndev);
	struct device *emac_dev = &ndev->dev;
	if (netif_msg_tx_err(priv))
		dev_err(emac_dev, "DaVinci EMAC: xmit timeout, restarting TX");
	ndev->stats.tx_errors++;
	emac_int_disable(priv);
	cpdma_chan_stop(priv->txchan);
	cpdma_chan_start(priv->txchan);
	emac_int_enable(priv);
}
static void emac_dev_tx_timeout ( struct net_device * ndev ) { struct emac_priv * priv = netdev_priv ( ndev ) ; struct device * emac_dev = & ndev -> dev ; if ( netif_msg_tx_err ( priv ) ) dev_err ( emac_dev , " " ) ; ndev -> stats . tx_errors ++ ; emac_int_disable ( priv ) ; cpdma_chan_stop ( priv -> txchan ) ; cpdma_chan_start ( priv -> txchan ) ; emac_int_enable ( priv ) ; }
emac_dev_tx_timeout - EMAC Transmit timeout function
 @ndev: The DaVinci EMAC network adapter
emac_dev_tx_timeout - EMAC Transmit timeout function @ndev : The DaVinci EMAC network adapter