Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/faraday/
H A Dftmac100.c46 struct ftmac100_txdes txdes[TX_QUEUE_ENTRIES]; member
172 offsetof(struct ftmac100_descs, txdes)); in ftmac100_start_hw()
459 static void ftmac100_txdes_reset(struct ftmac100_txdes *txdes) in ftmac100_txdes_reset() argument
462 txdes->txdes0 = 0; in ftmac100_txdes_reset()
463 txdes->txdes1 &= cpu_to_le32(FTMAC100_TXDES1_EDOTR); in ftmac100_txdes_reset()
464 txdes->txdes2 = 0; in ftmac100_txdes_reset()
465 txdes->txdes3 = 0; in ftmac100_txdes_reset()
468 static bool ftmac100_txdes_owned_by_dma(struct ftmac100_txdes *txdes) in ftmac100_txdes_owned_by_dma() argument
470 return txdes->txdes0 & cpu_to_le32(FTMAC100_TXDES0_TXDMA_OWN); in ftmac100_txdes_owned_by_dma()
473 static void ftmac100_txdes_set_dma_own(struct ftmac100_txdes *txdes) in ftmac100_txdes_set_dma_own() argument
[all …]
H A Dftgmac100.c68 struct ftgmac100_txdes *txdes; member
615 struct ftgmac100_txdes *txdes, in ftgmac100_free_tx_packet() argument
618 dma_addr_t map = le32_to_cpu(txdes->txdes3); in ftgmac100_free_tx_packet()
638 struct ftgmac100_txdes *txdes; in ftgmac100_tx_complete_packet() local
644 txdes = &priv->txdes[pointer]; in ftgmac100_tx_complete_packet()
646 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_tx_complete_packet()
653 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_tx_complete_packet()
654 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_tx_complete_packet()
709 struct ftgmac100_txdes *txdes, *first; in ftgmac100_hard_start_xmit() local
757 txdes = first = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
[all …]
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dftgmac100.c34 struct ftgmac100_txdes *txdes; member
370 struct ftgmac100_txdes *txdes; in ftgmac100_init() local
378 if (!priv->txdes) { in ftgmac100_init()
379 txdes = dma_alloc_coherent( in ftgmac100_init()
380 sizeof(*txdes) * PKTBUFSTX, &priv->txdes_dma); in ftgmac100_init()
381 if (!txdes) in ftgmac100_init()
383 memset(txdes, 0, sizeof(*txdes) * PKTBUFSTX); in ftgmac100_init()
384 priv->txdes = txdes; in ftgmac100_init()
386 txdes = priv->txdes; in ftgmac100_init()
408 txdes[PKTBUFSTX - 1].txdes0 = FTGMAC100_TXDES0_EDOTR; in ftgmac100_init()
[all …]
H A Dftmac100.c24 struct ftmac100_txdes txdes[1]; member
78 struct ftmac100_txdes *txdes = priv->txdes; in _ftmac100_init() local
99 txdes[0].txdes1 = FTMAC100_TXDES1_EDOTR; in _ftmac100_init()
111 writel ((unsigned int)txdes, &ftmac100->txr_badr); in _ftmac100_init()
185 struct ftmac100_txdes *curr_des = priv->txdes; in _ftmac100_send()