Lines Matching refs:rx_ring
484 struct hamachi_desc *rx_ring; member
657 hmp->rx_ring = ring_space; in hamachi_init_one()
777 pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, in hamachi_init_one()
1058 printk(KERN_DEBUG " Rx ring %p: ", hmp->rx_ring); in hamachi_tx_timeout()
1061 le32_to_cpu(hmp->rx_ring[i].status_n_length)); in hamachi_tx_timeout()
1082 hmp->rx_ring[i].status_n_length &= cpu_to_le32(~DescOwn); in hamachi_tx_timeout()
1122 leXX_to_cpu(hmp->rx_ring[i].addr), in hamachi_tx_timeout()
1137 hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, in hamachi_tx_timeout()
1139 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_tx_timeout()
1144 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_tx_timeout()
1179 hmp->rx_ring[i].status_n_length = 0; in hamachi_init_ring()
1189 hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, in hamachi_init_ring()
1192 hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | in hamachi_init_ring()
1196 hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); in hamachi_init_ring()
1406 entry, hmp->rx_ring[entry].status_n_length); in hamachi_rx()
1411 struct hamachi_desc *desc = &(hmp->rx_ring[entry]); in hamachi_rx()
1435 dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); in hamachi_rx()
1438 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, in hamachi_rx()
1439 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, in hamachi_rx()
1440 le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); in hamachi_rx()
1490 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1503 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1508 leXX_to_cpu(hmp->rx_ring[entry].addr), in hamachi_rx()
1584 desc = &(hmp->rx_ring[entry]); in hamachi_rx()
1684 readl(ioaddr + RxCurPtr) == (long)&hmp->rx_ring[i] ? '>' : ' ', in hamachi_close()
1685 i, hmp->rx_ring[i].status_n_length, hmp->rx_ring[i].addr); in hamachi_close()
1708 hmp->rx_ring[i].status_n_length = 0; in hamachi_close()
1711 leXX_to_cpu(hmp->rx_ring[i].addr), in hamachi_close()
1716 hmp->rx_ring[i].addr = cpu_to_leXX(0xBADF00D0); /* An invalid address. */ in hamachi_close()
1903 pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, in hamachi_remove_one()