Lines Matching refs:emac_write
546 #define emac_write(reg, val) iowrite32(val, priv->emac_base + (reg))
874 emac_write(EMAC_MACCONTROL, mac_control);
1045 emac_write(EMAC_MACHASH1, priv->mac_hash1);
1046 emac_write(EMAC_MACHASH2, priv->mac_hash2);
1089 emac_write(EMAC_RXMBPENABLE, mbp_enable);
1149 emac_write(EMAC_DM646X_MACEOIVECTOR,
1153 emac_write(EMAC_DM646X_MACEOIVECTOR,
1343 emac_write(EMAC_TXCP(ch), EMAC_TEARDOWN_VALUE);
1380 emac_write(EMAC_TXTEARDOWN, 0);
1383 emac_write(EMAC_TXINTMASKCLEAR, BIT(ch));
1424 emac_write(EMAC_TXCP(ch),
1435 emac_write(EMAC_TXCP(ch), emac_virt_to_phys(curr_bd, priv));
1439 emac_write(EMAC_TXHDP(ch), curr_bd->h_next);
1526 emac_write(EMAC_TXHDP(ch),
1542 emac_write(EMAC_TXHDP(ch),
1629 emac_write(EMAC_TXHDP(0), 0);
1630 emac_write(EMAC_TXINTMASKSET, BIT(EMAC_DEF_TX_CH));
1774 emac_write(EMAC_RXCP(ch), EMAC_TEARDOWN_VALUE);
1791 emac_write(EMAC_RXTEARDOWN, ch);
1795 emac_write(EMAC_RXINTMASKCLEAR, BIT(ch));
1849 emac_write(EMAC_MACSRCADDRLO, val);
1853 emac_write(EMAC_MACSRCADDRHI, val);
1856 emac_write(EMAC_RXUNICASTSET, val);
1859 emac_write(EMAC_RXUNICASTCLEAR, val);
1875 emac_write(EMAC_MACINDEX, ch);
1877 emac_write(EMAC_MACADDRLO, val);
1880 emac_write(EMAC_MACADDRHI, val);
1900 emac_write(EMAC_MACINDEX, index);
1903 emac_write(EMAC_MACADDRHI, val);
1906 emac_write(EMAC_MACADDRLO, val);
2011 emac_write(EMAC_RXHDP(ch),
2026 emac_write(EMAC_RXHDP(ch),
2124 emac_write(EMAC_RXCP(ch), emac_virt_to_phys(curr_bd, priv));
2134 emac_write(EMAC_RXHDP(ch),
2178 emac_write(EMAC_SOFTRESET, 1);
2191 emac_write(EMAC_MACCONTROL, mac_control);
2209 emac_write(EMAC_RXMBPENABLE, mbp_enable);
2210 emac_write(EMAC_RXMAXLEN, (EMAC_DEF_MAX_FRAME_SIZE &
2212 emac_write(EMAC_RXBUFFEROFFSET, (EMAC_DEF_BUFFER_OFFSET &
2214 emac_write(EMAC_RXFILTERLOWTHRESH, 0);
2215 emac_write(EMAC_RXUNICASTCLEAR, EMAC_RX_UNICAST_CLEAR_ALL);
2220 emac_write(EMAC_TXCONTROL, val);
2223 emac_write(EMAC_RXCONTROL, val);
2224 emac_write(EMAC_MACINTMASKSET, EMAC_MAC_HOST_ERR_INTMASK_VAL);
2227 emac_write(EMAC_TXHDP(ch), 0);
2228 emac_write(EMAC_TXINTMASKSET, BIT(ch));
2233 emac_write(EMAC_RXINTMASKSET, BIT(ch));
2235 emac_write(EMAC_RXHDP(ch),
2242 emac_write(EMAC_MACCONTROL, val);
2518 emac_write(EMAC_TXHDP(ch), 0);
2519 emac_write(EMAC_RXHDP(ch), 0);
2520 emac_write(EMAC_RXHDP(ch), 0);
2521 emac_write(EMAC_RXINTMASKCLEAR, EMAC_INT_MASK_CLEAR);
2522 emac_write(EMAC_TXINTMASKCLEAR, EMAC_INT_MASK_CLEAR);
2526 emac_write(EMAC_MACHASH1, 0);
2527 emac_write(EMAC_MACHASH2, 0);
2655 emac_write(EMAC_SOFTRESET, 1);
2697 emac_write(EMAC_RXMCASTFRAMES, stats_clear_mask);
2702 emac_write(EMAC_TXCOLLISION, stats_clear_mask);
2703 emac_write(EMAC_TXSINGLECOLL, stats_clear_mask);
2704 emac_write(EMAC_TXMULTICOLL, stats_clear_mask);
2709 emac_write(EMAC_RXOVERSIZED, stats_clear_mask);
2710 emac_write(EMAC_RXJABBER, stats_clear_mask);
2711 emac_write(EMAC_RXUNDERSIZED, stats_clear_mask);
2715 emac_write(EMAC_RXSOFOVERRUNS, stats_clear_mask);
2716 emac_write(EMAC_RXMOFOVERRUNS, stats_clear_mask);
2719 emac_write(EMAC_RXDMAOVERRUNS, stats_clear_mask);
2723 emac_write(EMAC_TXCARRIERSENSE, stats_clear_mask);
2726 emac_write(EMAC_TXUNDERRUN, stats_clear_mask);