Home
last modified time | relevance | path

Searched refs:txdes (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/faraday/
Dftmac100.c60 struct ftmac100_txdes txdes[TX_QUEUE_ENTRIES]; member
186 offsetof(struct ftmac100_descs, txdes)); in ftmac100_start_hw()
473 static void ftmac100_txdes_reset(struct ftmac100_txdes *txdes) in ftmac100_txdes_reset() argument
476 txdes->txdes0 = 0; in ftmac100_txdes_reset()
477 txdes->txdes1 &= cpu_to_le32(FTMAC100_TXDES1_EDOTR); in ftmac100_txdes_reset()
478 txdes->txdes2 = 0; in ftmac100_txdes_reset()
479 txdes->txdes3 = 0; in ftmac100_txdes_reset()
482 static bool ftmac100_txdes_owned_by_dma(struct ftmac100_txdes *txdes) in ftmac100_txdes_owned_by_dma() argument
484 return txdes->txdes0 & cpu_to_le32(FTMAC100_TXDES0_TXDMA_OWN); in ftmac100_txdes_owned_by_dma()
487 static void ftmac100_txdes_set_dma_own(struct ftmac100_txdes *txdes) in ftmac100_txdes_set_dma_own() argument
[all …]
Dftgmac100.c81 struct ftgmac100_txdes *txdes; member
625 struct ftgmac100_txdes *txdes, in ftgmac100_free_tx_packet() argument
628 dma_addr_t map = le32_to_cpu(txdes->txdes3); in ftgmac100_free_tx_packet()
648 struct ftgmac100_txdes *txdes; in ftgmac100_tx_complete_packet() local
654 txdes = &priv->txdes[pointer]; in ftgmac100_tx_complete_packet()
656 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_tx_complete_packet()
663 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_tx_complete_packet()
664 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_tx_complete_packet()
719 struct ftgmac100_txdes *txdes, *first; in ftgmac100_hard_start_xmit() local
755 txdes = first = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
[all …]