hmp 581 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp; hmp 638 drivers/net/ethernet/packetengines/hamachi.c hmp = netdev_priv(dev); hmp 639 drivers/net/ethernet/packetengines/hamachi.c spin_lock_init(&hmp->lock); hmp 641 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.dev = dev; hmp 642 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.mdio_read = mdio_read; hmp 643 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.mdio_write = mdio_write; hmp 644 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.phy_id_mask = 0x1f; hmp 645 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.reg_num_mask = 0x1f; hmp 650 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring = ring_space; hmp 651 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring_dma = ring_dma; hmp 656 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring = ring_space; hmp 657 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring_dma = ring_dma; hmp 684 drivers/net/ethernet/packetengines/hamachi.c hmp->base = ioaddr; hmp 687 drivers/net/ethernet/packetengines/hamachi.c hmp->chip_id = chip_id; hmp 688 drivers/net/ethernet/packetengines/hamachi.c hmp->pci_dev = pdev; hmp 692 drivers/net/ethernet/packetengines/hamachi.c hmp->option = option; hmp 694 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; hmp 696 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 0; hmp 697 drivers/net/ethernet/packetengines/hamachi.c hmp->default_port = option & 15; hmp 698 drivers/net/ethernet/packetengines/hamachi.c if (hmp->default_port) hmp 699 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.force_media = 1; hmp 702 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; hmp 705 drivers/net/ethernet/packetengines/hamachi.c if (hmp->mii_if.full_duplex || (option & 0x080)) hmp 706 drivers/net/ethernet/packetengines/hamachi.c hmp->duplex_lock = 1; hmp 718 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_int_var = rx_int_var >= 0 ? rx_int_var : hmp 720 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_int_var = tx_int_var >= 0 ? tx_int_var : hmp 726 drivers/net/ethernet/packetengines/hamachi.c dev->ethtool_ops = (chip_tbl[hmp->chip_id].flags & CanHaveMII) ? hmp 748 drivers/net/ethernet/packetengines/hamachi.c if (chip_tbl[hmp->chip_id].flags & CanHaveMII) { hmp 754 drivers/net/ethernet/packetengines/hamachi.c hmp->phys[phy_idx++] = phy; hmp 755 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.advertising = mdio_read(dev, phy, MII_ADVERTISE); hmp 758 drivers/net/ethernet/packetengines/hamachi.c dev->name, phy, mii_status, hmp->mii_if.advertising); hmp 761 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_cnt = phy_idx; hmp 762 drivers/net/ethernet/packetengines/hamachi.c if (hmp->mii_cnt > 0) hmp 763 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.phy_id = hmp->phys[0]; hmp 765 drivers/net/ethernet/packetengines/hamachi.c memset(&hmp->mii_if, 0, sizeof(hmp->mii_if)); hmp 776 drivers/net/ethernet/packetengines/hamachi.c pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, hmp 777 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring_dma); hmp 779 drivers/net/ethernet/packetengines/hamachi.c pci_free_consistent(pdev, TX_TOTAL_SIZE, hmp->tx_ring, hmp 780 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring_dma); hmp 813 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 814 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 831 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 832 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 851 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 852 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 857 drivers/net/ethernet/packetengines/hamachi.c i = request_irq(hmp->pci_dev->irq, hamachi_interrupt, IRQF_SHARED, hmp 866 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->rx_ring_dma, ioaddr + RxPtr); hmp 867 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->rx_ring_dma >> 32, ioaddr + RxPtr + 4); hmp 868 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->tx_ring_dma, ioaddr + TxPtr); hmp 869 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->tx_ring_dma >> 32, ioaddr + TxPtr + 4); hmp 871 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->rx_ring_dma, ioaddr + RxPtr); hmp 872 drivers/net/ethernet/packetengines/hamachi.c writel(hmp->tx_ring_dma, ioaddr + TxPtr); hmp 912 drivers/net/ethernet/packetengines/hamachi.c dev->if_port = hmp->default_port; hmp 917 drivers/net/ethernet/packetengines/hamachi.c if (hmp->duplex_lock != 1) hmp 918 drivers/net/ethernet/packetengines/hamachi.c hmp->mii_if.full_duplex = 1; hmp 942 drivers/net/ethernet/packetengines/hamachi.c rx_int_var = hmp->rx_int_var; hmp 943 drivers/net/ethernet/packetengines/hamachi.c tx_int_var = hmp->tx_int_var; hmp 982 drivers/net/ethernet/packetengines/hamachi.c timer_setup(&hmp->timer, hamachi_timer, 0); hmp 983 drivers/net/ethernet/packetengines/hamachi.c hmp->timer.expires = RUN_AT((24*HZ)/10); /* 2.4 sec. */ hmp 984 drivers/net/ethernet/packetengines/hamachi.c add_timer(&hmp->timer); hmp 991 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 995 drivers/net/ethernet/packetengines/hamachi.c for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++) { hmp 996 drivers/net/ethernet/packetengines/hamachi.c int entry = hmp->dirty_tx % TX_RING_SIZE; hmp 999 drivers/net/ethernet/packetengines/hamachi.c if (hmp->tx_ring[entry].status_n_length & cpu_to_le32(DescOwn)) hmp 1002 drivers/net/ethernet/packetengines/hamachi.c skb = hmp->tx_skbuff[entry]; hmp 1004 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1005 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->tx_ring[entry].addr), hmp 1008 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[entry] = NULL; hmp 1010 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[entry].status_n_length = 0; hmp 1012 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[TX_RING_SIZE-1].status_n_length |= hmp 1022 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = from_timer(hmp, t, timer); hmp 1023 drivers/net/ethernet/packetengines/hamachi.c struct net_device *dev = hmp->mii_if.dev; hmp 1024 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1041 drivers/net/ethernet/packetengines/hamachi.c hmp->timer.expires = RUN_AT(next_tick); hmp 1042 drivers/net/ethernet/packetengines/hamachi.c add_timer(&hmp->timer); hmp 1048 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1049 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1055 drivers/net/ethernet/packetengines/hamachi.c printk(KERN_DEBUG " Rx ring %p: ", hmp->rx_ring); hmp 1058 drivers/net/ethernet/packetengines/hamachi.c le32_to_cpu(hmp->rx_ring[i].status_n_length)); hmp 1060 drivers/net/ethernet/packetengines/hamachi.c printk(KERN_DEBUG" Tx ring %p: ", hmp->tx_ring); hmp 1063 drivers/net/ethernet/packetengines/hamachi.c le32_to_cpu(hmp->tx_ring[i].status_n_length)); hmp 1079 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].status_n_length &= cpu_to_le32(~DescOwn); hmp 1088 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[i].status_n_length = hmp 1090 drivers/net/ethernet/packetengines/hamachi.c (hmp->tx_ring[i].status_n_length & hmp 1093 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[i].status_n_length &= cpu_to_le32(0x0000ffff); hmp 1094 drivers/net/ethernet/packetengines/hamachi.c skb = hmp->tx_skbuff[i]; hmp 1096 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, leXX_to_cpu(hmp->tx_ring[i].addr), hmp 1099 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[i] = NULL; hmp 1108 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_full = 0; hmp 1109 drivers/net/ethernet/packetengines/hamachi.c hmp->cur_rx = hmp->cur_tx = 0; hmp 1110 drivers/net/ethernet/packetengines/hamachi.c hmp->dirty_rx = hmp->dirty_tx = 0; hmp 1115 drivers/net/ethernet/packetengines/hamachi.c struct sk_buff *skb = hmp->rx_skbuff[i]; hmp 1118 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1119 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->rx_ring[i].addr), hmp 1120 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, PCI_DMA_FROMDEVICE); hmp 1122 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i] = NULL; hmp 1129 drivers/net/ethernet/packetengines/hamachi.c skb = netdev_alloc_skb_ip_align(dev, hmp->rx_buf_sz); hmp 1130 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i] = skb; hmp 1134 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, hmp 1135 drivers/net/ethernet/packetengines/hamachi.c skb->data, hmp->rx_buf_sz, PCI_DMA_FROMDEVICE)); hmp 1136 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | hmp 1137 drivers/net/ethernet/packetengines/hamachi.c DescEndPacket | DescIntr | (hmp->rx_buf_sz - 2)); hmp 1139 drivers/net/ethernet/packetengines/hamachi.c hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); hmp 1141 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); hmp 1159 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1162 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_full = 0; hmp 1163 drivers/net/ethernet/packetengines/hamachi.c hmp->cur_rx = hmp->cur_tx = 0; hmp 1164 drivers/net/ethernet/packetengines/hamachi.c hmp->dirty_rx = hmp->dirty_tx = 0; hmp 1171 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz = (dev->mtu <= 1492 ? PKT_BUF_SZ : hmp 1176 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].status_n_length = 0; hmp 1177 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i] = NULL; hmp 1181 drivers/net/ethernet/packetengines/hamachi.c struct sk_buff *skb = netdev_alloc_skb(dev, hmp->rx_buf_sz + 2); hmp 1182 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i] = skb; hmp 1186 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, hmp 1187 drivers/net/ethernet/packetengines/hamachi.c skb->data, hmp->rx_buf_sz, PCI_DMA_FROMDEVICE)); hmp 1189 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].status_n_length = cpu_to_le32(DescOwn | hmp 1190 drivers/net/ethernet/packetengines/hamachi.c DescEndPacket | DescIntr | (hmp->rx_buf_sz -2)); hmp 1192 drivers/net/ethernet/packetengines/hamachi.c hmp->dirty_rx = (unsigned int)(i - RX_RING_SIZE); hmp 1193 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[RX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); hmp 1196 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[i] = NULL; hmp 1197 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[i].status_n_length = 0; hmp 1200 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[TX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); hmp 1207 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1216 drivers/net/ethernet/packetengines/hamachi.c if (hmp->tx_full) { hmp 1218 drivers/net/ethernet/packetengines/hamachi.c printk(KERN_WARNING "%s: Hamachi transmit queue full at slot %d.\n",dev->name, hmp->cur_tx); hmp 1222 drivers/net/ethernet/packetengines/hamachi.c status=readw(hmp->base + TxStatus); hmp 1224 drivers/net/ethernet/packetengines/hamachi.c writew(0x0001, hmp->base + TxCmd); hmp 1232 drivers/net/ethernet/packetengines/hamachi.c entry = hmp->cur_tx % TX_RING_SIZE; hmp 1234 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[entry] = skb; hmp 1236 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[entry].addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, hmp 1249 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[entry].status_n_length = cpu_to_le32(DescOwn | hmp 1252 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[entry].status_n_length = cpu_to_le32(DescOwn | hmp 1254 drivers/net/ethernet/packetengines/hamachi.c hmp->cur_tx++; hmp 1260 drivers/net/ethernet/packetengines/hamachi.c status=readw(hmp->base + TxStatus); hmp 1262 drivers/net/ethernet/packetengines/hamachi.c writew(0x0001, hmp->base + TxCmd); hmp 1273 drivers/net/ethernet/packetengines/hamachi.c if ((hmp->cur_tx - hmp->dirty_tx) < (TX_RING_SIZE - 4)) hmp 1276 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_full = 1; hmp 1282 drivers/net/ethernet/packetengines/hamachi.c dev->name, hmp->cur_tx, entry); hmp 1292 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1293 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1304 drivers/net/ethernet/packetengines/hamachi.c spin_lock(&hmp->lock); hmp 1326 drivers/net/ethernet/packetengines/hamachi.c if (hmp->tx_full){ hmp 1327 drivers/net/ethernet/packetengines/hamachi.c for (; hmp->cur_tx - hmp->dirty_tx > 0; hmp->dirty_tx++){ hmp 1328 drivers/net/ethernet/packetengines/hamachi.c int entry = hmp->dirty_tx % TX_RING_SIZE; hmp 1331 drivers/net/ethernet/packetengines/hamachi.c if (hmp->tx_ring[entry].status_n_length & cpu_to_le32(DescOwn)) hmp 1333 drivers/net/ethernet/packetengines/hamachi.c skb = hmp->tx_skbuff[entry]; hmp 1336 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1337 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->tx_ring[entry].addr), hmp 1341 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[entry] = NULL; hmp 1343 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[entry].status_n_length = 0; hmp 1345 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring[TX_RING_SIZE-1].status_n_length |= hmp 1349 drivers/net/ethernet/packetengines/hamachi.c if (hmp->cur_tx - hmp->dirty_tx < TX_RING_SIZE - 4){ hmp 1351 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_full = 0; hmp 1389 drivers/net/ethernet/packetengines/hamachi.c spin_unlock(&hmp->lock); hmp 1397 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1398 drivers/net/ethernet/packetengines/hamachi.c int entry = hmp->cur_rx % RX_RING_SIZE; hmp 1399 drivers/net/ethernet/packetengines/hamachi.c int boguscnt = (hmp->dirty_rx + RX_RING_SIZE) - hmp->cur_rx; hmp 1403 drivers/net/ethernet/packetengines/hamachi.c entry, hmp->rx_ring[entry].status_n_length); hmp 1408 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_desc *desc = &(hmp->rx_ring[entry]); hmp 1416 drivers/net/ethernet/packetengines/hamachi.c pci_dma_sync_single_for_cpu(hmp->pci_dev, hmp 1418 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, hmp 1420 drivers/net/ethernet/packetengines/hamachi.c buf_addr = (u8 *) hmp->rx_skbuff[entry]->data; hmp 1430 drivers/net/ethernet/packetengines/hamachi.c dev->name, hmp->cur_rx, data_size, desc_status); hmp 1432 drivers/net/ethernet/packetengines/hamachi.c dev->name, desc, &hmp->rx_ring[hmp->cur_rx % RX_RING_SIZE]); hmp 1435 drivers/net/ethernet/packetengines/hamachi.c le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0xffff0000, hmp 1436 drivers/net/ethernet/packetengines/hamachi.c le32_to_cpu(hmp->rx_ring[(hmp->cur_rx+1) % RX_RING_SIZE].status_n_length) & 0x0000ffff, hmp 1437 drivers/net/ethernet/packetengines/hamachi.c le32_to_cpu(hmp->rx_ring[(hmp->cur_rx-1) % RX_RING_SIZE].status_n_length)); hmp 1486 drivers/net/ethernet/packetengines/hamachi.c pci_dma_sync_single_for_cpu(hmp->pci_dev, hmp 1487 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->rx_ring[entry].addr), hmp 1488 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, hmp 1493 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[entry]->data, pkt_len); hmp 1496 drivers/net/ethernet/packetengines/hamachi.c skb_put_data(skb, hmp->rx_ring_dma hmp 1499 drivers/net/ethernet/packetengines/hamachi.c pci_dma_sync_single_for_device(hmp->pci_dev, hmp 1500 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->rx_ring[entry].addr), hmp 1501 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, hmp 1504 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1505 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->rx_ring[entry].addr), hmp 1506 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, PCI_DMA_FROMDEVICE); hmp 1507 drivers/net/ethernet/packetengines/hamachi.c skb_put(skb = hmp->rx_skbuff[entry], pkt_len); hmp 1508 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[entry] = NULL; hmp 1573 drivers/net/ethernet/packetengines/hamachi.c entry = (++hmp->cur_rx) % RX_RING_SIZE; hmp 1577 drivers/net/ethernet/packetengines/hamachi.c for (; hmp->cur_rx - hmp->dirty_rx > 0; hmp->dirty_rx++) { hmp 1580 drivers/net/ethernet/packetengines/hamachi.c entry = hmp->dirty_rx % RX_RING_SIZE; hmp 1581 drivers/net/ethernet/packetengines/hamachi.c desc = &(hmp->rx_ring[entry]); hmp 1582 drivers/net/ethernet/packetengines/hamachi.c if (hmp->rx_skbuff[entry] == NULL) { hmp 1583 drivers/net/ethernet/packetengines/hamachi.c struct sk_buff *skb = netdev_alloc_skb(dev, hmp->rx_buf_sz + 2); hmp 1585 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[entry] = skb; hmp 1589 drivers/net/ethernet/packetengines/hamachi.c desc->addr = cpu_to_leXX(pci_map_single(hmp->pci_dev, hmp 1590 drivers/net/ethernet/packetengines/hamachi.c skb->data, hmp->rx_buf_sz, PCI_DMA_FROMDEVICE)); hmp 1592 drivers/net/ethernet/packetengines/hamachi.c desc->status_n_length = cpu_to_le32(hmp->rx_buf_sz); hmp 1603 drivers/net/ethernet/packetengines/hamachi.c if (readw(hmp->base + RxStatus) & 0x0002) hmp 1604 drivers/net/ethernet/packetengines/hamachi.c writew(0x0001, hmp->base + RxCmd); hmp 1613 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1614 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1647 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1648 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1659 drivers/net/ethernet/packetengines/hamachi.c dev->name, hmp->cur_tx, hmp->dirty_tx, hmp->cur_rx, hmp->dirty_rx); hmp 1672 drivers/net/ethernet/packetengines/hamachi.c (int)hmp->tx_ring_dma); hmp 1675 drivers/net/ethernet/packetengines/hamachi.c readl(ioaddr + TxCurPtr) == (long)&hmp->tx_ring[i] ? '>' : ' ', hmp 1676 drivers/net/ethernet/packetengines/hamachi.c i, hmp->tx_ring[i].status_n_length, hmp->tx_ring[i].addr); hmp 1678 drivers/net/ethernet/packetengines/hamachi.c (int)hmp->rx_ring_dma); hmp 1681 drivers/net/ethernet/packetengines/hamachi.c readl(ioaddr + RxCurPtr) == (long)&hmp->rx_ring[i] ? '>' : ' ', hmp 1682 drivers/net/ethernet/packetengines/hamachi.c i, hmp->rx_ring[i].status_n_length, hmp->rx_ring[i].addr); hmp 1684 drivers/net/ethernet/packetengines/hamachi.c if (*(u8*)hmp->rx_skbuff[i]->data != 0x69) { hmp 1686 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i]->data; hmp 1698 drivers/net/ethernet/packetengines/hamachi.c free_irq(hmp->pci_dev->irq, dev); hmp 1700 drivers/net/ethernet/packetengines/hamachi.c del_timer_sync(&hmp->timer); hmp 1704 drivers/net/ethernet/packetengines/hamachi.c skb = hmp->rx_skbuff[i]; hmp 1705 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].status_n_length = 0; hmp 1707 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1708 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->rx_ring[i].addr), hmp 1709 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz, PCI_DMA_FROMDEVICE); hmp 1711 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_skbuff[i] = NULL; hmp 1713 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring[i].addr = cpu_to_leXX(0xBADF00D0); /* An invalid address. */ hmp 1716 drivers/net/ethernet/packetengines/hamachi.c skb = hmp->tx_skbuff[i]; hmp 1718 drivers/net/ethernet/packetengines/hamachi.c pci_unmap_single(hmp->pci_dev, hmp 1719 drivers/net/ethernet/packetengines/hamachi.c leXX_to_cpu(hmp->tx_ring[i].addr), hmp 1722 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_skbuff[i] = NULL; hmp 1733 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1734 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1769 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1770 drivers/net/ethernet/packetengines/hamachi.c void __iomem *ioaddr = hmp->base; hmp 1900 drivers/net/ethernet/packetengines/hamachi.c struct hamachi_private *hmp = netdev_priv(dev); hmp 1902 drivers/net/ethernet/packetengines/hamachi.c pci_free_consistent(pdev, RX_TOTAL_SIZE, hmp->rx_ring, hmp 1903 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_ring_dma); hmp 1904 drivers/net/ethernet/packetengines/hamachi.c pci_free_consistent(pdev, TX_TOTAL_SIZE, hmp->tx_ring, hmp 1905 drivers/net/ethernet/packetengines/hamachi.c hmp->tx_ring_dma); hmp 1907 drivers/net/ethernet/packetengines/hamachi.c iounmap(hmp->base);