\f
/********************************************************************20**
- Name: LTE-RLC Layer
+ Name: NR RLC Layer
Type: C source file
\f
/* forward references */
-PRIVATE S16 cmPkRlcMngmt ARGS ((RlcMngmt *param ,Event eventType,
+static S16 cmPkRlcMngmt ARGS ((RlcMngmt *param ,Event eventType,
Buffer *mBuf));
-PRIVATE S16 cmPkRlcCfg ARGS ((RlcMngmt *param ,Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmPkRlcCntrl ARGS ((RlcMngmt *cntrl, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmPkRlcUsta ARGS ((RlcMngmt *usta, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmPkRlcSsta ARGS ((RlcMngmt *ssta, Elmnt etmnt, Event eventType,
+static S16 cmPkRlcCfg ARGS ((RlcMngmt *param ,Elmnt elmnt, Buffer *mBuf));
+static S16 cmPkRlcCntrl ARGS ((RlcMngmt *cntrl, Elmnt elmnt, Buffer *mBuf));
+static S16 cmPkRlcUsta ARGS ((RlcMngmt *usta, Elmnt elmnt, Buffer *mBuf));
+static S16 cmPkRlcSsta ARGS ((RlcMngmt *ssta, Elmnt etmnt, Event eventType,
Buffer *mBuf));
-PRIVATE S16 cmPkRlcSts ARGS ((RlcMngmt *sts, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmPkGenSts ARGS ((RlcGenSts *gen, Buffer *mBuf));
-PRIVATE S16 cmPkCkwSapSts ARGS ((RlcCkwCntSts *rcSap, Buffer *mBuf));
-PRIVATE S16 cmPkKwuSapSts ARGS ((RlcKwuSapSts *ruSap, Buffer *mBuf));
+static S16 cmPkRlcSts ARGS ((RlcMngmt *sts, Elmnt elmnt, Buffer *mBuf));
+static S16 cmPkGenSts ARGS ((RlcGenSts *gen, Buffer *mBuf));
+static S16 cmPkCkwSapSts ARGS ((RlcCkwCntSts *rcSap, Buffer *mBuf));
+static S16 cmPkKwuSapSts ARGS ((RlcKwuSapSts *ruSap, Buffer *mBuf));
/* lkw_c_001.main_2 removed support of RGU sap statistics as it is reflecting
* in general statstics.
* */
-PRIVATE S16 cmPkRlcTrc ARGS ((RlcMngmt *trc, Buffer *mBuf));
+static S16 cmPkRlcTrc ARGS ((RlcMngmt *trc, Buffer *mBuf));
-PRIVATE S16 cmUnpkRlcMngmt ARGS ((RlcMngmt *param, Event eventType,
+static S16 cmUnpkRlcMngmt ARGS ((RlcMngmt *param, Event eventType,
Buffer * mBuf));
-PRIVATE S16 cmUnpkRlcCfg ARGS ((RlcMngmt *cfg, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmUnpkRlcCntrl ARGS ((RlcMngmt *param, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmUnpkRlcUsta ARGS ((RlcMngmt *usta, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmUnpkRlcSsta ARGS ((RlcMngmt *ssta, Elmnt elmnt, Event eventType,
+static S16 cmUnpkRlcCfg ARGS ((RlcMngmt *cfg, Elmnt elmnt, Buffer *mBuf));
+static S16 cmUnpkRlcCntrl ARGS ((RlcMngmt *param, Elmnt elmnt, Buffer *mBuf));
+static S16 cmUnpkRlcUsta ARGS ((RlcMngmt *usta, Elmnt elmnt, Buffer *mBuf));
+static S16 cmUnpkRlcSsta ARGS ((RlcMngmt *ssta, Elmnt elmnt, Event eventType,
Buffer *mBuf));
-PRIVATE S16 cmUnpkRlcSts ARGS ((RlcMngmt *sts, Elmnt elmnt, Buffer *mBuf));
-PRIVATE S16 cmUnpkGenSts ARGS ((RlcGenSts *gen, Buffer *mBuf));
-PRIVATE S16 cmUnpkCkwSapSts ARGS ((RlcCkwCntSts *rcSap, Buffer *mBuf));
-PRIVATE S16 cmUnpkKwuSapSts ARGS ((RlcKwuSapSts *ruSap, Buffer *mBuf));
+static S16 cmUnpkRlcSts ARGS ((RlcMngmt *sts, Elmnt elmnt, Buffer *mBuf));
+static S16 cmUnpkGenSts ARGS ((RlcGenSts *gen, Buffer *mBuf));
+static S16 cmUnpkCkwSapSts ARGS ((RlcCkwCntSts *rcSap, Buffer *mBuf));
+static S16 cmUnpkKwuSapSts ARGS ((RlcKwuSapSts *ruSap, Buffer *mBuf));
/* lkw_c_001.main_2 removed support of RGU sap statistics as it is reflecting
* in general statstics.
* */
-PRIVATE S16 cmUnpkRlcTrc ARGS ((RlcMngmt *trc, Buffer *mBuf));
+static S16 cmUnpkRlcTrc ARGS ((RlcMngmt *trc, Buffer *mBuf));
-PRIVATE S16 cmPkCkwSapSta ARGS ((RlcCkwCntSapSta *rcSap, Buffer *mBuf));
-PRIVATE S16 cmUnpkCkwSapSta ARGS ((RlcCkwCntSapSta *rcSap, Buffer *mBuf));
+static S16 cmPkCkwSapSta ARGS ((RlcCkwCntSapSta *rcSap, Buffer *mBuf));
+static S16 cmUnpkCkwSapSta ARGS ((RlcCkwCntSapSta *rcSap, Buffer *mBuf));
-PRIVATE S16 cmPkKwuSapSta ARGS ((RlcKwuSapSta *rlSap, Buffer *mBuf));
-PRIVATE S16 cmUnpkKwuSapSta ARGS ((RlcKwuSapSta *rlSap, Buffer *mBuf));
+static S16 cmPkKwuSapSta ARGS ((RlcKwuSapSta *rlSap, Buffer *mBuf));
+static S16 cmUnpkKwuSapSta ARGS ((RlcKwuSapSta *rlSap, Buffer *mBuf));
-PRIVATE S16 cmPkRguSapSta ARGS ((RlcRguSapSta *mkSap, Buffer *mBuf));
-PRIVATE S16 cmUnpkRguSapSta ARGS ((RlcRguSapSta *mkSap, Buffer *mBuf));
+static S16 cmPkRguSapSta ARGS ((RlcRguSapSta *mkSap, Buffer *mBuf));
+static S16 cmUnpkRguSapSta ARGS ((RlcRguSapSta *mkSap, Buffer *mBuf));
/**
* @brief
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 packRlcConfigReq
(
Pst *pst, /* post structure */
RlcMngmt *cfg /* RLC LM structure */
)
-#else
-S16 packRlcConfigReq(pst, cfg)
-Pst *pst; /* post structure */
-RlcMngmt *cfg; /* RLC LM structure */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
uint8_t unpackRlcConfigReq
(
RlcConfigReq func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-uint8_t unpackRlcConfigReq(func, pst, mBuf)
-RlcConfigReq func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 ret1; /* Return value */
RlcMngmt cfg; /* RLC LM structure */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwCntrlReq
(
Pst *pst, /* post structure */
RlcMngmt *cntrl /* RLC LM structure */
)
-#else
-S16 cmPkLkwCntrlReq(pst,cntrl)
-Pst *pst; /* post structure */
-RlcMngmt *cntrl; /* RLC LM structure */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwCntrlReq
(
LkwCntrlReq func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwCntrlReq(func, pst, mBuf)
-LkwCntrlReq func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 ret1; /* return value */
RlcMngmt cfm; /* Confirmation */
* -# Failure : RFAILED
*/
-#ifdef ANSI
uint8_t cmPkLkwCntrlCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* RLC LM structure */
)
-#else
-uint8_t cmPkLkwCntrlCfm(pst, cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* RLC LM structure */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwCntrlCfm
(
LkwCntrlCfm func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwCntrlCfm(func, pst, mBuf)
-LkwCntrlCfm func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt cfm; /* RLC LM structure */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwStsCfm
(
LkwStsCfm func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwStsCfm(func, pst, mBuf)
-LkwStsCfm func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt cfm; /* RLC LM structure */
S16 ret1; /* return value */
*/
-#ifdef ANSI
uint8_t packRlcConfigCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* RLC LM structure */
)
-#else
-uint8_t packRlcConfigCfm(pst,cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* RLC LM structure */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
uint8_t unpackRlcConfigCfm
(
RlcConfigCfm func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-uint8_t unpackRlcConfigCfm(func, pst, mBuf)
-RlcConfigCfm func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 ret1; /* return value */
RlcMngmt cfm; /* RLC LM structure */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwStaInd
(
Pst *pst, /* post structure */
RlcMngmt *usta /* RLC LM structure */
)
-#else
-S16 cmPkLkwStaInd(pst,usta)
-Pst *pst; /* post structure */
-RlcMngmt *usta; /* RLC LM structure */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwStaInd
(
LkwStaInd func, /* primitive pointer */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwStaInd(func, pst, mBuf)
-LkwStaInd func; /* primitive pointer */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt usta; /* RLC LM structure */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwStaReq
(
Pst *pst, /* post structure */
RlcMngmt *sta /* status */
)
-#else
-S16 cmPkLkwStaReq(pst,sta)
-Pst *pst; /* post structure */
-RlcMngmt *sta; /* status */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwStaCfm
(
LkwStaReq func, /* primitive pointer */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwStaCfm(func, pst, mBuf)
-LkwStaReq func; /* primitive pointer */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt cfm; /* RLC LM structure */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwStsReq
(
LkwStsReq func, /* primitive pointer */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwStsReq(func, pst, mBuf)
-LkwStsReq func; /* primitive pointer */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt sts; /* RLC LM structure */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwStaReq
(
LkwStaReq func, /* primitive pointer */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwStaReq(func, pst, mBuf)
-LkwStaReq func; /* primitive pointer */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
RlcMngmt sta; /* RLC LM structure */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmUnpkLkwTrcInd
(
LkwTrcInd func, /* primitive to call */
Pst *pst, /* post structure */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkLkwTrcInd(func, pst, mBuf)
-LkwTrcInd func; /* primitive to call */
-Pst *pst; /* post structure */
-Buffer *mBuf; /* message buffer */
-#endif
{
S16 ret1; /* return value */
RlcMngmt trc; /* RLC LM structure */
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkCkwSapSta
+static S16 cmPkCkwSapSta
(
RlcCkwCntSapSta *rcSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmPkCkwSapSta(rcSap, mBuf)
-RlcCkwCntSapSta *rcSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKPK(cmPkState, rcSap->state, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkCkwSapSta
+static S16 cmUnpkCkwSapSta
(
RlcCkwCntSapSta *rcSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmUnpkCkwSapSta(rcSap, mBuf)
-RlcCkwCntSapSta *rcSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKUNPK(SUnpkS16, &rcSap->spId, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkKwuSapSta
+static S16 cmPkKwuSapSta
(
RlcKwuSapSta *rlSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmPkKwuSapSta(rlSap, mBuf)
-RlcKwuSapSta *rlSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKPK(cmPkState, rlSap->state, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkKwuSapSta
+static S16 cmUnpkKwuSapSta
(
RlcKwuSapSta *rlSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmUnpkKwuSapSta(rlSap, mBuf)
-RlcKwuSapSta *rlSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKUNPK(SUnpkS16, &rlSap->spId, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRguSapSta
+static S16 cmPkRguSapSta
(
RlcRguSapSta *mkSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmPkRguSapSta(mkSap, mBuf)
-RlcRguSapSta *mkSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKPK(cmPkState, mkSap->state, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRguSapSta
+static S16 cmUnpkRguSapSta
(
RlcRguSapSta *mkSap, /* SAP statistics */
Buffer *mBuf /* Message buffer */
)
-#else
-PRIVATE S16 cmUnpkRguSapSta(mkSap, mBuf)
-RlcRguSapSta *mkSap; /* SAP statistics */
-Buffer *mBuf; /* Message buffer */
-#endif
{
CMCHKUNPK(cmUnpkSuId, &mkSap->suId, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwStaCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* solicited status confirm */
)
-#else
-S16 cmPkLkwStaCfm(pst, cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* solicited status confirm */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwTrcInd
(
Pst *pst, /* post structure */
RlcMngmt *trc, /* trace */
Buffer *trcBuf /* trace buffer */
)
-#else
-S16 cmPkLkwTrcInd(pst, trc, trcBuf)
-Pst *pst; /* post structure */
-RlcMngmt *trc; /* trace */
-Buffer *trcBuf; /* trace buffer */
-#endif
{
S16 ret1 = ROK; /* return value */
Buffer *mBuf = NULLP; /* Buffer to trace */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwStsReq
(
Pst *pst, /* post structure */
Action action, /* action */
RlcMngmt *sts /* statistics request */
)
-#else
-S16 cmPkLkwStsReq(pst, action, sts)
-Pst *pst; /* post structure */
-Action action; /* action */
-RlcMngmt *sts; /* statistics request */
-#endif
{
Buffer *mBuf; /* message buffer */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
S16 cmPkLkwStsCfm
(
Pst *pst, /* post structure */
Action action, /* action */
RlcMngmt *cfm /* statistics confirmation */
)
-#else
-S16 cmPkLkwStsCfm(pst, action, cfm)
-Pst *pst; /* post structure */
-Action action; /* action */
-RlcMngmt *cfm; /* statistics confirmation */
-#endif
{
Buffer *mBuf; /* message buffer */
S16 ret1; /* return value */
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcMngmt
+static S16 cmPkRlcMngmt
(
RlcMngmt *param, /* Managment */
Event eventType, /* Event type */
Buffer *mBuf /* Message Buffer */
)
-#else
-PRIVATE S16 cmPkRlcMngmt(param ,eventType, mBuf)
-RlcMngmt *param; /* Managment */
-Event eventType; /* Event type */
-Buffer *mBuf; /* Message Buffer */
-#endif
{
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcCfg
+static S16 cmPkRlcCfg
(
RlcMngmt *cfg,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkRlcCfg(cfg, elmnt, mBuf)
-RlcMngmt *cfg;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
switch( elmnt )
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcCntrl
+static S16 cmPkRlcCntrl
(
RlcMngmt *cntrl,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkRlcCntrl(cntrl, elmnt, mBuf)
-RlcMngmt *cntrl;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
- U8 subAction; /* sub action */
+ uint8_t subAction; /* sub action */
switch( elmnt )
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcUsta
+static S16 cmPkRlcUsta
(
RlcMngmt *usta,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkRlcUsta(usta, elmnt, mBuf)
-RlcMngmt *usta;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
/* lkw_c_001.main_2 removed warning */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcSsta
+static S16 cmPkRlcSsta
(
RlcMngmt *ssta,
Elmnt elmnt,
Event eventType,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkRlcSsta(ssta, elmnt, eventType, mBuf)
-RlcMngmt *ssta;
-Elmnt elmnt;
-Event eventType;
-Buffer *mBuf;
-#endif
{
S16 ret1;
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcTrc
+static S16 cmPkRlcTrc
(
RlcMngmt *trc, /* trace */
Buffer *mBuf /* data buffer */
)
-#else
-PRIVATE S16 cmPkRlcTrc(trc, mBuf)
-RlcMngmt *trc; /* trace */
-Buffer *mBuf; /* data buffer */
-#endif
{
CMCHKPK(oduUnpackUInt16, trc->t.trc.event, mBuf);
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkRlcSts
+static S16 cmPkRlcSts
(
RlcMngmt *sts,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkRlcSts(sts, elmnt, mBuf)
-RlcMngmt *sts;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
S16 ret1;
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkGenSts
+static S16 cmPkGenSts
(
RlcGenSts *gen,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkGenSts(gen, mBuf)
-RlcGenSts *gen;
-Buffer *mBuf;
-#endif
{
CMCHKPK(oduUnpackUInt32, gen->numSduDisc, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkCkwSapSts
+static S16 cmPkCkwSapSts
(
RlcCkwCntSts *rcSap,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkCkwSapSts(rcSap, mBuf)
-RlcCkwCntSts *rcSap;
-Buffer *mBuf;
-#endif
{
CMCHKPK(oduUnpackUInt32, rcSap->statMsgs, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmPkKwuSapSts
+static S16 cmPkKwuSapSts
(
RlcKwuSapSts *ruSap,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmPkKwuSapSts(ruSap, mBuf)
-RlcKwuSapSts *ruSap;
-Buffer *mBuf;
-#endif
{
CMCHKPK(oduUnpackUInt32, ruSap->sduTx, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcMngmt
+static S16 cmUnpkRlcMngmt
(
RlcMngmt *param,
Event eventType,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcMngmt(param ,eventType, mBuf)
-RlcMngmt *param;
-Event eventType;
-Buffer *mBuf;
-#endif
{
S16 ret1;
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcCfg
+static S16 cmUnpkRlcCfg
(
RlcMngmt *cfg,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcCfg(cfg ,elmnt, mBuf)
-RlcMngmt *cfg;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
switch(elmnt)
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcCntrl
+static S16 cmUnpkRlcCntrl
(
RlcMngmt *cfm,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcCntrl(cfm, elmnt, mBuf)
-RlcMngmt *cfm;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
- U8 subAction;
+ uint8_t subAction;
RlcDbgCntrl *dbgCntrl;
RlcTrcCntrl *trcCntrl;
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcUsta
+static S16 cmUnpkRlcUsta
(
RlcMngmt *usta,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcUsta(usta ,elmnt, mBuf)
-RlcMngmt *usta;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
/* lkw_c_001.main_2 removed warning */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcSsta
+static S16 cmUnpkRlcSsta
(
RlcMngmt *ssta,
Elmnt elmnt,
Event eventType,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcSsta(ssta ,elmnt, eventType, mBuf)
-RlcMngmt *ssta;
-Elmnt elmnt;
-Event eventType;
-Buffer *mBuf;
-#endif
{
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcTrc
+static S16 cmUnpkRlcTrc
(
RlcMngmt *trc,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcTrc(trc, mBuf)
-RlcMngmt *trc;
-Buffer *mBuf;
-#endif
{
CMCHKUNPK(cmUnpkDateTime, &trc->t.trc.dt, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkRlcSts
+static S16 cmUnpkRlcSts
(
RlcMngmt *sts,
Elmnt elmnt,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkRlcSts(sts ,elmnt, mBuf)
-RlcMngmt *sts;
-Elmnt elmnt;
-Buffer *mBuf;
-#endif
{
S16 ret1; /* return value */
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkGenSts
+static S16 cmUnpkGenSts
(
RlcGenSts *gen,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkGenSts(gen, mBuf)
-RlcGenSts *gen;
-Buffer *mBuf;
-#endif
{
CMCHKUNPK(oduPackUInt32, &gen->numUe, mBuf);
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkCkwSapSts
+static S16 cmUnpkCkwSapSts
(
RlcCkwCntSts *rcSap,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkCkwSapSts(rcSap ,mBuf)
-RlcCkwCntSts *rcSap;
-Buffer *mBuf;
-#endif
{
* -# Success : ROK
* -# Failure : RFAILED
*/
-#ifdef ANSI
-PRIVATE S16 cmUnpkKwuSapSts
+static S16 cmUnpkKwuSapSts
(
RlcKwuSapSts *ruSap,
Buffer *mBuf
)
-#else
-PRIVATE S16 cmUnpkKwuSapSts(ruSap, mBuf)
-RlcKwuSapSts *ruSap;
-Buffer *mBuf;
-#endif
{
/* lkw_c_001.main_2 changed from suId to spId */
/* lkw_c_001.main_2 added support for L2 Measurement */
#ifdef LTE_L2_MEAS
-#ifdef ANSI
S16 cmPkLkwL2MeasReq
(
Pst * pst,
RlcL2MeasReqEvt *measReqEvt
)
-#else
-S16 cmPkLkwL2MeasReq(pst, measReqEvt)
-Pst * pst;
-RlcL2MeasReqEvt *measReqEvt;
-#endif
{
Buffer *mBuf = NULLP;
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERRLKW, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
return RFAILED;
}
if (cmPkRlcL2MeasReqInfo(&measReqEvt->measReq, mBuf) != ROK) {
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERRLKW, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
SPutMsg(mBuf);
return RFAILED;
}
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERRLKW, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
SPutMsg(mBuf);
return RFAILED;
}
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERRLKW, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
SPutMsg(mBuf);
return RFAILED;
}
return (SPstTsk(pst,mBuf));
}
-#ifdef ANSI
S16 cmPkRlcL2MeasReqInfo
(
RlcL2MeasReqInfo *param,
Buffer *mBuf
)
-#else
-S16 cmPkRlcL2MeasReqInfo(param, mBuf)
-RlcL2MeasReqInfo *param;
-Buffer *mBuf;
-#endif
{
- U8 idx;
- U16 idx1;
+ uint8_t idx;
+ uint16_t idx1;
if((param->measType & LKW_L2MEAS_DL_IP) ||
return ROK;
}
-#ifdef ANSI
S16 cmPkLkwL2MeasStopReq
(
Pst *pst,
-U8 measType
+uint8_t measType
)
-#else
-S16 cmPkLkwL2MeasStopReq(pst, measType)
-Pst *pst;
-U8 measType;
-#endif
{
Buffer *mBuf = NULLP;
return (SPstTsk(pst,mBuf));
}
-#ifdef ANSI
S16 cmPkLkwL2MeasSendReq
(
Pst *pst,
-U8 measType
+uint8_t measType
)
-#else
-S16 cmPkLkwL2MeasSendReq(pst, measType)
-Pst *pst;
-U8 measType;
-#endif
{
Buffer *mBuf = NULLP;
return (SPstTsk(pst,mBuf));
}
#ifdef TENB_SPLIT_ARCH
-#ifdef ANSI
S16 cmUnpkLkwL2MeasReq
(
LkwL2MeasReq func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasReq(func, pst, mBuf)
-LkwL2MeasReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
RlcL2MeasReqEvt measReqEvt;
}
if (cmUnpkRlcL2MeasReqInfo(&measReqEvt.measReq, mBuf) != ROK)
{
- /*SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));*/
+ /*SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));*/
SPutMsg(mBuf);
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
return ((*func)(pst, &measReqEvt));
}
#else
-#ifdef ANSI
S16 cmUnpkLkwL2MeasReq
(
LkwL2MeasReq func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasReq(func, pst, mBuf)
-LkwL2MeasReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
S16 ret;
RlcL2MeasReqEvt *measReqEvt;
- if((ret = SGetSBuf(pst->region, pst->pool, (Data **)&measReqEvt,\
+ if((ret = SGetSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data **)&measReqEvt,\
sizeof(RlcL2MeasReqEvt))) != ROK)
{
#if (ERRCLASS & ERRCLS_ADD_RES)
}
if (cmUnpkRlcL2MeasReqInfo(&measReqEvt->measReq, mBuf) != ROK)
{
- SPutSBuf(pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measReqEvt, sizeof(RlcL2MeasReqEvt));
SPutMsg(mBuf);
#if (ERRCLASS & ERRCLS_ADD_RES)
SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
}
#endif
-#ifdef ANSI
S16 cmUnpkRlcL2MeasReqInfo
(
RlcL2MeasReqInfo *param,
Buffer *mBuf
)
-#else
-S16 cmUnpkRlcL2MeasReqInfo(param, mBuf)
-RlcL2MeasReqInfo *param;
-Buffer *mBuf;
-#endif
{
- U8 idx;
- U16 idx1;
+ uint8_t idx;
+ uint16_t idx1;
CMCHKUNPK(oduPackUInt8, ¶m->measType, mBuf);
return ROK;
}
-#ifdef ANSI
S16 cmUnpkLkwL2MeasStopReq
(
LkwL2MeasStopReq func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasStopReq(func, pst, mBuf)
-LkwL2MeasStopReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
- U8 measType;
+ uint8_t measType;
CMCHKUNPK(oduPackUInt8, &measType, mBuf);
SPutMsg(mBuf);
return ((*func)(pst, measType));
}
-#ifdef ANSI
S16 cmUnpkLkwL2MeasSendReq
(
LkwL2MeasSendReq func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasSendReq(func, pst, mBuf)
-LkwL2MeasSendReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
- U8 measType;
+ uint8_t measType;
CMCHKUNPK(oduPackUInt8, &measType, mBuf);
return ((*func)(pst, measType));
}
-#ifdef ANSI
S16 cmPkLkwL2MeasCfm
(
Pst * pst,
RlcL2MeasCfmEvt *measCfmEvt
)
-#else
-S16 cmPkLkwL2MeasCfm(pst, measCfmEvt)
-Pst * pst;
-RlcL2MeasCfmEvt *measCfmEvt;
-#endif
{
Buffer *mBuf = NULLP;
- U8 idx;
- U8 idx1;
+ uint8_t idx;
+ uint8_t idx1;
if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
__FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
(ErrVal)ERRLKW, (ErrVal)0, "Packing failed");
#endif
- SPutSBuf(pst->region, pst->pool, (Data *)measCfmEvt, sizeof(RlcL2MeasCfmEvt));
+ SPutSBufNewForDebug(__FILE__,__FUNCTION__,__LINE__,pst->region, pst->pool, (Data *)measCfmEvt, sizeof(RlcL2MeasCfmEvt));
return RFAILED;
}
return (SPstTsk(pst,mBuf));
}
-#ifdef ANSI
S16 cmPkRlcL2MeasCfmInfo
(
RlcL2MeasCfmInfo *param,
Buffer *mBuf,
-U8 measType
+uint8_t measType
)
-#else
-S16 cmPkRlcL2MeasCfmInfo(param, mBuf, measType)
-RlcL2MeasCfmInfo *param;
-Buffer *mBuf;
-U8 measType;
-#endif
{
if((measType & LKW_L2MEAS_DL_IP) ||
return ROK;
}
-#ifdef ANSI
S16 cmUnpkLkwL2MeasCfm
(
LkwL2MeasCfm func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasCfm(func, pst, mBuf)
-LkwL2MeasCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
- U8 idx;
- U16 idx1;
+ uint8_t idx;
+ uint16_t idx1;
RlcL2MeasCfmEvt measCfmEvt;
-
memset(&measCfmEvt, 0 , sizeof(RlcL2MeasCfmEvt));
-
if (oduPackUInt32(&measCfmEvt.transId, mBuf) != ROK) {
SPutMsg(mBuf);
#if (ERRCLASS & ERRCLS_ADD_RES)
return ((*func)(pst, &measCfmEvt));
}
-#ifdef ANSI
S16 cmUnpkRlcL2MeasCfmInfo
(
RlcL2MeasCfmInfo *param,
Buffer *mBuf,
-U8 measType
+uint8_t measType
)
-#else
-S16 cmUnpkRlcL2MeasCfmInfo(param, mBuf, measType)
-RlcL2MeasCfmInfo *param;
-Buffer *mBuf;
-U8 measType;
-#endif
{
if((measType & LKW_L2MEAS_DL_IP) ||
}
-#ifdef ANSI
S16 cmPkLkwL2MeasStopCfm
(
Pst * pst,
-U8 measType,
-U8 status
+uint8_t measType,
+uint8_t status
)
-#else
-S16 cmPkLkwL2MeasStopCfm(pst, measType,status)
-Pst * pst;
-U8 measType;
-U8 status
-#endif
{
Buffer *mBuf = NULLP;
return (SPstTsk(pst,mBuf));
}
-#ifdef ANSI
+
S16 cmUnpkLkwL2MeasStopCfm
(
LkwL2MeasStopCfm func,
Pst *pst,
Buffer *mBuf
)
-#else
-S16 cmUnpkLkwL2MeasStopCfm(func, pst, mBuf)
-LkwL2MeasStopCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
{
- U8 measType;
- U8 status;
+ uint8_t measType;
+ uint8_t status;
CMCHKUNPK(oduPackUInt8, &measType, mBuf);
CMCHKUNPK(oduPackUInt8, &status, mBuf);
SPutMsg(mBuf);