/openbmc/u-boot/drivers/net/ |
H A D | dc2114x.c | 117 #define NUM_TX_DESC 1 /* Number of TX descriptors */ macro 119 #define NUM_TX_DESC 4 macro 135 static struct de4x5_desc tx_ring[NUM_TX_DESC] __attribute__ ((aligned(32))); /* TX descriptor ring … 343 for (i=0; i < NUM_TX_DESC; i++) { in dc21x4x_init() 349 tx_ring[i].next = cpu_to_le32(phys_to_bus((u32) &tx_ring[(i+1) % NUM_TX_DESC])); in dc21x4x_init() 356 txRingSize = NUM_TX_DESC; in dc21x4x_init() 418 tx_new = (tx_new+1) % NUM_TX_DESC; in dc21x4x_send() 516 tx_new = (tx_new+1) % NUM_TX_DESC; in send_setup_frame()
|
H A D | rtl8169.c | 85 #define NUM_TX_DESC 1 /* Number of Tx descriptor registers */ macro 313 DEFINE_ALIGN_BUFFER(u8, txb, NUM_TX_DESC * RX_BUF_SIZE, RTL8169_ALIGN); 332 unsigned char *Tx_skbuff[NUM_TX_DESC]; 609 int entry = tpc->cur_tx % NUM_TX_DESC; in rtl_send_common() 638 if (entry != (NUM_TX_DESC - 1)) { in rtl_send_common() 814 memset(tpc->TxDescArray, 0x0, NUM_TX_DESC * sizeof(struct TxDesc)); in rtl8169_init_ring() 817 for (i = 0; i < NUM_TX_DESC; i++) { in rtl8169_init_ring() 1088 tpc->TxDescArray = rtl_alloc_descs(NUM_TX_DESC); in rtl_init()
|
H A D | mt7628-eth.c | 124 #define NUM_TX_DESC 4 macro 400 idx = (idx + 1) % NUM_TX_DESC; in mt7628_eth_send() 483 for (i = 0; i < NUM_TX_DESC; i++) { in mt7628_eth_start() 505 writel(NUM_TX_DESC, base + TX_MAX_CNT0); in mt7628_eth_start() 593 sizeof(*priv->tx_ring) * NUM_TX_DESC)); in mt7628_eth_probe()
|
H A D | eepro100.c | 192 #define NUM_TX_DESC 1 /* Number of TX descriptors */ macro 197 static struct TxFD tx_ring[NUM_TX_DESC]; /* TX descriptor ring */ 519 tx_next = ((tx_next + 1) % NUM_TX_DESC); in eepro100_init() 555 tx_next = ((tx_next + 1) % NUM_TX_DESC); in eepro100_init() 606 tx_next = (tx_next + 1) % NUM_TX_DESC; in eepro100_send() 895 for (i = 0; i < NUM_TX_DESC; i++) { in purge_tx_ring()
|
H A D | mtk_eth.c | 26 #define NUM_TX_DESC 24 macro 28 #define TX_TOTAL_BUF_SIZE (NUM_TX_DESC * PKTSIZE_ALIGN) 826 memset(priv->tx_ring_noc, 0, NUM_TX_DESC * sizeof(struct pdma_txdesc)); in mtk_eth_fifo_init() 835 for (i = 0; i < NUM_TX_DESC; i++) { in mtk_eth_fifo_init() 852 mtk_pdma_write(priv, TX_MAX_CNT_REG(0), NUM_TX_DESC); in mtk_eth_fifo_init() 948 priv->tx_cpu_owner_idx0 = (priv->tx_cpu_owner_idx0 + 1) % NUM_TX_DESC; in mtk_eth_send() 1012 noncached_alloc(sizeof(struct pdma_txdesc) * NUM_TX_DESC, in mtk_eth_probe()
|
H A D | rtl8139.c | 89 #define NUM_TX_DESC 4 /* Number of Tx descriptor registers. */ macro 439 cur_tx = (cur_tx + 1) % NUM_TX_DESC; in rtl_transmit()
|
H A D | sh_eth.c | 114 if (port_info->tx_desc_cur >= port_info->tx_desc_base + NUM_TX_DESC) in sh_eth_send_common() 193 u32 alloc_desc_size = NUM_TX_DESC * sizeof(struct tx_desc_s); in sh_eth_tx_desc_init() 217 for (cur_tx_desc = port_info->tx_desc_base, i = 0; i < NUM_TX_DESC; in sh_eth_tx_desc_init()
|
H A D | sh_eth.h | 50 #define NUM_TX_DESC 8 macro
|
/openbmc/linux/drivers/net/ethernet/sis/ |
H A D | sis900.h | 323 #define NUM_TX_DESC 16 /* Number of Tx descriptor registers. */ macro 325 #define TX_TOTAL_SIZE NUM_TX_DESC*sizeof(BufferDesc)
|
H A D | sis190.c | 50 #define NUM_TX_DESC 64 /* [8..1024] */ macro 52 #define TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc)) 280 struct sk_buff *Tx_skbuff[NUM_TX_DESC]; 699 queue_stopped = (pending == NUM_TX_DESC); in sis190_tx_interrupt() 702 unsigned int entry = dirty_tx % NUM_TX_DESC; in sis190_tx_interrupt() 820 memset(tp->Tx_skbuff, 0x0, NUM_TX_DESC * sizeof(struct sk_buff *)); in sis190_init_ring() 1115 for (i = 0; i < NUM_TX_DESC; i++) { in sis190_tx_clear() 1199 entry = tp->cur_tx % NUM_TX_DESC; in sis190_start_xmit() 1223 if (entry == (NUM_TX_DESC - 1)) in sis190_start_xmit() 1243 if ((tp->cur_tx - NUM_TX_DESC) == dirty_tx) { in sis190_start_xmit()
|
H A D | sis900.c | 183 struct sk_buff *tx_skbuff[NUM_TX_DESC]; 1140 for (i = 0; i < NUM_TX_DESC; i++) { in sis900_init_tx_ring() 1144 ((i+1)%NUM_TX_DESC)*sizeof(BufferDesc); in sis900_init_tx_ring() 1569 for (i = 0; i < NUM_TX_DESC; i++) { in sis900_tx_timeout() 1620 entry = sis_priv->cur_tx % NUM_TX_DESC; in sis900_start_xmit() 1649 } else if (count_dirty_tx < NUM_TX_DESC) { in sis900_start_xmit() 1910 entry = sis_priv->dirty_tx % NUM_TX_DESC; in sis900_finish_xmit() 1953 sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { in sis900_finish_xmit() 2001 for (i = 0; i < NUM_TX_DESC; i++) { in sis900_close()
|
/openbmc/linux/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 184 #define NUM_TX_DESC 4 macro 194 #define TX_BUF_TOT_LEN (TX_BUF_SIZE * NUM_TX_DESC) 596 unsigned char *tx_buf[NUM_TX_DESC]; /* Tx bounce buffers */ 1427 for (i = 0; i < NUM_TX_DESC; i++) in rtl8139_hw_start() 1457 for (i = 0; i < NUM_TX_DESC; i++) in rtl8139_init_ring() 1674 for (i = 0; i < NUM_TX_DESC; i++) in rtl8139_tx_timeout_task() 1677 i == tp->dirty_tx % NUM_TX_DESC ? in rtl8139_tx_timeout_task() 1725 entry = tp->cur_tx % NUM_TX_DESC; in rtl8139_start_xmit() 1751 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 1774 int entry = dirty_tx % NUM_TX_DESC; in rtl8139_tx_interrupt() [all …]
|
H A D | r8169_main.c | 68 #define NUM_TX_DESC 256 /* Number of Tx descriptor registers */ macro 70 #define R8169_TX_RING_BYTES (NUM_TX_DESC * sizeof(struct TxDesc)) 637 struct ring_info tx_skb[NUM_TX_DESC]; /* Tx data buffers */ 2006 data->tx_max_pending = NUM_TX_DESC; in rtl8169_get_ringparam() 2007 data->tx_pending = NUM_TX_DESC; in rtl8169_get_ringparam() 3968 unsigned int entry = (start + i) % NUM_TX_DESC; in rtl8169_tx_clear_range() 3984 rtl8169_tx_clear_range(tp, tp->dirty_tx, NUM_TX_DESC); in rtl8169_tx_clear() 4068 if (entry == NUM_TX_DESC - 1) in rtl8169_tx_map() 4090 entry = (entry + 1) % NUM_TX_DESC; in rtl8169_xmit_frags() 4256 return READ_ONCE(tp->dirty_tx) + NUM_TX_DESC - READ_ONCE(tp->cur_tx); in rtl_tx_slots_avail() [all …]
|
/openbmc/linux/drivers/net/ethernet/silan/ |
H A D | sc92031.c | 62 #define NUM_TX_DESC 4 macro 69 #define TX_BUF_TOT_LEN (TX_BUF_SIZE * NUM_TX_DESC) 658 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet() 953 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit() 955 entry = priv->tx_head++ % NUM_TX_DESC; in sc92031_start_xmit() 979 if (priv->tx_head - priv->tx_tail >= NUM_TX_DESC) in sc92031_start_xmit()
|