Searched refs:RTL818X_TX_RING_SIZE (Results 1 – 2 of 2) sorted by relevance
120 unsigned int count = RTL818X_TX_RING_SIZE; in rtl818x_handle_tx()140 priv->tx_cons = (priv->tx_cons + 1) % RTL818X_TX_RING_SIZE; in rtl818x_handle_tx()205 priv->tx_prod = (priv->tx_prod + 1) % RTL818X_TX_RING_SIZE; in rtl818x_tx()376 priv->tx_ring = malloc_dma(sizeof(*priv->tx_ring) * RTL818X_TX_RING_SIZE, in rtl818x_init_tx_ring()384 memset(priv->tx_ring, 0, sizeof(*priv->tx_ring) * RTL818X_TX_RING_SIZE); in rtl818x_init_tx_ring()387 for (i = 0; i < RTL818X_TX_RING_SIZE; i++) in rtl818x_init_tx_ring()389 ((i + 1) % RTL818X_TX_RING_SIZE) * sizeof(*priv->tx_ring)); in rtl818x_init_tx_ring()399 for (i = 0; i < RTL818X_TX_RING_SIZE; i++) { in rtl818x_free_tx_ring()405 free_dma(priv->tx_ring, sizeof(*priv->tx_ring) * RTL818X_TX_RING_SIZE); in rtl818x_free_tx_ring()
218 #define RTL818X_TX_RING_SIZE 8 /* nor this [but 2^n is very slightly faster] */ macro298 struct io_buffer *tx_buf[RTL818X_TX_RING_SIZE];