Searched refs:tx_rsize (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c391 * @tx_rsize: ring size
395 struct sxgbe_tx_queue *tx_ring, int tx_rsize) init_tx_ring()
405 tx_rsize * sizeof(struct sxgbe_tx_norm_desc), init_tx_ring()
411 tx_ring->tx_skbuff_dma = devm_kcalloc(dev, tx_rsize, init_tx_ring()
416 tx_ring->tx_skbuff = devm_kcalloc(dev, tx_rsize, init_tx_ring()
435 dma_free_coherent(dev, tx_rsize * sizeof(struct sxgbe_tx_norm_desc), init_tx_ring()
546 * @tx_rsize: ring size
550 int tx_rsize) free_tx_ring()
552 dma_free_coherent(dev, tx_rsize * sizeof(struct sxgbe_tx_norm_desc), free_tx_ring()
567 int tx_rsize = priv->dma_tx_size; init_dma_desc_rings() local
573 priv->txq[queue_num], tx_rsize); SXGBE_FOR_EACH_QUEUE()
606 free_tx_ring(priv->device, priv->txq[queue_num], tx_rsize);
619 int tx_rsize = priv->dma_tx_size; tx_free_ring_skbufs() local
621 for (dma_desc = 0; dma_desc < tx_rsize; dma_desc++) { tx_free_ring_skbufs()
650 int tx_rsize = priv->dma_tx_size; free_dma_desc_resources() local
658 free_tx_ring(priv->device, priv->txq[queue_num], tx_rsize); SXGBE_FOR_EACH_QUEUE()
740 unsigned int tx_rsize = priv->dma_tx_size; sxgbe_tx_queue_clean() local
750 unsigned int entry = tqueue->dirty_tx % tx_rsize; sxgbe_tx_queue_clean()
784 sxgbe_tx_avail(tqueue, tx_rsize) > SXGBE_TX_THRESH(priv))) { sxgbe_tx_queue_clean()
787 sxgbe_tx_avail(tqueue, tx_rsize) > SXGBE_TX_THRESH(priv)) { sxgbe_tx_queue_clean()
1287 unsigned int tx_rsize = priv->dma_tx_size; sxgbe_xmit() local
1314 if (unlikely(sxgbe_tx_avail(tqueue, tx_rsize) < nr_frags + 1)) { sxgbe_xmit()
1325 entry = tqueue->cur_tx % tx_rsize; sxgbe_xmit()
1350 entry = (++tqueue->cur_tx) % tx_rsize; sxgbe_xmit()
1372 entry = (++tqueue->cur_tx) % tx_rsize; sxgbe_xmit()
1416 __func__, tqueue->cur_tx % tx_rsize, sxgbe_xmit()
1417 tqueue->dirty_tx % tx_rsize, entry, sxgbe_xmit()
1420 if (unlikely(sxgbe_tx_avail(tqueue, tx_rsize) <= (MAX_SKB_FRAGS + 1))) { sxgbe_xmit()
394 init_tx_ring(struct device *dev, u8 queue_no, struct sxgbe_tx_queue *tx_ring, int tx_rsize) init_tx_ring() argument
549 free_tx_ring(struct device *dev, struct sxgbe_tx_queue *tx_ring, int tx_rsize) free_tx_ring() argument

Completed in 74 milliseconds