Lines Matching refs:xgmac_dma_desc
205 struct xgmac_dma_desc { struct
215 static inline void desc_set_buf_len(struct xgmac_dma_desc *p, u32 buf_sz) in desc_set_buf_len() argument
224 static inline int desc_get_buf_len(struct xgmac_dma_desc *p) in desc_get_buf_len()
231 static inline void desc_init_rx_desc(struct xgmac_dma_desc *p, int ring_size, in desc_init_rx_desc()
234 struct xgmac_dma_desc *end = p + ring_size - 1; in desc_init_rx_desc()
244 static inline void desc_init_tx_desc(struct xgmac_dma_desc *p, u32 ring_size) in desc_init_tx_desc()
250 static inline int desc_get_owner(struct xgmac_dma_desc *p) in desc_get_owner()
255 static inline void desc_set_rx_owner(struct xgmac_dma_desc *p) in desc_set_rx_owner()
261 static inline void desc_set_tx_owner(struct xgmac_dma_desc *p, u32 flags) in desc_set_tx_owner()
269 static inline void *desc_get_buf_addr(struct xgmac_dma_desc *p) in desc_get_buf_addr()
274 static inline void desc_set_buf_addr(struct xgmac_dma_desc *p, in desc_set_buf_addr()
282 static inline void desc_set_buf_addr_and_size(struct xgmac_dma_desc *p, in desc_set_buf_addr_and_size()
289 static inline int desc_get_rx_frame_len(struct xgmac_dma_desc *p) in desc_get_rx_frame_len()
300 struct xgmac_dma_desc rx_chain[RX_NUM_DESC];
301 struct xgmac_dma_desc tx_chain[TX_NUM_DESC];
317 struct xgmac_dma_desc *rxdesc = priv->rx_chain; in init_rx_desc()
432 struct xgmac_dma_desc *txdesc = &priv->tx_chain[currdesc]; in xgmac_tx()
460 struct xgmac_dma_desc *rxdesc = &priv->rx_chain[currdesc]; in xgmac_rx()