Lines Matching refs:tx_ring

21 mcp251xfd_tx_obj *mcp251xfd_get_tx_obj_next(struct mcp251xfd_tx_ring *tx_ring)  in mcp251xfd_get_tx_obj_next()  argument
25 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_get_tx_obj_next()
27 return &tx_ring->obj[tx_head]; in mcp251xfd_get_tx_obj_next()
135 struct mcp251xfd_tx_ring *tx_ring, in mcp251xfd_tx_failure_drop() argument
143 tx_ring->head--; in mcp251xfd_tx_failure_drop()
145 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_tx_failure_drop()
159 struct mcp251xfd_tx_ring *tx_ring = priv->tx; in mcp251xfd_tx_obj_write_sync() local
164 mcp251xfd_tx_failure_drop(priv, tx_ring, err); in mcp251xfd_tx_obj_write_sync()
174 struct mcp251xfd_tx_ring *tx_ring) in mcp251xfd_tx_busy() argument
176 if (mcp251xfd_get_tx_free(tx_ring) > 0) in mcp251xfd_tx_busy()
184 if (mcp251xfd_get_tx_free(tx_ring) == 0) { in mcp251xfd_tx_busy()
187 tx_ring->head, tx_ring->tail, in mcp251xfd_tx_busy()
188 tx_ring->head - tx_ring->tail); in mcp251xfd_tx_busy()
207 struct mcp251xfd_tx_ring *tx_ring = priv->tx; in mcp251xfd_start_xmit() local
216 if (mcp251xfd_tx_busy(priv, tx_ring) || in mcp251xfd_start_xmit()
220 tx_obj = mcp251xfd_get_tx_obj_next(tx_ring); in mcp251xfd_start_xmit()
221 mcp251xfd_tx_obj_from_skb(priv, tx_obj, skb, tx_ring->head); in mcp251xfd_start_xmit()
224 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_start_xmit()
225 tx_ring->head++; in mcp251xfd_start_xmit()
226 if (mcp251xfd_get_tx_free(tx_ring) == 0) in mcp251xfd_start_xmit()
240 mcp251xfd_tx_failure_drop(priv, tx_ring, err); in mcp251xfd_start_xmit()