Lines Matching refs:phy_value

341     uint16_t phy_value = 0U;  in enet_init()  local
360 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init()
361 phy_value &= PHY_LINKED_STATUS; in enet_init()
363 }while((RESET == phy_value) && (timeout < PHY_READ_TO)); in enet_init()
372 phy_value = PHY_AUTONEGOTIATION; in enet_init()
373 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init()
381 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init()
382 phy_value &= PHY_AUTONEGO_COMPLETE; in enet_init()
384 }while((RESET == phy_value) && (timeout < (uint32_t)PHY_READ_TO)); in enet_init()
393 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_SR, &phy_value); in enet_init()
395 if((uint16_t)RESET != (phy_value & PHY_DUPLEX_STATUS)){ in enet_init()
401 if((uint16_t)RESET !=(phy_value & PHY_SPEED_STATUS)){ in enet_init()
407 phy_value = (uint16_t)((media_temp & ENET_MAC_CFG_DPM) >> 3); in enet_init()
408 phy_value |= (uint16_t)((media_temp & ENET_MAC_CFG_SPD) >> 1); in enet_init()
409 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init()
1545 uint16_t phy_value; in enet_phy_config() local
1572 phy_value = PHY_RESET; in enet_phy_config()
1573 if(ERROR == (enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value))){ in enet_phy_config()
1580 if(ERROR == (enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BCR, &phy_value))){ in enet_phy_config()
1585 if(RESET == (phy_value & PHY_RESET)){ in enet_phy_config()