static int RLOG_FILE_ID=163;
/* 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 */
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP )
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
rgSCHDrxTtiHdlOnDurUl(cell, ulIndex);
- RETVALUE(ROK);
+ return ROK;
}/*rgSCHDrxTtiHdlOnDur*/
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
cellSch = RG_SCH_CMN_GET_CELL(cell);
cellSch->apisDl->rgSCHDlInactvtUes(cell,&dlInactvLst);
- RETVALUE(ROK);
+ return ROK;
}/*rgSCHDrxTtiHdlInActv*/
/** @brief This function handles the per TTI processing for DRX short cycle
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP )
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
rgSCHDrxMvToNxtOnDurOcc(cell,ue,RG_SCH_DRX_DL_DELTA,TRUE);
}/*while(node)...*/
- RETVALUE(ROK);
+ return ROK;
}/*rgSCHDrxTtiHdlShortCycle*/
#if ( ERRCLASS & ERRCLS_INT_PAR)
if ( cell == (RgSchCellCb *)NULLP )
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif /*ERRCLASS & ERRCLS_INT_PAR*/
rgSCHDrxTtiHdlUlHarqRTT(cell, ulIndex);
- RETVALUE(ROK);
+ return ROK;
}
/** @brief This function is called by the common scheduler as part of
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
if ((ue == (RgSchUeCb* )NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSCHDrxUeCfg():"
"Invalid params.cell or ue or ueCfg is NULL ");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"Memory allocation FAILED for DRX UECB CRBTI:%d",ue->ueId);
- RETVALUE(ret);
+ return (ret);
}
ueDrxCb = ue->drxCb;
ueDrxCb->shortCycleEnt.node = (PTR)ue;
}
- RETVALUE(ret);
+ return (ret);
} /* end of rgSCHDrxUeCfg */
/** @brief This function gets the next occurance of onDurationTimer from the
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP )
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
if( (drxCb == (RgSchDrxUeCb* )NULLP)
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
"rgSCHDrxGetNxOnDur():Invalid params."
"cell/drxCb/nxtOnDur is NULL");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
nxtOnDur->sfn = (U16)nxtDist / RGSCH_NUM_SUB_FRAMES_5G;
nxtOnDur->slot = (U16)nxtDist % RGSCH_NUM_SUB_FRAMES_5G;
}
- RETVALUE(ROK);
+ return ROK;
} /* end of rgSCHDrxGetNxtOnDur */
/** @brief This function is a utility function to copy the UE configuration from
(drxCfg == (RgrUeDrxCfg* )NULLP)
)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
ueCb->shortDrxCycle = drxCfg->drxShortDrx.shortDrxCycle;
ueCb->shortCycleTmrLen = drxCfg->drxShortDrx.drxShortCycleTmr;
- RETVALUE(ROK);
+ return ROK;
} /* end of rgSCHDrxCpyUeCfg */
#ifdef RGR_V2
RLOG_ARG1(L_ERROR,DBG_CELLID,cell->cellId,
"rgSCHdrxUeReCfg():""Memory allocation FAILED for DRX UE Cb CRNTI:%d",
ue->ueId);
- RETVALUE(ret);
+ return (ret);
}
ue->isDrxEnabled = TRUE; /* sachin */
}
if( ue->drxCb == NULLP )
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
ueDrxCb = ue->drxCb;
}
}
- RETVALUE(ROK);
+ return ROK;
} /* end of rgSCHDrxUeReCfg */
#endif
ueDrxCb->drxDlInactvMask = DRX_UE_INACTIVE;
ueDrxCb->drxUlInactvMask = DRX_UE_INACTIVE;
- RETVALUE(ROK);
+ return ROK;
}/*rgSCHDrxUeDel*/
/** @brief This function is called at the time of RGR cell configuration.
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
"rgSCHDrxCellCfg():Invalid Params. cell/cellCfg is NULL");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSCHDrxCellCfg():"
"Memory allocation FAILED for DRX cell Cb");
- RETVALUE(ret);
+ return (ret);
}
/* delInUlScan determines which index scans the queue last.
cell->drxCb->delInUlScan = TRUE;
}
- RETVALUE(ret);
+ return (ret);
} /* end of rgSchDrxCellCfg */
#if ( ERRCLASS & ERRCLS_INT_PAR )
if ( cell == (RgSchCellCb* )NULLP)
{
- RETVALUE(ROK);
+ return ROK;
}
if( (ue == (RgSchUeCb* )NULLP))
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,
"rgSCHDrxSrInd():Invalid Params. cell/ue is NULL");
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
/* KWork fix - shifted this down */
/* Update UE's inactive mask and if required move UE to ACTIVE state */
RG_SCH_CMN_UL_UPDT_INACTV_MASK( cell, ue, RG_DRX_INACTIVE);
- RETVALUE(ROK);
+ return ROK;
} /* rgSCHDrxSrInd */
(tmrExpryIdx == (CmLteTimingInfo* )NULLP)
)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
#endif
tmrExpryIdx->sfn = tmrExpryIdx->sfn - (RG_SCH_CMN_MAX_SFN_NUM + 1);
}
- RETVALUE(ROK);
+ return ROK;
}/*rgSCHDrxGetNxtTmrExpry*/
/** @brief This function calculates the next onDuration Occurence
if(((RGSCH_MAX_SUBFRM_5G + endTimeInSf- startTime) % RGSCH_MAX_SUBFRM_5G) >=
drxCycle)
{
- RETVALUE(RFAILED);
+ return RFAILED;
}
startTime = (startTime + drxCycle);
}while((drxCycle % RGSCH_NUM_SUB_FRAMES) &&
(startTime < (drxCycle * RGSCH_NUM_SUB_FRAMES/2)));
- RETVALUE(ROK);
+ return ROK;
}
#endif /*LTE_TDD */