Lines Matching defs:next_rx
325 u16 next_rx, next_empty;
389 (4 * DESC_SIZE * dev->rx_info.next_rx),
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)
467 if (likely(next_empty != dev->rx_info.next_rx))
648 dev->rx_info.next_rx = 0;
754 unsigned next_rx;
762 dprintk("rxdp: %08x, descs: %08lx next_rx[%d]: %p next_empty[%d]: %p\n",
765 (int)dev->rx_info.next_rx,
766 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_rx)),
776 next_rx = info->next_rx;
788 skb = info->skbs[next_rx];
789 info->skbs[next_rx] = NULL;
790 info->next_rx = (next_rx + 1) % NR_RX_DESC;
793 clear_rx_desc(dev, next_rx);
848 next_rx = info->next_rx;
849 desc = info->descs + (DESC_SIZE * next_rx);
851 info->next_rx = next_rx;
852 info->next_rx_desc = info->descs + (DESC_SIZE * next_rx);