[JIRA ID: ODUHIGH-253]-sliv cfg table implementation
[o-du/l2.git] / src / cm / cm_tenb_stats.c
index dba907f..b0ca7f7 100755 (executable)
 #include "cm_tenb_stats.x"    /* Total EnodeB Stats declarations */
 
 #ifdef TENB_STATS
-PRIVATE Void TSInfUtlPackUeInfo ARGS((
+static Void TSInfUtlPackUeInfo ARGS((
  Buffer            *mBuf,
  TSInfL2UeStats     *stats 
 ));
-PRIVATE Void TSInfUtlPackCellInfo ARGS((
+static Void TSInfUtlPackCellInfo ARGS((
  Buffer              *mBuf,
  TSInfL2CellStats     *stats 
 ));
-PRIVATE Void TSInfUtlUnpkUeInfo ARGS((
+static Void TSInfUtlUnpkUeInfo ARGS((
  Buffer            *mBuf,
  TSInfL2UeStats     *stats 
 ));
-PRIVATE Void TSInfUtlUnpkCellInfo ARGS((
+static Void TSInfUtlUnpkCellInfo ARGS((
  Buffer              *mBuf,
  TSInfL2CellStats     *stats
 ));
-PRIVATE Buffer* TSInfUtlAllocMsg ARGS((
+static Buffer* TSInfUtlAllocMsg ARGS((
  Pst   *pst
 ));
  
@@ -101,13 +101,13 @@ PRIVATE Buffer* TSInfUtlAllocMsg ARGS((
 *
 */
 #ifdef ANSI
-PRIVATE Void TSInfTrigL2Stats
+static Void TSInfTrigL2Stats
 (
  Region    region,
  Pool      pool
 )
 #else
-PRIVATE Void TSInfTrigL2Stats(region, pool)
+static Void TSInfTrigL2Stats(region, pool)
  Region    region;
  Pool      pool;
 #endif
@@ -115,7 +115,6 @@ PRIVATE Void TSInfTrigL2Stats(region, pool)
    Buffer* pBuf;
    Pst pst = {0};
 
-   TRC2(TSInfTrigL2Stats)
 
    SGetMsg(region, pool, &pBuf);
 //#if defined(SCH_STATS) || defined(TENB_STATS)
@@ -129,7 +128,7 @@ PRIVATE Void TSInfTrigL2Stats(region, pool)
    pst.event = TENBSTATSINIT; 
    SPstTsk(&pst, pBuf);
 
-   RETVOID;
+   return;
 }
 
 /*
@@ -145,38 +144,36 @@ PRIVATE Void TSInfTrigL2Stats(region, pool)
 *
 */
 #ifdef ANSI
-PUBLIC Void TSInfTrigStats
+Void TSInfTrigStats
 (
  Region    region,
  Pool      pool
 )
 #else
-PUBLIC Void TSInfTrigStats(region, pool)
+Void TSInfTrigStats(region, pool)
  Region    region;
  Pool      pool;
 #endif
 {
-   TRC2(TSInfTrigStats)
 //TODO
    TSInfTrigL2Stats(region, pool);
 
-   RETVOID;
+   return;
 }
 
          
 #ifdef ANSI
-PRIVATE Buffer* TSInfUtlAllocMsg
+static Buffer* TSInfUtlAllocMsg
 (
  Pst   *pst
 )
 #else
-PRIVATE Buffer* TSInfUtlAllocMsg(pst)
+static Buffer* TSInfUtlAllocMsg(pst)
  Pst   *pst;
 #endif
 {
    Buffer *mBuf; 
 
-   TRC2(TSInfUtlAllocMsg)
 
    if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
       printf("\n MBuf Allocation failed\n");
@@ -185,21 +182,20 @@ PRIVATE Buffer* TSInfUtlAllocMsg(pst)
 }
 
 #ifdef ANSI
-PRIVATE Void TSInfUtlPackUeInfo
+static Void TSInfUtlPackUeInfo
 (
  Buffer            *mBuf,
  TSInfL2UeStats     *stats
 )
 #else
-PRIVATE Void TSInfUtlPackUeInfo(mBuf, stats)
+static Void TSInfUtlPackUeInfo(mBuf, stats)
  Buffer            *mBuf;
  TSInfL2UeStats     *stats; 
 #endif
 {
    S32 i;
-   U32 k;
+   uint32_t k;
 
-   TRC2(TSInfUtlPackUeInfo)
 
    CMCHKPK(oduUnpackUInt32, stats->persistent.numDeactivation, mBuf);
    CMCHKPK(oduUnpackUInt32, stats->persistent.numActivation, mBuf);
@@ -263,24 +259,23 @@ PRIVATE Void TSInfUtlPackUeInfo(mBuf, stats)
       CMCHKPK(oduUnpackUInt32, stats->nonPersistent.sch[k].dlTxOccns, mBuf);
    }
    CMCHKPK(oduUnpackUInt32, stats->rnti, mBuf);
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PRIVATE Void TSInfUtlPackCellInfo
+static Void TSInfUtlPackCellInfo
 (
  Buffer              *mBuf,
  TSInfL2CellStats     *stats  
 )
 #else
-PRIVATE Void TSInfUtlPackCellInfo(mBuf, stats)
+static Void TSInfUtlPackCellInfo(mBuf, stats)
  Buffer              *mBuf;
  TSInfL2CellStats     *stats; 
 #endif
 {
    S32 i,j;
 
-   TRC2(TSInfUtlPackCellInfo)
 
    CMCHKPK(oduUnpackUInt32, stats->rlc.reOdrTmrExp, mBuf);
    CMCHKPK(oduUnpackUInt32, stats->rlc.maxRlcDrbRetxFail, mBuf);
@@ -380,25 +375,24 @@ PRIVATE Void TSInfUtlPackCellInfo(mBuf, stats)
 
    CMCHKPK(oduUnpackUInt32, stats->cellId, mBuf);
 
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PRIVATE Void TSInfUtlUnpkUeInfo
+static Void TSInfUtlUnpkUeInfo
 (
  Buffer            *mBuf,
  TSInfL2UeStats     *stats 
 )
 #else
-PRIVATE Void TSInfUtlUnpkUeInfo(mBuf, stats)
+static Void TSInfUtlUnpkUeInfo(mBuf, stats)
  Buffer            *mBuf;
  TSInfL2UeStats     *stats; 
 #endif
 {
    S32 i;
-   U32 k;
+   uint32_t k;
 
-   TRC2(TSInfUtlUnpkUeInfo)
 
    CMCHKUNPK(oduPackUInt32, &stats->rnti, mBuf);
 
@@ -463,24 +457,23 @@ PRIVATE Void TSInfUtlUnpkUeInfo(mBuf, stats)
    CMCHKUNPK(oduPackUInt32, &stats->persistent.numActivation, mBuf);
    CMCHKUNPK(oduPackUInt32, &stats->persistent.numDeactivation, mBuf);
 
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PRIVATE Void TSInfUtlUnpkCellInfo
+static Void TSInfUtlUnpkCellInfo
 (
  Buffer              *mBuf,
  TSInfL2CellStats     *stats 
 )
 #else
-PRIVATE Void TSInfUtlUnpkCellInfo(mBuf, stats)
+static Void TSInfUtlUnpkCellInfo(mBuf, stats)
  Buffer              *mBuf;
  TSInfL2CellStats     *stats; 
 #endif
 {
    S32 i,j;
 
-   TRC2(TSInfUtlUnpkCellInfo)
 
       CMCHKUNPK(oduPackUInt32, &stats->cellId, mBuf);
 
@@ -580,18 +573,18 @@ PRIVATE Void TSInfUtlUnpkCellInfo(mBuf, stats)
    CMCHKUNPK(oduPackUInt32, &stats->rlc.maxRlcDrbRetxFail, mBuf);
    CMCHKUNPK(oduPackUInt32, &stats->rlc.reOdrTmrExp, mBuf);
 
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PUBLIC Void TSInfPkSndL2UeStats
+Void TSInfPkSndL2UeStats
 (
  Pst               *pst,
  SuId              suId,
  TSInfL2UeStats     *stats  
 )
 #else
-PUBLIC Void TSInfPkSndL2UeStats(pst, suId, stats)
+Void TSInfPkSndL2UeStats(pst, suId, stats)
  Pst               *pst;
  SuId              suId;
  TSInfL2UeStats     *stats;
@@ -599,25 +592,24 @@ PUBLIC Void TSInfPkSndL2UeStats(pst, suId, stats)
 {
    Buffer *mBuf;
 
-   TRC2(TSInfPkSndL2UeStats)
 
    mBuf = TSInfUtlAllocMsg(pst);
    TSInfUtlPackUeInfo(mBuf, stats);
    SPkS16(suId, mBuf);
    pst->event = (Event) EVTTENBL2UESTATS;
    SPstTsk(pst, mBuf);
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PUBLIC Void TSInfUnpkL2UeStats
+Void TSInfUnpkL2UeStats
 (
  TSInfL2UeStatsInd   func,
  Pst                *pst,
  Buffer             *mBuf
 )
 #else
-PUBLIC Void TSInfUnpkL2UeStats(func, pst, mBuf)
+Void TSInfUnpkL2UeStats(func, pst, mBuf)
  TSInfL2UeStatsInd   func;
  Pst                *pst;
  Buffer             *mBuf;
@@ -626,24 +618,23 @@ PUBLIC Void TSInfUnpkL2UeStats(func, pst, mBuf)
    SuId              suId;
    TSInfL2UeStats     stats; 
 
-   TRC2(TSInfUnpkL2UeStats)
 
    SUnpkS16(&suId, mBuf);
    TSInfUtlUnpkUeInfo(mBuf, &stats);
    SPutMsg(mBuf);
    (*func)(pst, suId, &stats);
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PUBLIC Void TSInfPkSndL2CellStats
+Void TSInfPkSndL2CellStats
 (
  Pst                 *pst,
  SuId                suId,
  TSInfL2CellStats   *stats 
 )
 #else
-PUBLIC Void TSInfPkSndL2CellStats(pst, suId, stats)
+Void TSInfPkSndL2CellStats(pst, suId, stats)
  Pst                 *pst;
  SuId                suId;
  TSInfL2Cellstats   *stats;
@@ -651,25 +642,24 @@ PUBLIC Void TSInfPkSndL2CellStats(pst, suId, stats)
 {
    Buffer *mBuf;
 
-   TRC2(TSInfPkSndL2CellStats)
 
    mBuf = TSInfUtlAllocMsg(pst);
    TSInfUtlPackCellInfo(mBuf, stats);
    SPkS16(suId, mBuf);
    pst->event = (Event) EVTTENBL2CELLSTATS;
    SPstTsk(pst, mBuf);
-   RETVOID;
+   return;
 }
 
 #ifdef ANSI
-PUBLIC Void TSInfUnpkL2CellStats
+Void TSInfUnpkL2CellStats
 (
  TSInfL2CellStatsInd   func,
  Pst                *pst,
  Buffer             *mBuf
 )
 #else
-PUBLIC Void TSInfUnpkL2CellStats(func, pst, mBuf)
+Void TSInfUnpkL2CellStats(func, pst, mBuf)
  TSInfL2CellStatsInd   func;
  Pst                *pst;
  Buffer             *mBuf;
@@ -678,13 +668,12 @@ PUBLIC Void TSInfUnpkL2CellStats(func, pst, mBuf)
    SuId                suId;
    TSInfL2CellStats    stats; 
 
-   TRC2(TSInfUnpkL2CellStats)
 
    SUnpkS16(&suId, mBuf);
    TSInfUtlUnpkCellInfo(mBuf, &stats);
    SPutMsg(mBuf);
    (*func)(pst, suId, &stats);
-   RETVOID;
+   return;
 }
 #endif /* TENB_STATS */