Lines Matching refs:txdes
81 struct ftgmac100_txdes txdes[PKTBUFSTX] __aligned(ARCH_DMA_MINALIGN);
336 priv->txdes[i].txdes3 = 0; in ftgmac100_start()
337 priv->txdes[i].txdes0 = 0; in ftgmac100_start()
339 priv->txdes[PKTBUFSTX - 1].txdes0 = priv->txdes0_edotr_mask; in ftgmac100_start()
341 start = ((ulong)&priv->txdes[0]) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_start()
342 end = start + roundup(sizeof(priv->txdes), ARCH_DMA_MINALIGN); in ftgmac100_start()
356 writel((u32)priv->txdes, &ftgmac100->txr_badr); in ftgmac100_start()
457 const struct ftgmac100_txdes *txdes = desc; in ftgmac100_read_txdesc() local
458 ulong des_start = ((ulong)txdes) & ~(ARCH_DMA_MINALIGN - 1); in ftgmac100_read_txdesc()
459 ulong des_end = des_start + roundup(sizeof(*txdes), ARCH_DMA_MINALIGN); in ftgmac100_read_txdesc()
463 return txdes->txdes0; in ftgmac100_read_txdesc()
475 struct ftgmac100_txdes *curr_des = &priv->txdes[priv->tx_index]; in BUILD_WAIT_FOR_BIT()