Lines Matching refs:desc_data

680 	struct xlgmac_desc_data *desc_data;  in xlgmac_tx_start_xmit()  local
688 desc_data = XLGMAC_GET_DESC_DATA(ring, ring->cur); in xlgmac_tx_start_xmit()
689 writel(lower_32_bits(desc_data->dma_desc_addr), in xlgmac_tx_start_xmit()
707 struct xlgmac_desc_data *desc_data; in xlgmac_dev_xmit() local
758 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
759 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
822 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); 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()
835 desc_data->skb_dma_len); in xlgmac_dev_xmit()
922 desc_data = XLGMAC_GET_DESC_DATA(ring, cur_index); in xlgmac_dev_xmit()
923 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
927 cpu_to_le32(lower_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
929 cpu_to_le32(upper_32_bits(desc_data->skb_dma)); in xlgmac_dev_xmit()
936 desc_data->skb_dma_len); in xlgmac_dev_xmit()
973 desc_data->tx.packets = pkt_info->tx_packets; in xlgmac_dev_xmit()
974 desc_data->tx.bytes = pkt_info->tx_bytes; in xlgmac_dev_xmit()
983 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_dev_xmit()
984 dma_desc = desc_data->dma_desc; in xlgmac_dev_xmit()
1037 static void xlgmac_tx_desc_reset(struct xlgmac_desc_data *desc_data) in xlgmac_tx_desc_reset() argument
1039 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_tx_desc_reset()
1059 struct xlgmac_desc_data *desc_data; in xlgmac_tx_desc_init() local
1065 desc_data = XLGMAC_GET_DESC_DATA(ring, i); in xlgmac_tx_desc_init()
1068 xlgmac_tx_desc_reset(desc_data); in xlgmac_tx_desc_init()
1075 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_tx_desc_init()
1076 writel(upper_32_bits(desc_data->dma_desc_addr), in xlgmac_tx_desc_init()
1078 writel(lower_32_bits(desc_data->dma_desc_addr), in xlgmac_tx_desc_init()
1083 struct xlgmac_desc_data *desc_data, in xlgmac_rx_desc_reset() argument
1086 struct xlgmac_dma_desc *dma_desc = desc_data->dma_desc; in xlgmac_rx_desc_reset()
1110 hdr_dma = desc_data->rx.hdr.dma_base + desc_data->rx.hdr.dma_off; in xlgmac_rx_desc_reset()
1111 buf_dma = desc_data->rx.buf.dma_base + desc_data->rx.buf.dma_off; in xlgmac_rx_desc_reset()
1144 struct xlgmac_desc_data *desc_data; in xlgmac_rx_desc_init() local
1149 desc_data = XLGMAC_GET_DESC_DATA(ring, i); in xlgmac_rx_desc_init()
1152 xlgmac_rx_desc_reset(pdata, desc_data, i); in xlgmac_rx_desc_init()
1159 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index); in xlgmac_rx_desc_init()
1160 writel(upper_32_bits(desc_data->dma_desc_addr), in xlgmac_rx_desc_init()
1162 writel(lower_32_bits(desc_data->dma_desc_addr), in xlgmac_rx_desc_init()
1166 desc_data = XLGMAC_GET_DESC_DATA(ring, start_index + in xlgmac_rx_desc_init()
1168 writel(lower_32_bits(desc_data->dma_desc_addr), in xlgmac_rx_desc_init()
2643 struct xlgmac_desc_data *desc_data; in xlgmac_dev_read() local
2648 desc_data = XLGMAC_GET_DESC_DATA(ring, ring->cur); in xlgmac_dev_read()
2649 dma_desc = desc_data->dma_desc; in xlgmac_dev_read()
2704 desc_data->rx.hdr_len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc2, in xlgmac_dev_read()
2707 if (desc_data->rx.hdr_len) in xlgmac_dev_read()
2739 desc_data->rx.len = XLGMAC_GET_REG_BITS_LE(dma_desc->desc3, in xlgmac_dev_read()