Lines Matching refs:csr6
129 static u32 dwmac1000_configure_fc(u32 csr6, int rxfifosz) in dwmac1000_configure_fc() argument
131 csr6 &= ~DMA_CONTROL_RFA_MASK; in dwmac1000_configure_fc()
132 csr6 &= ~DMA_CONTROL_RFD_MASK; in dwmac1000_configure_fc()
139 csr6 &= ~DMA_CONTROL_EFC; in dwmac1000_configure_fc()
143 csr6 |= DMA_CONTROL_EFC; in dwmac1000_configure_fc()
144 csr6 |= RFA_FULL_MINUS_1K; in dwmac1000_configure_fc()
145 csr6 |= RFD_FULL_MINUS_2K; in dwmac1000_configure_fc()
147 return csr6; in dwmac1000_configure_fc()
153 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac1000_dma_operation_mode_rx() local
157 csr6 |= DMA_CONTROL_RSF; in dwmac1000_dma_operation_mode_rx()
160 csr6 &= ~DMA_CONTROL_RSF; in dwmac1000_dma_operation_mode_rx()
161 csr6 &= DMA_CONTROL_TC_RX_MASK; in dwmac1000_dma_operation_mode_rx()
163 csr6 |= DMA_CONTROL_RTC_32; in dwmac1000_dma_operation_mode_rx()
165 csr6 |= DMA_CONTROL_RTC_64; in dwmac1000_dma_operation_mode_rx()
167 csr6 |= DMA_CONTROL_RTC_96; in dwmac1000_dma_operation_mode_rx()
169 csr6 |= DMA_CONTROL_RTC_128; in dwmac1000_dma_operation_mode_rx()
173 csr6 = dwmac1000_configure_fc(csr6, fifosz); in dwmac1000_dma_operation_mode_rx()
175 writel(csr6, ioaddr + DMA_CONTROL); in dwmac1000_dma_operation_mode_rx()
181 u32 csr6 = readl(ioaddr + DMA_CONTROL); in dwmac1000_dma_operation_mode_tx() local
186 csr6 |= DMA_CONTROL_TSF; in dwmac1000_dma_operation_mode_tx()
190 csr6 |= DMA_CONTROL_OSF; in dwmac1000_dma_operation_mode_tx()
193 csr6 &= ~DMA_CONTROL_TSF; in dwmac1000_dma_operation_mode_tx()
194 csr6 &= DMA_CONTROL_TC_TX_MASK; in dwmac1000_dma_operation_mode_tx()
197 csr6 |= DMA_CONTROL_TTC_32; in dwmac1000_dma_operation_mode_tx()
199 csr6 |= DMA_CONTROL_TTC_64; in dwmac1000_dma_operation_mode_tx()
201 csr6 |= DMA_CONTROL_TTC_128; in dwmac1000_dma_operation_mode_tx()
203 csr6 |= DMA_CONTROL_TTC_192; in dwmac1000_dma_operation_mode_tx()
205 csr6 |= DMA_CONTROL_TTC_256; in dwmac1000_dma_operation_mode_tx()
208 writel(csr6, ioaddr + DMA_CONTROL); in dwmac1000_dma_operation_mode_tx()