Lines Matching refs:gmac
353 uint32_t gmac; in yge_mii_notify() local
376 gmac = GMC_PAUSE_ON; in yge_mii_notify()
380 gmac = GMC_PAUSE_ON; in yge_mii_notify()
384 gmac = GMC_PAUSE_ON; in yge_mii_notify()
389 gmac = GMC_PAUSE_OFF; in yge_mii_notify()
412 gmac = GMC_PAUSE_OFF; in yge_mii_notify()
424 CSR_WRITE_4(dev, MR_ADDR(port->p_port, GMAC_CTRL), gmac); in yge_mii_notify()
2415 uint16_t gmac; in yge_start_port() local
2471 gmac = DATA_BLIND_VAL(DATA_BLIND_DEF) | in yge_start_port()
2475 gmac |= GM_SMOD_JUMBO_ENA; in yge_start_port()
2476 GMAC_WRITE_2(dev, pnum, GM_SERIAL_MODE, gmac); in yge_start_port()
2620 gmac = GMAC_READ_2(dev, pnum, GM_GP_CTRL); in yge_start_port()
2621 gmac |= (GM_GPCR_RX_ENA | GM_GPCR_TX_ENA); in yge_start_port()
2622 GMAC_WRITE_2(port->p_dev, port->p_port, GM_GP_CTRL, gmac); in yge_start_port()
2831 uint16_t gmac; in yge_stats_clear() local
2838 gmac = GMAC_READ_2(dev, pnum, GM_PHY_ADDR); in yge_stats_clear()
2839 GMAC_WRITE_2(dev, pnum, GM_PHY_ADDR, gmac | GM_PAR_MIB_CLR); in yge_stats_clear()
2844 gmac &= ~GM_PAR_MIB_CLR; in yge_stats_clear()
2845 GMAC_WRITE_2(dev, pnum, GM_PHY_ADDR, gmac); in yge_stats_clear()
2853 uint16_t gmac; in yge_stats_update() local
2864 gmac = GMAC_READ_2(dev, pnum, GM_PHY_ADDR); in yge_stats_update()
2865 GMAC_WRITE_2(dev, pnum, GM_PHY_ADDR, gmac | GM_PAR_MIB_CLR); in yge_stats_update()
2912 gmac &= ~GM_PAR_MIB_CLR; in yge_stats_update()
2913 GMAC_WRITE_2(dev, pnum, GM_PHY_ADDR, gmac); in yge_stats_update()