Lines Matching refs:txdes
68 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()
769 txdes->txdes3 = cpu_to_le32(map); in ftgmac100_hard_start_xmit()
770 txdes->txdes1 = cpu_to_le32(csum_vlan); in ftgmac100_hard_start_xmit()
789 txdes = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
795 txdes->txdes0 = cpu_to_le32(ctl_stat); in ftgmac100_hard_start_xmit()
796 txdes->txdes1 = 0; in ftgmac100_hard_start_xmit()
797 txdes->txdes3 = cpu_to_le32(map); in ftgmac100_hard_start_xmit()
841 txdes = &priv->txdes[pointer]; in ftgmac100_hard_start_xmit()
842 ctl_stat = le32_to_cpu(txdes->txdes0); in ftgmac100_hard_start_xmit()
843 ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat); in ftgmac100_hard_start_xmit()
844 txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask); in ftgmac100_hard_start_xmit()
879 struct ftgmac100_txdes *txdes = &priv->txdes[i]; in ftgmac100_free_buffers() local
884 ftgmac100_free_tx_packet(priv, i, skb, txdes, in ftgmac100_free_buffers()
885 le32_to_cpu(txdes->txdes0)); in ftgmac100_free_buffers()
902 if (priv->txdes) in ftgmac100_free_rings()
905 priv->txdes, priv->txdes_dma); in ftgmac100_free_rings()
906 priv->txdes = NULL; in ftgmac100_free_rings()
932 priv->txdes = dma_alloc_coherent(priv->dev, in ftgmac100_alloc_rings()
935 if (!priv->txdes) in ftgmac100_alloc_rings()
952 struct ftgmac100_txdes *txdes = NULL; in ftgmac100_init_rings() local
976 txdes = &priv->txdes[i]; in ftgmac100_init_rings()
977 txdes->txdes0 = 0; in ftgmac100_init_rings()
979 txdes->txdes0 |= cpu_to_le32(priv->txdes0_edotr_mask); in ftgmac100_init_rings()