X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_inf.c;h=88aacb195066a042714159cd006ecef265be6f46;hb=cfe7ea3ab6cb69d18ed91d79c1bf66b3bc8bdc98;hp=daf97303016fd39cece4cf8f233825a706090287;hpb=105199ef642ffe9736ea24a01d4546578fa25e60;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_inf.c b/src/5gnrsch/rg_sch_inf.c index daf973030..88aacb195 100755 --- a/src/5gnrsch/rg_sch_inf.c +++ b/src/5gnrsch/rg_sch_inf.c @@ -60,13 +60,13 @@ * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchUeDelInd +S16 cmPkMacSchUeDelInd ( Pst* pst, RgInfUeDelInd* ueDelInd ) #else -PUBLIC S16 cmPkMacSchUeDelInd(pst, ueDelInd) +S16 cmPkMacSchUeDelInd(pst, ueDelInd) Pst* pst; RgInfUeDelInd* ueDelInd; #endif @@ -76,7 +76,7 @@ RgInfUeDelInd* ueDelInd; if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } #ifdef MS_MBUF_CORRUPTION @@ -85,11 +85,11 @@ RgInfUeDelInd* ueDelInd; if(SAddPstMsgMult((Data *)ueDelInd, sizeof(RgInfUeDelInd), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFUEDELIND; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /** @@ -108,14 +108,14 @@ RgInfUeDelInd* ueDelInd; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchUeDelInd +S16 cmUnpkMacSchUeDelInd ( UeDelInd func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchUeDelInd(func, pst, mBuf) +S16 cmUnpkMacSchUeDelInd(func, pst, mBuf) UeDelInd func; Pst *pst; Buffer *mBuf; @@ -128,12 +128,12 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&ueDelInd, sizeof(RgInfUeDelInd), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &ueDelInd)); + return ((*func)(pst, &ueDelInd)); } /*Fix: end: Inform UE delete to scheduler*/ @@ -152,13 +152,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchDedBoUpdtReq +S16 cmPkMacSchDedBoUpdtReq ( Pst* pst, RgInfDedBoRpt* boRpt ) #else -PUBLIC S16 cmPkMacSchDedBoUpdtReq(pst, boRpt) +S16 cmPkMacSchDedBoUpdtReq(pst, boRpt) Pst* pst; RgInfDedBoRpt* boRpt; #endif @@ -167,7 +167,7 @@ RgInfDedBoRpt* boRpt; TRC2(cmPkMacSchDedBoUpdtReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } #ifdef MS_MBUF_CORRUPTION @@ -176,11 +176,11 @@ RgInfDedBoRpt* boRpt; if(SAddPstMsgMult((Data *)boRpt, sizeof(RgInfDedBoRpt), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFDEDBOUPDTREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } @@ -199,14 +199,14 @@ RgInfDedBoRpt* boRpt; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchDedBoUpdtReq +S16 cmUnpkMacSchDedBoUpdtReq ( DedBoUpdtReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchDedBoUpdtReq(func, pst, mBuf) +S16 cmUnpkMacSchDedBoUpdtReq(func, pst, mBuf) DedBoUpdtReq func; Pst *pst; Buffer *mBuf; @@ -219,11 +219,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&boRpt, sizeof(RgInfDedBoRpt), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &boRpt)); + return ((*func)(pst, &boRpt)); } /** * @brief Request from RLC to MAC for forwarding SDUs on @@ -240,13 +240,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchCmnBoUpdtReq +S16 cmPkMacSchCmnBoUpdtReq ( Pst* pst, RgInfCmnBoRpt* boRpt ) #else -PUBLIC S16 cmPkMacSchCmnBoUpdtReq(pst, boRpt) +S16 cmPkMacSchCmnBoUpdtReq(pst, boRpt) Pst* pst; RgInfCmnBoRpt* boRpt; #endif @@ -255,7 +255,7 @@ RgInfCmnBoRpt* boRpt; TRC2(cmPkMacSchCmnBoUpdtReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } #ifdef MS_MBUF_CORRUPTION @@ -264,11 +264,11 @@ RgInfCmnBoRpt* boRpt; if(SAddPstMsgMult((Data *)boRpt, sizeof(RgInfCmnBoRpt), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFCMNBOUPDTREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } @@ -287,14 +287,14 @@ RgInfCmnBoRpt* boRpt; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchCmnBoUpdtReq +S16 cmUnpkMacSchCmnBoUpdtReq ( CmnBoUpdtReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchCmnBoUpdtReq(func, pst, mBuf) +S16 cmUnpkMacSchCmnBoUpdtReq(func, pst, mBuf) CmnBoUpdtReq func; Pst *pst; Buffer *mBuf; @@ -307,11 +307,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&boRpt, sizeof(RgInfCmnBoRpt), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &boRpt)); + return ((*func)(pst, &boRpt)); } /** * @brief Request from RLC to MAC for forwarding SDUs on @@ -328,13 +328,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchSfRecpInd +S16 cmPkMacSchSfRecpInd ( Pst* pst, RgInfSfDatInd* datInd ) #else -PUBLIC S16 cmPkMacSchSfRecpInd(pst, datInd) +S16 cmPkMacSchSfRecpInd(pst, datInd) Pst* pst; RgInfSfDatInd* datInd; #endif @@ -343,17 +343,17 @@ RgInfSfDatInd* datInd; TRC2(cmPkMacSchSfRecpInd) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)datInd, mBuf) != ROK) + if(oduPackPointer((PTR)datInd, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFSFRECPIND; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } @@ -372,14 +372,14 @@ RgInfSfDatInd* datInd; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchSfRecpInd +S16 cmUnpkMacSchSfRecpInd ( SfRecpInd func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchSfRecpInd(func, pst, mBuf) +S16 cmUnpkMacSchSfRecpInd(func, pst, mBuf) SfRecpInd func; Pst *pst; Buffer *mBuf; @@ -389,15 +389,15 @@ Buffer *mBuf; TRC2(cmUnpkMacSchCmnBoUpdtReq) - if(cmUnpkPtr((PTR *)&datInd, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&datInd, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); /* Call cmFreeMem(datInd) in scheduler */ - RETVALUE((*func)(pst, datInd)); + return ((*func)(pst, datInd)); } #ifdef LTEMAC_SPS @@ -414,13 +414,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchSpsRelInd +S16 cmPkMacSchSpsRelInd ( Pst* pst, RgInfSpsRelInfo* relInfo ) #else -PUBLIC S16 cmPkMacSchSpsRelInd(pst, relInfo) +S16 cmPkMacSchSpsRelInd(pst, relInfo) Pst* pst; RgInfSpsRelInfo* relInfo; #endif @@ -430,17 +430,17 @@ RgInfSpsRelInfo* relInfo; TRC2(cmPkMacSchSpsRelInd) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)relInfo, mBuf) != ROK) + if(oduPackPointer((PTR)relInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFSPSRELIND; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkMacSchSpsRelInd */ /** @@ -457,14 +457,14 @@ RgInfSpsRelInfo* relInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchSpsRelInd +S16 cmUnpkMacSchSpsRelInd ( SpsRelInd func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchSpsRelInd(func, pst, mBuf) +S16 cmUnpkMacSchSpsRelInd(func, pst, mBuf) SpsRelInd func; Pst *pst; Buffer *mBuf; @@ -474,14 +474,14 @@ Buffer *mBuf; TRC2(cmUnpkMacSchSpsRelInd) - if(cmUnpkPtr((PTR *)&relInfo, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&relInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, relInfo)); + return ((*func)(pst, relInfo)); } /* end of cmUnpkMacSchSpsRelInd */ #endif /* LTEMAC_SPS */ @@ -502,13 +502,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacSfAllocReq +S16 cmPkSchMacSfAllocReq ( Pst* pst, RgInfSfAlloc* resAllocReq ) #else -PUBLIC S16 cmPkSchMacSfAllocReq(pst, resAllocReq) +S16 cmPkSchMacSfAllocReq(pst, resAllocReq) Pst* pst; RgInfSfAlloc* resAllocReq; #endif @@ -517,17 +517,17 @@ RgInfSfAlloc* resAllocReq; TRC2(cmPkSchMacSfAllocReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)resAllocReq, mBuf) != ROK) + if(oduPackPointer((PTR)resAllocReq, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFSFALLOCREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } @@ -546,14 +546,14 @@ RgInfSfAlloc* resAllocReq; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacSfAllocReq +S16 cmUnpkSchMacSfAllocReq ( SfAllocReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacSfAllocReq(func, pst, mBuf) +S16 cmUnpkSchMacSfAllocReq(func, pst, mBuf) SfAllocReq func; Pst *pst; Buffer *mBuf; @@ -563,14 +563,14 @@ Buffer *mBuf; TRC2(cmUnpkSchMacSfAllocReq) - if(cmUnpkPtr((PTR *)&resAllocReq, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&resAllocReq, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, resAllocReq)); + return ((*func)(pst, resAllocReq)); } /** * @brief Request from SCH To MAC for harq entity reset @@ -585,13 +585,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacRstHqEntReq +S16 cmPkSchMacRstHqEntReq ( Pst* pst, RgInfResetHqEnt* hqEntInfo ) #else -PUBLIC S16 cmPkSchMacRstHqEntReq(pst, sfHqInfo) +S16 cmPkSchMacRstHqEntReq(pst, sfHqInfo) Pst* pst, RgInfResetHqEnt* hqEntInfo #endif @@ -600,17 +600,17 @@ RgInfResetHqEnt* hqEntInfo TRC2(cmPkSchMacRstHqEntReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)hqEntInfo, mBuf) != ROK) + if(oduPackPointer((PTR)hqEntInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFHQENTRESET; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /** @@ -626,14 +626,14 @@ RgInfResetHqEnt* hqEntInfo * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacRstHqEntReq +S16 cmUnpkSchMacRstHqEntReq ( RstHqEntReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacRstHqEntReq(func, pst, mBuf) +S16 cmUnpkSchMacRstHqEntReq(func, pst, mBuf) RstHqEntReq func, Pst *pst, Buffer *mBuf @@ -643,14 +643,14 @@ Buffer *mBuf TRC2(cmUnpkSchMacRstHqEntReq) - if(cmUnpkPtr((PTR *)&hqEntRstInfo, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&hqEntRstInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, hqEntRstInfo)); + return ((*func)(pst, hqEntRstInfo)); } /** @@ -668,13 +668,13 @@ Buffer *mBuf * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacRlsHqReq +S16 cmPkSchMacRlsHqReq ( Pst* pst, RgInfRlsHqInfo* sfHqInfo ) #else -PUBLIC S16 cmPkSchMacRlsHqReq(pst, sfHqInfo) +S16 cmPkSchMacRlsHqReq(pst, sfHqInfo) Pst* pst; RgInfRlsHqInfo* sfHqInfo; #endif @@ -683,17 +683,17 @@ RgInfRlsHqInfo* sfHqInfo; TRC2(cmPkSchMacRlsHqReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)sfHqInfo, mBuf) != ROK) + if(oduPackPointer((PTR)sfHqInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFRLSHQREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /** @@ -711,14 +711,14 @@ RgInfRlsHqInfo* sfHqInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacRlsHqReq +S16 cmUnpkSchMacRlsHqReq ( RlsHqReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacRlsHqReq(func, pst, mBuf) +S16 cmUnpkSchMacRlsHqReq(func, pst, mBuf) RlsHqReq func; Pst *pst; Buffer *mBuf; @@ -728,14 +728,14 @@ Buffer *mBuf; TRC2(cmUnpkSchMacRlsHqReq) - if(cmUnpkPtr((PTR *)&sfHqInfo, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&sfHqInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, sfHqInfo)); + return ((*func)(pst, sfHqInfo)); } /** * @brief Request from RLC to MAC for forwarding SDUs on @@ -752,13 +752,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacRlsRntiReq +S16 cmPkSchMacRlsRntiReq ( Pst* pst, RgInfRlsRnti* rlsRnti ) #else -PUBLIC S16 cmPkSchMacRlsRntiReq(pst, rlsRnti) +S16 cmPkSchMacRlsRntiReq(pst, rlsRnti) Pst* pst; RgInfRlsRnti* rlsRnti; #endif @@ -767,7 +767,7 @@ RgInfRlsRnti* rlsRnti; TRC2(cmPkSchMacRlsRntiReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } #ifdef MS_MBUF_CORRUPTION @@ -776,11 +776,11 @@ RgInfRlsRnti* rlsRnti; if(SAddPstMsgMult((Data *)rlsRnti, sizeof(RgInfRlsRnti), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFRLSRNTIREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /** @@ -798,14 +798,14 @@ RgInfRlsRnti* rlsRnti; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacRlsRntiReq +S16 cmUnpkSchMacRlsRntiReq ( RlsRntiReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacRlsRntiReq(func, pst, mBuf) +S16 cmUnpkSchMacRlsRntiReq(func, pst, mBuf) RlsRntiReq func; Pst *pst; Buffer *mBuf; @@ -818,11 +818,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&rlsRnti, sizeof(RgInfRlsRnti), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &rlsRnti)); + return ((*func)(pst, &rlsRnti)); } /** @@ -840,13 +840,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacCellRegReq +S16 cmPkSchMacCellRegReq ( Pst* pst, RgInfCellReg* regReq ) #else -PUBLIC S16 cmPkSchMacCellRegReq(pst, regReq) +S16 cmPkSchMacCellRegReq(pst, regReq) Pst* pst; RgInfCellReg* regReq; #endif @@ -855,7 +855,7 @@ RgInfCellReg* regReq; TRC2(cmPkSchMacCellRegReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } #ifdef MS_MBUF_CORRUPTION @@ -864,11 +864,11 @@ RgInfCellReg* regReq; if(SAddPstMsgMult((Data *)regReq, sizeof(RgInfCellReg), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFCELLREGREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /** @@ -886,14 +886,14 @@ RgInfCellReg* regReq; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacCellRegReq +S16 cmUnpkSchMacCellRegReq ( CellRegReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacCellRegReq(func, pst, mBuf) +S16 cmUnpkSchMacCellRegReq(func, pst, mBuf) CellRegReq func; Pst *pst; Buffer *mBuf; @@ -906,11 +906,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)®Req, sizeof(RgInfCellReg), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, ®Req)); + return ((*func)(pst, ®Req)); } /** @@ -926,13 +926,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacLcgRegReq +S16 cmPkSchMacLcgRegReq ( Pst* pst, RgInfLcgRegReq *lcgRegReq ) #else -PUBLIC S16 cmPkSchMacLcgRegReq(pst, lcgRegReq) +S16 cmPkSchMacLcgRegReq(pst, lcgRegReq) Pst* pst; RgInfLcgRegReq *lcgRegReq; #endif @@ -942,17 +942,17 @@ RgInfLcgRegReq *lcgRegReq; TRC2(cmPkSchMacLcgRegReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)lcgRegReq, sizeof(RgInfLcgRegReq), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFLCGREG; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacLcgRegReq */ /** @@ -969,14 +969,14 @@ RgInfLcgRegReq *lcgRegReq; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacLcgRegReq +S16 cmUnpkSchMacLcgRegReq ( LcgReg func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacLcgRegReq(func, pst, mBuf) +S16 cmUnpkSchMacLcgRegReq(func, pst, mBuf) LcgReg func; Pst *pst; Buffer *mBuf; @@ -986,14 +986,14 @@ Buffer *mBuf; TRC2(cmUnpkSchMacLcgRegReq) - if(cmUnpkPtr((PTR *)&lcgRegReq, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&lcgRegReq, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, lcgRegReq)); + return ((*func)(pst, lcgRegReq)); } /* end of cmUnpkSchMacLcgRegReq */ #ifdef LTEMAC_SPS @@ -1011,13 +1011,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacSpsLcRegReq +S16 cmPkSchMacSpsLcRegReq ( Pst* pst, RgInfSpsLcInfo *lcInfo ) #else -PUBLIC S16 cmPkSchMacSpsLcRegReq(pst, lcInfo) +S16 cmPkSchMacSpsLcRegReq(pst, lcInfo) Pst* pst; RgInfSpsLcInfo *lcInfo; #endif @@ -1027,17 +1027,17 @@ RgInfSpsLcInfo *lcInfo; TRC2(cmPkSchMacSpsLcRegReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)lcInfo, mBuf) != ROK) + if(oduPackPointer((PTR)lcInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFSPSLCREG; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacSpsLcRegReq */ /** @@ -1053,13 +1053,13 @@ RgInfSpsLcInfo *lcInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacUlSpsResetReq +S16 cmPkSchMacUlSpsResetReq ( Pst* pst, RgInfUlSpsReset *ulSpsResetInfo ) #else -PUBLIC S16 cmPkSchMacUlSpsResetReq(pst, ulSpsResetInfo) +S16 cmPkSchMacUlSpsResetReq(pst, ulSpsResetInfo) Pst* pst; RgInfUlSpsReset *ulSpsResetInfo; #endif @@ -1069,17 +1069,17 @@ RgInfUlSpsReset *ulSpsResetInfo; TRC2(cmPkSchMacUlSpsResetReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } - if(cmPkPtr((PTR)ulSpsResetInfo, mBuf) != ROK) + if(oduPackPointer((PTR)ulSpsResetInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFSPSRESET; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacUlSpsResetReq */ /** @@ -1096,14 +1096,14 @@ RgInfUlSpsReset *ulSpsResetInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacSpsLcRegReq +S16 cmUnpkSchMacSpsLcRegReq ( SpsLcReg func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacSpsLcRegReq(func, pst, mBuf) +S16 cmUnpkSchMacSpsLcRegReq(func, pst, mBuf) SpsLcReg func; Pst *pst; Buffer *mBuf; @@ -1113,14 +1113,14 @@ Buffer *mBuf; TRC2(cmUnpkSchMacSpsLcRegReq) - if(cmUnpkPtr((PTR *)&lcInfo, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&lcInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, lcInfo)); + return ((*func)(pst, lcInfo)); } /* end of cmUnpkSchMacSpsLcRegReq */ @@ -1139,14 +1139,14 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacUlSpsResetReq +S16 cmUnpkSchMacUlSpsResetReq ( UlSpsReset func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacUlSpsResetReq(func, pst, mBuf) +S16 cmUnpkSchMacUlSpsResetReq(func, pst, mBuf) UlSpsReset func; Pst *pst; Buffer *mBuf; @@ -1156,14 +1156,14 @@ Buffer *mBuf; TRC2(cmUnpkSchMacUlSpsResetReq) - if(cmUnpkPtr((PTR *)&ulSpsResetInfo, mBuf) != ROK) + if(oduUnpackPointer((PTR *)&ulSpsResetInfo, mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, ulSpsResetInfo)); + return ((*func)(pst, ulSpsResetInfo)); } /* end of cmUnpkSchMacUlSpsResetReq */ @@ -1182,14 +1182,14 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacSpsLcDeregReq +S16 cmPkSchMacSpsLcDeregReq ( Pst* pst, CmLteCellId cellId, CmLteRnti crnti ) #else -PUBLIC S16 cmPkSchMacSpsLcDeregReq(pst, cellId, crnti) +S16 cmPkSchMacSpsLcDeregReq(pst, cellId, crnti) Pst* pst; CmLteCellId cellId; CmLteRnti crnti; @@ -1200,14 +1200,14 @@ CmLteRnti crnti; TRC2(cmPkSchMacSpsLcDeregReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } CMCHKPK(cmPkLteCellId, cellId, mBuf); CMCHKPK(cmPkLteRnti, crnti, mBuf); pst->event = (Event) EVTINFSPSLCDEREG; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacSpsLcDeregReq */ /** @@ -1224,14 +1224,14 @@ CmLteRnti crnti; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacSpsLcDeregReq +S16 cmUnpkSchMacSpsLcDeregReq ( SpsLcDereg func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacSpsLcDeregReq(func, pst, mBuf) +S16 cmUnpkSchMacSpsLcDeregReq(func, pst, mBuf) SpsLcDereg func; Pst *pst; Buffer *mBuf; @@ -1246,7 +1246,7 @@ Buffer *mBuf; CMCHKUNPK(cmUnpkLteCellId, &cellId, mBuf); RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, cellId, crnti)); + return ((*func)(pst, cellId, crnti)); } /* end of cmUnpkSchMacSpsLcDeregReq */ #endif /* LTEMAC_SPS */ @@ -1265,13 +1265,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacL2MeasReq +S16 cmPkSchMacL2MeasReq ( Pst* pst, RgInfL2MeasReq *measInfo ) #else -PUBLIC S16 cmPkSchMacL2MeasReq(pst, measInfo) +S16 cmPkSchMacL2MeasReq(pst, measInfo) Pst* pst; RgInfL2MeasReq *measInfo; #endif @@ -1281,16 +1281,16 @@ RgInfL2MeasReq *measInfo; TRC2(cmPkSchMacL2MeasReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasReq), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFL2MEASREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacL2MeasReq */ /** @@ -1306,13 +1306,13 @@ RgInfL2MeasReq *measInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacL2MeasStopReq +S16 cmPkSchMacL2MeasStopReq ( Pst* pst, RgInfL2MeasStopReq *measInfo ) #else -PUBLIC S16 cmPkSchMacL2MeasStopReq(pst, measInfo) +S16 cmPkSchMacL2MeasStopReq(pst, measInfo) Pst* pst; RgInfL2MeasStopReq *measInfo; #endif @@ -1322,16 +1322,16 @@ RgInfL2MeasStopReq *measInfo; TRC2(cmPkSchMacL2MeasStopReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasStopReq), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFL2MEASSTOPREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacL2MeasStopReq */ /** * @brief Primitive from SCH to MAC for L2 Measurement @@ -1346,13 +1346,13 @@ RgInfL2MeasStopReq *measInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkSchMacL2MeasSendReq +S16 cmPkSchMacL2MeasSendReq ( Pst* pst, RgInfL2MeasSndReq *measInfo ) #else -PUBLIC S16 cmPkSchMacL2MeasSendReq(pst, measInfo) +S16 cmPkSchMacL2MeasSendReq(pst, measInfo) Pst* pst; RgInfL2MeasSndReq *measInfo; #endif @@ -1361,17 +1361,17 @@ RgInfL2MeasSndReq *measInfo; TRC2(cmPkSchMacL2MeasSendReq) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)measInfo, sizeof(RgInfL2MeasSndReq), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFL2MEASSENDREQ; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkSchMacL2MeasSendReq */ /** @@ -1388,14 +1388,14 @@ RgInfL2MeasSndReq *measInfo; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacL2MeasReq +S16 cmUnpkSchMacL2MeasReq ( L2MeasReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacL2MeasReq(func, pst, mBuf) +S16 cmUnpkSchMacL2MeasReq(func, pst, mBuf) L2MeasReq func; Pst *pst; Buffer *mBuf; @@ -1408,11 +1408,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&measInfo, sizeof(RgInfL2MeasReq), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &measInfo)); + return ((*func)(pst, &measInfo)); } /* end of cmUnpkSchMacL2MeasReq */ /** @@ -1429,14 +1429,14 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacL2MeasStopReq +S16 cmUnpkSchMacL2MeasStopReq ( L2MeasStopReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacL2MeasStopReq(func, pst, mBuf) +S16 cmUnpkSchMacL2MeasStopReq(func, pst, mBuf) L2MeasStopReq func; Pst *pst; Buffer *mBuf; @@ -1448,11 +1448,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&measInfo, sizeof(RgInfL2MeasStopReq), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } SPutMsg(mBuf); - RETVALUE((*func)(pst, &measInfo)); + return ((*func)(pst, &measInfo)); } /* end of cmUnpkSchMacL2MeasReq */ /** * @brief Primitive from SCH to MAC for L2 Measurement request @@ -1468,14 +1468,14 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkSchMacL2MeasSendReq +S16 cmUnpkSchMacL2MeasSendReq ( L2MeasSendReq func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkSchMacL2MeasSendReq(func, pst, mBuf) +S16 cmUnpkSchMacL2MeasSendReq(func, pst, mBuf) L2MeasSendReq func; Pst *pst; Buffer *mBuf; @@ -1487,11 +1487,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&measInfo, sizeof(RgInfL2MeasSndReq), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } SPutMsg(mBuf); - RETVALUE((*func)(pst, &measInfo)); + return ((*func)(pst, &measInfo)); } /* end of cmUnpkSchMacL2MeasSendReq*/ /** @@ -1507,13 +1507,13 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchL2MeasCfm +S16 cmPkMacSchL2MeasCfm ( Pst* pst, RgInfL2MeasCfm *measCfm ) #else -PUBLIC S16 cmPkMacSchL2MeasCfm(pst, measCfm) +S16 cmPkMacSchL2MeasCfm(pst, measCfm) Pst* pst; RgInfL2MeasCfm *measCfm; #endif @@ -1523,17 +1523,17 @@ RgInfL2MeasCfm *measCfm; TRC2(cmPkMacSchL2MeasCfm) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFL2MEASCFM; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); } /* end of cmPkMacSchL2MeasCfm */ @@ -1550,13 +1550,13 @@ RgInfL2MeasCfm *measCfm; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmPkMacSchL2MeasStopCfm +S16 cmPkMacSchL2MeasStopCfm ( Pst* pst, RgInfL2MeasCfm *measCfm ) #else -PUBLIC S16 cmPkMacSchL2MeasStopCfm(pst, measCfm) +S16 cmPkMacSchL2MeasStopCfm(pst, measCfm) Pst* pst; RgInfL2MeasCfm *measCfm; #endif @@ -1565,17 +1565,17 @@ RgInfL2MeasCfm *measCfm; TRC2(cmPkMacSchL2MeasStopCfm) if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) { - RETVALUE(RFAILED); + return RFAILED; } if(SAddPstMsgMult((Data *)measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } pst->event = (Event) EVTINFL2MEASSTOPCFM; - RETVALUE(SPstTsk(pst,mBuf)); + return (SPstTsk(pst,mBuf)); }/*cmPkMacSchL2MeasStopCfm*/ /** * @brief Primitive from MAC to SCH for L2 Measurement Cfm @@ -1591,14 +1591,14 @@ RgInfL2MeasCfm *measCfm; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchL2MeasCfm +S16 cmUnpkMacSchL2MeasCfm ( L2MeasCfm func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchL2MeasCfm(func, pst, mBuf) +S16 cmUnpkMacSchL2MeasCfm(func, pst, mBuf) L2MeasCfm func; Pst *pst; Buffer *mBuf; @@ -1611,11 +1611,11 @@ Buffer *mBuf; if(SRemPreMsgMult((Data *)&measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { RGSCHINF_FREE_MSG(mBuf); - RETVALUE(RFAILED); + return RFAILED; } RGSCHINF_FREE_MSG(mBuf); - RETVALUE((*func)(pst, &measCfm)); + return ((*func)(pst, &measCfm)); } /* end of cmUnpkMacSchL2MeasCfm */ /** @@ -1632,14 +1632,14 @@ Buffer *mBuf; * -# ROK **/ #ifdef ANSI -PUBLIC S16 cmUnpkMacSchL2MeasStopCfm +S16 cmUnpkMacSchL2MeasStopCfm ( L2MeasCfm func, Pst *pst, Buffer *mBuf ) #else -PUBLIC S16 cmUnpkMacSchL2MeasStopCfm(func, pst, mBuf) +S16 cmUnpkMacSchL2MeasStopCfm(func, pst, mBuf) L2MeasCfm func; Pst *pst; Buffer *mBuf; @@ -1652,11 +1652,11 @@ RgInfL2MeasCfm measCfm; if(SRemPreMsgMult((Data *)&measCfm, sizeof(RgInfL2MeasCfm), mBuf) != ROK) { SPutMsg(mBuf); - RETVALUE(RFAILED); + return RFAILED; } SPutMsg(mBuf); - RETVALUE((*func)(pst, &measCfm)); + return ((*func)(pst, &measCfm)); } /* end of cmUnpkMacSchL2MeasStopCfm */ #endif/* LTE_L2_MEAS */