/freebsd/sys/contrib/ncsw/Peripherals/FM/inc/ |
H A D | fm_common.h | 448 #define GET_NIA_BMI_AC_ENQ_FRAME(h_FmPcd) \ argument 449 (uint32_t)((FmPcdIsAdvancedOffloadSupported(h_FmPcd)) ? \ 452 #define GET_NIA_BMI_AC_DISCARD_FRAME(h_FmPcd) \ argument 453 (uint32_t)((FmPcdIsAdvancedOffloadSupported(h_FmPcd)) ? \ 459 #define GET_NIA_BMI_AC_ENQ_FRAME(h_FmPcd) \ argument 460 (uint32_t)((FmPcdIsAdvancedOffloadSupported(h_FmPcd)) ? \ 463 #define GET_NIA_BMI_AC_DISCARD_FRAME(h_FmPcd) \ argument 464 (uint32_t)((FmPcdIsAdvancedOffloadSupported(h_FmPcd)) ? \ 676 t_Handle FmPcdGetHcHandle(t_Handle h_FmPcd); 677 uint32_t FmPcdGetSwPrsOffset(t_Handle h_FmPcd, e_NetHeaderType hdr, uint8_t indexPerHdr); [all …]
|
H A D | fm_sp_common.h | 104 t_Error FmPcdSpAllocProfiles(t_Handle h_FmPcd, 109 t_Error FmPcdSpGetAbsoluteProfileId(t_Handle h_FmPcd, 113 void SpInvalidateProfileSw(t_Handle h_FmPcd, uint16_t absoluteProfileId); 114 void SpValidateProfileSw(t_Handle h_FmPcd, uint16_t absoluteProfileId);
|
H A D | fm_hc.h | 46 t_Handle h_FmPcd; member
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/ |
H A D | fm_pcd.c | 87 static void IpcMsgCompletionCB(t_Handle h_FmPcd, in IpcMsgCompletionCB() argument 93 UNUSED(h_FmPcd);UNUSED(p_Msg);UNUSED(p_Reply);UNUSED(replyLength);UNUSED(status); in IpcMsgCompletionCB() 97 static t_Error IpcMsgHandlerCB(t_Handle h_FmPcd, in IpcMsgHandlerCB() argument 103 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in IpcMsgHandlerCB() 154 outCounter = FM_PCD_GetCounter(h_FmPcd, inCounter); in IpcMsgHandlerCB() 165 err = FmPcdKgAllocSchemes(h_FmPcd, in IpcMsgHandlerCB() 178 err = FmPcdKgFreeSchemes(h_FmPcd, in IpcMsgHandlerCB() 191 err = KgAllocClsPlanEntries(h_FmPcd, in IpcMsgHandlerCB() 204 KgFreeClsPlanEntries(h_FmPcd, in IpcMsgHandlerCB() 216 base = PlcrAllocProfilesForPartition(h_FmPcd, in IpcMsgHandlerCB() [all …]
|
H A D | fm_replic.c | 94 static t_Error MemberCheckParams(t_Handle h_FmPcd, in MemberCheckParams() argument 106 err = ValidateNextEngineParams(h_FmPcd, p_MemberParams, e_FM_PCD_CC_STATS_MODE_NONE); in MemberCheckParams() 113 static t_Error CheckParams(t_Handle h_FmPcd, in CheckParams() argument 133 err = MemberCheckParams(h_FmPcd, &p_ReplicGroupParam->nextEngineParams[i]); in CheckParams() 187 ASSERT_COND(p_ReplicGroup->h_FmPcd); in LinkSourceToMember() 190 p_FmPcd = p_ReplicGroup->h_FmPcd; in LinkSourceToMember() 210 p_FmPcd = p_ReplicGroup->h_FmPcd; in LinkMemberToMember() 228 ASSERT_COND(p_ReplicGroup->h_FmPcd); in ModifyDescriptor() 232 p_FmPcd = p_ReplicGroup->h_FmPcd; in ModifyDescriptor() 291 ASSERT_COND(p_ReplicGroup->h_FmPcd); in BuildShadowAndModifyDescriptor() [all …]
|
H A D | fm_cc.c | 152 h_FmMuram = ((t_FmPcd *)(p_CcNode->h_FmPcd))->h_FmMuram; in GetStatsObj() 206 h_FmMuram = ((t_FmPcd *)(p_CcNode->h_FmPcd))->h_FmMuram; in PutStatsObj() 268 t_Handle h_FmPcd, t_Handle p_CcNode, in FillAdOfTypeContLookup() argument 274 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in FillAdOfTypeContLookup() 392 ((t_FmPcd *)(p_CcNode->h_FmPcd))->h_FmMuram, in AllocAndFillAdForContLookupManip() 403 FillAdOfTypeContLookup(p_CcNode->h_Ad, NULL, p_CcNode->h_FmPcd, in AllocAndFillAdForContLookupManip() 413 t_Handle h_FmPcd, uint32_t requiredAction, in SetRequiredAction1() argument 476 err = SetRequiredAction1(h_FmPcd, requiredAction, in SetRequiredAction1() 495 h_FmPcd, physicalSchemeId); in SetRequiredAction1() 502 if (!KgIsSchemeAlwaysDirect(h_FmPcd, relativeSchemeId)) in SetRequiredAction1() [all …]
|
H A D | fm_pcd.h | 217 t_Handle h_FmPcd; member 269 t_Handle h_FmPcd; member 321 t_Handle h_FmPcd; member 407 void KgSetClsPlan(t_Handle h_FmPcd, t_FmPcdKgInterModuleClsPlanSet *p_Set); 408 bool KgIsSchemeAlwaysDirect(t_Handle h_FmPcd, uint8_t schemeId); 411 t_Error KgAllocClsPlanEntries(t_Handle h_FmPcd, uint16_t numOfClsPlanEntries, uint8_t guestId, … 412 void KgFreeClsPlanEntries(t_Handle h_FmPcd, uint16_t numOfClsPlanEntries, uint8_t guestId, u… 415 t_Error FmPcdKgAllocSchemes(t_Handle h_FmPcd, uint8_t numOfSchemes, uint8_t guestId, uint8_t *p… 416 t_Error FmPcdKgFreeSchemes(t_Handle h_FmPcd, uint8_t numOfSchemes, uint8_t guestId, uint8_t *p_… 418 t_Error KgBindPortToSchemes(t_Handle h_FmPcd , uint8_t hardwarePortId, uint32_t spReg); [all …]
|
H A D | fm_plcr.c | 106 static bool IsProfileShared(t_Handle h_FmPcd, uint16_t absoluteProfileId) in IsProfileShared() argument 108 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in IsProfileShared() 591 static void UpdateRequiredActionFlag(t_Handle h_FmPcd, uint16_t absoluteProfileId, bool set) in UpdateRequiredActionFlag() argument 593 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in UpdateRequiredActionFlag() 611 static void EventsCB(t_Handle h_FmPcd) in EventsCB() argument 613 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in EventsCB() 638 static void ErrorExceptionsCB(t_Handle h_FmPcd) in ErrorExceptionsCB() argument 640 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in ErrorExceptionsCB() 1068 t_Error FmPcdPlcrAllocProfiles(t_Handle h_FmPcd, uint8_t hardwarePortId, uint16_t numOfProfiles) in FmPcdPlcrAllocProfiles() argument 1070 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in FmPcdPlcrAllocProfiles() [all …]
|
H A D | fm_prs.c | 53 static void PcdPrsErrorException(t_Handle h_FmPcd) in PcdPrsErrorException() argument 55 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in PcdPrsErrorException() 72 static void PcdPrsException(t_Handle h_FmPcd) in PcdPrsException() argument 74 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in PcdPrsException() 230 t_Error FmPcdPrsIncludePortInStatistics(t_Handle h_FmPcd, uint8_t hardwarePortId, bool include) in FmPcdPrsIncludePortInStatistics() argument 232 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in FmPcdPrsIncludePortInStatistics() 268 uint32_t FmPcdGetSwPrsOffset(t_Handle h_FmPcd, e_NetHeaderType hdr, uint8_t indexPerHdr) in FmPcdGetSwPrsOffset() argument 270 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in FmPcdGetSwPrsOffset() 327 void FM_PCD_SetPrsStatistics(t_Handle h_FmPcd, bool enable) in FM_PCD_SetPrsStatistics() argument 329 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in FM_PCD_SetPrsStatistics() [all …]
|
H A D | fm_kg.c | 891 static void PcdKgErrorException(t_Handle h_FmPcd) in PcdKgErrorException() argument 893 t_FmPcd *p_FmPcd = (t_FmPcd *)h_FmPcd; in PcdKgErrorException() 993 FmPcdIncNetEnvOwners(p_Scheme->h_FmPcd, p_Scheme->netEnvId); in ValidateSchemeSw() 1003 FmPcdDecNetEnvOwners(p_Scheme->h_FmPcd, p_Scheme->netEnvId); in InvalidateSchemeSw() 1013 t_FmPcd *p_FmPcd = (t_FmPcd *)(p_Scheme->h_FmPcd); in BuildSchemeRegs() 1841 t_Error FmPcdKgBuildClsPlanGrp(t_Handle h_FmPcd, t_FmPcdKgInterModuleClsPlanGrpParams *p_Grp, t_FmP… in FmPcdKgBuildClsPlanGrp() argument 1843 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in FmPcdKgBuildClsPlanGrp() 1881 …err = KgAllocClsPlanEntries(h_FmPcd, p_ClsPlanGrp->sizeOfGrp, p_FmPcd->guestId, &p_ClsPlanGrp->bas… in FmPcdKgBuildClsPlanGrp() 1969 void FmPcdKgDestroyClsPlanGrp(t_Handle h_FmPcd, uint8_t grpId) in FmPcdKgDestroyClsPlanGrp() argument 1971 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd; in FmPcdKgDestroyClsPlanGrp() [all …]
|
H A D | fm_manip.c | 433 t_Handle h_FmPcd = p_Manip->h_FmPcd; in BuildHmct() local 618 - (((t_FmPcd*)h_FmPcd)->physicalMuramBase)); in BuildHmct() 657 … (uint32_t)(XX_VirtToPhys(p_TmpData) - (((t_FmPcd*)p_Manip->h_FmPcd)->physicalMuramBase))); in BuildHmct() 769 … (uint32_t)(XX_VirtToPhys(p_TmpData) - (((t_FmPcd*)h_FmPcd)->physicalMuramBase))); in BuildHmct() 830 … (uint32_t)(XX_VirtToPhys(p_TmpData) - (((t_FmPcd*)p_Manip->h_FmPcd)->physicalMuramBase))); in BuildHmct() 1005 - (((t_FmPcd*)h_FmPcd)->physicalMuramBase)); in BuildHmct() 1019 … (uint32_t)(XX_VirtToPhys(p_TmpData) - (((t_FmPcd*)h_FmPcd)->physicalMuramBase))); in BuildHmct() 1120 ((t_FmPcd *)p_Manip->h_FmPcd)->h_FmMuram, totalSize, 4); in CreateManipActionNew() 1138 err = FmPcdUpdateCcShadow(p_Manip->h_FmPcd, (uint32_t)(totalSize + 16), in CreateManipActionNew() 1142 FM_MURAM_FreeMem(p_Manip->h_FmPcd, p_Manip->p_Hmct); in CreateManipActionNew() [all …]
|
H A D | fm_cc.h | 347 t_Handle h_FmPcd; member 375 t_Handle h_FmPcd; member 394 t_Error FmPcdCcNodeTreeTryLock(t_Handle h_FmPcd,t_Handle h_FmPcdCcNode, t_List *p_List); 395 void FmPcdCcNodeTreeReleaseLock(t_Handle h_FmPcd, t_List *p_List);
|
H A D | fm_manip.h | 287 …_MURAM(h_Manip) (((t_FmPcd *)((t_FmPcdManip *)h_Manip)->h_FmPcd)->h_FmMuram) 290 …FM_MURAM_FreeMem(((t_FmPcd *)((t_FmPcdManip *)h_Manip)->h_FmPcd)->h_FmMuram, ((t_FmPcdManip *)h_Ma… 531 t_Handle h_FmPcd; member
|
H A D | fm_replic.h | 89 t_Handle h_FmPcd; member
|
/freebsd/sys/contrib/ncsw/inc/Peripherals/ |
H A D | fm_pcd_ext.h | 275 t_Error FM_PCD_Init(t_Handle h_FmPcd); 288 t_Error FM_PCD_Free(t_Handle h_FmPcd); 314 t_Error FM_PCD_ConfigException(t_Handle h_FmPcd, e_FmPcdExceptions exception, bool enable); 331 t_Error FM_PCD_ConfigHcFramesDataMemory(t_Handle h_FmPcd, uint8_t memId); 346 t_Error FM_PCD_ConfigPlcrNumOfSharedProfiles(t_Handle h_FmPcd, uint16_t numOfSharedPlcrProfiles); 363 t_Error FM_PCD_ConfigPlcrAutoRefreshMode(t_Handle h_FmPcd, bool enable); 381 t_Error FM_PCD_ConfigPrsMaxCycleLimit(t_Handle h_FmPcd,uint16_t value); 478 t_Error FM_PCD_Enable(t_Handle h_FmPcd); 493 t_Error FM_PCD_Disable(t_Handle h_FmPcd); 510 uint32_t FM_PCD_GetCounter(t_Handle h_FmPcd, e_FmPcdCounters counter); [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/HC/ |
H A D | hc.c | 128 t_Handle h_FmPcd; member 180 intFlags = FmPcdLock(p_FmHc->h_FmPcd); in GetBuf() 185 FmPcdUnlock(p_FmHc->h_FmPcd, intFlags); in GetBuf() 192 FmPcdUnlock(p_FmHc->h_FmPcd, intFlags); in GetBuf() 202 intFlags = FmPcdLock(p_FmHc->h_FmPcd); in PutBuf() 206 FmPcdUnlock(p_FmHc->h_FmPcd, intFlags); in PutBuf() 215 intFlags = FmPcdLock(p_FmHc->h_FmPcd); in EnQFrm() 218 FmPcdUnlock(p_FmHc->h_FmPcd, intFlags); in EnQFrm() 251 p_FmHc->h_FmPcd = p_FmHcParams->h_FmPcd; in FmHcConfigAndInit() 362 intFlags = FmPcdLock(p_FmHc->h_FmPcd); in FmHcTxConf() [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/ |
H A D | fm_port.c | 1038 tmpPrsOffset = FmPcdGetSwPrsOffset(p_FmPort->h_FmPcd, p_HdrParams->hdr, in AdditionalPrsParams() 1088 ASSERT_COND(p_FmPort->h_FmPcd); in FmPortCheckNApplyMacsec() 1097 if ((lcv = FmPcdGetMacsecLcv(p_FmPort->h_FmPcd, p_FmPort->netEnvId)) in FmPortCheckNApplyMacsec() 1257 err = FmPcdCcBindTree(p_FmPort->h_FmPcd, p_PcdParams, in SetPcd() 1275 err = FmPcdKgSetOrBindToClsPlanGrp(p_FmPort->h_FmPcd, in SetPcd() 1312 err = FmPcdKgBindPortToSchemes(p_FmPort->h_FmPcd, &schemeBind); in SetPcd() 1336 if (!FmPcdPlcrIsProfileValid(p_FmPort->h_FmPcd, absoluteProfileId)) in SetPcd() 1391 GET_NIA_BMI_AC_ENQ_FRAME(p_FmPort->h_FmPcd)); in SetPcd() 1493 if (FmPcdNetEnvIsHdrExist(p_FmPort->h_FmPcd, p_FmPort->netEnvId, in SetPcd() 1535 initialSwPrs = FmPcdGetSwPrsOffset(p_FmPort->h_FmPcd, HEADER_TYPE_NONE, in SetPcd() [all …]
|
H A D | fm_port.h | 881 t_Handle h_FmPcd; member
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/ |
H A D | fm_ncsw.c | 1850 void FmRegisterPcd(t_Handle h_Fm, t_Handle h_FmPcd) in FmRegisterPcd() argument 1857 p_Fm->h_Pcd = h_FmPcd; in FmRegisterPcd()
|