Lines Matching refs:result

35     status_t result   = kStatus_Success;  in PHY_Init()  local
60 result = PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_Init()
61 if (result == kStatus_Success) in PHY_Init()
65 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_Init()
66 if (result != kStatus_Success) in PHY_Init()
68 return result; in PHY_Init()
70 result = PHY_Write(base, phyAddr, PHY_CONTROL2_REG, (data | PHY_CTL2_REFCLK_SELECT_MASK)); in PHY_Init()
71 if (result != kStatus_Success) in PHY_Init()
73 return result; in PHY_Init()
78 result = PHY_Write(base, phyAddr, PHY_AUTONEG_ADVERTISE_REG, in PHY_Init()
81 if (result == kStatus_Success) in PHY_Init()
83 result = in PHY_Init()
85 if (result == kStatus_Success) in PHY_Init()
90 result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, &bssReg); in PHY_Init()
91 if (result == kStatus_Success) in PHY_Init()
114 return result; in PHY_Init()
186 status_t result; in PHY_EnableLoopback() local
207 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_EnableLoopback()
208 if (result == kStatus_Success) in PHY_EnableLoopback()
220 result = PHY_Read(base, phyAddr, PHY_BASICCONTROL_REG, &data); in PHY_EnableLoopback()
221 if (result == kStatus_Success) in PHY_EnableLoopback()
230 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_EnableLoopback()
231 if (result == kStatus_Success) in PHY_EnableLoopback()
237 return result; in PHY_EnableLoopback()
244 status_t result = kStatus_Success; in PHY_GetLinkStatus() local
248 result = PHY_Read(base, phyAddr, PHY_BASICSTATUS_REG, &data); in PHY_GetLinkStatus()
249 if (result == kStatus_Success) in PHY_GetLinkStatus()
262 return result; in PHY_GetLinkStatus()
269 status_t result = kStatus_Success; in PHY_GetLinkSpeedDuplex() local
273 result = PHY_Read(base, phyAddr, PHY_CONTROL1_REG, &ctlReg); in PHY_GetLinkSpeedDuplex()
274 if (result == kStatus_Success) in PHY_GetLinkSpeedDuplex()
300 return result; in PHY_GetLinkSpeedDuplex()