Lines Matching refs:h_FmPcd

81 static void FmPcdIpcMsgCompletionCB(t_Handle   h_FmPcd,
87 UNUSED(h_FmPcd);UNUSED(p_Msg);UNUSED(p_Reply);UNUSED(replyLength);UNUSED(status);
91 static t_Error FmPcdHandleIpcMsgCB(t_Handle h_FmPcd,
97 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
148 outCounter = FM_PCD_GetCounter(h_FmPcd, inCounter);
159 err = FmPcdKgAllocSchemes(h_FmPcd,
172 err = FmPcdKgFreeSchemes(h_FmPcd,
185 err = KgAllocClsPlanEntries(h_FmPcd,
198 KgFreeClsPlanEntries(h_FmPcd,
211 err = PlcrAllocProfiles(h_FmPcd,
225 err = PlcrFreeProfiles(h_FmPcd,
242 err = PlcrAllocSharedProfiles(h_FmPcd,
278 PlcrFreeSharedProfiles(h_FmPcd,
290 FmPcdGetSwPrsOffset(h_FmPcd,
302 PrsIncludePortInStatistics(h_FmPcd,
309 if((err = FM_PCD_DumpRegs(h_FmPcd)) != E_OK)
313 if((err = FM_PCD_KgDumpRegs(h_FmPcd)) != E_OK)
317 if((err = FM_PCD_PlcrDumpRegs(h_FmPcd)) != E_OK)
324 if((err = FM_PCD_PlcrProfileDumpRegs(h_FmPcd, h_Profile)) != E_OK)
330 if((err = FM_PCD_PrsDumpRegs(h_FmPcd)) != E_OK)
460 bool FmPcdNetEnvIsHdrExist(t_Handle h_FmPcd, uint8_t netEnvId, e_NetHeaderType hdr)
462 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
501 void FmPcdPortRegister(t_Handle h_FmPcd, t_Handle h_FmPort, uint8_t hardwarePortId)
503 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
511 uint32_t FmPcdGetLcv(t_Handle h_FmPcd, uint32_t netEnvId, uint8_t hdrNum)
513 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
518 uint32_t FmPcdGetMacsecLcv(t_Handle h_FmPcd, uint32_t netEnvId)
520 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
525 void FmPcdIncNetEnvOwners(t_Handle h_FmPcd, uint8_t netEnvId)
527 ((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners++;
530 void FmPcdDecNetEnvOwners(t_Handle h_FmPcd, uint8_t netEnvId)
532 ASSERT_COND(((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners);
533 ((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners--;
536 uint32_t FmPcdLock(t_Handle h_FmPcd)
538 return XX_LockIntrSpinlock(((t_FmPcd*)h_FmPcd)->h_Spinlock);
541 void FmPcdUnlock(t_Handle h_FmPcd, uint32_t intFlags)
543 XX_UnlockIntrSpinlock(((t_FmPcd*)h_FmPcd)->h_Spinlock, intFlags);
546 t_Handle FmPcdGetHcHandle(t_Handle h_FmPcd)
548 ASSERT_COND(h_FmPcd);
549 SANITY_CHECK_RETURN_VALUE(((t_FmPcd*)h_FmPcd)->h_Hc, E_INVALID_HANDLE, NULL);
550 return ((t_FmPcd*)h_FmPcd)->h_Hc;
597 hcParams.h_FmPcd = (t_Handle)p_FmPcd;
660 t_Error FM_PCD_Init(t_Handle h_FmPcd)
662 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
701 h_FmPcd)) != E_OK)
752 t_Error FM_PCD_Free(t_Handle h_FmPcd)
754 t_FmPcd *p_FmPcd =(t_FmPcd *)h_FmPcd;
806 t_Error FM_PCD_Enable(t_Handle h_FmPcd)
808 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
811 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
855 t_Error FM_PCD_Disable(t_Handle h_FmPcd)
857 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
863 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
902 t_Handle FM_PCD_SetNetEnvCharacteristics(t_Handle h_FmPcd, t_FmPcdNetEnvParams *p_NetEnvParams)
904 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
913 SANITY_CHECK_RETURN_VALUE(h_FmPcd, E_INVALID_STATE, NULL);
1092 t_Error FM_PCD_DeleteNetEnvCharacteristics(t_Handle h_FmPcd, t_Handle h_NetEnv)
1094 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1097 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_STATE);
1120 void FM_PCD_HcTxConf(t_Handle h_FmPcd, t_DpaaFD *p_Fd)
1122 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1124 SANITY_CHECK_RETURN(h_FmPcd, E_INVALID_STATE);
1129 uint32_t FM_PCD_GetCounter(t_Handle h_FmPcd, e_FmPcdCounters counter)
1131 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1137 SANITY_CHECK_RETURN_VALUE(h_FmPcd, E_INVALID_HANDLE, 0);
1276 t_Error FM_PCD_DumpRegs(t_Handle h_FmPcd)
1278 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1283 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1299 return FM_PCD_KgDumpRegs(h_FmPcd);
1301 return FM_PCD_PlcrDumpRegs(h_FmPcd);
1303 return FM_PCD_PrsDumpRegs(h_FmPcd);
1307 t_Error FM_PCD_HcDumpRegs(t_Handle h_FmPcd)
1309 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1313 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1322 t_Error FM_PCD_ConfigException(t_Handle h_FmPcd, e_FmPcdExceptions exception, bool enable)
1324 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1346 t_Error FM_PCD_SetException(t_Handle h_FmPcd, e_FmPcdExceptions exception, bool enable)
1348 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1478 t_Error FM_PCD_ForceIntr (t_Handle h_FmPcd, e_FmPcdExceptions exception)
1480 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1482 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1561 t_Error FM_PCD_ModifyCounter(t_Handle h_FmPcd, e_FmPcdCounters counter, uint32_t value)
1563 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1565 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);