Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/faraday/
H A Dftmac100.c48 struct ftmac100_txdes txdes[TX_QUEUE_ENTRIES]; member
209 offsetof(struct ftmac100_descs, txdes)); in ftmac100_start_hw()
497 static void ftmac100_txdes_reset(struct ftmac100_txdes *txdes) in ftmac100_txdes_reset() argument
500 txdes->txdes0 = 0; in ftmac100_txdes_reset()
501 txdes->txdes1 &= cpu_to_le32(FTMAC100_TXDES1_EDOTR); in ftmac100_txdes_reset()
502 txdes->txdes2 = 0; in ftmac100_txdes_reset()
503 txdes->txdes3 = 0; in ftmac100_txdes_reset()
506 static bool ftmac100_txdes_owned_by_dma(struct ftmac100_txdes *txdes) in ftmac100_txdes_owned_by_dma() argument
508 return txdes->txdes0 & cpu_to_le32(FTMAC100_TXDES0_TXDMA_OWN); in ftmac100_txdes_owned_by_dma()
511 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
618 struct ftgmac100_txdes *txdes, in ftgmac100_free_tx_packet() argument
621 dma_addr_t map = le32_to_cpu(txdes->txdes3); in ftgmac100_free_tx_packet()
641 struct ftgmac100_txdes *txdes; in ftgmac100_tx_complete_packet() local
647 txdes = &priv->txdes[pointer]; in ftgmac100_tx_complete_packet()
649 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_tx_complete_packet()
656 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_tx_complete_packet()
657 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_tx_complete_packet()
717 struct ftgmac100_txdes *txdes, *first; in ftgmac100_hard_start_xmit() local
765 txdes = first = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
[all …]
/openbmc/u-boot/drivers/net/
H A Dftgmac100.c78 struct ftgmac100_txdes txdes[PKTBUFSTX]; member
322 priv->txdes[i].txdes3 = 0; in ftgmac100_start()
323 priv->txdes[i].txdes0 = 0; in ftgmac100_start()
325 priv->txdes[PKTBUFSTX - 1].txdes0 = priv->txdes0_edotr_mask; in ftgmac100_start()
327 start = (ulong)&priv->txdes[0]; in ftgmac100_start()
328 end = start + roundup(sizeof(priv->txdes), ARCH_DMA_MINALIGN); in ftgmac100_start()
342 writel((u32)priv->txdes, &ftgmac100->txr_badr); in ftgmac100_start()
456 const struct ftgmac100_txdes *txdes = desc; in ftgmac100_read_txdesc() local
457 ulong des_start = (ulong)txdes; in ftgmac100_read_txdesc()
458 ulong des_end = des_start + roundup(sizeof(*txdes), ARCH_DMA_MINALIGN); in ftgmac100_read_txdesc()
[all …]
H A Dftmac100.c23 struct ftmac100_txdes txdes[1]; member
82 struct ftmac100_txdes *txdes = priv->txdes; in _ftmac100_init() local
102 txdes[0].txdes1 = FTMAC100_TXDES1_EDOTR; in _ftmac100_init()
114 writel ((unsigned long)txdes, &ftmac100->txr_badr); in _ftmac100_init()
187 struct ftmac100_txdes *curr_des = priv->txdes; in _ftmac100_send()