Lines Matching refs:gpcr
354 uint32_t gpcr; in yge_mii_notify() local
372 gpcr = GM_GPCR_AU_ALL_DIS; in yge_mii_notify()
377 gpcr &= ~(GM_GPCR_FC_RX_DIS | GM_GPCR_FC_TX_DIS); in yge_mii_notify()
381 gpcr |= GM_GPCR_FC_RX_DIS; in yge_mii_notify()
385 gpcr |= GM_GPCR_FC_TX_DIS; in yge_mii_notify()
390 gpcr |= GM_GPCR_FC_RX_DIS; in yge_mii_notify()
391 gpcr |= GM_GPCR_FC_TX_DIS; in yge_mii_notify()
395 gpcr &= ~((GM_GPCR_SPEED_1000 | GM_GPCR_SPEED_100)); in yge_mii_notify()
398 gpcr |= GM_GPCR_SPEED_1000; in yge_mii_notify()
401 gpcr |= GM_GPCR_SPEED_100; in yge_mii_notify()
409 gpcr |= GM_GPCR_DUP_FULL; in yge_mii_notify()
411 gpcr &= ~(GM_GPCR_DUP_FULL); in yge_mii_notify()
413 gpcr |= GM_GPCR_FC_RX_DIS; in yge_mii_notify()
414 gpcr |= GM_GPCR_FC_TX_DIS; in yge_mii_notify()
417 gpcr |= GM_GPCR_RX_ENA | GM_GPCR_TX_ENA; in yge_mii_notify()
418 GMAC_WRITE_2(dev, port->p_port, GM_GP_CTRL, gpcr); in yge_mii_notify()
428 gpcr = GMAC_READ_2(dev, port->p_port, GM_GP_CTRL); in yge_mii_notify()
429 gpcr &= ~(GM_GPCR_RX_ENA | GM_GPCR_TX_ENA); in yge_mii_notify()
430 GMAC_WRITE_2(dev, port->p_port, GM_GP_CTRL, gpcr); in yge_mii_notify()