• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching defs:lp

487 	struct eth16i_local *lp = netdev_priv(dev);
561 spin_lock_init(&lp->lock);
914 struct eth16i_local *lp = netdev_priv(dev);
924 lp->tx_buf_size = eth16i_tx_buf_map[ETH16I_TX_BUF_SIZE & 0x03];
928 dev->name, lp->tx_buf_size);
936 lp->open_time = jiffies;
937 lp->tx_started = 0;
938 lp->tx_queue = 0;
939 lp->tx_queue_len = 0;
950 struct eth16i_local *lp = netdev_priv(dev);
960 lp->open_time = 0;
976 struct eth16i_local *lp = netdev_priv(dev);
1004 printk(KERN_DEBUG "lp->tx_queue = %d\n", lp->tx_queue);
1005 printk(KERN_DEBUG "lp->tx_queue_len = %d\n", lp->tx_queue_len);
1006 printk(KERN_DEBUG "lp->tx_started = %d\n", lp->tx_started);
1017 struct eth16i_local *lp = netdev_priv(dev);
1039 spin_lock_irqsave(&lp->lock, flags);
1041 if( (length + 2) > (lp->tx_buf_size - lp->tx_queue_len)) {
1060 lp->tx_buffered_packets++;
1061 lp->tx_buffered_bytes = length;
1062 lp->tx_queue++;
1063 lp->tx_queue_len += length + 2;
1065 lp->tx_buf_busy = 0;
1067 if(lp->tx_started == 0) {
1069 outb(TX_START | lp->tx_queue, ioaddr + TRANSMIT_START_REG);
1070 lp->tx_queue = 0;
1071 lp->tx_queue_len = 0;
1072 lp->tx_started = 1;
1075 else if(lp->tx_queue_len < lp->tx_buf_size - (ETH_FRAME_LEN + 2)) {
1080 spin_unlock_irqrestore(&lp->lock, flags);
1186 struct eth16i_local *lp;
1191 lp = netdev_priv(dev);
1197 spin_lock(&lp->lock);
1227 if(lp->col_16 < MAX_COL_16) {
1228 lp->col_16++;
1242 dev->stats.tx_packets = lp->tx_buffered_packets;
1243 dev->stats.tx_bytes += lp->tx_buffered_bytes;
1244 lp->col_16 = 0;
1246 if(lp->tx_queue) { /* Is there still packets ? */
1249 outb(TX_START | lp->tx_queue, ioaddr + TRANSMIT_START_REG);
1250 lp->tx_queue = 0;
1251 lp->tx_queue_len = 0;
1252 lp->tx_started = 1;
1255 lp->tx_started = 0;
1269 if(lp->tx_queue_len < lp->tx_buf_size - (ETH_FRAME_LEN + 2)) {
1274 spin_unlock(&lp->lock);
1293 struct eth16i_local *lp = netdev_priv(dev);
1303 lp->tx_started = 0;
1304 lp->tx_buf_busy = 0;
1305 lp->tx_queue = 0;
1306 lp->tx_queue_len = 0;