X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Frgu.c;h=809f60eb055993e64bbaf864642d8dccdba7da08;hb=fe3e15254e67fd96dbfabec4bf7245c3b64ee415;hp=1125b6bc3408945f944b3eac45a8eeb3a00e9b00;hpb=d10b52519198632f93deae9574adc69c7ce12efa;p=o-du%2Fl2.git diff --git a/src/cm/rgu.c b/src/cm/rgu.c index 1125b6bc3..809f60eb0 100755 --- a/src/cm/rgu.c +++ b/src/cm/rgu.c @@ -420,7 +420,7 @@ Buffer *mBuf; * * @details * -* Function : packSendDlData +* Function : packDlData * * @param[in] Pst* pst * @param[in] SpId spId @@ -428,22 +428,15 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -PUBLIC S16 packSendDlData +PUBLIC uint16_t packDlData ( Pst* pst, SpId spId, RlcMacData *dlData ) -#else -PUBLIC S16 packSendDlData(pst, spId, dlData) -Pst* pst; -SpId spId; -RlcMacData dlData; -#endif { Buffer *mBuf = NULLP; - TRC3(packSendDlData) + TRC3(packDlData) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { #if (ERRCLASS & ERRCLS_ADD_RES) @@ -516,7 +509,7 @@ RlcMacData dlData; * * @details * -* Function : unpackSendDlData +* Function : unpackDlData * * @param[in] Pst* pst * @param[in] SpId spId @@ -524,25 +517,17 @@ RlcMacData dlData; * @return S16 * -# ROK **/ -#ifdef ANSI -PUBLIC S16 unpackSendDlData +PUBLIC S16 unpackDlData ( -RguDDatReq func, +RlcMacDlData func, Pst *pst, Buffer *mBuf ) -#else -PUBLIC S16 unpackSendDlData(func, pst, mBuf) -RguDDatReq func; -Pst *pst; -Buffer *mBuf; -#endif { SpId spId; -// RguDDatReqInfo *datReq; RlcMacData *dlData; - TRC3(unpackSendDlData) + TRC3(unpackDlData) if (SUnpkS16(&spId, mBuf) != ROK) { SPutMsg(mBuf); @@ -693,19 +678,12 @@ RlcMacData *ulData; * @return S16 * -# ROK **/ -#ifdef ANSI PUBLIC S16 unpackRcvdUlData ( -RguDDatInd func, +RlcMacUlData func, Pst *pst, Buffer *mBuf ) -#else -PUBLIC S16 unpackRcvdUlData(func, pst, mBuf) -RguDDatInd func; -Pst *pst; -Buffer *mBuf; -#endif { SuId suId; RlcMacData *ulData; @@ -1021,7 +999,7 @@ Buffer *mBuf; * * @details * -* Function : packSendBOStatus, +* Function : packBOStatus, * * @param[in] Pst* pst * @param[in] SpId spId @@ -1029,19 +1007,12 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI -PUBLIC S16 packSendBOStatus +PUBLIC uint16_t packBOStatus ( Pst* pst, SpId spId, RlcMacBOStatus *boStatus ) -#else -PUBLIC S16 packSendBOStatus(pst, spId, staRsp) -Pst* pst; -SpId spId; -RlcMacBOStatus *boStatus; -#endif { RlcMacBOStatus *boStaInfo = NULL; Buffer *mBuf = NULLP; @@ -1115,7 +1086,7 @@ RlcMacBOStatus *boStatus; * * @details * -* Function : unpackSendBOStatus +* Function : unpackBOStatus * * @param[in] Pst* pst * @param[in] SpId spId @@ -1123,24 +1094,17 @@ RlcMacBOStatus *boStatus; * @return S16 * -# ROK **/ -#ifdef ANSI -PUBLIC S16 unpackSendBOStatus +PUBLIC uint16_t unpackBOStatus ( -RguDStaRsp func, +RlcMacBoStatus func, Pst *pst, Buffer *mBuf ) -#else -PUBLIC S16 unpackSendBOStatus(func, pst, mBuf) -RguDStaRsp func; -Pst *pst; -Buffer *mBuf; -#endif { SpId spId; RlcMacBOStatus *boSta; - TRC3(unpackSendBOStatus) + TRC3(unpackBOStatus) if (SUnpkS16(&spId, mBuf) != ROK) { #if (ERRCLASS & ERRCLS_ADD_RES) @@ -1419,19 +1383,12 @@ Buffer *mBuf; * @return S16 * -# ROK **/ -#ifdef ANSI PUBLIC S16 packSchedRep ( Pst* pst, SuId suId, -RlcMacSchedRep * schRep +RlcMacSchedRepInfo * schRep ) -#else -PUBLIC S16 packSchedRep(pst, suId, staInd) -Pst* pst; -SuId suId; -RlcMacSchedRep * schRep; -#endif { Buffer *mBuf = NULLP; TRC3(packSchedRep) @@ -1442,7 +1399,7 @@ RlcMacSchedRep * schRep; __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES, (ErrVal)ERGU076, (ErrVal)0, "Packing failed"); #endif - SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep)); + SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo)); RETVALUE(RFAILED); } if (pst->selector == RGU_SEL_LWLC) @@ -1458,12 +1415,12 @@ RlcMacSchedRep * schRep; (ErrVal)ERGU077, (ErrVal)0, "Packing failed"); #endif SPutSBuf(pst->region, pst->pool, (Data *)schRep, - sizeof(RlcMacSchedRep)); + sizeof(RlcMacSchedRepInfo)); SPutMsg(mBuf); RETVALUE(RFAILED); } if (SPutSBuf(pst->region, pst->pool, (Data *)schRep, - sizeof(RlcMacSchedRep)) != ROK) { + sizeof(RlcMacSchedRepInfo)) != ROK) { #if (ERRCLASS & ERRCLS_ADD_RES) SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId, __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES, @@ -1482,7 +1439,7 @@ RlcMacSchedRep * schRep; #endif if (schRep != NULLP) { - SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep)); + SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo)); } SPutMsg(mBuf); RETVALUE(RFAILED); @@ -1509,23 +1466,15 @@ RlcMacSchedRep * schRep; * @return S16 * -# ROK **/ -#ifdef ANSI PUBLIC S16 unpackSchedRep ( -RguDStaInd func, +RlcMacSchedRep func, Pst *pst, Buffer *mBuf ) -#else -PUBLIC S16 unpackSchedRep(func, pst, mBuf) -RguDStaInd func; -Pst *pst; -Buffer *mBuf; -#endif { SuId suId; -// RguDStaIndInfo *staInd; - RlcMacSchedRep *schRep; + RlcMacSchedRepInfo *schRep; TRC3(unpackSchedRep) @@ -1544,7 +1493,7 @@ Buffer *mBuf; } else { - if ((SGetSBuf(pst->region, pst->pool, (Data **)&schRep, sizeof(RlcMacSchedRep))) != ROK) { + if ((SGetSBuf(pst->region, pst->pool, (Data **)&schRep, sizeof(RlcMacSchedRepInfo))) != ROK) { #if (ERRCLASS & ERRCLS_ADD_RES) SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId, __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES, @@ -1560,7 +1509,7 @@ Buffer *mBuf; (ErrVal)ERGU082, (ErrVal)0, "UnPacking failed"); #endif SPutMsg(mBuf); - SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRep)); + SPutSBuf(pst->region, pst->pool, (Data *)schRep, sizeof(RlcMacSchedRepInfo)); RETVALUE(RFAILED); } } @@ -2702,7 +2651,7 @@ Buffer *mBuf; for (i=param->nmbPdu-1; i >= 0; i--) { - MsgLen msgLen = 0; + msgLen = 0; if (SFndLenMsg(param->pduInfo[i].pduBuf, &msgLen) != ROK) RETVALUE(RFAILED); if (SCatMsg(mBuf, param->pduInfo[i].pduBuf, M1M2) != ROK) @@ -2762,7 +2711,7 @@ Buffer *mBuf; CMCHKUNPK(cmUnpkBool, ¶m->pduInfo[i].commCh, mBuf); CMCHKUNPK(cmUnpkLteLcId, ¶m->pduInfo[i].lcId, mBuf); - CMCHKUNPK(cmPkMsgLen, ¶m->pduInfo[i].pduLen, mBuf); + CMCHKUNPK(cmUnpkMsgLen, ¶m->pduInfo[i].pduLen, mBuf); if (SFndLenMsg(mBuf, &totalMsgLen) != ROK) RETVALUE(RFAILED); if (SSegMsg(mBuf, totalMsgLen-param->pduInfo[i].pduLen, ¶m->pduInfo[i].pduBuf) != ROK) @@ -3143,19 +3092,12 @@ Buffer *mBuf; * File : * **********************************************************/ -#ifdef ANSI PUBLIC S16 packSchedRepInfo ( -RlcMacSchedRep *param, +RlcMacSchedRepInfo *param, Buffer *mBuf ) -#else -PUBLIC S16 packSchedRepInfo(param, mBuf) -RlcMacSchedRep *param; -Buffer *mBuf; -#endif { - S32 i; S32 idx; TRC3(packSchedRepInfo); @@ -3191,19 +3133,12 @@ Buffer *mBuf; * File : * **********************************************************/ -#ifdef ANSI PUBLIC S16 unpackSchedRepInfo ( -RlcMacSchedRep *param, +RlcMacSchedRepInfo *param, Buffer *mBuf ) -#else -PUBLIC S16 unpackSchedRepInfo(param, mBuf) -RlcMacSchedRep *param; -Buffer *mBuf; -#endif { - S32 i; S32 idx; TRC3(unpackSchedRepInfo);