Lines Matching refs:xgmac_dma_desc
204 struct xgmac_dma_desc { struct
214 static inline void desc_set_buf_len(struct xgmac_dma_desc *p, u32 buf_sz) in desc_set_buf_len() argument
223 static inline int desc_get_buf_len(struct xgmac_dma_desc *p) in desc_get_buf_len()
230 static inline void desc_init_rx_desc(struct xgmac_dma_desc *p, int ring_size, in desc_init_rx_desc()
233 struct xgmac_dma_desc *end = p + ring_size - 1; in desc_init_rx_desc()
243 static inline void desc_init_tx_desc(struct xgmac_dma_desc *p, u32 ring_size) in desc_init_tx_desc()
249 static inline int desc_get_owner(struct xgmac_dma_desc *p) in desc_get_owner()
254 static inline void desc_set_rx_owner(struct xgmac_dma_desc *p) in desc_set_rx_owner()
260 static inline void desc_set_tx_owner(struct xgmac_dma_desc *p, u32 flags) in desc_set_tx_owner()
268 static inline void *desc_get_buf_addr(struct xgmac_dma_desc *p) in desc_get_buf_addr()
273 static inline void desc_set_buf_addr(struct xgmac_dma_desc *p, in desc_set_buf_addr()
281 static inline void desc_set_buf_addr_and_size(struct xgmac_dma_desc *p, in desc_set_buf_addr_and_size()
288 static inline int desc_get_rx_frame_len(struct xgmac_dma_desc *p) in desc_get_rx_frame_len()
299 struct xgmac_dma_desc rx_chain[RX_NUM_DESC];
300 struct xgmac_dma_desc tx_chain[TX_NUM_DESC];
316 struct xgmac_dma_desc *rxdesc = priv->rx_chain; in init_rx_desc()
431 struct xgmac_dma_desc *txdesc = &priv->tx_chain[currdesc]; in xgmac_tx()
459 struct xgmac_dma_desc *rxdesc = &priv->rx_chain[currdesc]; in xgmac_rx()