Lines Matching defs:next_empty
325 u16 next_rx, next_empty;
391 if (dev->rx_info.next_rx == dev->rx_info.next_empty)
392 printk(KERN_DEBUG "%s: uh-oh: next_rx == next_empty???\n",
440 #define nr_rx_empty(dev) ((NR_RX_DESC-2 + dev->rx_info.next_rx - dev->rx_info.next_empty) % NR_RX_DESC)
443 unsigned next_empty;
448 next_empty = dev->rx_info.next_empty;
457 sg = dev->rx_info.descs + (next_empty * DESC_SIZE);
458 BUG_ON(NULL != dev->rx_info.skbs[next_empty]);
459 dev->rx_info.skbs[next_empty] = skb;
461 dev->rx_info.next_empty = (next_empty + 1) % NR_RX_DESC;
467 if (likely(next_empty != dev->rx_info.next_rx))
468 dev->rx_info.descs[((NR_RX_DESC + next_empty - 1) % NR_RX_DESC) * DESC_SIZE] = cpu_to_le32(dev->rx_info.phy_descs + (next_empty * DESC_SIZE * 4));
650 dev->rx_info.next_empty = 0;
762 dprintk("rxdp: %08x, descs: %08lx next_rx[%d]: %p next_empty[%d]: %p\n",
767 (int)dev->rx_info.next_empty,
768 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_empty))