Lines Matching refs:DESC_SIZE

382 		writel(dev->rx_info.phy_descs + (4 * DESC_SIZE * dev->rx_info.next_rx), dev->base + RXDP); \
422 #define DESC_SIZE 8 /* Should be cache line sized */ macro
531 sg = dev->rx_info.descs + (next_empty * DESC_SIZE); in ns83820_add_rx_skb()
543 …_DESC + next_empty - 1) % NR_RX_DESC) * DESC_SIZE] = cpu_to_le32(dev->rx_info.phy_descs + (next_em… in ns83820_add_rx_skb()
607 build_rx_desc(dev, dev->rx_info.descs + (DESC_SIZE * i), 0, 0, CMDSTS_OWN, 0); in clear_rx_desc()
830 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_rx)), in rx_irq()
832 (dev->rx_info.descs + (DESC_SIZE * dev->rx_info.next_empty)) in rx_irq()
886 desc = info->descs + (DESC_SIZE * next_rx); in rx_irq()
889 info->next_rx_desc = info->descs + (DESC_SIZE * next_rx); in rx_irq()
934 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); in do_tx_done()
976 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); in do_tx_done()
998 u32 *desc = dev->tx_descs + (i * DESC_SIZE); in ns83820_cleanup_tx()
1008 memset(dev->tx_descs, 0, NR_TX_DESC * DESC_SIZE * 4); in ns83820_cleanup_tx()
1087 first_desc = dev->tx_descs + (free_idx * DESC_SIZE); in ns83820_hard_start_xmit()
1090 volatile u32 *desc = dev->tx_descs + (free_idx * DESC_SIZE); in ns83820_hard_start_xmit()
1097 desc[DESC_LINK] = cpu_to_le32(dev->tx_phy_descs + (free_idx * DESC_SIZE * 4)); in ns83820_hard_start_xmit()
1296 dev->tx_idx = txdp / (DESC_SIZE * 4); in ns83820_do_isr()
1404 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); in ns83820_tx_timeout()
1422 desc = dev->tx_descs + (tx_done_idx * DESC_SIZE); in ns83820_tx_timeout()
1468 memset(dev->tx_descs, 0, 4 * NR_TX_DESC * DESC_SIZE); in ns83820_open()
1470 dev->tx_descs[(i * DESC_SIZE) + DESC_LINK] in ns83820_open()
1473 + ((i+1) % NR_TX_DESC) * DESC_SIZE * 4); in ns83820_open()
1808 4 * DESC_SIZE * NR_TX_DESC, &dev->tx_phy_descs); in ns83820_init_one()
1810 4 * DESC_SIZE * NR_RX_DESC, &dev->rx_info.phy_descs); in ns83820_init_one()
2029 pci_free_consistent(pci_dev, 4 * DESC_SIZE * NR_TX_DESC, dev->tx_descs, dev->tx_phy_descs); in ns83820_init_one()
2030 …pci_free_consistent(pci_dev, 4 * DESC_SIZE * NR_RX_DESC, dev->rx_info.descs, dev->rx_info.phy_desc… in ns83820_init_one()
2053 pci_free_consistent(dev->pci_dev, 4 * DESC_SIZE * NR_TX_DESC, in ns83820_remove_one()
2055 pci_free_consistent(dev->pci_dev, 4 * DESC_SIZE * NR_RX_DESC, in ns83820_remove_one()