Lines Matching refs:dma_desc
29 static int xlgmac_tx_complete(struct xlgmac_dma_desc *dma_desc) in xlgmac_tx_complete() argument
31 return !XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_tx_complete()
708 struct xlgmac_dma_desc *dma_desc; in xlgmac_dev_xmit() local
759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
769 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
770 dma_desc->desc2, in xlgmac_dev_xmit()
776 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
777 dma_desc->desc3, in xlgmac_dev_xmit()
783 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
784 dma_desc->desc3, in xlgmac_dev_xmit()
798 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
799 dma_desc->desc3, in xlgmac_dev_xmit()
805 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
806 dma_desc->desc3, in xlgmac_dev_xmit()
812 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
813 dma_desc->desc3, in xlgmac_dev_xmit()
823 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
827 dma_desc->desc0 = cpu_to_le32(lower_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
828 dma_desc->desc1 = cpu_to_le32(upper_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
831 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
832 dma_desc->desc2, in xlgmac_dev_xmit()
839 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
840 dma_desc->desc2, in xlgmac_dev_xmit()
851 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
852 dma_desc->desc2, in xlgmac_dev_xmit()
858 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
859 dma_desc->desc3, in xlgmac_dev_xmit()
865 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
866 dma_desc->desc3, in xlgmac_dev_xmit()
873 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
874 dma_desc->desc3, in xlgmac_dev_xmit()
881 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
882 dma_desc->desc3, in xlgmac_dev_xmit()
885 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
886 dma_desc->desc3, in xlgmac_dev_xmit()
890 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
891 dma_desc->desc3, in xlgmac_dev_xmit()
899 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
900 dma_desc->desc3, in xlgmac_dev_xmit()
906 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
907 dma_desc->desc3, in xlgmac_dev_xmit()
913 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
914 dma_desc->desc3, in xlgmac_dev_xmit()
923 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
926 dma_desc->desc0 = in xlgmac_dev_xmit()
928 dma_desc->desc1 = in xlgmac_dev_xmit()
932 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
933 dma_desc->desc2, in xlgmac_dev_xmit()
939 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
940 dma_desc->desc3, in xlgmac_dev_xmit()
945 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
946 dma_desc->desc3, in xlgmac_dev_xmit()
952 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
953 dma_desc->desc3, in xlgmac_dev_xmit()
960 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
961 dma_desc->desc3, in xlgmac_dev_xmit()
967 dma_desc->desc2 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
968 dma_desc->desc2, in xlgmac_dev_xmit()
984 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
985 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_dev_xmit()
986 dma_desc->desc3, in xlgmac_dev_xmit()
1011 struct xlgmac_dma_desc *dma_desc) in xlgmac_get_rx_tstamp() argument
1016 tsa = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_get_rx_tstamp()
1019 tsd = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_get_rx_tstamp()
1023 nsec = le32_to_cpu(dma_desc->desc1); in xlgmac_get_rx_tstamp()
1025 nsec |= le32_to_cpu(dma_desc->desc0); in xlgmac_get_rx_tstamp()
1039 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_tx_desc_reset() local
1047 dma_desc->desc0 = 0; in xlgmac_tx_desc_reset()
1048 dma_desc->desc1 = 0; in xlgmac_tx_desc_reset()
1049 dma_desc->desc2 = 0; in xlgmac_tx_desc_reset()
1050 dma_desc->desc3 = 0; in xlgmac_tx_desc_reset()
1086 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_rx_desc_reset() local
1112 dma_desc->desc0 = cpu_to_le32(lower_32_bits(hdr_dma)); in xlgmac_rx_desc_reset()
1113 dma_desc->desc1 = cpu_to_le32(upper_32_bits(hdr_dma)); in xlgmac_rx_desc_reset()
1114 dma_desc->desc2 = cpu_to_le32(lower_32_bits(buf_dma)); in xlgmac_rx_desc_reset()
1115 dma_desc->desc3 = cpu_to_le32(upper_32_bits(buf_dma)); in xlgmac_rx_desc_reset()
1117 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_rx_desc_reset()
1118 dma_desc->desc3, in xlgmac_rx_desc_reset()
1129 dma_desc->desc3 = XLGMAC_SET_REG_BITS_LE( in xlgmac_rx_desc_reset()
1130 dma_desc->desc3, in xlgmac_rx_desc_reset()
1172 static int xlgmac_is_context_desc(struct xlgmac_dma_desc *dma_desc) in xlgmac_is_context_desc() argument
1175 return XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_is_context_desc()
1180 static int xlgmac_is_last_desc(struct xlgmac_dma_desc *dma_desc) in xlgmac_is_last_desc() argument
1183 return XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_is_last_desc()
2644 struct xlgmac_dma_desc *dma_desc; in xlgmac_dev_read() local
2649 dma_desc = desc_data->dma_desc; in xlgmac_dev_read()
2653 if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2664 if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2668 xlgmac_get_rx_tstamp(pkt_info, dma_desc); in xlgmac_dev_read()
2691 if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2701 if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2704 desc_data->rx.hdr_len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc2, in xlgmac_dev_read()
2712 if (XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2721 pkt_info->rss_hash = le32_to_cpu(dma_desc->desc1); in xlgmac_dev_read()
2723 l34t = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2739 desc_data->rx.len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2743 if (!XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2771 err = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2774 etlt = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()
2789 XLGMAC_GET_REG_BITS_LE(dma_desc->desc0, in xlgmac_dev_read()