Home
last modified time | relevance | path

Searched refs:rxdes (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/faraday/
Dftmac100.c45 struct ftmac100_rxdes rxdes[RX_QUEUE_ENTRIES]; member
72 struct ftmac100_rxdes *rxdes, gfp_t gfp);
169 offsetof(struct ftmac100_descs, rxdes)); in ftmac100_start_hw()
190 static bool ftmac100_rxdes_first_segment(struct ftmac100_rxdes *rxdes) in ftmac100_rxdes_first_segment() argument
192 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_FRS); in ftmac100_rxdes_first_segment()
195 static bool ftmac100_rxdes_last_segment(struct ftmac100_rxdes *rxdes) in ftmac100_rxdes_last_segment() argument
197 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_LRS); in ftmac100_rxdes_last_segment()
200 static bool ftmac100_rxdes_owned_by_dma(struct ftmac100_rxdes *rxdes) in ftmac100_rxdes_owned_by_dma() argument
202 return rxdes->rxdes0 & cpu_to_le32(FTMAC100_RXDES0_RXDMA_OWN); in ftmac100_rxdes_owned_by_dma()
205 static void ftmac100_rxdes_set_dma_own(struct ftmac100_rxdes *rxdes) in ftmac100_rxdes_set_dma_own() argument
[all …]
Dftgmac100.c60 struct ftgmac100_rxdes *rxdes; member
385 struct ftgmac100_rxdes *rxdes, gfp_t gfp) in ftgmac100_alloc_rx_buf() argument
415 rxdes->rxdes3 = cpu_to_le32(map); in ftgmac100_alloc_rx_buf()
422 rxdes->rxdes0 = cpu_to_le32(priv->rxdes0_edorr_mask); in ftgmac100_alloc_rx_buf()
424 rxdes->rxdes0 = 0; in ftgmac100_alloc_rx_buf()
454 struct ftgmac100_rxdes *rxdes; in ftgmac100_rx_packet() local
462 rxdes = &priv->rxdes[pointer]; in ftgmac100_rx_packet()
465 status = le32_to_cpu(rxdes->rxdes0); in ftgmac100_rx_packet()
481 csum_vlan = le32_to_cpu(rxdes->rxdes1); in ftgmac100_rx_packet()
507 ftgmac100_alloc_rx_buf(priv, pointer, rxdes, GFP_ATOMIC); in ftgmac100_rx_packet()
[all …]