/* stmmac_dma_operation_mode - HW DMA operation mode @priv : pointer to the private device structure. Description: it sets the DMA operation mode: tx/rx DMA thresholds or Store-And-Forward capability. It also verifies the COE for the transmission in case of Giga ETH.  */
static void stmmac_dma_operation_mode(struct stmmac_priv *priv)
/* stmmac_dma_operation_mode - HW DMA operation mode @priv : pointer to the private device structure. Description: it sets the DMA operation mode: tx/rx DMA thresholds or Store-And-Forward capability. It also verifies the COE for the transmission in case of Giga ETH.  */
static void stmmac_dma_operation_mode(struct stmmac_priv *priv)
{
	if (!priv->is_gmac) {
		priv->mac_type->ops->dma_mode(priv->dev->base_addr, tc, 0);
		priv->tx_coe = NO_HW_CSUM;
	} else {
		if ((priv->dev->mtu <= ETH_DATA_LEN) && (tx_coe)) {
			priv->mac_type->ops->dma_mode(priv->dev->base_addr,
						      SF_DMA_MODE, SF_DMA_MODE);
			tc = SF_DMA_MODE;
			priv->tx_coe = HW_CSUM;
		} else {
			priv->mac_type->ops->dma_mode(priv->dev->base_addr, tc,
						      SF_DMA_MODE);
			priv->tx_coe = NO_HW_CSUM;
		}
	}
	tx_coe = priv->tx_coe;
	return;
}