Home
last modified time | relevance | path

Searched refs:rxdes0 (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/net/
H A Dftmac100.c109 rxdes[i].rxdes0 = FTMAC100_RXDES0_RXDMA_OWN; in _ftmac100_init()
148 curr_des->rxdes0 |= FTMAC100_RXDES0_RXDMA_OWN; in _ftmac100_free_pkt()
162 if (curr_des->rxdes0 & FTMAC100_RXDES0_RXDMA_OWN) in __ftmac100_recv()
165 if (curr_des->rxdes0 & (FTMAC100_RXDES0_RX_ERR | in __ftmac100_recv()
173 rxlen = FTMAC100_RXDES0_RFL (curr_des->rxdes0); in __ftmac100_recv()
H A Dftgmac100.c333 priv->rxdes[i].rxdes0 = 0; in ftgmac100_start()
335 priv->rxdes[PKTBUFSRX - 1].rxdes0 = priv->rxdes0_edorr_mask; in ftgmac100_start()
405 curr_des->rxdes0 &= ~FTGMAC100_RXDES0_RXPKT_RDY; in ftgmac100_free_pkt()
430 if (!(curr_des->rxdes0 & FTGMAC100_RXDES0_RXPKT_RDY)) in ftgmac100_recv()
433 if (curr_des->rxdes0 & (FTGMAC100_RXDES0_RX_ERR | in ftgmac100_recv()
441 rxlen = FTGMAC100_RXDES0_VDBC(curr_des->rxdes0); in ftgmac100_recv()
H A Dftgmac100.h218 unsigned int rxdes0; member
225 unsigned int rxdes0; member
H A Dftmac100.h120 unsigned int rxdes0; member
/openbmc/linux/drivers/net/ethernet/faraday/
H A Dftmac100.c235 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_FRS); in ftmac100_rxdes_first_segment()
240 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_LRS); in ftmac100_rxdes_last_segment()
245 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RXDMA_OWN); in ftmac100_rxdes_owned_by_dma()
251 rxdes->rxdes0 = cpu_to_le32(FTMAC100_RXDES0_RXDMA_OWN); in ftmac100_rxdes_set_dma_own()
256 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RX_ERR); in ftmac100_rxdes_rx_error()
261 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_CRC_ERR); in ftmac100_rxdes_crc_error()
266 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RUNT); in ftmac100_rxdes_runt()
271 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RX_ODD_NB); in ftmac100_rxdes_odd_nibble()
276 return le32_to_cpu(rxdes->rxdes0) & FTMAC100_RXDES0_RFL; in ftmac100_rxdes_frame_length()
281 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_MULTICAST); in ftmac100_rxdes_multicast()
H A Dftmac100.h146 __le32 rxdes0; member
H A Dftgmac100.c425 rxdes->rxdes0 = cpu_to_le32(priv->rxdes0_edorr_mask); in ftgmac100_alloc_rx_buf()
427 rxdes->rxdes0 = 0; in ftgmac100_alloc_rx_buf()
468 status = le32_to_cpu(rxdes->rxdes0); in ftgmac100_rx_packet()
577 rxdes->rxdes0 = cpu_to_le32(status & priv->rxdes0_edorr_mask); in ftgmac100_rx_packet()
978 rxdes->rxdes0 = 0; in ftgmac100_init_rings()
982 rxdes->rxdes0 |= cpu_to_le32(priv->rxdes0_edorr_mask); in ftgmac100_init_rings()
1224 return !!(rxdes->rxdes0 & cpu_to_le32(FTGMAC100_RXDES0_RXPKT_RDY)); in ftgmac100_check_rx()
H A Dftgmac100.h232 __le32 rxdes0; /* Control & status bits */ member