Lines Matching refs:phy_value
342 uint16_t phy_value = 0U; in enet_init() local
361 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init()
362 phy_value &= PHY_LINKED_STATUS; in enet_init()
364 } while((RESET == phy_value) && (timeout < PHY_READ_TO)); in enet_init()
373 phy_value = PHY_AUTONEGOTIATION; in enet_init()
374 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init()
382 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init()
383 phy_value &= PHY_AUTONEGO_COMPLETE; in enet_init()
385 } while((RESET == phy_value) && (timeout < (uint32_t)PHY_READ_TO)); in enet_init()
394 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_SR, &phy_value); in enet_init()
396 if((uint16_t)RESET != (phy_value & PHY_DUPLEX_STATUS)) { in enet_init()
402 if((uint16_t)RESET != (phy_value & PHY_SPEED_STATUS)) { in enet_init()
408 phy_value = (uint16_t)((media_temp & ENET_MAC_CFG_DPM) >> 3); in enet_init()
409 phy_value |= (uint16_t)((media_temp & ENET_MAC_CFG_SPD) >> 1); in enet_init()
410 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init()
1537 uint16_t phy_value; in enet_phy_config() local
1564 phy_value = PHY_RESET; in enet_phy_config()
1565 if(ERROR == (enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value))) { in enet_phy_config()
1572 if(ERROR == (enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BCR, &phy_value))) { in enet_phy_config()
1577 if(RESET == (phy_value & PHY_RESET)) { in enet_phy_config()