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...
u8 *buffer = skb->data;inti;if(free_tx_pages <=0) {/* Do timeouts, to avoid hangs. */tickssofar = jiffies - dev->trans_start;if(tickssofar <5)return1;/* else */printk(KERN_WARNING"%s: transmit timed out (%d), %s?\n", dev->name, tickssofar,"network cable problem");/* R...
netif_tx_wake_all_queues(net); rdev = nvdev->extension;if(!rdev->link_state)netif_carrier_on(net);returnret; } 开发者ID:mansr,项目名称:linux-tangox,代码行数:23,代码来源:netvsc_drv.c 示例3: netvsc_linkstatus_callback ▲点赞 5▼ /** * netvsc_linkstatus_callback - Link up/down...
card->tx.pending =0; softing_enable_irq(card,0); ret = softing_reset_chip(card);if(ret)gotofailed;if(!bus_bitmask_start)/* no busses to be brought up */gotocard_done;if((bus_bitmask_start &1) && (bus_bitmask_start &2) && (softing_error_reporting(card->net[0]) != softing_...
ether1_writew(dev, SCB_CMDCUCSTART | SCB_CMDRXSTART, SCB_ADDR,scb_t, scb_command, NORMALIRQS); writeb(CTRL_CA, REG_CONTROL); } priv(dev)->tx_tail = NOP_ADDR;return;caseCMD_NOP:if(nop.nop_link == caddr) {if(priv(dev)->initialising ==0) ...
}if(netif_msg_tx_queued(priv)) netdev_info(netdev,"txq[%d] tx[%d]: transfer start (submitted: %d done: %d) len=%d, sg_len=%d\n", txq->id, tx_submitted, tx_next, atomic_read(&txq->done), tx->len, tx->sg_len); ...