X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch.c;h=13667ce7f8d08f98a076346c18c2300c7ec62a7f;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=d90d3274d1b72cb23e027543ac35c83856a33db7;hpb=0a26c487f1b6bbb5217e47b15fa8273b2e749283;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch.c b/src/5gnrsch/rg_sch.c index d90d3274d..13667ce7f 100755 --- a/src/5gnrsch/rg_sch.c +++ b/src/5gnrsch/rg_sch.c @@ -117,8 +117,6 @@ RgMngmt *cntrl; /* control structure */ RgMngmt cfm; Inst inst = (pst->dstInst - SCH_INST_START); /* Scheduler instance Id */ - TRC3(RgMiLrgSchCntrlReq) - /* Fill the post structure for sending the confirmation */ SchFillCfmPst(pst, &cfmPst, cntrl); @@ -131,7 +129,7 @@ RgMngmt *cntrl; /* control structure */ SPutSBuf(pst->region, pst->pool, (Data *)cntrl, sizeof(RgMngmt)); return ROK; } */ - cmMemset((U8 *)&cfm, 0, sizeof(RgMngmt)); + memset(&cfm, 0, sizeof(RgMngmt)); #ifdef LMINT3 cfm.hdr.transId = @@ -212,7 +210,7 @@ S16 RgMiLrgSchL2MeasReq(pst, measInfo) #if (ERRCLASS & ERRCLS_ADD_RES) CmLList *lnk; #endif - U32 idx; + uint32_t idx; RgSchL2MeasCb *measCb = NULLP; #ifdef DEBUGP Inst inst = (pst->dstInst - SCH_INST_START); /* Scheduler instance Id */ @@ -221,8 +219,6 @@ S16 RgMiLrgSchL2MeasReq(pst, measInfo) err.errType = 0; err.errCause = 0; - TRC3(RgMiLrgSchL2MeasReq) - /* Find the cellCb using cellId in measInfo. Iterate through all cells * in rgrsapCb in RgschCb */ @@ -326,11 +322,7 @@ S16 RgMiLrgSchL2MeasStopReq(pst, measInfo) CmLList *node = NULLP; RgSchL2MeasCb *measCb = NULLP; LrgSchMeasCfmInfo measCfm; - U8 idx; - - - TRC3(RgMiLrgSchL2MeasStopReq) - + uint8_t idx; for (idx = 0; idx < instCb->numSaps; idx++) { @@ -347,7 +339,7 @@ S16 RgMiLrgSchL2MeasStopReq(pst, measInfo) "Stop req Failed.Invalid Cell Id "); return RFAILED; } - cmMemset((U8 *)&measCfm, 0, sizeof(LrgSchMeasCfmInfo)); + memset(&measCfm, 0, sizeof(LrgSchMeasCfmInfo)); node = cell->l2mList.first; while(node != NULLP) { @@ -363,7 +355,7 @@ S16 RgMiLrgSchL2MeasStopReq(pst, measInfo) { RgInfL2MeasStopReq measStopReq; Pst pstMac; - cmMemset((U8 *)&measStopReq, 0, sizeof(RgInfL2MeasStopReq)); + memset(&measStopReq, 0, sizeof(RgInfL2MeasStopReq)); measStopReq.transId = measInfo->hdr.transId; measStopReq.measType = measInfo->measType; /* measReq.timePrd = measInfo->timePrd; */ @@ -408,11 +400,7 @@ S16 RgMiLrgSchL2MeasSendReq(pst, measInfo) S16 ret = ROK; RgSchCellCb *cell; RgSchCb *instCb = &rgSchCb[(pst->dstInst - SCH_INST_START)]; - U8 idx; - - TRC3(RgMiLrgSchL2MeasSendReq) - - + uint8_t idx; cell = NULLP; for (idx = 0; idx < instCb->numSaps; idx++) @@ -435,7 +423,7 @@ S16 RgMiLrgSchL2MeasSendReq(pst, measInfo) { RgInfL2MeasSndReq measSndReq; Pst pstMac; - cmMemset((U8 *)&measSndReq, 0, sizeof(RgInfL2MeasSndReq)); + memset(&measSndReq, 0, sizeof(RgInfL2MeasSndReq)); measSndReq.transId = measInfo->hdr.transId; measSndReq.measType = measInfo->measType; measSndReq.timePrd = measInfo->timePrd; @@ -494,9 +482,6 @@ S16 RgUiRgrBndReq(pst, suId, spId) Inst instId = pst->dstInst-SCH_INST_START; RgUstaDgn dgn; /* Alarm diagnostics structure */ - TRC3(RgUiRgrBndReq) - - tmpPst.prior = pst->prior; tmpPst.route = pst->route; tmpPst.selector = pst->selector; @@ -589,8 +574,6 @@ S16 RgUiRgrUbndReq(pst, spId, reason) #endif { Inst instId = pst->dstInst-SCH_INST_START; - TRC3(RgUiRgrUbndReq) - /* SAP Id validation */ if (spId < rgSchCb[instId].numSaps) @@ -662,13 +645,11 @@ RgrSiCfgReqInfo *cfgReqInfo; #endif { S16 ret = ROK; - U8 cfmStatus = RGR_CFG_CFM_NOK; - U8 prntTrans[RGR_CFG_TRANSID_SIZE+1]; + uint8_t cfmStatus = RGR_CFG_CFM_NOK; + uint8_t prntTrans[RGR_CFG_TRANSID_SIZE+1]; Inst instId = pst->dstInst-SCH_INST_START; - TRC2(RgUiRgrSiCfgReq); - - cmMemcpy((U8 *)prntTrans, (U8 *)transId.trans, RGR_CFG_TRANSID_SIZE); + memcpy(prntTrans, transId.trans, RGR_CFG_TRANSID_SIZE); prntTrans[RGR_CFG_TRANSID_SIZE] = '\0'; @@ -777,12 +758,10 @@ RgrWarningSiCfgReqInfo *warningSiCfgReqInfo; { Inst instId = pst->dstInst-SCH_INST_START; S16 ret = ROK; - U8 cfmStatus = RGR_CFG_CFM_NOK; - U8 prntTrans[RGR_CFG_TRANSID_SIZE+1]; - - TRC2(RgUiRgrWarningSiCfgReq); + uint8_t cfmStatus = RGR_CFG_CFM_NOK; + uint8_t prntTrans[RGR_CFG_TRANSID_SIZE+1]; - cmMemcpy((U8 *)prntTrans, (U8 *)transId.trans, RGR_CFG_TRANSID_SIZE); + memcpy(prntTrans, transId.trans, RGR_CFG_TRANSID_SIZE); prntTrans[RGR_CFG_TRANSID_SIZE] = '\0'; @@ -882,22 +861,18 @@ S16 RgUiRgrWarningSiStopReq Pst *pst, SpId spId, RgrCfgTransId transId, -U8 siId +uint8_t siId ) #else S16 RgUiRgrWarningSiStopReq(pst,spId, transId, siId) Pst *pst; SpId spId; RgrCfgTransId transId; -U8 siId; +uint8_t siId; #endif { Inst instId = pst->dstInst-SCH_INST_START; - TRC3(RgUiRgrWarningSiStopReq) - - - if (spId < rgSchCb[instId].numSaps) { if(LRG_BND != rgSchCb[instId].rgrSap[spId].sapSta.sapState) @@ -967,12 +942,10 @@ S16 RgUiRgrLoadInfReq(pst, spId, transId, loadInfReq) #endif { S16 ret = ROK; - U8 prntTrans[RGR_CFG_TRANSID_SIZE+1]; + uint8_t prntTrans[RGR_CFG_TRANSID_SIZE+1]; Inst instId = pst->dstInst-SCH_INST_START; - TRC2(RgUiRgrLoadInfReq); - - cmMemcpy((U8 *)prntTrans, (U8 *)transId.trans, RGR_CFG_TRANSID_SIZE); + memcpy(prntTrans, transId.trans, RGR_CFG_TRANSID_SIZE); prntTrans[RGR_CFG_TRANSID_SIZE] = '\0'; @@ -1063,7 +1036,6 @@ RgInfDedBoRpt *boRpt; Inst inst = (pst->dstInst - SCH_INST_START); S16 cellSapId = boRpt->cellSapId; - TRC3(RgMacSchDedBoUpdtReq) /* RLOG_ARG2(L_DEBUG,DBG_CELLID,boRpt->cellId,"rgMacSchDedBoUpdtReq():" " boRpt->rnti = %u boRpt->lcId = %u",boRpt->rnti, boRpt->lcId); @@ -1196,7 +1168,6 @@ RgInfCmnBoRpt *boRpt; Inst inst = (pst->dstInst - SCH_INST_START); S16 cellSapId = boRpt->cellSapId; - TRC3(RgMacSchCmnBoUpdtReq) /* No need to chk for cell being NULL as MAC would not have found instance if * it doesnt exist */ @@ -1256,8 +1227,6 @@ RgInfUeDelInd *ueDelInd; CmLList *tmp; RgSchRntiLnk *rntiLnk=NULL; - TRC3(RgMacSchUeDelInd) - if (rgSchCb[inst].rgrSap == NULLP || rgSchCb[inst].rgrSap[cellSapId].cell == NULLP) { RLOG_ARG0(L_ERROR,DBG_CELLID,ueDelInd->cellId,"rgrSap or cell is not configured"); @@ -1354,18 +1323,17 @@ RgInfSfDatInd *subfrmInfo; RgSchCmnUlUeSpsInfo *ulSpsUe ; #endif /* RRM_RBC_X */ - U32 idx; + uint32_t idx; /* RRM_RBC_Y */ #ifdef LTE_L2_MEAS - U8 qci; - U16 datIndActQci = 0; - U16 combDatIndActQci = 0; /* Prev and Latest Dat Ind combined */ - U16 tempUeActQci = 0; /* UE specific Active QCIs */ - U16 diffBits = 0; - U8 lcCount; + uint8_t qci; + uint16_t datIndActQci = 0; + uint16_t combDatIndActQci = 0; /* Prev and Latest Dat Ind combined */ + uint16_t tempUeActQci = 0; /* UE specific Active QCIs */ + uint16_t diffBits = 0; + uint8_t lcCount; #endif - TRC3(RgMacSchSfRecpInd) /* No need to chk for cell being NULL as MAC wouldn't have found instance if * it doesnt exist */ @@ -1618,7 +1586,6 @@ RgInfSpsRelInfo *relInfo; RgSchCellCb *cell; Inst inst = (pst->dstInst - SCH_INST_START); - TRC2(RgMacSchSpsRelInd); /* No need to chk for cell being NULL as MAC wouldn't have found instance if * it doesnt exist */ @@ -1680,12 +1647,11 @@ RgInfL2MeasCfm *measCfm; CmLList *lnk; RgSchL2MeasCb *measCb = NULLP; RgSchCb *instCb = &rgSchCb[inst]; - U32 idx; + uint32_t idx; LrgSchMeasCfmInfo schMeasCfm; - U8 qciVal; - U8 idx1; /*LTE_L2_MEAS_PHASE2*/ - U8 qciVal1; - TRC2(RgMacSchL2MeasCfm); + uint8_t qciVal; + uint8_t idx1; /*LTE_L2_MEAS_PHASE2*/ + uint8_t qciVal1; /* Find the cellCb using cellId in measInfo. Iterate through all cells * in rgrsapCb in RgschCb */ @@ -1738,7 +1704,7 @@ RgInfL2MeasCfm *measCfm; /* ccpu00117052 - MOD - Passing double pointer for proper NULLP assignment*/ rgSCHUtlFreeSBuf(cell->instIdx, (Data **)&measCb, sizeof(RgSchL2MeasCb)); - cmMemset((U8 *)&schMeasCfm, 0, sizeof(LrgSchMeasCfmInfo)); + memset(&schMeasCfm, 0, sizeof(LrgSchMeasCfmInfo)); schMeasCfm.measType = measCfm->measType; schMeasCfm.cfm = measCfm->cfm; schMeasCfm.hdr.transId = measCfm->transId; @@ -1806,9 +1772,7 @@ RgInfL2MeasCfm *measCfm; Inst inst = (pst->dstInst - SCH_INST_START); RgSchCb *instCb = &rgSchCb[inst]; - TRC2(RgMacSchL2MeasStopCfm); - - cmMemset((U8 *)&schMeasCfm, 0, sizeof(LrgSchMeasCfmInfo)); + memset(&schMeasCfm, 0, sizeof(LrgSchMeasCfmInfo)); schMeasCfm.measType = measCfm->measType; schMeasCfm.cfm = measCfm->cfm; schMeasCfm.hdr.transId = measCfm->transId; @@ -1832,7 +1796,7 @@ RgInfL2MeasCfm *measCfm; * * @param[in] Pst *pst * @param[in] SuId suId - * @param[in] U8 status + * @param[in] uint8_t status * @return S16 * -# ROK * -# RFAILED @@ -1842,22 +1806,19 @@ S16 RgLiTfuSchBndCfm ( Pst *pst, SuId suId, -U8 status +uint8_t status ) #else S16 RgLiTfuSchBndCfm(pst, suId, status) Pst *pst; SuId suId; -U8 status; +uint8_t status; #endif { S16 ret; RgSchLowSapCb *tfuSap; Inst instId = pst->dstInst - SCH_INST_START; - TRC3(RgLiTfuSchBndCfm); - - if(suId >= rgSchCb[instId].numSaps) { RLOG_ARG0(L_ERROR,DBG_INSTID,instId, "Incorrect SuId"); @@ -1911,8 +1872,6 @@ TfuRaReqIndInfo *raReqInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuRaReqInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG1(L_ERROR,DBG_INSTID,inst,"SAP Validation failed SuId(%d)", suId); @@ -1975,8 +1934,6 @@ TfuUlCqiIndInfo *ulCqiInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuUlCqiInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed"); @@ -2032,8 +1989,6 @@ TfuPucchDeltaPwrIndInfo *pucchDeltaPwr; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuPucchDeltaPwrInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed"); @@ -2090,7 +2045,6 @@ TfuHqIndInfo *harqAckInd; S16 ret; Inst inst = (pst->dstInst - SCH_INST_START); - TRC3(RgLiTfuHqInd); #ifndef NO_ERRCLS if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) @@ -2150,8 +2104,6 @@ TfuSrIndInfo *srInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuSrInd); - #ifndef NO_ERRCLS if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { @@ -2209,8 +2161,6 @@ TfuDlCqiIndInfo *dlCqiInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuDlCqiInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed"); @@ -2266,8 +2216,6 @@ TfuRawCqiIndInfo *rawCqiInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuRawCqiInd); - #ifdef NO_ERRCLS if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { @@ -2324,8 +2272,6 @@ TfuSrsIndInfo *srsInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuSrsInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst," SAP Validation failed"); @@ -2382,8 +2328,6 @@ TfuDoaIndInfo *doaInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC2(RgLiTfuDoaInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed"); @@ -2436,7 +2380,6 @@ TfuCrcIndInfo *crcInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuCrcInd); #ifdef XEON_SPECIFIC_CHANGES struct timeval start6, end6; gettimeofday(&start6, NULL); @@ -2500,8 +2443,6 @@ TfuTimingAdvIndInfo *timingAdvInd; S16 ret; Inst inst = pst->dstInst-SCH_INST_START; - TRC3(RgLiTfuTimingAdvInd); - if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) { RLOG_ARG0(L_ERROR,DBG_INSTID,inst,"SAP Validation failed"); @@ -2560,9 +2501,6 @@ SpId spId; Pst tmpPst; /* Temporary Post Structure */ Inst instId = pst->dstInst-SCH_INST_START; - TRC3(RgUiRgmBndReq) - - tmpPst.prior = pst->prior; tmpPst.route = pst->route; tmpPst.selector = pst->selector; @@ -2658,8 +2596,6 @@ Reason reason; #endif { Inst instId = pst->dstInst-SCH_INST_START; - TRC3(RgUiRgmUbndReq) - /* SAP Id validation */ if (spId < rgSchCb[instId].numSaps) @@ -2731,7 +2667,6 @@ RgmPrbRprtCfg *prbRprtCfg; RgSchPrbUsage *prbUsage; Inst inst = (pst->dstInst - SCH_INST_START); - TRC2(RgUiRgmCfgPrbRprt); cell = rgSchCb[inst].rgmSap[spId].cell; prbUsage = &cell->prbUsage; prbUsage->prbRprtEnabld = prbRprtCfg->bConfigType; @@ -2739,7 +2674,7 @@ RgmPrbRprtCfg *prbRprtCfg; RG_SCH_ADD_TO_CRNT_TIME(cell->crntTime, prbUsage->startTime, 1); /* clear the qciPrbRpts for all GBR QCIs */ - cmMemset((U8*)&prbUsage->qciPrbRpts[0], 0, + memset(&prbUsage->qciPrbRpts[0], 0, (RGM_MAX_QCI_REPORTS * sizeof(RgSchQciPrbUsage))); RLOG_ARG2(L_DEBUG,DBG_CELLID,cell->cellId, @@ -2776,13 +2711,13 @@ S16 RgLiTfuErrInd ( Pst *pst, SuId suId, -TfuErrIndInfo *errInd +TfuErrIndInfo *errInd ) #else S16 RgLiTfuErrInd(pst, suId, errInd) Pst *pst; SuId suId; -TfuErrIndInfo *errInd; +TfuErrIndInfo *errInd; #endif { S16 ret = ROK; @@ -2790,8 +2725,6 @@ TfuErrIndInfo *errInd; Inst inst = (pst->dstInst - SCH_INST_START); #endif - TRC3(RgLiTfuErrInd); - #ifndef NO_ERRCLS if ((ret = rgSCHUtlValidateTfuSap (inst, suId)) != ROK) {