• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/ncsw/Peripherals/FM/Pcd/

Lines Matching defs:h_FmPcd

87 static void IpcMsgCompletionCB(t_Handle   h_FmPcd,
93 UNUSED(h_FmPcd);UNUSED(p_Msg);UNUSED(p_Reply);UNUSED(replyLength);UNUSED(status);
97 static t_Error IpcMsgHandlerCB(t_Handle h_FmPcd,
103 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
154 outCounter = FM_PCD_GetCounter(h_FmPcd, inCounter);
165 err = FmPcdKgAllocSchemes(h_FmPcd,
178 err = FmPcdKgFreeSchemes(h_FmPcd,
191 err = KgAllocClsPlanEntries(h_FmPcd,
204 KgFreeClsPlanEntries(h_FmPcd,
216 base = PlcrAllocProfilesForPartition(h_FmPcd,
228 PlcrFreeProfilesForPartition(h_FmPcd,
238 PlcrSetPortProfiles(h_FmPcd,
248 PlcrClearPortProfiles(h_FmPcd,
259 FmPcdGetSwPrsOffset(h_FmPcd,
271 PrsIncludePortInStatistics(h_FmPcd,
500 bool FmPcdNetEnvIsHdrExist(t_Handle h_FmPcd, uint8_t netEnvId, e_NetHeaderType hdr)
502 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
565 t_Error FmPcdUnregisterReassmPort(t_Handle h_FmPcd, t_Handle h_ReasmCommonPramTbl)
567 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
615 void FmPcdPortRegister(t_Handle h_FmPcd, t_Handle h_FmPort, uint8_t hardwarePortId)
617 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
620 ASSERT_COND(h_FmPcd);
625 uint32_t FmPcdGetLcv(t_Handle h_FmPcd, uint32_t netEnvId, uint8_t hdrNum)
627 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
629 ASSERT_COND(h_FmPcd);
633 uint32_t FmPcdGetMacsecLcv(t_Handle h_FmPcd, uint32_t netEnvId)
635 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
637 ASSERT_COND(h_FmPcd);
646 void FmPcdIncNetEnvOwners(t_Handle h_FmPcd, uint8_t netEnvId)
650 ASSERT_COND(h_FmPcd);
652 intFlags = NetEnvLock(&((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId]);
653 ((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners++;
654 NetEnvUnlock(&((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId], intFlags);
657 void FmPcdDecNetEnvOwners(t_Handle h_FmPcd, uint8_t netEnvId)
661 ASSERT_COND(h_FmPcd);
662 ASSERT_COND(((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners);
664 intFlags = NetEnvLock(&((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId]);
665 ((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId].owners--;
666 NetEnvUnlock(&((t_FmPcd*)h_FmPcd)->netEnvs[netEnvId], intFlags);
669 uint32_t FmPcdLock(t_Handle h_FmPcd)
671 ASSERT_COND(h_FmPcd);
672 return XX_LockIntrSpinlock(((t_FmPcd*)h_FmPcd)->h_Spinlock);
675 void FmPcdUnlock(t_Handle h_FmPcd, uint32_t intFlags)
677 ASSERT_COND(h_FmPcd);
678 XX_UnlockIntrSpinlock(((t_FmPcd*)h_FmPcd)->h_Spinlock, intFlags);
681 t_FmPcdLock * FmPcdAcquireLock(t_Handle h_FmPcd)
684 ASSERT_COND(h_FmPcd);
685 p_Lock = DequeueLockFromFreeLst((t_FmPcd*)h_FmPcd);
688 FillFreeLocksLst(h_FmPcd);
689 p_Lock = DequeueLockFromFreeLst((t_FmPcd*)h_FmPcd);
693 EnqueueLockToAcquiredLst((t_FmPcd*)h_FmPcd, p_Lock);
697 void FmPcdReleaseLock(t_Handle h_FmPcd, t_FmPcdLock *p_Lock)
700 ASSERT_COND(h_FmPcd);
701 intFlags = FmPcdLock(h_FmPcd);
703 FmPcdUnlock(h_FmPcd, intFlags);
704 EnqueueLockToFreeLst((t_FmPcd*)h_FmPcd, p_Lock);
707 bool FmPcdLockTryLockAll(t_Handle h_FmPcd)
712 ASSERT_COND(h_FmPcd);
713 intFlags = FmPcdLock(h_FmPcd);
714 NCSW_LIST_FOR_EACH(p_Pos, &((t_FmPcd*)h_FmPcd)->acquiredLocksLst)
725 NCSW_LIST_FOR_EACH(p_Pos, &((t_FmPcd*)h_FmPcd)->acquiredLocksLst)
733 FmPcdUnlock(h_FmPcd, intFlags);
743 void FmPcdLockUnlockAll(t_Handle h_FmPcd)
748 ASSERT_COND(h_FmPcd);
749 intFlags = FmPcdLock(h_FmPcd);
750 NCSW_LIST_FOR_EACH(p_Pos, &((t_FmPcd*)h_FmPcd)->acquiredLocksLst)
755 FmPcdUnlock(h_FmPcd, intFlags);
760 t_Error FmPcdHcSync(t_Handle h_FmPcd)
762 ASSERT_COND(h_FmPcd);
763 ASSERT_COND(((t_FmPcd*)h_FmPcd)->h_Hc);
765 return FmHcPcdSync(((t_FmPcd*)h_FmPcd)->h_Hc);
768 t_Handle FmPcdGetHcHandle(t_Handle h_FmPcd)
770 ASSERT_COND(h_FmPcd);
771 return ((t_FmPcd*)h_FmPcd)->h_Hc;
774 bool FmPcdIsAdvancedOffloadSupported(t_Handle h_FmPcd)
776 ASSERT_COND(h_FmPcd);
777 return ((t_FmPcd*)h_FmPcd)->advancedOffloadSupport;
829 hcParams.h_FmPcd = (t_Handle)p_FmPcd;
906 t_Error FM_PCD_Init(t_Handle h_FmPcd)
908 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
948 h_FmPcd)) != E_OK)
1018 t_Error FM_PCD_Free(t_Handle h_FmPcd)
1020 t_FmPcd *p_FmPcd =(t_FmPcd *)h_FmPcd;
1084 t_Error FM_PCD_ConfigException(t_Handle h_FmPcd, e_FmPcdExceptions exception, bool enable)
1086 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1108 t_Error FM_PCD_ConfigHcFramesDataMemory(t_Handle h_FmPcd, uint8_t memId)
1110 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1118 t_Error FM_PCD_Enable(t_Handle h_FmPcd)
1120 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1123 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1174 t_Error FM_PCD_Disable(t_Handle h_FmPcd)
1176 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1179 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1233 t_Handle FM_PCD_NetEnvCharacteristicsSet(t_Handle h_FmPcd, t_FmPcdNetEnvParams *p_NetEnvParams)
1235 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1245 SANITY_CHECK_RETURN_VALUE(h_FmPcd, E_INVALID_STATE, NULL);
1287 p_FmPcd->netEnvs[netEnvCurrId].h_FmPcd = p_FmPcd;
1513 t_FmPcd *p_FmPcd = p_NetEnv->h_FmPcd;
1543 void FM_PCD_HcTxConf(t_Handle h_FmPcd, t_DpaaFD *p_Fd)
1545 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1547 SANITY_CHECK_RETURN(h_FmPcd, E_INVALID_STATE);
1552 t_Error FM_PCD_SetAdvancedOffloadSupport(t_Handle h_FmPcd)
1554 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1578 uint32_t FM_PCD_GetCounter(t_Handle h_FmPcd, e_FmPcdCounters counter)
1580 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1584 SANITY_CHECK_RETURN_VALUE(h_FmPcd, E_INVALID_HANDLE, 0);
1756 t_Error FM_PCD_SetException(t_Handle h_FmPcd, e_FmPcdExceptions exception, bool enable)
1758 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1881 t_Error FM_PCD_ForceIntr (t_Handle h_FmPcd, e_FmPcdExceptions exception)
1883 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1885 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
1959 t_Error FM_PCD_ModifyCounter(t_Handle h_FmPcd, e_FmPcdCounters counter, uint32_t value)
1961 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;
1963 SANITY_CHECK_RETURN_ERROR(h_FmPcd, E_INVALID_HANDLE);
2090 t_Handle FM_PCD_GetHcPort(t_Handle h_FmPcd)
2092 t_FmPcd *p_FmPcd = (t_FmPcd*)h_FmPcd;