Lines Matching defs:orig
367 struct ring_desc* orig;
1003 if (np->rx_ring.orig)
1005 np->rx_ring.orig, np->ring_addr);
1742 less_rx = np->get_rx.orig;
1743 if (less_rx-- == np->first_rx.orig)
1744 less_rx = np->last_rx.orig;
1746 while (np->put_rx.orig != less_rx) {
1755 np->put_rx.orig->buf = cpu_to_le32(np->put_rx_ctx->dma);
1757 np->put_rx.orig->flaglen = cpu_to_le32(np->rx_buf_sz | NV_RX_AVAIL);
1758 if (unlikely(np->put_rx.orig++ == np->last_rx.orig))
1759 np->put_rx.orig = np->first_rx.orig;
1820 np->last_rx.orig = &np->rx_ring.orig[np->rx_ring_size-1];
1828 np->rx_ring.orig[i].flaglen = 0;
1829 np->rx_ring.orig[i].buf = 0;
1849 np->last_tx.orig = &np->tx_ring.orig[np->tx_ring_size-1];
1861 np->tx_ring.orig[i].flaglen = 0;
1862 np->tx_ring.orig[i].buf = 0;
1924 np->tx_ring.orig[i].flaglen = 0;
1925 np->tx_ring.orig[i].buf = 0;
1952 np->rx_ring.orig[i].flaglen = 0;
1953 np->rx_ring.orig[i].buf = 0;
2130 start_tx = put_tx = np->put_tx.orig;
2147 if (unlikely(put_tx++ == np->last_tx.orig))
2148 put_tx = np->first_tx.orig;
2172 if (unlikely(put_tx++ == np->last_tx.orig))
2173 put_tx = np->first_tx.orig;
2195 np->put_tx.orig = put_tx;
2397 struct ring_desc* orig_get_tx = np->get_tx.orig;
2399 while ((np->get_tx.orig != np->put_tx.orig) &&
2400 !((flags = le32_to_cpu(np->get_tx.orig->flaglen)) & NV_TX_VALID) &&
2445 if (unlikely(np->get_tx.orig++ == np->last_tx.orig))
2446 np->get_tx.orig = np->first_tx.orig;
2450 if (unlikely((np->tx_stop == 1) && (np->get_tx.orig != orig_get_tx))) {
2543 le32_to_cpu(np->tx_ring.orig[i].buf),
2544 le32_to_cpu(np->tx_ring.orig[i].flaglen),
2545 le32_to_cpu(np->tx_ring.orig[i+1].buf),
2546 le32_to_cpu(np->tx_ring.orig[i+1].flaglen),
2547 le32_to_cpu(np->tx_ring.orig[i+2].buf),
2548 le32_to_cpu(np->tx_ring.orig[i+2].flaglen),
2549 le32_to_cpu(np->tx_ring.orig[i+3].buf),
2550 le32_to_cpu(np->tx_ring.orig[i+3].flaglen));
2665 while((np->get_rx.orig != np->put_rx.orig) &&
2666 !((flags = le32_to_cpu(np->get_rx.orig->flaglen)) & NV_RX_AVAIL) &&
2775 if (unlikely(np->get_rx.orig++ == np->last_rx.orig))
2776 np->get_rx.orig = np->first_rx.orig;
4480 np->rx_ring.orig = (struct ring_desc*)rxtx_ring;
4481 np->tx_ring.orig = &np->rx_ring.orig[np->rx_ring_size];
4854 np->tx_ring.orig[0].buf = cpu_to_le32(test_dma_addr);
4855 np->tx_ring.orig[0].flaglen = cpu_to_le32((pkt_len-1) | np->tx_flags | tx_flags_extra);
4868 flags = le32_to_cpu(np->rx_ring.orig[0].flaglen);
4869 len = nv_descr_getlength(&np->rx_ring.orig[0], np->desc_ver);
5538 np->rx_ring.orig = pci_alloc_consistent(pci_dev,
5541 if (!np->rx_ring.orig)
5543 np->tx_ring.orig = &np->rx_ring.orig[np->rx_ring_size];
5591 * Set orig mac address back to the reversed version.