Lines Matching refs:code
903 netc_msg_link_speed_code_t code; in EP_GetLinkSpeed() local
921 … code = ((duplex == kNETC_MiiHalfDuplex) ? kNETC_MsgLinkSpeed10HD : kNETC_MsgLinkSpeed10FD); in EP_GetLinkSpeed()
924 … code = ((duplex == kNETC_MiiHalfDuplex) ? kNETC_MsgLinkSpeed100HD : kNETC_MsgLinkSpeed100FD); in EP_GetLinkSpeed()
927 code = kNETC_MsgLinkSpeed1000; in EP_GetLinkSpeed()
930 code = kNETC_MsgLinkSpeed2500; in EP_GetLinkSpeed()
933 code = kNETC_MsgLinkSpeed5000; in EP_GetLinkSpeed()
936 code = kNETC_MsgLinkSpeed10G; in EP_GetLinkSpeed()
939 code = kNETC_MsgLinkSpeedNotSupport; in EP_GetLinkSpeed()
943 return NETC_MSG_RETURN_CODE(kNETC_MsgClassLinkSpeed, code, 0U); in EP_GetLinkSpeed()
975 uint16_t code; in EP_PsiNotifyLink() local
979 code = EP_GetLinkStatus(handle); in EP_PsiNotifyLink()
980 if (code != NETC_MSG_RETURN_CODE(kNETC_MsgClassNotSupport, 0U, 0U)) in EP_PsiNotifyLink()
982 … base->PSI_A.PSIMSGSR = (uint32_t)handle->vsiBitMapNotifyLinkStatus | ((uint32_t)code << 16U); in EP_PsiNotifyLink()
988 code = EP_GetLinkSpeed(handle); in EP_PsiNotifyLink()
989 if (code != NETC_MSG_RETURN_CODE(kNETC_MsgClassNotSupport, 0U, 0U)) in EP_PsiNotifyLink()
991 … base->PSI_A.PSIMSGSR = (uint32_t)handle->vsiBitMapNotifyLinkSpeed | ((uint32_t)code << 16U); in EP_PsiNotifyLink()
1029 uint16_t code = NETC_MSG_RETURN_CODE(kNETC_MsgClassNotSupport, 0U, 0U); in EP_PsiHandleRxMsg() local
1047 code = NETC_MSG_RETURN_CODE(kNETC_MsgClassLenError, 0U, 0U); in EP_PsiHandleRxMsg()
1054 code = NETC_MSG_RETURN_CODE(kNETC_MsgClassCsumError, 0U, 0U); in EP_PsiHandleRxMsg()
1061 code = EP_PsiHandleMacFilter(handle, vsi, msgInfo); in EP_PsiHandleRxMsg()
1064 code = EP_PsiHandleVlanFilter(handle, vsi, msgInfo); in EP_PsiHandleRxMsg()
1067 code = EP_PsiHandleLinkStatus(handle, vsi, msgInfo); in EP_PsiHandleRxMsg()
1074 code = EP_PsiHandleLinkSpeed(handle, vsi, msgInfo); in EP_PsiHandleRxMsg()
1090 base->PSI_A.PSIMSGRR = ((uint32_t)vsi << 1U) | ((uint32_t)code << 16U); in EP_PsiHandleRxMsg()