staticvoidxlgmac_stop(struct xlgmac_pdata *pdata){structxlgmac_hw_ops*hw_ops= &pdata->hw_ops;structnet_device*netdev=pdata->netdev;structxlgmac_channel*channel;structnetdev_queue*txq;unsignedinti;netif_tx_stop_all_queues(netdev); xlgmac_stop_timers(pdata); hw_ops->disable_tx(pdata...
buf[MLX5E_HEALTH_INFO] = mlx5e_test_health_info(mdev);if(etest->flags & ETH_TEST_FL_OFFLINE) {/* save current state */carrier_ok = netif_carrier_ok(dev);/* disable the interface */netif_carrier_off(dev);/* Wait until all tx queues are empty. * there should not be any addit...
netif_stop_queue(dev);/* This is just to prevent multiple PIO reads for TX_BUFFS_AVAIL. */head = sbus_readl(&sq->head); tail = sbus_readl(&sq->tail);if(!TX_BUFFS_AVAIL(head, tail)) { DTX(("no buffs available, returning 1\n"));return1; } spin_lock_irqsave(&mp->irq_lo...
netif_stop_queue(netdev);if(netif_running(netdev)) {if(dev != netdev) bus_bitmask_start |= (1<< j); priv->tx.pending =0; priv->tx.echo_put =0; priv->tx.echo_get =0;/* * this bus' may just have called open_candev() * which is rather stupid to call close_candev() ...
&priv->tx_config[requested_engine].cfg)) {/* board has reset, wait for reset of netdev */netif_tx_stop_queue(txq->txq);netif_carrier_off(netdev);if(netif_msg_tx_err(priv)) netdev_err(netdev,"txq[%d] tx[%d]: cannot configure channel\n", ...