X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_l2m.c;h=3635db823cfeba0e8dd52ee484736760d9d6e4d5;hb=cfe7ea3ab6cb69d18ed91d79c1bf66b3bc8bdc98;hp=09badc338fc2c9096df0b476b40adfa170d6159b;hpb=5ea4c59cb4dd37164953218b0bd355284e11d22c;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_l2m.c b/src/5gnrsch/rg_sch_l2m.c index 09badc338..3635db823 100755 --- a/src/5gnrsch/rg_sch_l2m.c +++ b/src/5gnrsch/rg_sch_l2m.c @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ -******************************************************************************* +*******************************************************************************/ /************************************************************************ @@ -33,15 +33,7 @@ */ /* 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" @@ -55,15 +47,6 @@ #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 */ @@ -104,7 +87,7 @@ PRIVATE RgSchL2MeasCb * rgSchL2mAllocMeasCb ARGS(( * @return Void */ #ifdef ANSI -PUBLIC S16 rgSchFillL2MeasCfm +S16 rgSchFillL2MeasCfm ( RgSchCellCb *cell, RgSchL2MeasCb *measCb, @@ -112,7 +95,7 @@ LrgSchMeasCfmInfo *cfm, U32 measTime ) #else -PUBLIC S16 rgSchFillL2MeasCfm(cell, measCb, cfm, measTime) +S16 rgSchFillL2MeasCfm(cell, measCb, cfm, measTime) RgSchCellCb *cell; RgSchL2MeasCb *measCb; LrgSchMeasCfmInfo *cfm; @@ -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 @@ -337,7 +320,7 @@ U32 measTime; * @return Void */ #ifdef ANSI -PUBLIC S16 rgSchL2mSndCfm +S16 rgSchL2mSndCfm ( Pst *pst, RgSchL2MeasCb *measCb, @@ -345,7 +328,7 @@ LrgSchMeasReqInfo *measInfo, Bool isErr ) #else -PUBLIC S16 rgSchL2mSndCfm(pst, measCb, measInfo, isErr) +S16 rgSchL2mSndCfm(pst, measCb, measInfo, isErr) Pst *pst; RgSchL2MeasCb *measCb; LrgSchMeasReqInfo *measInfo; @@ -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 @@ -383,14 +366,14 @@ Bool isErr; * @return Void */ #ifdef ANSI -PUBLIC Void rgSchL2mFillCfmPst +Void rgSchL2mFillCfmPst ( Pst *pst, Pst *cfmPst, LrgSchMeasReqInfo *measInfo ) #else -PUBLIC Void rgSchL2mFillCfmPst(pst, cfmPst, measInfo) +Void rgSchL2mFillCfmPst(pst, cfmPst, measInfo) Pst *pst; Pst *cfmPst; LrgSchMeasReqInfo *measInfo; @@ -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 */ /** @@ -633,14 +616,14 @@ RgSchErrInfo err; * -# RFAILED **/ #ifdef ANSI -PUBLIC S16 rgSchL2mMeasReq +S16 rgSchL2mMeasReq ( RgSchCellCb *cell, LrgSchMeasReqInfo *measInfo, RgSchErrInfo err ) #else -PUBLIC S16 rgSchL2mMeasReq(cell, measInfo, err) +S16 rgSchL2mMeasReq(cell, measInfo, err) RgSchCellCb *cell; LrgSchMeasReqInfo *measInfo; RgSchErrInfo err; @@ -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 */ /** @@ -729,13 +712,13 @@ RgSchErrInfo err; * -# RFAILED **/ #ifdef ANSI -PUBLIC S16 rgSCHL2Meas +S16 rgSCHL2Meas ( RgSchCellCb *cell, U8 isCalrCrcInd ) #else -PUBLIC S16 rgschL2Meas(cell,isCalrCrcInd) +S16 rgschL2Meas(cell,isCalrCrcInd) RgSchCellCb *cell; U8 isCalrCrcInd #endif @@ -925,7 +908,7 @@ U8 isCalrCrcInd } } }/* end of while */ - RETVALUE(ROK); + return ROK; } /* rgSCHL2MEas */ #endif /* LTE_L2_MEAS */ /**********************************************************************