Lines Matching refs:txq
120 struct hisi_femac_queue txq; member
147 dma_addr = priv->txq.dma_phys[pos]; in hisi_femac_tx_dma_unmap()
155 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_xmit_reclaim() local
163 skb = txq->skb[txq->tail]; in hisi_femac_xmit_reclaim()
169 hisi_femac_tx_dma_unmap(priv, skb, txq->tail); in hisi_femac_xmit_reclaim()
177 txq->skb[txq->tail] = NULL; in hisi_femac_xmit_reclaim()
178 txq->tail = (txq->tail + 1) % txq->num; in hisi_femac_xmit_reclaim()
372 ret = hisi_femac_init_queue(priv->dev, &priv->txq, TXQ_NUM); in hisi_femac_init_tx_and_rx_queues()
387 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_free_skb_rings() local
412 pos = txq->tail; in hisi_femac_free_skb_rings()
413 while (pos != txq->head) { in hisi_femac_free_skb_rings()
414 skb = txq->skb[pos]; in hisi_femac_free_skb_rings()
417 pos, txq->head); in hisi_femac_free_skb_rings()
422 txq->skb[pos] = NULL; in hisi_femac_free_skb_rings()
423 pos = (pos + 1) % txq->num; in hisi_femac_free_skb_rings()
425 txq->tail = pos; in hisi_femac_free_skb_rings()
503 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_net_xmit() local
517 if (unlikely(!CIRC_SPACE(txq->head, txq->tail, in hisi_femac_net_xmit()
518 txq->num))) { in hisi_femac_net_xmit()
533 txq->dma_phys[txq->head] = addr; in hisi_femac_net_xmit()
535 txq->skb[txq->head] = skb; in hisi_femac_net_xmit()
536 txq->head = (txq->head + 1) % txq->num; in hisi_femac_net_xmit()