Lines Matching refs:rx_ring
484 struct hamachi_desc *rx_ring; member
657 hmp->rx_ring = ring_space; in hamachi_init_one()
779 pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, in hamachi_init_one()
1060 printk(KERN_DEBUG " Rx ring %p: ", hmp->rx_ring); in hamachi_tx_timeout()
1063 le32_to_cpu(hmp->rx_ring[i].status_n_length)); in hamachi_tx_timeout()
1084 hmp->rx_ring[i].status_n_length &= cpu_to_le32(~DescOwn); in hamachi_tx_timeout()
1124 leXX_to_cpu(hmp->rx_ring[i].addr), in hamachi_tx_timeout()
1139 hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, in hamachi_tx_timeout()
1141 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_tx_timeout()
1146 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout()
1181 hmp->rx_ring[i].status_n_length = 0; in hamachi_init_ring()
1191 hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, in hamachi_init_ring()
1194 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_init_ring()
1198 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_init_ring()
1408 entry, hmp->rx_ring[entry].status_n_length); in hamachi_rx()
1413 struct hamachi_desc *desc = &(hmp->rx_ring[entry]); in hamachi_rx()
1437 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx()
1440 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx()
1441 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx()
1442 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); in hamachi_rx()
1492 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1505 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1510 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1586 desc = &(hmp->rx_ring[entry]); in hamachi_rx()
1686 readl(ioaddr + RxCurPtr) == (long)&hmp->rx_ring[i] ? '>' : ' ', in hamachi_close()
1687 i, hmp->rx_ring[i].status_n_length, hmp->rx_ring[i].addr); in hamachi_close()
1710 hmp->rx_ring[i].status_n_length = 0; in hamachi_close()
1713 leXX_to_cpu(hmp->rx_ring[i].addr), in hamachi_close()
1718 hmp->rx_ring[i].addr = cpu_to_leXX(0xBADF00D0); /* An invalid address. */ in hamachi_close()
1905 pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, in hamachi_remove_one()