#endif
#ifdef EMTC_ENABLE
-EXTERN Void rgSCHEmtcPOTrigger ARGS ((
+Void rgSCHEmtcPOTrigger ARGS ((
RgSchCellCb *cell,
RgSchUeCb *ue
));
-EXTERN S16 rgSchEmtcUpdSiCfg ARGS ((
+S16 rgSchEmtcUpdSiCfg ARGS ((
RgSchCellCb *cell,
RgrCellRecfg *cellRecfg
));
-EXTERN S16 rgSCHEmtcCfgVldtDrxReTxCfg ARGS((
-U16 reTxTmr
+S16 rgSCHEmtcCfgVldtDrxReTxCfg ARGS((
+uint16_t reTxTmr
));
-EXTERN S16 rgSCHEmtcCfgVldtDrxUlReTxCfg ARGS((
-U16 reTxTmr
+S16 rgSCHEmtcCfgVldtDrxUlReTxCfg ARGS((
+uint16_t reTxTmr
));
#endif
RgSchErrInfo *err
));
/* local defines */
-PRIVATE S16 rgSCHCfgRgrUeRecfgRntiChg ARGS (( RgSchCellCb *cell,
+static S16 rgSCHCfgRgrUeRecfgRntiChg ARGS (( RgSchCellCb *cell,
RgSchUeCb *ue, RgrUeRecfg *ueRecfg, RgSchErrInfo *errInfo));
-PRIVATE S16 rgSCHCfgVldtUePwrCfg ARGS((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtUePwrCfg ARGS((RgSchCellCb *cell,
RgrUeUlPwrCfg *pwrCfg));
-PRIVATE S16 rgSCHCfgVldtUeGrpPwrCfg ARGS((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtUeGrpPwrCfg ARGS((RgSchCellCb *cell,
RgrUeGrpPwrCfg *grpPwrCfg));
#ifdef LTEMAC_SPS
-PRIVATE S16 rgSCHCfgVldtUeDlSpsCfg ARGS((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtUeDlSpsCfg ARGS((RgSchCellCb *cell,
RgrUeSpsDlCfg *dlSpsCfg));
-PRIVATE S16 rgSCHCfgVldtSpsReCfg ARGS ((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtSpsReCfg ARGS ((RgSchCellCb *cell,
RgSchUeCb *ue, RgrUeRecfg *ueRecfg));
#endif /*LTEMAC_SPS*/
-PRIVATE S16 rgSCHCfgVldtUeCqiModeCfg ARGS((RgSchCellCb *cell,RgrUeDlCqiCfg *ueDlCqiCfg));
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg ARGS ((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtUeCqiModeCfg ARGS((RgSchCellCb *cell,RgrUeDlCqiCfg *ueDlCqiCfg));
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg ARGS ((RgSchCellCb *cell,
RgrUeCfg *ueCfg));
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg ARGS ((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg ARGS ((RgSchCellCb *cell,
RgrUeRecfg *ueRecfg));
-PRIVATE Void rgSCHCfgFreeDlDedLcCb ARGS((RgSchCellCb *cell, RgSchUeCb *ue,
+static Void rgSCHCfgFreeDlDedLcCb ARGS((RgSchCellCb *cell, RgSchUeCb *ue,
RgSchDlLcCb *dlLc));
-PRIVATE Void rgSCHCfgFreeDlCmnLcCb ARGS((RgSchClcDlLcCb *cmnDlLc));
-PRIVATE Void rgSCHCfgFreeUeCb ARGS((RgSchCellCb *cell, RgSchUeCb *ue));
-PRIVATE Void rgSCHCfgFreeRgrCfgLst ARGS((RgSchCellCb *cell));
-PRIVATE Void rgSCHCfgFreeCmnLcLst ARGS((RgSchCellCb *cell));
-PRIVATE Void rgSCHCfgFreeUeLst ARGS((RgSchCellCb *cell));
+static Void rgSCHCfgFreeDlCmnLcCb ARGS((RgSchClcDlLcCb *cmnDlLc));
+static Void rgSCHCfgFreeUeCb ARGS((RgSchCellCb *cell, RgSchUeCb *ue));
+static Void rgSCHCfgFreeRgrCfgLst ARGS((RgSchCellCb *cell));
+static Void rgSCHCfgFreeCmnLcLst ARGS((RgSchCellCb *cell));
+static Void rgSCHCfgFreeUeLst ARGS((RgSchCellCb *cell));
#ifdef LTEMAC_SPS
-PRIVATE Void rgSCHCfgFreeSpsUeLst ARGS((RgSchCellCb *cell));
+static Void rgSCHCfgFreeSpsUeLst ARGS((RgSchCellCb *cell));
#endif
-PRIVATE S16 rgSCHCfgVldtRgrCmnLcCfg ARGS((Inst inst, RgrCellCfg *cellCfg,
+static S16 rgSCHCfgVldtRgrCmnLcCfg ARGS((Inst inst, RgrCellCfg *cellCfg,
RgSchErrInfo *errInfo));
-PRIVATE S16 rgSCHCfgVldtRgrCellPwrCfg ARGS((Inst inst, RgrCellCfg *cellCfg,
+static S16 rgSCHCfgVldtRgrCellPwrCfg ARGS((Inst inst, RgrCellCfg *cellCfg,
RgSchErrInfo *errInfo));
-PRIVATE S16 rgSCHCfgVldtRgrCellSchCfg ARGS((Inst inst, RgrCellCfg *cellCfg));
-PRIVATE S16 rgSCHCfgVldtRgrSchCfg ARGS((Inst inst, RgrSchedEnbCfg *schedEnbCfg));
-PRIVATE S16 rgSCHCfgVldtRgrCellRACfg ARGS((Inst inst, RgrCellCfg *cellCfg));
-PRIVATE Void rgSCHCfgRgrUePhrMsg3 ARGS(( RgSchCellCb *cell,
+static S16 rgSCHCfgVldtRgrCellSchCfg ARGS((Inst inst, RgrCellCfg *cellCfg));
+static S16 rgSCHCfgVldtRgrSchCfg ARGS((Inst inst, RgrSchedEnbCfg *schedEnbCfg));
+static S16 rgSCHCfgVldtRgrCellRACfg ARGS((Inst inst, RgrCellCfg *cellCfg));
+static Void rgSCHCfgRgrUePhrMsg3 ARGS(( RgSchCellCb *cell,
RgSchRaCb *raCb,RgSchUeCb *ue, RgSchErrInfo *errInfo));
-PRIVATE S16 rgSCHCfgRgrCmnLcCfg ARGS((RgSchCellCb *cell, RgrCmnLchCfg *lcCfg,
+static S16 rgSCHCfgRgrCmnLcCfg ARGS((RgSchCellCb *cell, RgrCmnLchCfg *lcCfg,
RgSchErrInfo *errInfo));
-Void rgSCHSCellFreeBuf ARGS((Inst inst,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,U8 idx));
+Void rgSCHSCellFreeBuf ARGS((Inst inst,RgSchUeCb *ue,RgrUeRecfg *ueRecfg,uint8_t idx));
#ifdef RGR_SI_SCH
-PRIVATE S16 rgSCHCfgVldtRgrCellSiCfg ARGS(( Inst inst, RgrSiCfg *siCfg));
+static S16 rgSCHCfgVldtRgrCellSiCfg ARGS(( Inst inst, RgrSiCfg *siCfg));
#endif/*RGR_SI_SCH */
/* LTE_ADV_FLAG_REMOVED_START */
-PRIVATE S16 rgSCHCfgVldtRgrCellLteAdvCfg ARGS(( Inst inst,
- RgrLteAdvancedCellConfig *lteAdvCfg, U8 dlTotalBw));
+static S16 rgSCHCfgVldtRgrCellLteAdvCfg ARGS(( Inst inst,
+ RgrLteAdvancedCellConfig *lteAdvCfg, uint8_t dlTotalBw));
/* LTE_ADV_FLAG_REMOVED_END */
-PRIVATE S16 rgSCHCfgVldtDrxUeCfg ARGS ((RgSchCellCb *cell,
+static S16 rgSCHCfgVldtDrxUeCfg ARGS ((RgSchCellCb *cell,
RgrUeDrxCfg *ueDrxCfg));
-PRIVATE S16 rgSCHCfgVldtDrxOnDurCfg ARGS((U8 onDurTmr));
-PRIVATE S16 rgSCHCfgVldtDrxInActvCfg ARGS((U16 inActvTmr));
-PRIVATE S16 rgSCHCfgVldtDrxReTxCfg ARGS((U8 reTxTmr));
-PRIVATE S16 rgSCHCfgVldtDrxLngCycCfg ARGS((RgrDrxLongCycleOffst lngCycleOffst));
-PRIVATE S16 rgSCHCfgVldtDrxLngCyclTmrs ARGS((U16 val));
-PRIVATE S16 rgSCHCfgVldtDrxShrtCycCfg ARGS((RgrDrxShortDrx shrtCycCfg));
-PRIVATE S16 rgSCHCfgVldtRgrCellCsgParamCfg ARGS((Inst inst,
+static S16 rgSCHCfgVldtDrxOnDurCfg ARGS((uint8_t onDurTmr));
+static S16 rgSCHCfgVldtDrxInActvCfg ARGS((uint16_t inActvTmr));
+static S16 rgSCHCfgVldtDrxReTxCfg ARGS((uint8_t reTxTmr));
+static S16 rgSCHCfgVldtDrxLngCycCfg ARGS((RgrDrxLongCycleOffst lngCycleOffst));
+static S16 rgSCHCfgVldtDrxLngCyclTmrs ARGS((uint16_t val));
+static S16 rgSCHCfgVldtDrxShrtCycCfg ARGS((RgrDrxShortDrx shrtCycCfg));
+static S16 rgSCHCfgVldtRgrCellCsgParamCfg ARGS((Inst inst,
RgrCellCsgParamCfg *csgParam));
#ifdef TFU_UPGRADE
S16 rgSCHCfgAcqiUeReCfg ARGS(( RgSchCellCb *cellCb, RgSchUeCb *ueCb,
RgrUeAprdDlCqiCfg *acqiCfg, CmLteUeCategory ueCat ));
-S16 rgSCHUtlGetCfgPerOff ARGS(( RgSchPerTbl tbl, U16 cfgIdx,
- U16 *peri, U16 *offset ));
+S16 rgSCHUtlGetCfgPerOff ARGS(( RgSchPerTbl tbl, uint16_t cfgIdx,
+ uint16_t *peri, uint16_t *offset ));
S16 rgSCHCfgRiUeCfg ARGS((RgSchCellCb *cellCb, RgSchUeCb *ueCb,
RgrUePrdDlCqiCfg *cqiCfg, CmLteUeCategory ueCat ));
S16 rgSCHCfgVldtRgrUeSrCfg ARGS((RgSchCellCb *cellCb, CmLteRnti crnti,
RgrUeSrCfg *srCfg, RgSchErrInfo *errInfo));
#endif
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeCfg ARGS (( RgSchCellCb *cellCb,
+static S16 rgSCHCfgVldtCqiSrSrsUeCfg ARGS (( RgSchCellCb *cellCb,
RgrUeCfg *ueCfg,
RgSchErrInfo *errInfo));
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeReCfg ARGS (( RgSchCellCb *cellCb,
+static S16 rgSCHCfgVldtCqiSrSrsUeReCfg ARGS (( RgSchCellCb *cellCb,
RgSchUeCb *ueCb,
RgrUeRecfg *ueReCfg,
RgSchErrInfo *errInfo ));
S16 rgSCHCfgPCqiSrsSrUeDel ARGS ((RgSchCellCb *cellCb,
RgSchUeCb *ueCb));
-PRIVATE Void rgSCHCfgUtlFetchAcqiBitSz ARGS (( RgSchUeACqiCb *acqiCb,U8 numTxAnt,
- U8* cqiPmiSzR1,U8* cqiPmiSzRn1 ));
+static Void rgSCHCfgUtlFetchAcqiBitSz ARGS (( RgSchUeACqiCb *acqiCb,uint8_t numTxAnt,
+ uint8_t* cqiPmiSzR1,uint8_t* cqiPmiSzRn1 ));
/* Added the function to be used instead of the
* MACRO RG_SCH_GET_PERIODICITY_TBL */
-PRIVATE CONSTANT RgSchUePCqiSrsSrCfgIdxTbl* rgSCHCfgUtlGetPcqiSrsSrRiTbl ARGS ((
+static const RgSchUePCqiSrsSrCfgIdxTbl* rgSCHCfgUtlGetPcqiSrsSrRiTbl ARGS ((
RgSchPerTbl tblType,
- U8 * min,
- U8 * max));
+ uint8_t * min,
+ uint8_t * max));
#endif /* TFU_UPGRADE */
-PRIVATE Void rgSCHCfgUeTaRecfg ARGS (( RgSchCellCb *cellCb,
+static Void rgSCHCfgUeTaRecfg ARGS (( RgSchCellCb *cellCb,
RgSchUeCb *ueCb,
RgrUeRecfg *ueReCfg,
RgSchErrInfo *errInfo ));
RgSchUeCb *ue,
RgSchErrInfo *errInfo
));
-PRIVATE S16 rgSCHSCellCfgUeCfgRollBack ARGS((
+static S16 rgSCHSCellCfgUeCfgRollBack ARGS((
RgSchCellCb *cell,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg
/* ccpu00117452 - MOD - Changed macro name from
RGR_RRM_DLPWR_CNTRL to RGR_CQI_REPT */
#if ((defined (RGR_CQI_REPT)) && (defined (RGR_V2)))
-PRIVATE S16 rgSCHCfgUeCqiReptReCfg ARGS ((
+static S16 rgSCHCfgUeCqiReptReCfg ARGS ((
RgSchCellCb *cell,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg
));
-PRIVATE S16 rgSCHCfgVldtCqiReptReCfg ARGS ((
+static S16 rgSCHCfgVldtCqiReptReCfg ARGS ((
RgSchCellCb *cell,
RgrUeRecfg *ueRecfg
));
#endif
/*LTE_L2_MEAS_PHASE2*/
#ifdef LTE_L2_MEAS
-PRIVATE S16 rgSchAddToL2Meas ARGS ((RgSchCellCb *cellCb,RgSchDlLcCb *dlLc));
+static S16 rgSchAddToL2Meas ARGS ((RgSchCellCb *cellCb,RgSchDlLcCb *dlLc));
#endif
#ifdef EMTC_ENABLE
S16 rgSCHEmtcCfgVldtDrxOnDurCfg
(
-U16 onDurTmr
+uint16_t onDurTmr
);
Void rgSCHUtlUpdEmtcY
(
RgSchUeCb *ue
);
-EXTERN Void rgSCHEmtcHqPAlloc
+Void rgSCHEmtcHqPAlloc
(
RgSchCellCb *cell,
RgSchDlHqEnt *hqEnt
#endif
/* local typedefs */
-CONSTANT RgSchSrsTxOffst rgSrsTxOffstTbl[RGSCH_MAX_SRS_SFCFG_IDX+1]=
+const RgSchSrsTxOffst rgSrsTxOffstTbl[RGSCH_MAX_SRS_SFCFG_IDX+1]=
{{1,{0,0,0,0,0,0,0,0}},
{1,{0,0,0,0,0,0,0,0}},
{1,{1,0,0,0,0,0,0,0}},
#ifdef TFU_UPGRADE
/* SRSCfg Table: Ref 36.213, Table: 8.2.1 */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl
+const RgSchUePCqiSrsSrCfgIdxTbl
rgSchUeSrsCfgIdxFddTbl[RG_SCH_SRS_ISRS_INDX_MAX_FDD]=
{
{ 0,1, 2, 0 },
};
/* Reference : 36.213 Table 8.2-2 */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl
+const RgSchUePCqiSrsSrCfgIdxTbl
rgSchUeSrsCfgIdxTddTbl[RG_SCH_SRS_ISRS_INDX_MAX_TDD]=
{
{ 10,14, 5, 10 },
};
/*Reference: 36.213 Table:7.2.2-1A */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl
+const RgSchUePCqiSrsSrCfgIdxTbl
rgSchUePCqiCfgIdxFddTbl[RG_SCH_CQIPMI_CFGIDX_MAX_FDD]=
{
{ 0,1, 2, 0 },
};
/* Reference: 36.213 Table:7.2.2-1C */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl
+const RgSchUePCqiSrsSrCfgIdxTbl
rgSchUeCqiPmiCfgIdxTddTbl[RG_SCH_CQIPMI_CFGIDX_MAX_TDD]=
{
{ 0,0, 1, 0 },
/* Note: RI table is same for FDD and TDD */
/*Reference: 36.213 Table:7.2.2-1B */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl
+const RgSchUePCqiSrsSrCfgIdxTbl
rgSchUeRiCfgIdxTbl[RG_SCH_RI_CFGIDX_MAX]=
{
{ 0,160, 1, 0 },
};
/*Reference: 36.213 Table:7.2.2-2 */
-CONSTANT RgSchUeBwSubSzBwParts
+const RgSchUeBwSubSzBwParts
rgSchUeBwSubSzBwPartsTbl[RG_SCH_BW_SUBSZ_BWPARTS_MAX]=
{
{6,7, 0, 0}, /*TODO: 6,7, NA, NA */
/* Reference : 36.213 Table 10.1-5 */
/* Note: SR is same table for TDD and FDD */
-CONSTANT RgSchUePCqiSrsSrCfgIdxTbl rgSchUeSrCfgIdxTbl[RG_SCH_ISR_INDX_MAX]=
+const RgSchUePCqiSrsSrCfgIdxTbl rgSchUeSrCfgIdxTbl[RG_SCH_ISR_INDX_MAX]=
{
{ 0,4, 5, 0 },
{ 5,14, 10, 5 },
/*Reference:36.213: Derived from Table: 7.2.1-5 for Label L.
The Label L is CEIL(log2(BinCoe(N and M)))*/
-CONSTANT U8 RgSCHUeAcqi2022LBitWidth[6][28] ={
+const uint8_t RgSCHUeAcqi2022LBitWidth[6][28] ={
{0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5},
{0,0,2,3,4,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8,8,8,9,9,9,9,9},
{0,0,0,2,4,5,6,6,7,7,8,8,9,9,9,10,10,10,10,11,11,11,11,11,12,12,12,12},
#endif
-EXTERN U8 rgSchCmnHarqRtt[];
+extern uint8_t rgSchCmnHarqRtt[];
#ifdef EMTC_ENABLE
-EXTERN S16 rgSCHEmtcCellAlloc ARGS((RgSchCellCb *cel));
-EXTERN Void rgSCHEmtcCellFree ARGS((RgSchCellCb *cel));
-EXTERN Void rgSCHEmtcUeInfoFree ARGS((RgSchCellCb *cell, RgSchUeCb *ue));
-EXTERN U8 rgSchfillPucchSrRepNumCountemtc ARGS((RgSchUeCb *ueCb));
-EXTERN U8 rgSchfillPucchCqiRepNumCountemtc ARGS((RgSchUePCqiCb *cqiCb, RgSchUeCb *ueCb));
-EXTERN S16 rgEmtcvalidateSiCfg ARGS((RgrSiCfgReqInfo *siCfg,RgSchCellCb *cell));
+S16 rgSCHEmtcCellAlloc ARGS((RgSchCellCb *cel));
+Void rgSCHEmtcCellFree ARGS((RgSchCellCb *cel));
+Void rgSCHEmtcUeInfoFree ARGS((RgSchCellCb *cell, RgSchUeCb *ue));
+uint8_t rgSchfillPucchSrRepNumCountemtc ARGS((RgSchUeCb *ueCb));
+uint8_t rgSchfillPucchCqiRepNumCountemtc ARGS((RgSchUePCqiCb *cqiCb, RgSchUeCb *ueCb));
+S16 rgEmtcvalidateSiCfg ARGS((RgrSiCfgReqInfo *siCfg,RgSchCellCb *cell));
#endif
/* forward references */
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrSchedEnbCfg);
RGSCHDBGPRM(inst, (rgSchPBuf(inst), "VALIDATE RGR SCH ENB CONFIG: \n"));
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_ENB_CFG;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrCellCfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_CELL_CFG;
/* check if cell exists already */
- if ((U8 *)cell != NULLP)
+ if ((uint8_t *)cell != NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Cell Id already exists");
return RFAILED;
if (cellCfg->phichCfg.ngEnum > RGR_NG_TWO)
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid PHICH Ng configuration %d",
- (U8)cellCfg->phichCfg.ngEnum);
+ (uint8_t)cellCfg->phichCfg.ngEnum);
return RFAILED;
}
/* Validation for extended PHICH Duration */
{
RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid cfi value for"
"Extended PHICH duration cfi:%d dlBw:%d",
- (U8)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
+ (uint8_t)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
return RFAILED;
}
if ((cellCfg->phichCfg.isDurExtend == TRUE) &&
{
RLOG_ARG2(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid cfi value for"
"Extended PHICH duration cfi:%d dlBw:%d",
- (U8)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
+ (uint8_t)cellCfg->cfiCfg.cfi, cellCfg->bwCfg.dlTotalBw);
return RFAILED;
}
RLOG4(L_INFO,"CA_DBG:: PUCCH configuration:"
if (cellCfg->srsCfg.isSrsCfgSetup && cellCfg->srsCfg.srsBwEnum > RGR_SRS_BWCFG_7)
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cellCfg->cellId, "Invalid SRS configuration: "
- " srsBw %d", (U8)cellCfg->srsCfg.srsBwEnum);
+ " srsBw %d", (uint8_t)cellCfg->srsCfg.srsBwEnum);
return RFAILED;
}
RgrSchedCfg *rgSchedCfg;
#endif
{
- TRC2(rgSCHCfgVldtRgrSchCfg);
-
RGSCHDBGPRM(inst, (rgSchPBuf(inst), "rgSCHCfgVldtRgrSchCfg:Validating \
scheduler related Configuration"));
if (rgSchedCfg->ulSchdType > (RGSCH_NUM_SCHEDULERS - 1))
RgrCellCfg *cellCfg;
#endif
{
- TRC2(rgSCHCfgVldtRgrCellSchCfg);
#if RGSCH_NUM_DLFS_SCHEDULERS
if (cellCfg->dlfsSchdType > RGSCH_NUM_DLFS_SCHEDULERS - 1)
RgrCellCfg *cellCfg;
#endif
{
- TRC2(rgSCHCfgVldtRgrCellRACfg);
-
#ifdef LTE_TDD
if ((cellCfg->rachCfg.preambleFormat > RGSCH_MAX_TDD_RA_PREAMBLE_FMT) ||
#ifdef RGR_V1
if(cellCfg->rachCfg.contResTmr)
{
- U8 idx;
+ uint8_t idx;
#ifdef LTE_TDD
idx = cellCfg->ulDlCfgIdx;
#else
#endif
/* maxMsg4TxDelay = (HARQ_RTT * MAX_MSG4_HARQ_RETX) +
3 TTI (MAX L1+L2 processing delay at the UE) */
- U8 maxMsg4TxDelay = (cellCfg->dlHqCfg.maxMsg4HqTx-1) *
+ uint8_t maxMsg4TxDelay = (cellCfg->dlHqCfg.maxMsg4HqTx-1) *
rgSchCmnHarqRtt[idx] + 3;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrUeCfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_UE_CFG;
if (((*cell) == NULLP) ||
|| (ueCfg->txMode.txModeEnum > RGR_UE_TM_7)))
{
RLOG_ARG2(L_ERROR,DBG_CRNTI,ueCfg->crnti,"CELLID:%d Invalid transmission mode for"
- " UE is %d", ueCfg->cellId,(U8)ueCfg->txMode.txModeEnum);
+ " UE is %d", ueCfg->cellId,(uint8_t)ueCfg->txMode.txModeEnum);
return RFAILED;
}
if (ueCfg->ueCatEnum > CM_LTE_UE_CAT_8)
{
RLOG_ARG2(L_ERROR,DBG_CRNTI,ueCfg->crnti,"CELLID:%d Invalid category for UE %d",
- ueCfg->cellId,(U8)ueCfg->ueCatEnum);
+ ueCfg->cellId,(uint8_t)ueCfg->ueCatEnum);
return RFAILED;
}
{
RLOG_ARG2(L_ERROR,DBG_CRNTI,ueCfg->crnti,"CELLID:%d Invalid transmission mode for"
" UE (%d) for the configured Cell Antenna Ports",ueCfg->cellId,
- (U8)ueCfg->txMode.txModeEnum);
+ (uint8_t)ueCfg->txMode.txModeEnum);
return RFAILED;
}
}
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrCellRecfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_CELL_RECFG;
if (cellRecfg->srsRecfg.isSrsCfgSetup && cellRecfg->srsRecfg.srsBwEnum > RGR_SRS_BWCFG_7)
{
RLOG_ARG1(L_ERROR,DBG_CELLID,cellRecfg->cellId,"Invalid SRS configuration: "
- "srsBw %d", (U8)cellRecfg->srsRecfg.srsBwEnum);
+ "srsBw %d", (uint8_t)cellRecfg->srsRecfg.srsBwEnum);
return RFAILED;
}
RgSchErrInfo *err;
#endif
{
- U8 idx;
+ uint8_t idx;
Inst inst = cell->instIdx;
RgSchCellCb *secCellCb = NULLP;
- U8 sCellidx = 0;
+ uint8_t sCellidx = 0;
RgSchUeCellInfo *sCellInfo = NULLP;
RgrUeSecCellCfg *sCellInfoCfg = NULLP;
#ifdef TFU_UPGRADE
RgrUePrdDlCqiCfg *pCqiCfg;
#endif
- TRC2(rgSCHSCellCfgUeCfg);
-
RLOG0(L_INFO, "SCELL recfg received from APP \n");
RGSCHDBGINFONEW(inst, (rgSchPBuf(inst),
{
Inst inst = cell->instIdx;
RgrUeSCellAckPucchCfg *sCellPucchRecfg = NULLP;
- U8 idx;
+ uint8_t idx;
- TRC2(rgSCHSCellCfgUePucchReCfg);
RGSCHDBGINFONEW(inst, (rgSchPBuf(inst),
"--------------------------------------------------------------------\n"
"UE SCell PUCCH ReConfiguration at SCH: rnti (%u) cell(%u)\n"
RgSchCellCb *sCell = NULLP;
Inst inst = cell->instIdx;
- TRC2(rgSCHCfgVldtRgrUeSCellRecfg);
RGSCHDBGPRM(inst, (rgSchPBuf(inst), "VALIDATE RGR UE SCELL RECONFIG: cellId %d "
"oldUeId %d cell %p \n", ueRecfg->cellId, ueRecfg->oldCrnti));
return RFAILED;
}
- for(U8 idx = 0; idx < ueRecfg->ueSCellCfgInfo.numSCells; idx++)
+ for(uint8_t idx = 0; idx < ueRecfg->ueSCellCfgInfo.numSCells; idx++)
{
ueSCellDedCfg = &ueRecfg->ueSCellCfgInfo.ueSCellDedCfg[idx];
if(ROK != rgSchUtlVldtCellId(inst, ueSCellDedCfg->sCellId))
(ueSCellDedCfg->txMode.txModeEnum > RGR_UE_TM_9))
{
RGSCHDBGERRNEW(inst, (rgSchPBuf(inst), "SCELL Invalid transmission mode for"
- " UE %d\n", (U8)ueSCellDedCfg->txMode.txModeEnum));
+ " UE %d\n", (uint8_t)ueSCellDedCfg->txMode.txModeEnum));
return RFAILED;
}
#endif
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE S16 rgSCHSCellCfgUeCfgRollBack
+static S16 rgSCHSCellCfgUeCfgRollBack
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg
)
#else
-PRIVATE S16 rgSCHSCellCfgUeCfgRollBack(cell, ue, ueRecfg)
+static S16 rgSCHSCellCfgUeCfgRollBack(cell, ue, ueRecfg)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgrUeRecfg *ueRecfg;
RgSchUeCellInfo *sCellInfo = NULLP;
RgSchCmnCell *cellSch = NULLP;
- TRC2(rgSCHSCellCfgUeCfgRollBack);
-
RGSCHDBGINFONEW(inst, (rgSchPBuf(inst),
"--------------------------------------------------------------------\n"
"UE SCell config roll back at SCH: rnti (%u) cell(%u)\n"
ue->ueId, cell->cellId));
/* Free all Added scell in this transaction */
- for(U8 idx = 0; idx < ueRecfg->ueSCellCfgInfo.numSCells; idx++)
+ for(uint8_t idx = 0; idx < ueRecfg->ueSCellCfgInfo.numSCells; idx++)
{
sCellInfoCfg = &ueRecfg->ueSCellCfgInfo.ueSCellDedCfg[idx];
sCellInfo = ue->cellInfo[(sCellInfoCfg->sCellIdx)];
#endif
{
- TRC2(rgSCHCfgVldtRgrUeRecfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_UE_RECFG;
if (((*cell) == NULLP) ||
((*ue)->csgMmbrSta == ueRecfg->csgMmbrSta))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"UE ID [%d] invalid CSG Membership reconfig :%d ",
- ueRecfg->newCrnti, (U8)ueRecfg->csgMmbrSta);
+ ueRecfg->newCrnti, (uint8_t)ueRecfg->csgMmbrSta);
return RFAILED;
}
/* Validate values */
(ueRecfg->txMode.txModeEnum > RGR_UE_TM_7)))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid transmission mode %d"
- "for NEW CRNTI:%d", (U8)ueRecfg->txMode.txModeEnum,ueRecfg->newCrnti);
+ "for NEW CRNTI:%d", (uint8_t)ueRecfg->txMode.txModeEnum,ueRecfg->newCrnti);
return RFAILED;
}
#ifndef TFU_UPGRADE
(ueRecfg->prdDlCqiRecfg.cqiPmiCfgIdx > 1024))))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid Periodic CQI INFO"
- "OLD CRNTI:%d NEW CRNTI:%d",(U8)ueRecfg->oldCrnti,ueRecfg->newCrnti);
+ "OLD CRNTI:%d NEW CRNTI:%d",(uint8_t)ueRecfg->oldCrnti,ueRecfg->newCrnti);
return RFAILED;
}
#endif
(ueRecfg->prdDlCqiRecfg.prdModeEnum > RGR_PRD_CQI_MOD21))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid periodic mode config for"
- " DL CQI %d NEW CRNTI:%d", (U8)ueRecfg->prdDlCqiRecfg.prdModeEnum,ueRecfg->newCrnti);
+ " DL CQI %d NEW CRNTI:%d", (uint8_t)ueRecfg->prdDlCqiRecfg.prdModeEnum,ueRecfg->newCrnti);
return RFAILED;
}
#else
(ueRecfg->cqiCfg.cqiSetup.prdModeEnum > RGR_PRD_CQI_MOD21))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid periodic mode config for "
- "DL CQI %d for NEW CRNTI:%d",(U8)ueRecfg->cqiCfg.cqiSetup.prdModeEnum,ueRecfg->newCrnti);
+ "DL CQI %d for NEW CRNTI:%d",(uint8_t)ueRecfg->cqiCfg.cqiSetup.prdModeEnum,ueRecfg->newCrnti);
return RFAILED;
}
#endif /* TFU_UPGRADE */
if (ueRecfg->ueCatEnum > CM_LTE_UE_CAT_8)
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid category %d for NEW CRNTI:%d",
- (U8)ueRecfg->ueCatEnum,ueRecfg->newCrnti);
+ (uint8_t)ueRecfg->ueCatEnum,ueRecfg->newCrnti);
return RFAILED;
}
(*cell)->bwCfg.dlTotalBw <= 7)))
{
RLOG_ARG2(L_ERROR,DBG_CELLID,ueRecfg->cellId,"Invalid aperiodic mode config for"
- " DL CQI %d for NEW CRNTI:%d", (U8)ueRecfg->aprdDlCqiRecfg.aprdModeEnum,ueRecfg->newCrnti);
+ " DL CQI %d for NEW CRNTI:%d", (uint8_t)ueRecfg->aprdDlCqiRecfg.aprdModeEnum,ueRecfg->newCrnti);
return RFAILED;
}
if ((ueRecfg->ueRecfgTypes & RGR_UE_ULPWR_RECFG) &&
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrLchRecfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_LC_RECFG;
if (((*cell) == NULLP) ||
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrUeReset);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_UE_RESET;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrLcgRecfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_LCG_RECFG;
if (((cell) == NULLP) ||
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE S16 rgSCHDynCfiCfg
+static S16 rgSCHDynCfiCfg
(
RgSchCellCb *cell,
RgrCellCfg *cellCfg
)
#else
-PRIVATE S16 rgSCHDynCfiCfg(cell, cellCfg)
+static S16 rgSCHDynCfiCfg(cell, cellCfg)
RgSchCellCb *cell;
RgrCellCfg *cellCfg;
#endif
{
- U8 cfi;
+ uint8_t cfi;
#ifdef LTE_TDD
- U8 ulDlCfgIdx = cellCfg->ulDlCfgIdx;
- U8 mphIdx;
- U8 maxMPhich;
- U16 numDlSf;
+ uint8_t ulDlCfgIdx = cellCfg->ulDlCfgIdx;
+ uint8_t mphIdx;
+ uint8_t maxMPhich;
+ uint16_t numDlSf;
#endif
- TRC2(rgSCHDynCfiCfg);
-
cell->dynCfiCb.isDynCfiEnb = cellCfg->isDynCfiEnb;
/* Initializing Failure Sample Period */
/* Allocating memory for CCE failure average array based on
* monitoring interval and CCE failure sample period */
if((rgSCHUtlAllocSBuf(cell->instIdx, (Data**)&(cell->dynCfiCb.cceFailSamples),
- (cell->dynCfiCb.numFailSamples * sizeof(U16)))) != ROK)
+ (cell->dynCfiCb.numFailSamples * sizeof(uint16_t)))) != ROK)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for cell");
return RFAILED;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgRgrSchedEnbCfg);
RGSCHDBGPRM(inst, (rgSchPBuf(inst), "APPLYING RGR SCH ENB CONFIG: \n"));
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_ENB_CFG;
RgrCellCfg *cellCfg;
#endif
{
- U8 idx;
-
- TRC2(rgSCHCfgRgrCellCfg);
+ uint8_t idx;
for(idx = 0; idx < MAX_5GTF_GROUP; idx++)
{
#endif
#ifdef XEON_LMT_ITBS
-EXTERN U16 gWrMaxDlItbs;
-EXTERN U16 gWrMaxUlItbs;
+uint16_t gWrMaxDlItbs;
+uint16_t gWrMaxUlItbs;
#endif
/**
* @brief Handler for the cell configuration request from RRM to MAC.
#endif
{
S16 ret;
- U8 idx;
+ uint8_t idx;
Pst pst;
RgInfCellReg cellRegReq;
RgSchCellCb *cell = NULLP;
Inst inst = instCb->rgSchInit.inst;
- U32 Idx1 = (U8)((cellCfg->cellId - instCb->genCfg.startCellId)&(CM_LTE_MAX_CELLS-1));
-
- TRC2(rgSCHCfgRgrCellCfg);
+ uint32_t Idx1 = (uint8_t)((cellCfg->cellId - instCb->genCfg.startCellId)&(CM_LTE_MAX_CELLS-1));
errInfo->errCause = RGSCHERR_CFG_RGR_CELL_CFG;
- cmMemset((U8*)&pst, (U8)0, sizeof(Pst));
+ memset(&pst, 0, sizeof(Pst));
/* Allocate the scheduler's cell control block */
if((ret = rgSCHUtlAllocSBuf(inst, (Data**)&cell, sizeof(RgSchCellCb)))
}
}
#endif
- if ((U8 *)cell == NULLP)
+ if ((uint8_t *)cell == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cellCfg->cellId,"Memory allocation FAILED for cell");
return RFAILED;
{
cell->lteAdvCb.absCfg =
cellCfg->rgrLteAdvCfg.absCfg;
- cmMemset((U8*)cell->lteAdvCb.absLoadInfo, 0, sizeof(U32)*RGR_ABS_PATTERN_LEN);
+ memset(cell->lteAdvCb.absLoadInfo, 0, sizeof(uint32_t)*RGR_ABS_PATTERN_LEN);
cell->lteAdvCb.absLoadTtiCnt = 0;
}
cell->t300TmrVal = cellCfg->t300TmrVal;
#ifdef RGR_SI_SCH
/*Initialize the SI CB in Cell CB */
- cmMemset((U8 *)&cell->siCb, 0, sizeof(RgSchSiCb));
+ memset(&cell->siCb, 0, sizeof(RgSchSiCb));
#endif
/*Fix: Added Guard Pool for RNTI which will contain RNTIs
*for UEs deleted from Scheduler but not yet from MAC*/
RgSchRaCb *raCb=NULLP;
RgSchUeCb *ue = NULLP;
Inst inst = cell->instIdx;
- U32 lcgCnt;
+ uint32_t lcgCnt;
RgSchDlHqEnt *hqEnt = NULLP;
#ifdef LTE_TDD
- U8 ulDlCfgIdx = cell->ulDlCfgIdx;
- U8 maxSubframes ;
- U8 maxDlSubframes;
+ uint8_t ulDlCfgIdx = cell->ulDlCfgIdx;
+ uint8_t maxSubframes ;
+ uint8_t maxDlSubframes;
#endif
- U32 idx = 0;
+ uint32_t idx = 0;
#ifdef TFU_UPGRADE
RgSchUePCqiCb *cqiCb = NULLP;
#endif
- TRC2(rgSCHCfgRgrUeCfg);
do {
errInfo->errCause = RGSCHERR_CFG_RGR_UE_CFG;
/* Allocate the Ue control block */
if (((rgSCHUtlAllocSBuf(inst, (Data **)&ue, sizeof(RgSchUeCb))) != ROK) ||
- ((U8 *)ue == NULLP))
+ ((uint8_t *)ue == NULLP))
{
RLOG_ARG1(L_ERROR,DBG_CELLID,ueCfg->cellId, "Memory allocation"
" FAILED for CRNTI:%d", ueCfg->crnti);
}
#else
{
- U8 cellIdx=0;
+ uint8_t cellIdx=0;
for (cellIdx = 0;cellIdx < MAX_5GTF_CELL ; cellIdx++)
{
for (idx =0;idx < ue->dl.numHqDlSfInfo; idx++)
* @param[out] RgSchErrInfo *errInfo
**/
#ifdef ANSI
-PRIVATE Void rgSCHCfgRgrUePhrMsg3
+static Void rgSCHCfgRgrUePhrMsg3
(
RgSchCellCb *cell,
RgSchRaCb *raCb,
RgSchErrInfo *errInfo
)
#else
-PRIVATE Void rgSCHCfgRgrUePhrMsg3(cell, raCb, ue, errInfo)
+static Void rgSCHCfgRgrUePhrMsg3(cell, raCb, ue, errInfo)
RgSchCellCb *cell;
RgSchRaCb *raCb;
RgSchUeCb *ue;
#endif
{
- TRC2(rgSCHCfgRgrUePhrMsg3);
-
/* Record msg3 allocation in the UE */
rgSCHUtlRecMsg3Alloc(cell, ue, raCb);
rgSCHUtlUpdPhr(cell, ue, raCb->phr.val, errInfo);
}
- RETVOID;
+ return;
}
/**
Bool isDynCfiEnb;
#endif
{
- U8 idx;
+ uint8_t idx;
RgSchCmnDlCell *cellSchDl = RG_SCH_CMN_GET_DL_CELL(cell);
- TRC2(rgSCHDynCfiReCfg);
-
if(isDynCfiEnb)
{
cell->dynCfiCb.ttiCnt = 0;
S16 ret;
Inst inst = cell->instIdx;
/* LTE_ADV_FLAG_REMOVED_START */
- U8 i = 0;
- U16 len; /* dsfr_pal_fixes ** 21-March-2013 ** SKS */
+ uint8_t i = 0;
+ uint16_t len; /* dsfr_pal_fixes ** 21-March-2013 ** SKS */
/* LTE_ADV_FLAG_REMOVED_END */
- TRC2(rgSCHCfgRgrCellRecfg);
-
-
errInfo->errCause = RGSCHERR_CFG_RGR_CELL_RECFG;
/* Invoke scheduler to update scheduler specific information */
}
if(cellRecfg->rgrLteAdvCfg.pres & RGR_SFR)
{
- cmMemcpy((U8 *)&cell->lteAdvCb.sfrCfg, (U8 *)&cellRecfg->rgrLteAdvCfg.sfrCfg,
+ memcpy(&cell->lteAdvCb.sfrCfg, &cellRecfg->rgrLteAdvCfg.sfrCfg,
sizeof(RgrSfrConfig));
/* dsfr_pal_fixes ** 21-March-2013 ** SKS */
if (cellRecfg->rgrLteAdvCfg.sfrCfg.status == RGR_ENABLE)
}
}
/*Calculating the length of RNTP array based on Dl Bandwidth */
- len = (U16)((cell->bwCfg.dlTotalBw % 8 == 0) ? (cell->bwCfg.dlTotalBw/8) : (cell->bwCfg.dlTotalBw/8 + 1)); /* KW fix for LTE_ADV */
+ len = (uint16_t)((cell->bwCfg.dlTotalBw % 8 == 0) ? (cell->bwCfg.dlTotalBw/8) : (cell->bwCfg.dlTotalBw/8 + 1)); /* KW fix for LTE_ADV */
if(cell->rntpAggrInfo.pres == NOTPRSNT)
{
if((rgSCHUtlAllocSBuf(inst, (Data**)&(cell->rntpAggrInfo.val),
- (len * sizeof(U8)))) != ROK)
+ (len * sizeof(uint8_t)))) != ROK)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cellRecfg->cellId,
"Memory allocation FAILED for RNTP Alloc");
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgRgrUeRecfgRntiChg
+static S16 rgSCHCfgRgrUeRecfgRntiChg
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgRgrUeRecfgRntiChg(cell, ue, ueRecfg, errInfo)
+static S16 rgSCHCfgRgrUeRecfgRntiChg(cell, ue, ueRecfg, errInfo)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgrUeRecfg *ueRecfg;
#endif
{
#ifdef LTE_ADV
- U8 sCellIdx;
+ uint8_t sCellIdx;
#endif
S16 ret;
RgSchRaCb *raCb;
RgSchRaCb *oldRaCb;
RgSchDlHqEnt **hqEnt = &(RG_SCH_CMN_GET_UE_HQE(ue, cell));
- U8 idx;
+ uint8_t idx;
- TRC2(rgSCHCfgRgrUeRecfgRntiChg);
-
/* Handle CRNTI change in reconfiguration */
if (ueRecfg->oldCrnti != ueRecfg->newCrnti)
{
Bool dciChange = TRUE;
#endif
- TRC2(rgSCHCfgRgrUeRecfg);
-
errInfo->errCause = RGSCHERR_CFG_RGR_UE_RECFG;
#ifdef LTE_ADV
{
S16 ret = ROK;
- TRC2(rgSCHCfgRgrLchRecfg);
-
errInfo->errCause = RGSCHERR_CFG_RGR_LC_RECFG;
/* Invoke Scheduler to update the new configuration */
ret = rgSCHUtlRgrLcRecfg(cell, ue, dlLc, lcRecfg, errInfo);
{
S16 ret = ROK;
- TRC2(rgSCHCfgRgrLcgRecfg);
-
errInfo->errCause = RGSCHERR_CFG_RGR_LCG_RECFG;
/*Added for handling LCG ReConfig if the LCG was deleted */
RgSchErrInfo *errInfo;
#endif
{
- U32 idx;
+ uint32_t idx;
RgSchRaCb *raCb;
- TRC2(rgSCHCfgRgrUeReset);
-
-
errInfo->errCause = RGSCHERR_CFG_RGR_UE_RESET;
/* Setting BO of Each Logical Channel of the UE to 0 */
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgRgrCellDel);
-
errInfo->errCause = RGSCHERR_CFG_RGR_CELL_DEL;
RgSchCellCb *secCellCb = NULLP;
#endif
- TRC2(rgSCHCfgRgrUeDel);
errInfo->errCause = RGSCHERR_CFG_RGR_UE_DEL;
if (cell->cellId != ueDelInfo->u.ueDel.cellId)
#ifdef LTE_ADV
if(ueDelInfo->u.ueScellRel.ueDelTypes & RGR_UE_SCELL_DEL_RECFG)
{
- for(U8 idx = 0; idx < ueDelInfo->u.ueScellRel.ueSCellRelCfgInfo.numSCells; idx++)
+ for(uint8_t idx = 0; idx < ueDelInfo->u.ueScellRel.ueSCellRelCfgInfo.numSCells; idx++)
{
if(NULLP != (secCellCb = (RgSchCellCb *)rgSchUtlGetCellCb(inst, \
ueDelInfo->u.ueScellRel.ueSCellRelCfgInfo.ueSCellRelDedCfg[idx].sCellId)))
RgSchUeCb *ue;
RgSchDlLcCb *dlLc;
#ifdef LTE_L2_MEAS
- U8 lcId;
- U8 idx;
+ uint8_t lcId;
+ uint8_t idx;
RgSchUlLcCb *ulLc;
#endif
- TRC2(rgSCHCfgRgrLcDel);
-
errInfo->errCause = RGSCHERR_CFG_RGR_LC_DEL;
/* Fetch the Active cell */
{
RgSchUeCb *ue = NULLP;
#ifdef LTE_L2_MEAS
- U8 lcCount = 0;
+ uint8_t lcCount = 0;
#endif
- U8 lcgId = 0;
-
- TRC2(rgSCHCfgRgrLcgDel);
-
+ uint8_t lcgId = 0;
lcgId = lcDelInfo->u.lcgDel.lcgId;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrLcCfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_DED_LC_CFG;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrLcgCfg);
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_DED_LCG_CFG;
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtRgrCellPwrCfg
+static S16 rgSCHCfgVldtRgrCellPwrCfg
(
Inst inst,
RgrCellCfg *cellCfg,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgVldtRgrCellPwrCfg(inst, cellCfg, errInfo)
+static S16 rgSCHCfgVldtRgrCellPwrCfg(inst, cellCfg, errInfo)
Inst inst;
RgrCellCfg *cellCfg;
RgSchErrInfo *errInfo;
UNUSED(cellCfg);
UNUSED(errInfo);
- TRC2(rgSCHCfgVldtRgrCellPwrCfg);
-
/* This function does nothing now, placeholder for
* subsequent power config validations that may be needed */
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtRgrCmnLcCfg
+static S16 rgSCHCfgVldtRgrCmnLcCfg
(
Inst inst,
RgrCellCfg *cellCfg,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgVldtRgrCmnLcCfg(inst, cellCfg, errInfo)
+static S16 rgSCHCfgVldtRgrCmnLcCfg(inst, cellCfg, errInfo)
Inst inst;
RgrCellCfg *cellCfg;
RgSchErrInfo *errInfo;
#endif
{
- U8 idx;
+ uint8_t idx;
RgrCmnLchCfg *lcCfg;
- U8 dirVld = FALSE;
- U8 bitMask = 0x00;
- U8 cnt=0;
-
- TRC2(rgSCHCfgVldtRgrCmnLcCfg);
+ uint8_t dirVld = FALSE;
+ uint8_t bitMask = 0x00;
+ uint8_t cnt=0;
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_CMN_LC_CFG;
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUeCqiModeCfg
+static S16 rgSCHCfgVldtUeCqiModeCfg
(
RgSchCellCb *cell,
RgrUeDlCqiCfg *ueDlCqiCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUeCqiModeCfg(cell, ueDlCqiCfg)
+static S16 rgSCHCfgVldtUeCqiModeCfg(cell, ueDlCqiCfg)
RgSchCellCb *cell;
RgrUeDlCqiCfg *ueDlCqiCfg;
#endif
{
- TRC2(rgSCHCfgVldtUeCqiModeCfg)
-
#ifndef TFU_UPGRADE
if((ueDlCqiCfg->prdCqiCfg.cqiPmiCfgIdx < 1) ||
(ueDlCqiCfg->prdCqiCfg.cqiPmiCfgIdx > 1024))
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg
(
RgSchCellCb *cell,
RgrUeCfg *ueCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg(cell, ueCfg)
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepCfg(cell, ueCfg)
RgSchCellCb *cell;
RgrUeCfg *ueCfg;
#endif
{
- TRC2(rgSCHCfgVldtUeMeasGapAckNakRepCfg)
-
#ifdef LTE_TDD
if ((ueCfg->ackNackModeEnum == RGR_TDD_ACKNACK_MODE_MULT) &&
(ueCfg->ueAckNackCfg.isAckNackEnabled == TRUE))
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg
(
RgSchCellCb *cell,
RgrUeRecfg *ueRecfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg(cell, ueRecfg)
+static S16 rgSCHCfgVldtUeMeasGapAckNakRepRecfg(cell, ueRecfg)
RgSchCellCb *cell;
RgrUeRecfg *ueRecfg;
#endif
{
- TRC2(rgSCHCfgVldtUeMeasGapAckNakRepRecfg)
if((ueRecfg->ueAckNackRecfg.isAckNackEnabled == FALSE) &&
(!ueRecfg->ueMeasGapRecfg.isMesGapEnabled))
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUeDlSpsCfg
+static S16 rgSCHCfgVldtUeDlSpsCfg
(
RgSchCellCb *cell,
RgrUeSpsDlCfg *dlSpsCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUeDlSpsCfg(cell, dlSpsCfg)
+static S16 rgSCHCfgVldtUeDlSpsCfg(cell, dlSpsCfg)
RgSchCellCb *cell;
RgrUeSpsDlCfg *dlSpsCfg;
#endif
{
- U8 idx = 0;
-
- TRC2(rgSCHCfgVldtUeDlSpsCfg);
+ uint8_t idx = 0;
/* peridicity validation done in SPS module */
if ((dlSpsCfg->numPucchVal > RG_SCH_MAX_NUM_N1PUCCH_PER_UE) ||
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUePwrCfg
+static S16 rgSCHCfgVldtUePwrCfg
(
RgSchCellCb *cell,
RgrUeUlPwrCfg *pwrCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUePwrCfg(cell, pwrCfg)
+static S16 rgSCHCfgVldtUePwrCfg(cell, pwrCfg)
RgSchCellCb *cell;
RgrUeUlPwrCfg *pwrCfg;
#endif
{
- TRC2(rgSCHCfgVldtUePwrCfg);
-
/* Group power control works only in accumulated mode */
if (!pwrCfg->isAccumulated)
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtUeGrpPwrCfg
+static S16 rgSCHCfgVldtUeGrpPwrCfg
(
RgSchCellCb *cell,
RgrUeGrpPwrCfg *grpPwrCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtUeGrpPwrCfg(cell, grpPwrCfg)
+static S16 rgSCHCfgVldtUeGrpPwrCfg(cell, grpPwrCfg)
RgSchCellCb *cell;
RgrUeGrpPwrCfg *grpPwrCfg;
#endif
{
- TRC2(rgSCHCfgVldtUeGrpPwrCfg);
-
if ((grpPwrCfg->pres) &&
(((grpPwrCfg->tpcRnti > cell->rntiDb.rntiStart) &&
((grpPwrCfg->tpcRnti <
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtSpsReCfg
+static S16 rgSCHCfgVldtSpsReCfg
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg
)
#else
-PRIVATE S16 rgSCHCfgVldtSpsReCfg(cell, ue, ueRecfg)
+static S16 rgSCHCfgVldtSpsReCfg(cell, ue, ueRecfg)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgrUeRecfg *ueRecfg;
#endif
{
- TRC2(rgSCHCfgVldtSpsReCfg);
if ((ueRecfg->ueRecfgTypes & RGR_UE_DLSPS_RECFG) &&
(ueRecfg->ueSpsRecfg.dlSpsCfg.isDlSpsEnabled))
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtCqiReptReCfg
+static S16 rgSCHCfgVldtCqiReptReCfg
(
RgSchCellCb *cell,
RgrUeRecfg *ueRecfg
)
#else
-PRIVATE S16 rgSCHCfgVldtCqiReptReCfg(cell, ueRecfg)
+static S16 rgSCHCfgVldtCqiReptReCfg(cell, ueRecfg)
RgSchCellCb *cell;
RgrUeRecfg *ueRecfg;
#endif
{
- TRC2(rgSCHCfgVldtCqiReptReCfg);
/* Validate DL Power Control Config parameters */
if (ueRecfg->ueCqiReptCfg.numColltdCqiRept > RGR_CQIRPTS_MAXN)
{
RgSchUlLcCb *ulLc;
#endif
- TRC2(rgSCHCfgRgrLchCfg);
-
errInfo->errCause = RGSCHERR_CFG_RGR_DED_LC_CFG;
/* Allocate the downlink logical channel control block */
"Downlink LCId:%d CRNTI:%d", lcCfg->lcId,lcCfg->crnti);
return RFAILED;
}
- if ((U8 *)dlLc == NULLP)
+ if ((uint8_t *)dlLc == NULLP)
{
RLOG_ARG2(L_ERROR,DBG_CELLID,lcCfg->cellId,"Memory allocation FAILED for "
"Downlink LCID:%d CRNTI:%d", lcCfg->lcId,lcCfg->crnti);
#ifdef RG_UNUSED
//#ifdef LTE_L2_MEAS
- U32 idx;
+ uint32_t idx;
RgSchUlLcCb *ulLc;
#endif
- TRC2(rgSCHCfgRgrLcgCfg);
errInfo->errCause = RGSCHERR_CFG_RGR_DED_LCG_CFG;
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "Memory allocation FAILED for ");
return RFAILED;
}
- if ((U8 *)ulLc == NULLP)
+ if ((uint8_t *)ulLc == NULLP)
{
RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "Memory allocation FAILED for ");
return RFAILED;
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgRgrCmnLcCfg
+static S16 rgSCHCfgRgrCmnLcCfg
(
RgSchCellCb *cell,
RgrCmnLchCfg *lcCfg,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgRgrCmnLcCfg(cell, lcCfg, errInfo)
+static S16 rgSCHCfgRgrCmnLcCfg(cell, lcCfg, errInfo)
RgSchCellCb *cell;
RgrCmnLchCfg *lcCfg;
RgSchErrInfo *errInfo;
#endif
{
RgSchClcDlLcCb cmnLcCb;
- TRC2(rgSCHCfgRgrCmnLcCfg);
errInfo->errCause = RGSCHERR_CFG_RGR_CMN_LC_CFG;
- cmMemset((U8 *)&cmnLcCb, 0, sizeof(cmnLcCb));
+ memset(&cmnLcCb, 0, sizeof(cmnLcCb));
/* Handle configuration for CCCH/BCCH/PCCH */
if (lcCfg->lcType == CM_LTE_LCH_CCCH)
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeDlDedLcCb
+static Void rgSCHCfgFreeDlDedLcCb
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgSchDlLcCb *dlLc
)
#else
-PRIVATE Void rgSCHCfgFreeDlDedLcCb(cell, ue, dlLc)
+static Void rgSCHCfgFreeDlDedLcCb(cell, ue, dlLc)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgSchDlLcCb *dlLc;
#endif
{
Inst inst = cell->instIdx;
- TRC2(rgSCHCfgFreeDlDedLcCb);
rgSCHUtlFreeDlLc(cell, ue, dlLc);
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeDlDedLcCb */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeDlCmnLcCb
+static Void rgSCHCfgFreeDlCmnLcCb
(
RgSchClcDlLcCb *cmnDlLc
)
#else
-PRIVATE Void rgSCHCfgFreeDlCmnLcCb(cmnDlLc)
+static Void rgSCHCfgFreeDlCmnLcCb(cmnDlLc)
RgSchClcDlLcCb *cmnDlLc;
#endif
{
- TRC2(rgSCHCfgFreeDlCmnLcCb);
- cmMemset((U8*)cmnDlLc, 0, sizeof(*cmnDlLc));
+ memset(cmnDlLc, 0, sizeof(*cmnDlLc));
cmnDlLc->lcId = RGSCH_INVALID_LC_ID;
- RETVOID;
+ return;
} /* rgSCHCfgFreeDlCmnLcCb */
Buffer *pdu;
RgSchWarningSiInfo *warningSi;
RgSchWarningSiPdu *warningSiPdu;
- U8 idx;
+ uint8_t idx;
- TRC2(rgSCHCfgFreeCellCb);
/* ccpu00132385- SI Warning PDUs which are not processed need to be deleted */
/* Search for used index in WarningSi */
for(idx = 0; idx < RGR_MAX_NUM_WARNING_SI; idx++)
(Void)rgSCHDrxCellDel(cell);
rgSCHUtlFreeSBuf(inst, (Data**)&(cell->dynCfiCb.cceFailSamples),
- (cell->dynCfiCb.numFailSamples * sizeof(U16)));
+ (cell->dynCfiCb.numFailSamples * sizeof(uint16_t)));
#ifdef TENB_STATS
TSL2DeallocCellStatsBlk(cell->cellId);
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeCellCb */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeUeCb
+static Void rgSCHCfgFreeUeCb
(
RgSchCellCb *cell,
RgSchUeCb *ue
)
#else
-PRIVATE Void rgSCHCfgFreeUeCb(cell, ue)
+static Void rgSCHCfgFreeUeCb(cell, ue)
RgSchCellCb *cell;
RgSchUeCb *ue;
#endif
RgUeUlHqCb *ulHqEnt;
RgSchDlLcCb *dlLc;
Inst inst = cell->instIdx;
- U8 lcCnt;
- U8 lcgId;
- TRC2(rgSCHCfgFreeUeCb);
+ uint8_t lcCnt;
+ uint8_t lcgId;
/* Free all logical channel info per UE */
while((dlLc = rgSCHDbmGetNextDlDedLcCb(ue, NULLP)) != NULLP)
rgSCHUtlFreeSBuf(inst, (Data **)&ue, sizeof(*ue));
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeUeCb */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeRgrCfgLst
+static Void rgSCHCfgFreeRgrCfgLst
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHCfgFreeRgrCfgLst(cell)
+static Void rgSCHCfgFreeRgrCfgLst(cell)
RgSchCellCb *cell;
#endif
{
RgSchCfgElem *rgCfgElem;
Inst inst = cell->instIdx;
- TRC2(rgSCHCfgFreeRgrCfgLst);
-
/* Free CURRENT RGR cfg list */
while ((rgCfgElem = rgSCHDbmGetNextCrntRgrCfgElem(cell, NULLP)) != NULLP)
{
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeRgrCfgLst */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeCmnLcLst
+static Void rgSCHCfgFreeCmnLcLst
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHCfgFreeCmnLcLst(cell)
+static Void rgSCHCfgFreeCmnLcLst(cell)
RgSchCellCb *cell;
#endif
{
RgSchClcDlLcCb *dlCmnLc;
- TRC2(rgSCHCfgFreeCmnLcLst);
if ((dlCmnLc = rgSCHDbmGetBcchOnBch(cell)) != NULLP)
{
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeCmnLcLst */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeUeLst
+static Void rgSCHCfgFreeUeLst
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHCfgFreeUeLst(cell)
+static Void rgSCHCfgFreeUeLst(cell)
RgSchCellCb *cell;
#endif
{
RgSchUeCellInfo *sCellInfo;
CmLList *node;
#endif
- TRC2(rgSCHCfgFreeUeLst);
/* Free Ues in the list */
while ((ue = rgSCHDbmGetNextUeCb(cell, NULLP)) != NULLP)
#endif
/* Stack Crash problem for TRACE5 changes. Added the return below */
- RETVOID;
+ return;
} /* rgSCHCfgFreeUeLst */
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgFreeSpsUeLst
+static Void rgSCHCfgFreeSpsUeLst
(
RgSchCellCb *cell
)
#else
-PRIVATE Void rgSCHCfgFreeSpsUeLst(cell)
+static Void rgSCHCfgFreeSpsUeLst(cell)
RgSchCellCb *cell;
#endif
{
RgSchUeCb *ue;
- TRC2(rgSCHCfgFreeSpsUeLst);
-
/* Free Ues in the list */
while ((ue = rgSCHDbmGetNextSpsUeCb(cell, NULLP)))
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtRgrCellSiCfg
+static S16 rgSCHCfgVldtRgrCellSiCfg
(
Inst inst,
RgrSiCfg *siCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtRgrCellSiCfg(inst, siCfg)
+static S16 rgSCHCfgVldtRgrCellSiCfg(inst, siCfg)
Inst inst;
RgrSiCfg *siCfg;
#endif
{
- U8 idx; /* idx for iteration */
+ uint8_t idx; /* idx for iteration */
UNUSED(inst);
- TRC2(rgSCHCfgVldtRgrCellSiCfg);
-
-
#ifndef LTE_TDD
/* Check that retxCnt value should be <= value of siWinSize.
This validation is only applicable for FDD mode. */
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtRgrCellLteAdvCfg
+static S16 rgSCHCfgVldtRgrCellLteAdvCfg
(
Inst inst,
RgrLteAdvancedCellConfig *lteAdvCfg,
- U8 dlTotalBw
+ uint8_t dlTotalBw
)
#else
-PRIVATE S16 rgSCHCfgVldtRgrCellLteAdvCfg(inst, lteAdvCfg, dlTotalBw)
+static S16 rgSCHCfgVldtRgrCellLteAdvCfg(inst, lteAdvCfg, dlTotalBw)
Inst inst;
RgrLteAdvancedCellConfig *lteAdvCfg;
- U8 dlTotalBw;
+ uint8_t dlTotalBw;
#endif
{
- U8 temp[RGR_ABS_PATTERN_LEN];
- U32 idx;
+ uint8_t temp[RGR_ABS_PATTERN_LEN];
+ uint32_t idx;
UNUSED(inst);
- TRC2(rgSCHCfgVldtRgrCellLteAdvCfg);
-
-
if((lteAdvCfg->pres & RGR_SFR) && (RGR_ENABLE == lteAdvCfg->sfrCfg.status))
{
if(lteAdvCfg->sfrCfg.cellEdgeRbRange.startRb > lteAdvCfg->sfrCfg.cellEdgeRbRange.endRb)
return RFAILED;
}
- cmMemcpy(temp, (U8 *) lteAdvCfg->absCfg.absPattern,RGR_ABS_PATTERN_LEN);
+ memcpy(temp, lteAdvCfg->absCfg.absPattern,RGR_ABS_PATTERN_LEN);
/* Added validation for ABS pattern len */
for(idx = 0; idx < RGR_ABS_PATTERN_LEN; idx++)
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtRgrCellCsgParamCfg
+static S16 rgSCHCfgVldtRgrCellCsgParamCfg
(
Inst inst,
RgrCellCsgParamCfg *csgParam
)
#else
-PRIVATE S16 rgSCHCfgVldtRgrCellCsgParamCfg(inst, csgParam)
+static S16 rgSCHCfgVldtRgrCellCsgParamCfg(inst, csgParam)
Inst inst;
RgrCellCsgParamCfg *csgParam;
#endif
{
- TRC2(rgSCHCfgVldtRgrCellCsgParamCfg);
-
RGSCHDBGPRM(inst, (rgSchPBuf(inst), "Validating CSG Parameters \n"));
if(csgParam->minDlResNonCsg > 100)
#endif
{
MsgLen msgLen = 0;
- U8 numSi;
-
- TRC2(rgSCHCfgVldtRgrSiCfg);
-
+ uint8_t numSi;
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_SI_CFG;
#endif
{
- TRC2(rgSCHCfgVldtRgrLoadInf);
-
-
errInfo->errCause = RGSCHERR_CFG_INVALID_RGR_LOAD_INF;
/* Validate if the CC startRb which we have received from DSFR lies in CE sub-band of the receiving eNB */
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrTxmodePuschMode);
-
if (txMde == RGR_UE_TM_1 || txMde == RGR_UE_TM_2 ||
txMde == RGR_UE_TM_3 || txMde == RGR_UE_TM_7)
{
RgrTxMode txMde;
RgrAprdCqiMode puschMode;
- TRC2(rgSCHCfgVldtRgrUeACqiCfg);
-
if(acqiCfg->pres)
{
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtRgrTxmodePucchMode);
-
if (pucchMode == RGR_PRD_CQI_MOD10 || pucchMode == RGR_PRD_CQI_MOD20 )
{
RgrTxMode txMde;
RgrPrdCqiMode pucchMode;
- TRC2(rgSCHCfgVldtRgrUePCqiCfg);
-
txMde = RGR_UE_TM_1;
pucchMode = RGR_PRD_CQI_MOD20;
if ( RGR_SCH_PCQI_SETUP == cqiCfg->type )
#endif
#endif
{
- U16 srsPeri=0;
- U16 srsOffset=0;
- U8 srsSubframe=0;
+ uint16_t srsPeri=0;
+ uint16_t srsOffset=0;
+ uint8_t srsSubframe=0;
- TRC2(rgSCHCfgVldtRgrUeUlSrsCfg);
-
-
if ( RGR_SCH_SRS_SETUP == srsCfg->type )
{
#endif
{
- TRC2(rgSCHCfgVldtRgrUeSrCfg);
-
-
-
if ( RGR_SCH_SR_SETUP == srCfg->type )
{
/* 1. Validate SR Configuration related parameter values */
* -# RFAILED
*/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeCfg
+static S16 rgSCHCfgVldtCqiSrSrsUeCfg
(
RgSchCellCb *cellCb,
RgrUeCfg *ueCfg,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeCfg(cellCb, ueCfg, errInfo)
+static S16 rgSCHCfgVldtCqiSrSrsUeCfg(cellCb, ueCfg, errInfo)
RgSchCellCb *cellCb;
RgrUeCfg *ueCfg;
RgSchErrInfo *errInfo;
#endif
{
- TRC2(rgSCHCfgVldtCqiSrSrsUeCfg);
-
-
/* 1. Validate UE Aperiodic CQI related parameters */
if ( ROK != rgSCHCfgVldtRgrUeACqiCfg (cellCb, ueCfg->crnti,
&ueCfg->ueDlCqiCfg.aprdCqiCfg, ueCfg->txMode, errInfo ))
* -# RFAILED
*/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeReCfg
+static S16 rgSCHCfgVldtCqiSrSrsUeReCfg
(
RgSchCellCb *cellCb,
RgSchUeCb *ueCb,
RgSchErrInfo *errInfo
)
#else
-PRIVATE S16 rgSCHCfgVldtCqiSrSrsUeReCfg(cellCb, ueCb, ueReCfg, errInfo)
+static S16 rgSCHCfgVldtCqiSrSrsUeReCfg(cellCb, ueCb, ueReCfg, errInfo)
RgSchCellCb *cellCb;
RgSchUeCb *ueCb;
RgrUeRecfg *ueReCfg;
#endif
{
RgrUeTxModeCfg txMode;
- TRC3(rgSCHCfgVldtCqiSrSrsUeReCfg);
txMode.pres = TRUE;
txMode.tmTrnstnState = RGR_TXMODE_RECFG_CMPLT;
CmLteUeCategory ueCat;
#endif
{
- U8 M; /*Num of Subbands -- Applicable only for Mode 2-0 and 2-2*/
- U8 k; /*SubBand Size (RB) --
+ uint8_t M; /*Num of Subbands -- Applicable only for Mode 2-0 and 2-2*/
+ uint8_t k; /*SubBand Size (RB) --
Holds different values depending on Mode*/
- U8 cqiPmiSzR1; /*CQIPMI Size for Rank =1*/
- U8 cqiPmiSzRn1; /*CQIPMI Size for Rank > 1*/
-
- TRC3(rgSCHCfgACqiUeCfg);
+ uint8_t cqiPmiSzR1; /*CQIPMI Size for Rank =1*/
+ uint8_t cqiPmiSzRn1; /*CQIPMI Size for Rank > 1*/
cqiPmiSzR1 = 0;
cqiPmiSzRn1 = 0;
#endif
{
CmLteTimingInfo timingInfo;
- U16 crntTime;
- U16 cqiTrInstTime;
- U8 j; /*Bandwidth Parts*/
- U8 temp;
- U8 loop;
+ uint16_t crntTime;
+ uint16_t cqiTrInstTime;
+ uint8_t j; /*Bandwidth Parts*/
+ uint8_t temp;
+ uint8_t loop;
RgSchUePCqiCb *cqiCb = NULLP;
- TRC3(rgSCHCfgPCqiUeCfg);
crntTime = (cellCb->crntTime.sfn * RGSCH_NUM_SUB_FRAMES_5G)+
(cellCb->crntTime.slot);
ueCb->rawCqiBitW[loop].type = TFU_RECP_REQ_INVLD; /* setting invalid type*/
}
/* 1. Copy the Received CQI Cfg parameters to ueCb */
- cmMemcpy((U8 *)&cqiCb->cqiCfg, (U8 *)cqiCfg,
+ memcpy(&cqiCb->cqiCfg, cqiCfg,
sizeof(RgrUePrdDlCqiCfg));
/* 2. Compute Periodic CQI Periodicity and subframe offset */
if(RGR_UE_PCQI_SB_REP == cqiCfg->cqiSetup.cqiRepType)
{
- U8 k; /*SubBand Size (RB) */
+ uint8_t k; /*SubBand Size (RB) */
RG_SCH_GET_CQI_J_VAL(cellCb->bwCfg.dlTotalBw, j);
RG_SCH_GET_CQI_K_VAL(cellCb->bwCfg.dlTotalBw, k);
cqiCb->J = j; /*Number of Bandwidth Parts*/
CmLteUeCategory ueCat;
#endif
{
- U16 crntTime;
- U16 riTrInsTime;
- U8 j; /*Bandwidth parts. Valid for Modes 2-0, 2-1*/
- U16 periodicity;
- U16 tempIdx;
+ uint16_t crntTime;
+ uint16_t riTrInsTime;
+ uint8_t j; /*Bandwidth parts. Valid for Modes 2-0, 2-1*/
+ uint16_t periodicity;
+ uint16_t tempIdx;
RgSchUePCqiCb *cqiCb = NULLP;
- TRC3(rgSCHCfgRiUeCfg);
-
-
-
crntTime = (cellCb->crntTime.sfn * RGSCH_NUM_SUB_FRAMES_5G)
+(cellCb->crntTime.slot);
cqiCb = RG_SCH_GET_UE_CELL_CQI_CB(ueCb,cellCb);
% RG_SCH_PCQI_SRS_SR_TRINS_SIZE;
if(periodicity >= RG_SCH_PCQI_SRS_SR_TRINS_SIZE)
{
- cqiCb->riDist = rgSCHUtlFindDist((U16)(crntTime + TFU_RECPREQ_DLDELTA),
- (U16) tempIdx);
+ cqiCb->riDist = rgSCHUtlFindDist((uint16_t)(crntTime + TFU_RECPREQ_DLDELTA),
+ (uint16_t) tempIdx);
}
else
{
RgrUeUlSrsCfg *srsCfg;
#endif
{
- U16 srsTrInsTime;
- U16 crntTime;
- U16 tempIdx;
-
- TRC3(rgSCHCfgSrsUeCfg);
-
+ uint16_t srsTrInsTime;
+ uint16_t crntTime;
+ uint16_t tempIdx;
crntTime = (cellCb->crntTime.sfn * RGSCH_NUM_SUB_FRAMES_5G)
+(cellCb->crntTime.slot);
if(RGR_SCH_SRS_SETUP == srsCfg->type)
{
/* 1. Copy the Received Cfg parameters to local cb */
- cmMemcpy((U8 *)&ueCb->srsCb.srsCfg, (U8 *)srsCfg, sizeof(RgrUeUlSrsCfg));
+ memcpy(&ueCb->srsCb.srsCfg, srsCfg, sizeof(RgrUeUlSrsCfg));
#ifndef LTE_TDD
/* 2. Compute SRS Offset and Periodicity */
{
tempIdx = tempIdx + ueCb->srsCb.peri;
}
- ueCb->srsCb.nSrsTrIdx =(U16) (tempIdx
+ ueCb->srsCb.nSrsTrIdx =(uint16_t) (tempIdx
% RG_SCH_PCQI_SRS_SR_TRINS_SIZE);
if(ueCb->srsCb.peri >= RG_SCH_PCQI_SRS_SR_TRINS_SIZE)
{
#ifdef LTE_TDD
- ueCb->srsCb.srsDist = rgSCHUtlFindDist((U8)(crntTime+TFU_DELTA),
- (U16)tempIdx);
+ ueCb->srsCb.srsDist = rgSCHUtlFindDist((uint8_t)(crntTime+TFU_DELTA),
+ (uint16_t)tempIdx);
#else
- ueCb->srsCb.srsDist = rgSCHUtlFindDist((U8)(crntTime + TFU_RECPREQ_DLDELTA),
- (U16)tempIdx);
+ ueCb->srsCb.srsDist = rgSCHUtlFindDist((uint8_t)(crntTime + TFU_RECPREQ_DLDELTA),
+ (uint16_t)tempIdx);
#endif
}
else
RgrUeSrCfg *srCfg;
#endif
{
- U16 srTrInsTime;
- U16 crntTime;
-
- TRC3(rgSCHCfgSrUeCfg);
+ uint16_t srTrInsTime;
+ uint16_t crntTime;
crntTime = (cellCb->crntTime.sfn * RGSCH_NUM_SUB_FRAMES_5G)
if(srCfg->type == RGR_SCH_SR_SETUP)
{
/* 1. Copy the Received Cfg parameters to local cb */
- cmMemcpy((U8 *)&ueCb->srCb.srCfg, (U8 *)srCfg, sizeof(RgrUeSrCfg));
+ memcpy(&ueCb->srCb.srCfg, srCfg, sizeof(RgrUeSrCfg));
/* 2. Compute SR periodicity and offset */
{
RgSchUePCqiCb *cqiCb = NULLP;
- TRC3(rgSCHCfgPCqiUeReCfg);
cqiCb = RG_SCH_GET_UE_CELL_CQI_CB(ueCb,cellCb);
/* Fix: ccpu00124008 Fix for incorrect check causing missed CQI reception instance */
#endif
{
- TRC3(rgSCHCfgSrsUeReCfg);
-
-
if(( RGR_SCH_SRS_SETUP == srsCfg->type) ||
( RGR_SCH_SRS_SETUP != ueCb->srsCb.srsCfg.type ))
RgrUeSrCfg *srCfg;
#endif
{
- TRC3(rgSCHCfgSrUeReCfg);
-
/* Fix : syed Incorrect check for SR RECFG */
if((srCfg->type == RGR_SCH_SR_SETUP) &&
CmLteUeCategory ueCat;
#endif
{
- TRC3(rgSCHCfgAcqiUeReCfg);
return (rgSCHCfgACqiUeCfg(cellCb,ueCb,(RG_SCH_CMN_GET_ACQICB(ueCb,cellCb))
,ueCb->mimoInfo.txMode, acqiCfg, ueCat));
#endif
{
#ifdef LTE_ADV
- U32 cellIdx;
- U32 sCellCnt = 0;
+ uint32_t cellIdx;
+ uint32_t sCellCnt = 0;
#endif
RgSchUePCqiCb *cqiRiCb = NULLP;
- TRC3(rgSCHCfgPCqiSrsSrUeDel);
cqiRiCb = RG_SCH_GET_UE_CELL_CQI_CB(ueCb,cellCb);
* find the periodicty, offset for a given config index from the table
* - Return ROK
* @param[in] RgSchPerTbl tbl
- * @param[in] U16 cfgIdx
- * @param[out] U16 *peri
- * @param[out] U16 *offset
+ * @param[in] uint16_t cfgIdx
+ * @param[out] uint16_t *peri
+ * @param[out] uint16_t *offset
*
* @return S16
* -# ROK
S16 rgSCHUtlGetCfgPerOff
(
RgSchPerTbl tbl,
- U16 cfgIdx,
- U16 *peri,
- U16 *offset
+ uint16_t cfgIdx,
+ uint16_t *peri,
+ uint16_t *offset
)
#else
S16 rgSCHUtlGetCfgPerOff ( tbl, cfgIdx, peri, offset)
RgSchPerTbl tbl;
- U16 cfgIdx;
- U16 *peri;
- U16 *offset;
+ uint16_t cfgIdx;
+ uint16_t *peri;
+ uint16_t *offset;
#endif
{
- U8 mid;
- U8 min = 0;
- U8 max = 0;
- CONSTANT RgSchUePCqiSrsSrCfgIdxTbl* table;
- TRC3(rgSCHUtlGetCfgPerOff);
+ uint8_t mid;
+ uint8_t min = 0;
+ uint8_t max = 0;
+ const RgSchUePCqiSrsSrCfgIdxTbl* table;
/* Added the function instead of the MACRO to get the
* periodicity table */
* for decoding.
*
* Ret : Void
- * ROK - RETVOID
+ * ROK - void
*
* Notes:
*
*
**********************************************************/
#ifdef ANSI
-PRIVATE Void rgSCHCfgUtlFetchAcqiBitSz
+static Void rgSCHCfgUtlFetchAcqiBitSz
(
RgSchUeACqiCb *acqiCb,
- U8 numTxAnt,
- U8* cqiPmiSzR1,
- U8* cqiPmiSzRn1
+ uint8_t numTxAnt,
+ uint8_t* cqiPmiSzR1,
+ uint8_t* cqiPmiSzRn1
)
#else
-PRIVATE Void rgSCHCfgUtlFetchAcqiBitSz(acqiCb, numTxAnt, cqiPmiSzR1, cqiPmiSzRn1)
+static Void rgSCHCfgUtlFetchAcqiBitSz(acqiCb, numTxAnt, cqiPmiSzR1, cqiPmiSzRn1)
RgSchUeACqiCb *acqiCb;
- U8 numTxAnt;
- U8* cqiPmiSzR1;
- U8* cqiPmiSzRn1;
+ uint8_t numTxAnt;
+ uint8_t* cqiPmiSzR1;
+ uint8_t* cqiPmiSzRn1;
#endif
{
- U32 confRepMode;
-
-
- TRC3(rgSCHCfgUtlFetchAcqiBitSz);
+ uint32_t confRepMode;
confRepMode = acqiCb->aCqiCfg.aprdModeEnum;
switch(confRepMode)
default:
break;
}
- RETVOID;
+ return;
}
/* Added the function rgSCHCfgUtlGetPcqiCrsSrRiTbl to be used
* instead of the MACRO RG_SCH_GET_PERIODICITY_TBL */
* Desc : Get the Srs Cqi Crs Ri Table
*
* Ret : Void
- * ROK - RETVOID
+ * ROK - void
*
* Notes:
*
**********************************************************/
#ifdef ANSI
-PRIVATE CONSTANT RgSchUePCqiSrsSrCfgIdxTbl * rgSCHCfgUtlGetPcqiSrsSrRiTbl
+static const RgSchUePCqiSrsSrCfgIdxTbl * rgSCHCfgUtlGetPcqiSrsSrRiTbl
(
RgSchPerTbl tblType,
- U8* min,
- U8* max
+ uint8_t* min,
+ uint8_t* max
)
#else
-PRIVATE CONSTANT RgSchUePCqiSrsSrCfgIdxTbl * rgSCHCfgUtlGetPcqiSrsSrRiTbl(tblType, min, max)
+static const RgSchUePCqiSrsSrCfgIdxTbl * rgSCHCfgUtlGetPcqiSrsSrRiTbl(tblType, min, max)
RgSchPerTbl tblType;
- U8* min;
- U8* max;
+ uint8_t* min;
+ uint8_t* max;
#endif
{
- CONSTANT RgSchUePCqiSrsSrCfgIdxTbl * table;
- TRC3(rgSCHCfgUtlGetPcqiCrsSrRiTbl);
+ const RgSchUePCqiSrsSrCfgIdxTbl * table;
switch (tblType)
{
}
default:
{
- table = (CONSTANT RgSchUePCqiSrsSrCfgIdxTbl *) 0;
+ table = (const RgSchUePCqiSrsSrCfgIdxTbl *) 0;
* min = 0;
* max = 0;
break;
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxUeCfg
+static S16 rgSCHCfgVldtDrxUeCfg
(
RgSchCellCb *cell,
RgrUeDrxCfg *ueDrxCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxUeCfg(cell, ueDrxCfg)
+static S16 rgSCHCfgVldtDrxUeCfg(cell, ueDrxCfg)
RgSchCellCb *cell;
RgrUeDrxCfg *ueDrxCfg;
#endif
{
- TRC2(rgSCHCfgVldtDrxUeCfg)
-
if (ueDrxCfg->isDrxEnabled == FALSE)
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxOnDurCfg
+static S16 rgSCHCfgVldtDrxOnDurCfg
(
-U8 onDurTmr
+uint8_t onDurTmr
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxOnDurCfg(onDurTmr)
-U8 onDurTmr;
+static S16 rgSCHCfgVldtDrxOnDurCfg(onDurTmr)
+uint8_t onDurTmr;
#endif
{
- TRC2(rgSCHCfgVldtDrxOnDurCfg)
switch ( onDurTmr )
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxInActvCfg
+static S16 rgSCHCfgVldtDrxInActvCfg
(
-U16 inActvTmr
+uint16_t inActvTmr
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxInActvCfg(inActvTmr)
-U16 inActvTmr;
+static S16 rgSCHCfgVldtDrxInActvCfg(inActvTmr)
+uint16_t inActvTmr;
#endif
{
- TRC2(rgSCHCfgVldtDrxInActvCfg)
-
switch ( inActvTmr )
{
case RGR_DRX_PRD_1PSF:
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxReTxCfg
+static S16 rgSCHCfgVldtDrxReTxCfg
(
-U8 reTxTmr
+uint8_t reTxTmr
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxReTxCfg(reTxTmr)
-U8 reTxTmr;
+static S16 rgSCHCfgVldtDrxReTxCfg(reTxTmr)
+uint8_t reTxTmr;
#endif
{
- TRC2(rgSCHCfgVldtDrxReTxCfg)
-
switch ( reTxTmr )
{
case RGR_DRX_PRD_1PSF:
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxLngCycCfg
+static S16 rgSCHCfgVldtDrxLngCycCfg
(
RgrDrxLongCycleOffst lngCycleOffst
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxLngCycCfg(lngCycleOffst)
+static S16 rgSCHCfgVldtDrxLngCycCfg(lngCycleOffst)
RgrDrxLongCycleOffst lngCycleOffst;
#endif
{
- TRC2(rgSCHCfgVldtDrxLngCycCfg)
-
if ( rgSCHCfgVldtDrxLngCyclTmrs(lngCycleOffst.longDrxCycle) != ROK )
{
return RFAILED;
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxLngCyclTmrs
+static S16 rgSCHCfgVldtDrxLngCyclTmrs
(
-U16 val
+uint16_t val
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxLngCyclTmrs(val)
-U16 val;
+static S16 rgSCHCfgVldtDrxLngCyclTmrs(val)
+uint16_t val;
#endif
{
- TRC2(rgSCHCfgVldtDrxLngCyclTmrs)
switch ( val )
{
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgVldtDrxShrtCycCfg
+static S16 rgSCHCfgVldtDrxShrtCycCfg
(
RgrDrxShortDrx shrtCycCfg
)
#else
-PRIVATE S16 rgSCHCfgVldtDrxShrtCycCfg(shrtCycCfg)
+static S16 rgSCHCfgVldtDrxShrtCycCfg(shrtCycCfg)
RgrDrxShortDrx shrtCycCfg;
#endif
{
- TRC2(rgSCHCfgVldtDrxShrtCycCfg)
-
switch(shrtCycCfg.shortDrxCycle)
{
case RGR_DRX_PRD_2SF:
* -# RFAILED
**/
#ifdef ANSI
-PRIVATE Void rgSCHCfgUeTaRecfg
+static Void rgSCHCfgUeTaRecfg
(
RgSchCellCb *cell,
RgSchUeCb *ueCb,
RgSchErrInfo *err
)
#else
-PRIVATE Void rgSCHCfgUeTaRecfg(cell, ueCb, ueCfg, err)
+static Void rgSCHCfgUeTaRecfg(cell, ueCb, ueCfg, err)
RgSchCellCb *cell;
RgSchUeCb *ueCb;
RgrUeRecfg *ueCfg;
RgSchErrInfo *err;
#endif
{
- TRC2(rgSCHCfgUeTaRecfg)
-
UNUSED(err);
/* Update the TA related information */
rgSCHTmrStartTmr(cell, ueCb, RG_SCH_TMR_TA, ueCb->dl.taCb.cfgTaTmr);
}
}
- RETVOID;
+ return;
} /* rgSCHCfgUeTaRecfg */
/* ccpu00117452 - MOD - Changed macro name from
*
**********************************************************/
#ifdef ANSI
-PRIVATE S16 rgSCHCfgUeCqiReptReCfg
+static S16 rgSCHCfgUeCqiReptReCfg
(
RgSchCellCb *cell,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg
)
#else
-PRIVATE S16 rgSCHCfgUeCqiReptReCfg(cell, ue, ueRecfg)
+static S16 rgSCHCfgUeCqiReptReCfg(cell, ue, ueRecfg)
RgSchCellCb *cell;
RgSchUeCb *ue;
RgrUeRecfg *ueRecfg;
#endif
{
S16 retVal;
- TRC3(rgSCHCfgUeCqiReptReCfg)
/* Check has it been disabled */
if(ueRecfg->ueCqiReptCfg.numColltdCqiRept)
/*This function Added Ue in ongoing L2 Meas*/
/*LTE_L2_MEAS_PHASE2*/
#ifdef LTE_L2_MEAS
-PRIVATE S16 rgSchAddToL2Meas(RgSchCellCb *cellCb,RgSchDlLcCb *dlLc)
+static S16 rgSchAddToL2Meas(RgSchCellCb *cellCb,RgSchDlLcCb *dlLc)
{
CmLList *lnk;
- U16 idx;
+ uint16_t idx;
RgSchL2MeasCb *measCb = NULLP;
lnk = cellCb->l2mList.first;
* @param[in] Inst inst
* @param[in] RgSchUeCb *ue
* @param[int] RgrUeRecfg *ueRecfg
- * @param[out] U8 idx
+ * @param[out] uint8_t idx
* @return VOID
**/
#ifdef ANSI
Inst inst,
RgSchUeCb *ue,
RgrUeRecfg *ueRecfg,
-U8 idx
+uint8_t idx
)
#else
Void rgSCHSCellFreeBuf(inst ,ue, ueRecfg, idx)
Inst inst;
RgSchUeCb *ue;
RgrUeRecfg *ueRecfg;
-U8 idx;
+uint8_t idx;
#endif
{
RgSchUeCellInfo *sCellInfo = NULLP;
RgrUeSecCellCfg *sCellInfoRecfg = NULLP;
- TRC2(rgSCHSCellFreeBuf);
- for(U8 i = 0; i <= idx; i++)
+ for(uint8_t i = 0; i <= idx; i++)
{
sCellInfoRecfg = &ueRecfg->ueSCellCfgInfo.ueSCellDedCfg[i];
sCellInfo = ue->cellInfo[(sCellInfoRecfg->sCellIdx)];
}
}
- RETVOID;
+ return;
}
#endif
/**********************************************************************