Home
last modified time | relevance | path

Searched refs:NUM_RX_DESC (Results 1 – 10 of 10) sorted by relevance

/u-boot/drivers/net/
A Dmt7628-eth.c122 #define NUM_RX_DESC 256 macro
143 u8 *rx_buf[NUM_RX_DESC];
470 idx = (idx + 1) % NUM_RX_DESC; in mt7628_eth_free_pkt()
486 for (i = 0; i < NUM_RX_DESC; i++) { in mt7628_eth_start()
513 writel(NUM_RX_DESC, base + RX_MAX_CNT0); in mt7628_eth_start()
519 writel(NUM_RX_DESC - 1, base + RX_CALC_IDX0); in mt7628_eth_start()
589 sizeof(*priv->rx_ring) * NUM_RX_DESC)); in mt7628_eth_probe()
591 for (i = 0; i < NUM_RX_DESC; i++) in mt7628_eth_probe()
A Drtl8169.c91 #define NUM_RX_DESC CONFIG_SYS_RX_ETH_BUFFER macro
93 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers */ macro
328 DEFINE_ALIGN_BUFFER(u8, rxb, NUM_RX_DESC * RX_BUF_SIZE, RTL8169_ALIGN);
340 unsigned char *RxBufferRing[NUM_RX_DESC]; /* Index of Rx Buffer array */
548 if (cur_rx == NUM_RX_DESC - 1) in rtl_recv_common()
574 cur_rx = (cur_rx + 1) % NUM_RX_DESC; in rtl_recv_common()
824 memset(tpc->RxDescArray, 0x0, NUM_RX_DESC * sizeof(struct RxDesc)); in rtl8169_init_ring()
830 for (i = 0; i < NUM_RX_DESC; i++) { in rtl8169_init_ring()
831 if (i == (NUM_RX_DESC - 1)) in rtl8169_init_ring()
931 for (i = 0; i < NUM_RX_DESC; i++) { in rtl_halt_common()
[all …]
A Deepro100.c181 #define NUM_RX_DESC PKTBUFSRX macro
200 struct eepro100_rxfd rx_ring[NUM_RX_DESC];
365 for (i = 0; i < NUM_RX_DESC; i++) { in init_rx_ring()
367 rx_ring[i].control = (i == NUM_RX_DESC - 1) ? in init_rx_ring()
372 NUM_RX_DESC])); in init_rx_ring()
379 (sizeof(*rx_ring) * NUM_RX_DESC)); in init_rx_ring()
726 rx_prev = (priv->rx_next + NUM_RX_DESC - 1) % NUM_RX_DESC; in eepro100_free_pkt_common()
733 priv->rx_next = (priv->rx_next + 1) % NUM_RX_DESC; in eepro100_free_pkt_common()
A Dnatsemi.c69 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers. */ macro
220 static BufferDesc rxd[NUM_RX_DESC] __attribute__ ((aligned(4)));
223 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]
687 for (i = 0; i < NUM_RX_DESC; i++) { in natsemi_init_rxd()
690 NUM_RX_DESC) ? (u32) & rxd[i + in natsemi_init_rxd()
853 if (++cur_rx == NUM_RX_DESC) in natsemi_poll()
A Dns8382x.c68 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers. */ macro
246 static BufferDesc rxd[NUM_RX_DESC] __attribute__ ((aligned(8)));
248 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]
647 for (i = 0; i < NUM_RX_DESC; i++) { in ns8382x_init_rxd()
650 NUM_RX_DESC) ? (u32) & rxd[i + in ns8382x_init_rxd()
827 if (++cur_rx == NUM_RX_DESC) in ns8382x_poll()
A Dmt7620-eth.c268 #define NUM_RX_DESC 128 macro
813 memset(priv->rx_ring, 0, NUM_RX_DESC * sizeof(struct pdma_rx_desc)); in mt7620_eth_fifo_init()
814 memset(priv->pkt_buf, 0, (NUM_TX_DESC + NUM_RX_DESC) * PKTSIZE_ALIGN); in mt7620_eth_fifo_init()
829 for (i = 0; i < NUM_RX_DESC; i++) { in mt7620_eth_fifo_init()
840 pdma_write(priv, RX_MAX_CNT0, NUM_RX_DESC); in mt7620_eth_fifo_init()
841 pdma_write(priv, RX_CALC_IDX0, NUM_RX_DESC - 1); in mt7620_eth_fifo_init()
952 priv->rx_dma_owner_idx0 = (priv->rx_dma_owner_idx0 + 1) % NUM_RX_DESC; in mt7620_eth_free_pkt()
976 NUM_RX_DESC * sizeof(struct pdma_rx_desc)); in mt7620_eth_alloc_rings_pkts()
983 (NUM_TX_DESC + NUM_RX_DESC) * PKTSIZE_ALIGN); in mt7620_eth_alloc_rings_pkts()
A Ddc2114x.c84 #define NUM_RX_DESC PKTBUFSRX macro
100 struct de4x5_desc rx_ring[NUM_RX_DESC] __aligned(32);
415 for (i = 0; i < NUM_RX_DESC; i++) { in dc21x4x_init_common()
430 priv->rx_ring_size = NUM_RX_DESC; in dc21x4x_init_common()
A Dmtk_eth.c33 #define NUM_RX_DESC 24 macro
35 #define RX_TOTAL_BUF_SIZE (NUM_RX_DESC * PKTSIZE_ALIGN)
1193 memset(priv->rx_ring_noc, 0, NUM_RX_DESC * sizeof(struct pdma_rxdesc)); in mtk_eth_fifo_init()
1211 for (i = 0; i < NUM_RX_DESC; i++) { in mtk_eth_fifo_init()
1224 mtk_pdma_write(priv, RX_MAX_CNT_REG(0), NUM_RX_DESC); in mtk_eth_fifo_init()
1225 mtk_pdma_write(priv, RX_CRX_IDX_REG(0), NUM_RX_DESC - 1); in mtk_eth_fifo_init()
1354 priv->rx_dma_owner_idx0 = (priv->rx_dma_owner_idx0 + 1) % NUM_RX_DESC; in mtk_eth_free_pkt()
1382 noncached_alloc(sizeof(struct pdma_rxdesc) * NUM_RX_DESC, in mtk_eth_probe()
A Dsh_eth.c159 port_info->rx_desc_base + NUM_RX_DESC) in sh_eth_recv_finish()
252 u32 alloc_desc_size = NUM_RX_DESC * sizeof(struct rx_desc_s); in sh_eth_rx_desc_init()
282 memalign(RX_BUF_ALIGNE_SIZE, NUM_RX_DESC * MAX_BUF_SIZE); in sh_eth_rx_desc_init()
294 i < NUM_RX_DESC; cur_rx_desc++, rx_buf += MAX_BUF_SIZE, i++) { in sh_eth_rx_desc_init()
A Dsh_eth.h61 #define NUM_RX_DESC 8 macro

Completed in 29 milliseconds