Home
last modified time | relevance | path

Searched refs:tx_ring (Results 1 – 4 of 4) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Deepro100.c200 static struct TxFD tx_ring[NUM_TX_DESC]; /* TX descriptor ring */ variable
524 cfg_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
527 cfg_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init()
537 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
541 !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C); in eepro100_init()
549 if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) { in eepro100_init()
551 le16_to_cpu (tx_ring[tx_cur].status)); in eepro100_init()
560 ias_cmd = (struct descriptor *) &tx_ring[tx_cur]; in eepro100_init()
563 ias_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init()
574 OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer); in eepro100_init()
[all …]
H A Ddc2114x.c138 static struct de4x5_desc tx_ring[NUM_TX_DESC] __attribute__ ((aligned(32))); /* TX descriptor ring … variable
347 tx_ring[i].status = 0; in dc21x4x_init()
348 tx_ring[i].des1 = 0; in dc21x4x_init()
349 tx_ring[i].buf = 0; in dc21x4x_init()
352 tx_ring[i].next = cpu_to_le32(phys_to_bus((u32) &tx_ring[(i+1) % NUM_TX_DESC])); in dc21x4x_init()
354 tx_ring[i].next = 0; in dc21x4x_init()
363 tx_ring[txRingSize - 1].des1 |= cpu_to_le32(TD_TER); in dc21x4x_init()
367 OUTL(dev, phys_to_bus((u32) &tx_ring), DE4X5_TRBA); in dc21x4x_init()
389 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send()
396 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send()
[all …]
H A Dpcnet.c70 u32 tx_ring; member
76 struct pcnet_tx_head tx_ring[TX_RING_SIZE]; member
379 uc->tx_ring[i].base = 0; in pcnet_init()
380 uc->tx_ring[i].status = 0; in pcnet_init()
397 addr = pcnet_virt_to_mem(dev, uc->tx_ring); in pcnet_init()
398 uc->init_block.tx_ring = cpu_to_le32(addr); in pcnet_init()
402 uc->init_block.rx_ring, uc->init_block.tx_ring); in pcnet_init()
439 struct pcnet_tx_head *entry = &lp->uc->tx_ring[lp->cur_tx]; in pcnet_send()
H A Dmacb.c99 struct macb_dma_desc *tx_ring; member
312 macb->tx_ring[tx_head].ctrl = ctrl; in _macb_send()
313 macb->tx_ring[tx_head].addr = paddr; in _macb_send()
327 ctrl = macb->tx_ring[tx_head].ctrl; in _macb_send()
639 macb->tx_ring[i].addr = 0; in _macb_init()
641 macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP; in _macb_init()
643 macb->tx_ring[i].ctrl = TXBUF_USED; in _macb_init()
830 macb->tx_ring = dma_alloc_coherent(MACB_TX_DMA_DESC_SIZE, in _macb_eth_initialize()