Lines Matching full: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()
423 /* write out the flow control gmac setting */ in yge_mii_notify()
424 CSR_WRITE_4(dev, MR_ADDR(port->p_port, GMAC_CTRL), gmac); in yge_mii_notify()
754 /* Reset GPHY/GMAC Control */ in yge_reset()
759 /* GMAC Control reset. */ in yge_reset()
2029 /* GMAC Rx FIFO overrun. */ in yge_intr_gmac()
2035 /* GMAC Tx FIFO underrun. */ in yge_intr_gmac()
2396 /* Set Tx GMAC FIFO Almost Empty Threshold. */ in yge_set_tx_stfwd()
2415 uint16_t gmac; in yge_start_port() local
2437 /* GMAC Control reset */ in yge_start_port()
2446 * Initialize GMAC first such that speed/duplex/flow-control in yge_start_port()
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()
2619 /* Enable RX/TX 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()
2761 /* Disable all GMAC interrupt. */ in yge_stop_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()