RgrDel *del,RgSchErrInfo *errInfo));
#ifdef LTE_ADV
PRIVATE S16 rgSCHGomHndlSCellActDeactReq ARGS((RgSchCb *instCb, SpId spId,
- RgrSCellActDeactEvnt *sCellActDeactEvnt, RgSchErrInfo *errInfo, U8 action));
+ RgrSCellActDeactEvnt *sCellActDeactEvnt, RgSchErrInfo *errInfo, uint8_t action));
#endif /* LTE_ADV */
#ifdef EMTC_ENABLE
EXTERN S16 rgSchEmtcGetSiWinPerd ARGS((
RgSchCellCb *cell,
-U16 *siWinSize,
-U16 *minPeriod
+uint16_t *siWinSize,
+uint16_t *minPeriod
));
extern S16 rgSCHEmtcUtlCalMcsAndNPrb
(
RgSchCellCb *cell,
- U8 cfgType,
+ uint8_t cfgType,
MsgLen msgLen,
- U8 siId
+ uint8_t siId
);
EXTERN S32 rgSCHEmtcUtlGetAllwdCchTbSzForSI ARGS(
(
-U32 bo
+uint32_t bo
));
EXTERN Void rgSCHEmtcWarningSiCfg ARGS(
(
RgSchCellCb *cell,
RgrWarningSiCfgReqInfo *warningSiCfgReqInfo,
-U16 idx
+uint16_t idx
));
#endif
SpId spId = 0;
CmLteCellId cellId;
RgSchCellCb *cell = NULLP;
- U8 cfmStatus = RGR_CFG_CFM_NOK;
+ uint8_t cfmStatus = RGR_CFG_CFM_NOK;
#ifdef DEBUGP
Inst inst = (instCb->rgSchInit.inst );
#endif
- TRC2(rgSCHGomHndlCfg);
/* Apply the configuration for Cell Configuration or Delete */
if (cfgReqInfo->action != RGR_RECONFIG)
{
#endif
{
SpId spId = 0;
- U8 cfmStatus = RGR_CFG_CFM_OK;
+ uint8_t cfmStatus = RGR_CFG_CFM_OK;
S16 ret;
RgSchErrInfo errInfo;
#ifdef DEBUGP
Inst inst = (instCb->rgSchInit.inst );
#endif
- TRC2(rgSCHGomCfgReq);
#ifdef EMTC_ENABLE
printf("\n AT MAC rgSCHGomCfgReq \n");
#endif
#endif
{
S16 ret;
- U32 sfDiff;
+ uint32_t sfDiff;
RgSchCfgElem *rgrCfgElem = NULLP;
CmLteTimingInfo actvTime;
Inst inst = cell->instIdx;
- TRC2(rgSCHGomEnqCfgReq);
-
/* Allocate memory for config Element */
ret = rgSCHUtlAllocSBuf(inst, (Data **)&rgrCfgElem, sizeof(RgSchCfgElem));
- if ((ret != ROK) || ((U8 *)rgrCfgElem == NULLP))
+ if ((ret != ROK) || ((uint8_t *)rgrCfgElem == NULLP))
{
return RFAILED;
}
/* Initialize the configuration element */
- cmMemcpy((U8*)rgrCfgElem->rgrCfg.transId.trans,(U8*)transId.trans,
+ memcpy(rgrCfgElem->rgrCfg.transId.trans,transId.trans,
sizeof(transId.trans));
rgrCfgElem->rgrCfg.reg = reg;
rgrCfgElem->rgrCfg.pool = pool;
{
RgSchCfgElem *cfgElem;
Inst inst= cell->instIdx;
- TRC2(rgSCHGomTtiHndlr);
/* Dequeue from current config list */
while ((cfgElem = rgSCHDbmGetNextCrntRgrCfgElem(cell, NULLP)) != NULLP)
Inst inst = (instCb->rgSchInit.inst );
RgSchUeCb *ue;
- TRC2(rgSCHGomHndlCfgReq);
-
errInfo->errType = RGSCHERR_GOM_CFG_REQ;
/* Validate and process the configuration request */
* @param[in] RgSchCb *instCb
* @param[in] SpId spId
* @param[in] RgrSCellActDeactEvnt *sCellActDeactEvnt
- * @param[in] U8 action
+ * @param[in] uint8_t action
* @param[out] RgSchErrInfo *errInfo
* @return S16
* -# ROK
SpId spId,
RgrSCellActDeactEvnt *sCellActDeactEvnt,
RgSchErrInfo *errInfo,
-U8 action
+uint8_t action
)
#else
PRIVATE S16 rgSCHGomHndlSCellActDeactReq(instCb, spId, sCellActDeactEvnt, errInfo, action)
SpId spId;
RgrSCellActDeactEvnt *sCellActDeactEvnt;
RgSchErrInfo *errInfo;
-U8 action;
+uint8_t action;
#endif
{
RgSchUeCb *ue = NULLP;
- U16 idx = 0;
- U16 sCellIdx = 0;
+ uint16_t idx = 0;
+ uint16_t sCellIdx = 0;
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
Inst inst = (instCb->rgSchInit.inst);
- TRC2(rgSCHGomHndlSCellActDeactReq);
RGSCHDBGPRM(inst,(rgSchPBuf(inst), "Processing RGR SCell Actication request:"
"%d\n", sCellActDeactEvnt->crnti));
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
Inst inst = (instCb->rgSchInit.inst );
- TRC2(rgSCHGomHndlRecfgReq);
-
errInfo->errType = RGSCHERR_GOM_RECFG_REQ;
/* Validate and process the re-configuration request */
Inst inst = (instCb->rgSchInit.inst );
RgSchUeCb *ue = NULLP;
- TRC2(rgSCHGomHndlResetReq);
-
-
errInfo->errType = RGSCHERR_GOM_RESET_REQ;
/* Validate and process the UE reset request */
#ifdef DEBUGP
Inst inst = (instCb->rgSchInit.inst);
#endif
- VOLATILE U32 startTime=0;
+ VOLATILE uint32_t startTime=0;
- TRC2(rgSCHGomHndlDelReq);
-
errInfo->errType = RGSCHERR_GOM_DEL_REQ;
if(instCb->rgrSap[spId].cell == NULLP)
if(ret == ROK)
{
/* TODO::Needs to be revisited after tti flow CaDev Start */
- U8 idx = (U8)((instCb->rgrSap[spId].cell->cellId - instCb->genCfg.startCellId)&(CM_LTE_MAX_CELLS-1));
+ uint8_t idx = (uint8_t)((instCb->rgrSap[spId].cell->cellId - instCb->genCfg.startCellId)&(CM_LTE_MAX_CELLS-1));
instCb->cells[idx] = NULLP;
/* CaDev End */
instCb->rgrSap[spId].cell = NULLP;
#endif
{
- TRC2(rgSCHGomGetCellIdFrmCfgReq);
-
-
/* Extract CellId depending on the action and Config Type in the Request
* As of now this function is called for only re configuration so removed
* othe CASES below if needed we can add them*/
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
Inst inst = (instCb->rgSchInit.inst );
RgSchErrInfo errInfo;
- U8 cfmStatus = RGR_CFG_CFM_NOK;
+ uint8_t cfmStatus = RGR_CFG_CFM_NOK;
MsgLen msgLen = 0, pduLen;
S32 tbSz = 0;
- U8 nPrb = 0;
- U8 mcs = 0;
-
- TRC2(rgSCHGomHndlSiCfg);
+ uint8_t nPrb = 0;
+ uint8_t mcs = 0;
/* check if cell does not exists */
- if (((U8 *)cell == NULLP) || (cell->cellId != cfgReqInfo->cellId))
+ if (((uint8_t *)cell == NULLP) || (cell->cellId != cfgReqInfo->cellId))
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cfgReqInfo->cellId,"Cell Control block does not exist"
);
return RFAILED;
}
- cmMemset((U8*)padding,(U8)0,nmPadBytes);
+ memset(padding,0,nmPadBytes);
#ifdef MS_MBUF_CORRUPTION
MS_BUF_ADD_ALLOC_CALLER();
}
else /* Initial Si cfg or si recfg where numSi did not change */
{
- U8 bitMask;
+ uint8_t bitMask;
/* Initial Si cfg */
if (cell->siCb.crntSiInfo.siInfo[cfgReqInfo->siId-1].si == NULLP)
{
#endif
{
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
- U8 cfmStatus = RGR_CFG_CFM_NOK;
- U16 idx;
- U8 siId = warningSiCfgReqInfo->siId;
- U8 j, mcs=0, nPrb=0;
+ uint8_t cfmStatus = RGR_CFG_CFM_NOK;
+ uint16_t idx;
+ uint8_t siId = warningSiCfgReqInfo->siId;
+ uint8_t j, mcs=0, nPrb=0;
RgSchWarningSiSeg *warningSiMsg;
RgSchWarningSiPdu *pduNode;
CmLList *node;
MsgLen msgLen = 0;
Bool freeNodeFound = FALSE;
- U16 siWinSize = 0;
- U16 minPeriod = 0;
+ uint16_t siWinSize = 0;
+ uint16_t minPeriod = 0;
#ifdef EMTC_ENABLE
- U8 isEmtc = warningSiCfgReqInfo->emtcEnable;
+ uint8_t isEmtc = warningSiCfgReqInfo->emtcEnable;
#endif
- TRC2(rgSCHGomHndlWarningSiCfg);
-
#ifdef EMTC_ENABLE
if(TRUE == isEmtc)
{
minPeriod = cell->siCfg.minPeriodicity;
}
/* check if cell does not exists */
- if (((U8 *)cell == NULLP) ||
+ if (((uint8_t *)cell == NULLP) ||
(cell->cellId != warningSiCfgReqInfo->cellId) ||
(warningSiCfgReqInfo->siId >
((minPeriod * 10)/siWinSize)))
Region reg,
Pool pool,
RgSchCb *instCb,
-U8 siId,
+uint8_t siId,
RgrCfgTransId transId,
SpId spId
)
Region reg;
Pool pool;
RgSchCb *instCb;
-U8 siId;
+uint8_t siId;
RgrCfgTransId transId;
SpId spId;
#endif
{
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
- U16 idx;
+ uint16_t idx;
CmLList *node;
RgSchWarningSiPdu *warningSiPdu;
Buffer *pdu;
- TRC3(rgSCHGomHndlWarningSiStopReq)
-
for(idx = 0; idx < RGR_MAX_NUM_WARNING_SI; idx++)
{
if(cell->siCb.warningSi[idx].siId == siId)
{
- if ((cmMemcmp ((U8 *)&cell->siCb.warningSi[idx].warningSiMsg.transId,
- (U8 *)&transId, sizeof(RgrCfgTransId))) == 0)
+ if ((cmMemcmp ((uint8_t *)&cell->siCb.warningSi[idx].warningSiMsg.transId,
+ (uint8_t *)&transId, sizeof(RgrCfgTransId))) == 0)
{
/* ccpu00136659: CMAS ETWS design changes */
CM_LLIST_FIRST_NODE(&cell->siCb.warningSi[idx].warningSiMsg.segLstCp, node);
}
}
}
- RETVOID;
+ return;
}
#endif/*RGR_SI_SCH */
CmLList *n;
S16 ret = RFAILED;
- TRC2(rgSchUpdtRNTPInfo);
-
l = &sf->sfrTotalPoolInfo.ccPool;
/*Get the first node from the CC Pool*/
RgSchCellCb *cell = instCb->rgrSap[spId].cell;
Inst inst = (instCb->rgSchInit.inst );
RgSchErrInfo errInfo;
- U16 i;
-
- TRC2(rgSCHGomHndlLoadInf);
-
+ uint16_t i;
/* check if cell does not exists */
- if (((U8 *)cell == NULLP) || (cell->cellId != loadInfReq->cellId))
+ if (((uint8_t *)cell == NULLP) || (cell->cellId != loadInfReq->cellId))
{
RLOG_ARG1(L_ERROR,DBG_CELLID,loadInfReq->cellId,"Cell Control block does not exist"
"for load cellId:%d",loadInfReq->cellId);