Replaced old SSI function with new macros jira id - ODUHIGH-212
[o-du/l2.git] / src / 5gnrsch / rg_sch_l2m.c
index 09badc3..eaaa884 100755 (executable)
@@ -14,7 +14,7 @@
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
-*******************************************************************************
+*******************************************************************************/
 
 /************************************************************************
  
 */
 
 /* header include files -- defines (.h) */
-#include "envopt.h"        /* environment options */
-#include "envdep.h"        /* environment dependent */
-#include "envind.h"        /* environment independent */
-#include "gen.h"           /* general layer */
-#include "ssi.h"           /* system service interface */
-#include "cm_hash.h"       /* common hash list */
-#include "cm_llist.h"      /* common linked list library */
-#include "cm_err.h"        /* common error */
-#include "cm_lte.h"        /* common LTE */
+#include "common_def.h"
 #include "lrg.h"
 #include "rgr.h"
 #include "rgm.h"
 #include "rl_common.h"
 
 /* header/extern include files (.x) */
-#include "gen.x"           /* general layer typedefs */
-#include "ssi.x"           /* system services typedefs */
-#include "cm5.x"           /* common timers */
-#include "cm_hash.x"       /* common hash list */
-#include "cm_lib.x"        /* common library */
-#include "cm_llist.x"      /* common linked list */
-#include "cm_mblk.x"       /* memory management */
-#include "cm_tkns.x"       /* common tokens */
-#include "cm_lte.x"        /* common tokens */
 #include "tfu.x"           /* TFU types */
 #include "lrg.x"           /* layer management typedefs for MAC */
 #include "rgr.x"           /* layer management typedefs for MAC */
@@ -321,7 +304,7 @@ U32               measTime;
    measCb->dlTotalBw = 0;
    measCb->ulTotalBw = 0;
 
-   RETVALUE(ROK);
+   return ROK;
 } /* rgSchFillL2MeasCfm */
 
 /** @brief This function sends the L2 measurement confirm to LM 
@@ -366,9 +349,9 @@ Bool              isErr;
       cfm.cfm.status   = LCM_PRIM_NOK;
       cfm.cfm.reason   = LCM_REASON_INVALID_PAR_VAL;
       RgMiLrgSchL2MeasCfm(pst, &cfm);
-      RETVALUE(ROK);
+      return ROK;
    }
-   RETVALUE(ROK);
+   return ROK;
 } /* rgSchL2mSndCfm */
 
 /** @brief This function fills the LM confirmation pst structure 
@@ -472,7 +455,7 @@ LrgSchMeasReqInfo *measInfo;
       {
          cell->l2mList.crnt = lnk;
          cmLListInsCrnt(&(cell->l2mList), node);
-         RETVALUE(ROK);
+         return ROK;
       }
       else
       {
@@ -480,7 +463,7 @@ LrgSchMeasReqInfo *measInfo;
       }
    }  /* End of While */
    cmLListAdd2Tail(&(cell->l2mList), node);
-   RETVALUE(ROK);
+   return ROK;
 } /* rgSchL2mInsertMeasCb */
 
 /** @brief This function calculates the Down link prb count 
@@ -602,7 +585,7 @@ RgSchErrInfo      err;
    {
       RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSchL2mAllocMeasCb():"
                   "Allocation of RgSchL2MeasCb failed");
-      RETVALUE(NULLP);
+      return (NULLP);
    }
    cmMemcpy((U8 *)&measCb->measReq, (U8 *)measInfo, sizeof(LrgSchMeasReqInfo));
    RGSCHCPYTIMEINFO(cell->crntTime, measCb->startTime);
@@ -610,7 +593,7 @@ RgSchErrInfo      err;
    measCb->dlTotalBw = 0;
    measCb->ulTotalBw = 0;
 
-   RETVALUE(measCb);
+   return (measCb);
 } /* rgSchL2mAllocMeasCb */
 
 /**
@@ -659,7 +642,7 @@ RgSchErrInfo      err;
                     RGSCHERR_SCH_ALLOC_FAILED);
        RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSchL2mMeasReq():"
                 "Allocation of RgSchL2MeasCb failed");
-       RETVALUE(RFAILED);
+       return RFAILED;
    }
    /*cmMemcpy((U8 *)&measCb->measReq, (CONSTANT U8 *)measInfo,\
              sizeof(LrgSchMeasReqInfo));*/
@@ -712,7 +695,7 @@ RgSchErrInfo      err;
       rgSCHUtlGetPstToLyr(&pst, &rgSchCb[cell->instIdx], cell->macInst);
       RgSchMacL2Meas(&pst, &measReq);
    }
-   RETVALUE(ROK);
+   return ROK;
 } /* rgSchL2mMeasReq */
 
 /**
@@ -925,7 +908,7 @@ U8 isCalrCrcInd
          }
       }
    }/* end of while */
-   RETVALUE(ROK);
+   return ROK;
 } /* rgSCHL2MEas */
 #endif /* LTE_L2_MEAS */
 /**********************************************************************