Lines Matching refs:txq
132 struct hisi_femac_queue txq; member
159 dma_addr = priv->txq.dma_phys[pos]; in hisi_femac_tx_dma_unmap()
167 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_xmit_reclaim() local
175 skb = txq->skb[txq->tail]; in hisi_femac_xmit_reclaim()
181 hisi_femac_tx_dma_unmap(priv, skb, txq->tail); in hisi_femac_xmit_reclaim()
189 txq->skb[txq->tail] = NULL; in hisi_femac_xmit_reclaim()
190 txq->tail = (txq->tail + 1) % txq->num; in hisi_femac_xmit_reclaim()
384 ret = hisi_femac_init_queue(priv->dev, &priv->txq, TXQ_NUM); in hisi_femac_init_tx_and_rx_queues()
399 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_free_skb_rings() local
424 pos = txq->tail; in hisi_femac_free_skb_rings()
425 while (pos != txq->head) { in hisi_femac_free_skb_rings()
426 skb = txq->skb[pos]; in hisi_femac_free_skb_rings()
429 pos, txq->head); in hisi_femac_free_skb_rings()
434 txq->skb[pos] = NULL; in hisi_femac_free_skb_rings()
435 pos = (pos + 1) % txq->num; in hisi_femac_free_skb_rings()
437 txq->tail = pos; in hisi_femac_free_skb_rings()
515 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_net_xmit() local
529 if (unlikely(!CIRC_SPACE(txq->head, txq->tail, in hisi_femac_net_xmit()
530 txq->num))) { in hisi_femac_net_xmit()
545 txq->dma_phys[txq->head] = addr; in hisi_femac_net_xmit()
547 txq->skb[txq->head] = skb; in hisi_femac_net_xmit()
548 txq->head = (txq->head + 1) % txq->num; in hisi_femac_net_xmit()