#include "rg_sch.x" /* Scheduler includes */
#include "rg_sch_cmn.x"
#ifdef EMTC_ENABLE
-EXTERN Bool rgSCHRamVldtRgrEmtcUeCfg ARGS((
+Bool rgSCHRamVldtRgrEmtcUeCfg ARGS((
RgSchCellCb *cell,
RgrUeCfg *ueCfg
));
-EXTERN S16 rgSCHRamRmvAllFrmEmtcRaInfoSchdLst
+S16 rgSCHRamRmvAllFrmEmtcRaInfoSchdLst
(
RgSchCellCb *cell
);
-EXTERN Void rgSCHEmtcUtlUpdCmnNb
+Void rgSCHEmtcUtlUpdCmnNb
(
RgSchRaCb *raCb
);
-EXTERN Void rgSCHEmtcHqPAlloc
+Void rgSCHEmtcHqPAlloc
(
RgSchCellCb *cell,
RgSchDlHqEnt *hqEnt
#endif
/* local defines */
/* local typedefs */
-PRIVATE Void rgSCHRamUlFreeAllocation ARGS((RgSchUlSf *sf,RgSchUlAlloc *alloc,
+static Void rgSCHRamUlFreeAllocation ARGS((RgSchUlSf *sf,RgSchUlAlloc *alloc,
RgSchCellCb *cell,Bool isEmtc));
-PRIVATE S16 rgSCHRamContResCrnti ARGS((RgSchCellCb *cell, RgSchUeCb *ue,
+static S16 rgSCHRamContResCrnti ARGS((RgSchCellCb *cell, RgSchUeCb *ue,
RgSchRaCb *raCb, RgSchErrInfo *err));
-PRIVATE S16 rgSCHRamContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
+static S16 rgSCHRamContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
#ifdef EMTC_ENABLE
-EXTERN S16 rgSCHEmtcRamContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
-EXTERN S16 rgSCHRamEmtcContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
-EXTERN Void rgSCHChkEmtcContResGrdTmrExp ARGS((RgSchCellCb *cell));
-EXTERN Void rgSCHChkEmtcContResTmrExp ARGS((RgSchCellCb *cell));
-EXTERN Void rgSCHEmtcRaInfoFree ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
+S16 rgSCHEmtcRamContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
+S16 rgSCHRamEmtcContResCcchsdu ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
+Void rgSCHChkEmtcContResGrdTmrExp ARGS((RgSchCellCb *cell));
+Void rgSCHChkEmtcContResTmrExp ARGS((RgSchCellCb *cell));
+Void rgSCHEmtcRaInfoFree ARGS((RgSchCellCb *cell, RgSchRaCb *raCb));
#endif
#ifdef RGR_V1
-PRIVATE Void rgSCHChkContResGrdTmrExp ARGS((RgSchCellCb *cell));
-PRIVATE Void rgSCHChkContResTmrExp ARGS((RgSchCellCb *cell));
-PRIVATE Void rgSCHRamProcContResExp ARGS((RgSchCellCb *cell,
+static Void rgSCHChkContResGrdTmrExp ARGS((RgSchCellCb *cell));
+static Void rgSCHChkContResTmrExp ARGS((RgSchCellCb *cell));
+static Void rgSCHRamProcContResExp ARGS((RgSchCellCb *cell,
RgSchRaCb *raCb));
-PRIVATE Void rgSCHRamProcContResGrdExp ARGS((RgSchCellCb *cell,
+static Void rgSCHRamProcContResGrdExp ARGS((RgSchCellCb *cell,
RgSchRaCb *raCb));
#ifdef EMTC_ENABLE
-EXTERN Void rgSCHChkEmtcContResGrdTmrExp ARGS((RgSchCellCb *cell));
-EXTERN Void rgSCHChkEmtcContResTmrExp ARGS((RgSchCellCb *cell));
+Void rgSCHChkEmtcContResGrdTmrExp ARGS((RgSchCellCb *cell));
+Void rgSCHChkEmtcContResTmrExp ARGS((RgSchCellCb *cell));
#endif
#endif
/* forward references */
RgrUeCfg *ueCfg;
#endif
{
- TRC2(rgSCHRamVldtUeCfg);
if (ueCfg->dedPreambleId.pres == PRSNT_NODEF)
{
if ((ueCfg->dedPreambleId.val < cell->rachCfg.numRaPreamble) ||
#ifdef ANSI
S16 rgSCHRamProcRaReq
(
-U8 raReqCnt,
+uint8_t raReqCnt,
RgSchCellCb *cell,
CmLteRnti raRnti,
TfuRachInfo *raReqInd,
)
#else
S16 rgSCHRamProcRaReq(raReqCnt, cell, raRnti, raReqInd, timingInfo, ue, err)
-U8 raReqCnt;
+uint8_t raReqCnt;
RgSchCellCb *cell;
CmLteRnti raRnti;
TfuRachInfo *raReqInd;
#endif
{
RgSchRaReqInfo *raReqInfo;
- U16 raIndex;
+ uint16_t raIndex;
#ifdef LTE_TDD
- U8 fid;
- U8 tid;
+ uint8_t fid;
+ uint8_t tid;
#endif
- TRC2(rgSCHRamProcRaReq)
/* SR_RACH_STATS : RACH REQ */
RgSchRntiLnk *rntiLnk;
Inst inst = cell->instIdx;
- TRC2(rgSCHRamCreateRaCb)
if((rgSCHUtlAllocSBuf(inst, (Data **)(raCb),
sizeof(RgSchRaCb))) == RFAILED)
{
/* Releasing HARQ processes of old UE when ue
* reconfig with new crnti */
- /* U32 cnt; */
+ /* uint32_t cnt; */
RgSchDlHqEnt **hqEnt = &(RG_SCH_CMN_GET_UE_HQE(ue, cell));
RgSchCmnUlUe *ueUl = RG_SCH_CMN_GET_UL_UE(ue, cell);
- TRC2(rgSCHRamRgrUeCfg)
/* Fix : set UE inactive in DL until UE is reinitialization completed */
* -# ROK
**/
#ifdef ANSI
-PRIVATE S16 rgSCHRamContResCrnti
+static S16 rgSCHRamContResCrnti
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgSchErrInfo *err
)
#else
-PRIVATE S16 rgSCHRamContResCrnti(cell, ue, raCb, err)
+static S16 rgSCHRamContResCrnti(cell, ue, raCb, err)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgSchRaCb *raCb;
{
TfuUlCqiRpt ulCqiRpt;
RgSchCmnCell *cellSch= (RgSchCmnCell *)(cell->sc.sch);
- TRC2(rgSCHRamContResCrnti)
/* Fix: syed It is incorrect to copy over msg3HqProc to ueCb's
* -# ROK
**/
#ifdef ANSI
-PRIVATE S16 rgSCHRamContResCcchsdu
+static S16 rgSCHRamContResCcchsdu
(
RgSchCellCb *cell,
RgSchRaCb *raCb
)
#else
-PRIVATE S16 rgSCHRamContResCcchsdu(cell, raCb)
+static S16 rgSCHRamContResCcchsdu(cell, raCb)
RgSchCellCb *cell;
RgSchRaCb *raCb;
#endif
CmLteTimingInfo expTime = {0};
RgSchCmnCell *cellSch = RG_SCH_CMN_GET_CELL(cell);
#endif
- TRC2(rgSCHRamContResCcchsdu)
if(raCb->raState != RGSCH_RA_MSG3_PENDING)
{
RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId,
RgSchErrInfo *err;
#endif
{
- TRC2(rgSCHRamProcMsg3)
/* Update raCb with PHR if received along with Msg3 */
RgInfCmnBoRpt *staRsp;
#endif
{
- TRC2(rgSCHRamUpdtBo)
/* Update Bo in RaCb */
- raCb->dlCcchInfo.bo = (U32)(staRsp->bo);
+ raCb->dlCcchInfo.bo = (uint32_t)(staRsp->bo);
/* SR_RACH_STATS : MSG4 WITH CCCH SDU */
rgNumMsg4WithCCCHSdu++;
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamMsg3DatInd)
/* SR_RACH_STATS : MSG3 ACK*/
rgNumMsg3CrcPassed++;
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamMsg3FailureInd)
/*ccpu00128820 - MOD - Msg3 alloc double delete issue*/
rgSCHUhmProcMsg3Failure(&(raCb->msg3HqProc));
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamMsg4FdbkInd)
return ROK;
} /* rgSCHRamMsg4FdbkInd */
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamMsg4Done)
RLOG_ARG1(L_DEBUG,DBG_CELLID,cell->cellId,
"rgSCHRamMsg4Done(): tmpCRNTI = %u",
{
Inst inst = cell->instIdx;
Bool isEmtc = FALSE;
- TRC2(rgSCHRamDelRaCb)
/* Delete from all the lists it is enqueued */
cmLListDelFrm(&(cell->raInfo.raCbLst),&(raCb->raCbLnk));
#endif
{
RgSchRaCb *raCb;
- U16 raSfn;
- U16 crntSfn;
- U16 dist; /* Number of frames between raCb's creation and crnt
+ uint16_t raSfn;
+ uint16_t crntSfn;
+ uint16_t dist; /* Number of frames between raCb's creation and crnt
frame */
- U8 idx;
- U32 maxCnt;
+ uint8_t idx;
+ uint32_t maxCnt;
#ifndef LTE_TDD
- U8 winGap;
- U8 raIdx;
+ uint8_t winGap;
+ uint8_t raIdx;
RgSchRaReqInfo *raReqInfo;
#else
CmLteTimingInfo frm;
- U8 raIdx;
+ uint8_t raIdx;
#endif
- TRC2(rgSCHRamTtiHndlr)
crntSfn = cell->crntTime.sfn;
{
RgSchRaReqInfo *raReqInfo;
RgSchRaCb *raCb;
- U8 idx;
- U8 raCbCnt;
+ uint8_t idx;
+ uint8_t raCbCnt;
Inst inst = cell->instIdx;
- U8 lstSz;
+ uint8_t lstSz;
#ifdef LTE_TDD
- U8 maxUlSubframes;
- U8 maxDlSubframes;
+ uint8_t maxUlSubframes;
+ uint8_t maxDlSubframes;
#endif
- TRC2(rgSCHRamFreeCell)
#ifdef LTE_TDD
} /* rgSCHRamFreeCell */
#ifdef RGR_V1
#ifdef ANSI
-PRIVATE Void rgSCHRamProcContResExp
+static Void rgSCHRamProcContResExp
(
RgSchCellCb *cell,
RgSchRaCb *raCb
)
#else
-PRIVATE Void rgSCHRamProcContResExp (cell, raCb)
+static Void rgSCHRamProcContResExp (cell, raCb)
RgSchCellCb *cell;
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamProcContResExp);
raCb->expiryTime.sfn = RGSCH_CONTRES_EXP;
/*MSG4 Fix*/
if (raCb->ue)
/* Delete RACB and release RNTI */
rgSCHRamDelRaCb(cell, raCb, TRUE);
}
- RETVOID;
+ return;
}
#ifdef ANSI
-PRIVATE Void rgSCHRamProcContResGrdExp
+static Void rgSCHRamProcContResGrdExp
(
RgSchCellCb *cell,
RgSchRaCb *raCb
)
#else
-PRIVATE Void rgSCHRamProcContResGrdExp (cell, raCb)
+static Void rgSCHRamProcContResGrdExp (cell, raCb)
RgSchCellCb *cell;
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamProcContResGrdExp)
/*Guard timer has expired, schedule only the contention REsolution CE with
raCb->rntiLnk->rnti);
rgSCHRamAddToRaInfoSchdLst(cell, raCb);
/* MSG4 Fix End */
- RETVOID;
+ return;
}
/**
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE Void rgSCHChkContResTmrExp
+static Void rgSCHChkContResTmrExp
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHChkContResTmrExp(cell)
+static Void rgSCHChkContResTmrExp(cell)
RgSchCellCb *cell;
#endif
{
CmLList *chkLnk = NULLP;
RgSchRaCb *raCb = NULLP;
- TRC2(rgSCHChkContResTmrExp)
chkLnk = cmLListFirst(&(cell->contResTmrLst));
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE Void rgSCHChkContResGrdTmrExp
+static Void rgSCHChkContResGrdTmrExp
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHChkContResGrdTmrExp(cell)
+static Void rgSCHChkContResGrdTmrExp(cell)
RgSchCellCb *cell;
#endif
{
CmLList *chkLnk = NULLP;
RgSchRaCb *raCb = NULLP;
- TRC2(rgSCHChkContResGrdTmrExp)
chkLnk = cmLListFirst(&(cell->contResGrdTmrLst));
*
* @param[in,out] RgSchCellCb *cell
* @param[in] CmLteTimingInfo timingInfo
- * @param[in] U8 raIdx
+ * @param[in] uint8_t raIdx
* @return S16
* -# ROK
**/
(
RgSchCellCb *cell,
CmLteTimingInfo timingInfo,
-U8 raIdx
+uint8_t raIdx
)
#else
S16 rgSCHRamDelRaReq(cell, timingInfo, raIdx)
RgSchCellCb *cell;
CmLteTimingInfo timingInfo;
-U8 raIdx;
+uint8_t raIdx;
#endif
{
- U8 subfrmIdx;
+ uint8_t subfrmIdx;
RgSchTddRachRspLst *rachRsp;
- U16 sfnIdx;
+ uint16_t sfnIdx;
S16 calcSfn;
- U8 subfrm;
+ uint8_t subfrm;
RgSchRaReqInfo *raReqInfo;
- U8 idx;
- U8 i;
- U8 raRntiIdx;
+ uint8_t idx;
+ uint8_t i;
+ uint8_t raRntiIdx;
CmLteRnti raRnti;
- TRC2(rgSCHRamDelRaReq)
rachRsp = &cell->rachRspLst[raIdx];
CmLteTimingInfo expTime ={0};
RgSchCmnCell *cellSch = RG_SCH_CMN_GET_CELL(cell);
- TRC2(rgSCHRamAddToRaInfoSchdLst)
/*Fix: This can be called even when guard timer is not expired.
* In this case CR timer expiry should be guard timer expiry time + Guard timer time*/
RgSchRaCb *raCb;
#endif
{
- TRC2(rgSCHRamRmvFrmRaInfoSchdLst)
cmLListDelFrm(&(cell->raInfo.toBeSchdLst), &(raCb->schdLnk));
raCb->schdLnk.node = NULLP;
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHRamUlFreeAllocation
+static Void rgSCHRamUlFreeAllocation
(
RgSchUlSf *sf,
RgSchUlAlloc *alloc,
)
#else
-PRIVATE Void rgSCHRamUlFreeAllocation(sf, alloc, cell,isEmtc)
+static Void rgSCHRamUlFreeAllocation(sf, alloc, cell,isEmtc)
RgSchUlSf *sf;
RgSchUlAlloc *alloc;
RgSchCellCb *cell;
Bool isEmtc;
#endif
{
- TRC2(rgSCHRamUlFreeAllocation);
rgSCHUhmFreeProc(alloc->hqProc, cell);
if(!isEmtc)
{
rgSCHUtlUlAllocRls(sf, alloc);
}
- RETVOID;
+ return;
}
/**********************************************************************