Searched refs:next_empty (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/natsemi/
H A Dns83820.c418 u16 next_rx, next_empty; member in struct:rx_info
480 if (dev->rx_info.next_rx == dev->rx_info.next_empty) kick_rx()
481 printk(KERN_DEBUG "%s: uh-oh: next_rx == next_empty???\n", kick_rx()
513 #define nr_rx_empty(dev) ((NR_RX_DESC-2 + dev->rx_info.next_rx - dev->rx_info.next_empty) % NR_RX_DESC) ns83820_add_rx_skb()
516 unsigned next_empty; ns83820_add_rx_skb() local
521 next_empty = dev->rx_info.next_empty; ns83820_add_rx_skb()
530 dprintk("next_empty[%d] nr_used[%d] next_rx[%d]\n", ns83820_add_rx_skb()
531 dev->rx_info.next_empty, ns83820_add_rx_skb()
537 sg = dev->rx_info.descs + (next_empty * DESC_SIZE); ns83820_add_rx_skb()
538 BUG_ON(NULL != dev->rx_info.skbs[next_empty]); ns83820_add_rx_skb()
539 dev->rx_info.skbs[next_empty] = skb; ns83820_add_rx_skb()
541 dev->rx_info.next_empty = (next_empty + 1) % NR_RX_DESC; ns83820_add_rx_skb()
547 if (likely(next_empty != dev->rx_info.next_rx)) ns83820_add_rx_skb()
548 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)); ns83820_add_rx_skb()
730 dev->rx_info.next_empty = 0; ns83820_setup_rx()
842 dprintk("rxdp: %08x, descs: %08lx next_rx[%d]: %p next_empty[%d]: %p\n",
847 (int)dev->rx_info.next_empty,
848 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_empty))

Completed in 47 milliseconds