Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/net/
H A Dmt7628-eth.c123 #define NUM_RX_DESC 256 macro
147 u8 *rx_buf[NUM_RX_DESC];
454 idx = (idx + 1) % NUM_RX_DESC; in mt7628_eth_free_pkt()
477 for (i = 0; i < NUM_RX_DESC; i++) { in mt7628_eth_start()
504 writel(NUM_RX_DESC, base + RX_MAX_CNT0); in mt7628_eth_start()
510 writel(NUM_RX_DESC - 1, base + RX_CALC_IDX0); in mt7628_eth_start()
596 sizeof(*priv->rx_ring) * NUM_RX_DESC)); in mt7628_eth_probe()
598 for (i = 0; i < NUM_RX_DESC; i++) in mt7628_eth_probe()
H A Drtl8169.c87 #define NUM_RX_DESC CONFIG_SYS_RX_ETH_BUFFER macro
89 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers */ macro
319 DEFINE_ALIGN_BUFFER(u8, rxb, NUM_RX_DESC * RX_BUF_SIZE, RTL8169_ALIGN);
331 unsigned char *RxBufferRing[NUM_RX_DESC]; /* Index of Rx Buffer array */
539 if (cur_rx == NUM_RX_DESC - 1) in rtl_recv_common()
565 cur_rx = (cur_rx + 1) % NUM_RX_DESC; in rtl_recv_common()
815 memset(tpc->RxDescArray, 0x0, NUM_RX_DESC * sizeof(struct RxDesc)); in rtl8169_init_ring()
821 for (i = 0; i < NUM_RX_DESC; i++) { in rtl8169_init_ring()
822 if (i == (NUM_RX_DESC - 1)) in rtl8169_init_ring()
922 for (i = 0; i < NUM_RX_DESC; i++) { in rtl_halt_common()
[all …]
H A Deepro100.c191 #define NUM_RX_DESC PKTBUFSRX macro
196 static struct RxFD rx_ring[NUM_RX_DESC]; /* RX descriptor ring */
690 rx_prev = (rx_next + NUM_RX_DESC - 1) % NUM_RX_DESC; in eepro100_recv()
695 rx_next = (rx_next + 1) % NUM_RX_DESC; in eepro100_recv()
874 for (i = 0; i < NUM_RX_DESC; i++) { in init_rx_ring()
877 (i == NUM_RX_DESC - 1) ? cpu_to_le16 (RFD_CONTROL_S) : 0; in init_rx_ring()
880 ((u32) & rx_ring[(i + 1) % NUM_RX_DESC])); in init_rx_ring()
H A Dns8382x.c66 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers. */ macro
244 static BufferDesc rxd[NUM_RX_DESC] __attribute__ ((aligned(8)));
246 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]
645 for (i = 0; i < NUM_RX_DESC; i++) { in ns8382x_init_rxd()
648 NUM_RX_DESC) ? (u32) & rxd[i + in ns8382x_init_rxd()
825 if (++cur_rx == NUM_RX_DESC) in ns8382x_poll()
H A Dnatsemi.c68 #define NUM_RX_DESC 4 /* Number of Rx descriptor registers. */ macro
219 static BufferDesc rxd[NUM_RX_DESC] __attribute__ ((aligned(4)));
222 static unsigned char rxb[NUM_RX_DESC * RX_BUF_SIZE]
686 for (i = 0; i < NUM_RX_DESC; i++) { in natsemi_init_rxd()
689 NUM_RX_DESC) ? (u32) & rxd[i + in natsemi_init_rxd()
852 if (++cur_rx == NUM_RX_DESC) in natsemi_poll()
H A Ddc2114x.c115 #define NUM_RX_DESC PKTBUFSRX macro
134 static struct de4x5_desc rx_ring[NUM_RX_DESC] __attribute__ ((aligned(32))); /* RX descriptor ring …
330 for (i = 0; i < NUM_RX_DESC; i++) { in dc21x4x_init()
337 phys_to_bus((u32)&rx_ring[(i + 1) % NUM_RX_DESC])); in dc21x4x_init()
355 rxRingSize = NUM_RX_DESC; in dc21x4x_init()
H A Dmtk_eth.c27 #define NUM_RX_DESC 24 macro
29 #define RX_TOTAL_BUF_SIZE (NUM_RX_DESC * PKTSIZE_ALIGN)
827 memset(priv->rx_ring_noc, 0, NUM_RX_DESC * sizeof(struct pdma_rxdesc)); in mtk_eth_fifo_init()
844 for (i = 0; i < NUM_RX_DESC; i++) { in mtk_eth_fifo_init()
857 mtk_pdma_write(priv, RX_MAX_CNT_REG(0), NUM_RX_DESC); in mtk_eth_fifo_init()
858 mtk_pdma_write(priv, RX_CRX_IDX_REG(0), NUM_RX_DESC - 1); in mtk_eth_fifo_init()
987 priv->rx_dma_owner_idx0 = (priv->rx_dma_owner_idx0 + 1) % NUM_RX_DESC; in mtk_eth_free_pkt()
1015 noncached_alloc(sizeof(struct pdma_rxdesc) * NUM_RX_DESC, in mtk_eth_probe()
H A Dsh_eth.c153 port_info->rx_desc_base + NUM_RX_DESC) in sh_eth_recv_finish()
246 u32 alloc_desc_size = NUM_RX_DESC * sizeof(struct rx_desc_s); in sh_eth_rx_desc_init()
276 memalign(RX_BUF_ALIGNE_SIZE, NUM_RX_DESC * MAX_BUF_SIZE); in sh_eth_rx_desc_init()
288 i < NUM_RX_DESC; cur_rx_desc++, rx_buf += MAX_BUF_SIZE, i++) { in sh_eth_rx_desc_init()
H A Dsh_eth.h65 #define NUM_RX_DESC 8 macro
/openbmc/linux/drivers/net/ethernet/sis/
H A Dsis900.h324 #define NUM_RX_DESC 16 /* Number of Rx descriptor registers. */ macro
326 #define RX_TOTAL_SIZE NUM_RX_DESC*sizeof(BufferDesc)
H A Dsis190.c51 #define NUM_RX_DESC 64 /* [8..8192] */ macro
53 #define RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
279 struct sk_buff *Rx_skbuff[NUM_RX_DESC];
518 unsigned int i = cur % NUM_RX_DESC; in sis190_rx_fill()
581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt()
585 unsigned int entry = cur_rx % NUM_RX_DESC; in sis190_rx_interrupt()
646 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt()
802 for (i = 0; i < NUM_RX_DESC; i++) { in sis190_rx_clear()
821 memset(tp->Rx_skbuff, 0x0, NUM_RX_DESC * sizeof(struct sk_buff *)); in sis190_init_ring()
823 if (sis190_rx_fill(tp, dev, 0, NUM_RX_DESC) != NUM_RX_DESC) in sis190_init_ring()
[all …]
H A Dsis900.c184 struct sk_buff *rx_skbuff[NUM_RX_DESC];
1175 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1179 ((i+1)%NUM_RX_DESC)*sizeof(BufferDesc); in sis900_init_rx_ring()
1185 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_init_rx_ring()
1208 sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); in sis900_init_rx_ring()
1744 unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1752 rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; in sis900_rx()
1850 entry = sis_priv->cur_rx % NUM_RX_DESC; in sis900_rx()
1859 entry = sis_priv->dirty_rx % NUM_RX_DESC; in sis900_rx()
1991 for (i = 0; i < NUM_RX_DESC; i++) { in sis900_close()
/openbmc/linux/drivers/net/ethernet/realtek/
H A Dr8169_main.c69 #define NUM_RX_DESC 256 /* Number of Rx descriptor registers */ macro
71 #define R8169_RX_RING_BYTES (NUM_RX_DESC * sizeof(struct RxDesc))
636 struct page *Rx_databuff[NUM_RX_DESC]; /* Rx data buffers */
2004 data->rx_max_pending = NUM_RX_DESC; in rtl8169_get_ringparam()
2005 data->rx_pending = NUM_RX_DESC; in rtl8169_get_ringparam()
3909 for (i = 0; i < NUM_RX_DESC && tp->Rx_databuff[i]; i++) { in rtl8169_rx_clear()
3924 for (i = 0; i < NUM_RX_DESC; i++) { in rtl8169_rx_fill()
3936 tp->RxDescArray[NUM_RX_DESC - 1].opts1 |= cpu_to_le32(RingEnd); in rtl8169_rx_fill()
4033 for (i = 0; i < NUM_RX_DESC; i++) in rtl_reset_work()
4497 unsigned int pkt_size, entry = tp->cur_rx % NUM_RX_DESC; in rtl_rx()