Lines Matching refs:txdes
78 struct ftgmac100_txdes *txdes; member
628 struct ftgmac100_txdes *txdes, in ftgmac100_free_tx_packet() argument
631 dma_addr_t map = le32_to_cpu(txdes->txdes3); in ftgmac100_free_tx_packet()
651 struct ftgmac100_txdes *txdes; in ftgmac100_tx_complete_packet() local
657 txdes = &priv->txdes[pointer]; in ftgmac100_tx_complete_packet()
659 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_tx_complete_packet()
666 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_tx_complete_packet()
667 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_tx_complete_packet()
727 struct ftgmac100_txdes *txdes, *first; in ftgmac100_hard_start_xmit() local
775 txdes = first = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
787 txdes->txdes3 = cpu_to_le32(map); in ftgmac100_hard_start_xmit()
788 txdes->txdes1 = cpu_to_le32(csum_vlan); in ftgmac100_hard_start_xmit()
807 txdes = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
813 txdes->txdes0 = cpu_to_le32(ctl_stat); in ftgmac100_hard_start_xmit()
814 txdes->txdes1 = 0; in ftgmac100_hard_start_xmit()
815 txdes->txdes3 = cpu_to_le32(map); in ftgmac100_hard_start_xmit()
864 txdes = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
865 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_hard_start_xmit()
866 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_hard_start_xmit()
867 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_hard_start_xmit()
902 struct ftgmac100_txdes *txdes = &priv->txdes[i]; in ftgmac100_free_buffers() local
907 ftgmac100_free_tx_packet(priv, i, skb, txdes, in ftgmac100_free_buffers()
908 le32_to_cpu(txdes->txdes0)); in ftgmac100_free_buffers()
925 if (priv->txdes) in ftgmac100_free_rings()
928 priv->txdes, priv->txdes_dma); in ftgmac100_free_rings()
929 priv->txdes = NULL; in ftgmac100_free_rings()
955 priv->txdes = dma_alloc_coherent(priv->dev, in ftgmac100_alloc_rings()
958 if (!priv->txdes) in ftgmac100_alloc_rings()
975 struct ftgmac100_txdes *txdes = NULL; in ftgmac100_init_rings() local
999 txdes = &priv->txdes[i]; in ftgmac100_init_rings()
1000 txdes->txdes0 = 0; in ftgmac100_init_rings()
1002 txdes->txdes0 |= cpu_to_le32(priv->txdes0_edotr_mask); in ftgmac100_init_rings()