-\f
-/**
-* @brief This API is used to send a
-Control Request from LM to SCH.
-*
-* @details
-*
-* Function: cmPkLrgSchCntrlReq
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cntrl
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmPkLrgSchCntrlReq
-(
-Pst * pst,
-RgMngmt * cntrl
-)
-#else
-S16 cmPkLrgSchCntrlReq(pst, cntrl)
-Pst * pst;
-RgMngmt * cntrl;
-#endif
-{
- Buffer *mBuf = NULLP;
-
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG034, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- if (pst->selector == ODU_SELECTOR_LC) {
- if (cmPkRgMngmt(pst, cntrl, EVTLRGSCHCNTRLREQ, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG035, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(mBuf);
- return RFAILED;
- }
- }
-
- pst->event = (Event) EVTLRGSCHCNTRLREQ;
- return (SPstTsk(pst,mBuf));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Control Request from LM to SCH.
-*
-* @details
-*
-* Function: cmUnpkLrgSchCntrlReq
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cntrl
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmUnpkLrgSchCntrlReq
-(
-LrgSchCntrlReq func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkLrgSchCntrlReq(func, pst, mBuf)
-LrgSchCntrlReq func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- RgMngmt cntrl;
-
-
- if (cmUnpkRgMngmt(pst, &cntrl, EVTLRGSCHCNTRLREQ, mBuf) != ROK) {
- SPutMsg(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG036, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- SPutMsg(mBuf);
- return ((*func)(pst, &cntrl));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Control Confirm from MAC to LM.
-*
-* @details
-*
-* Function: cmPkLrgCntrlCfm
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cfm
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmPkLrgCntrlCfm
-(
-Pst * pst,
-RgMngmt * cfm
-)
-#else
-S16 cmPkLrgCntrlCfm(pst, cfm)
-Pst * pst;
-RgMngmt * cfm;
-#endif
-{
- Buffer *mBuf = NULLP;
-
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG037, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- if (pst->selector == ODU_SELECTOR_LC) {
- if (cmPkRgMngmt(pst, cfm, EVTLRGCNTRLCFM, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG038, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(mBuf);
- return RFAILED;
- }
- }
-
- pst->event = (Event) EVTLRGCNTRLCFM;
- return (SPstTsk(pst,mBuf));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Control Confirm from MAC to LM.
-*
-* @details
-*
-* Function: cmUnpkLrgCntrlCfm
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cfm
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmUnpkLrgCntrlCfm
-(
-LrgCntrlCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkLrgCntrlCfm(func, pst, mBuf)
-LrgCntrlCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- RgMngmt cfm;
-
-
- if (cmUnpkRgMngmt(pst, &cfm, EVTLRGCNTRLCFM, mBuf) != ROK) {
- SPutMsg(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG039, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- SPutMsg(mBuf);
- return ((*func)(pst, &cfm));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Control Confirm from SCH to LM.
-*
-* @details
-*
-* Function: cmPkLrgSchCntrlCfm
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cntrl
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmPkLrgSchCntrlCfm
-(
-Pst * pst,
-RgMngmt * cntrl
-)
-#else
-S16 cmPkLrgSchCntrlCfm(pst, cntrl)
-Pst * pst;
-RgMngmt * cntrl;
-#endif
-{
- Buffer *mBuf = NULLP;
-
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG040, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- if (pst->selector == ODU_SELECTOR_LC) {
- if (cmPkRgMngmt(pst, cntrl, EVTLRGSCHCNTRLCFM, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG041, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(mBuf);
- return RFAILED;
- }
- }
-
- pst->event = (Event) EVTLRGSCHCNTRLCFM;
- return (SPstTsk(pst,mBuf));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Control Confirm from SCH to LM.
-*
-* @details
-*
-* Function: cmUnpkLrgSchCntrlCfm
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * cntrl
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmUnpkLrgSchCntrlCfm
-(
-LrgSchCntrlCfm func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkLrgSchCntrlCfm(func, pst, mBuf)
-LrgSchCntrlCfm func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- RgMngmt cntrl;
-
-
- if (cmUnpkRgMngmt(pst, &cntrl, EVTLRGSCHCNTRLCFM, mBuf) != ROK) {
- SPutMsg(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG042, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- SPutMsg(mBuf);
- return ((*func)(pst, &cntrl));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Trace Indication from MAC to LM.
-*
-* @details
-*
-* Function: cmPkLrgTrcInd
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * trc
-* @param[in] Buffer * trcBuf
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmPkLrgTrcInd
-(
-Pst * pst,
-RgMngmt * trc,
-Buffer * trcBuf
-)
-#else
-S16 cmPkLrgTrcInd(pst, trc, trcBuf)
-Pst * pst;
-RgMngmt * trc;
-Buffer * trcBuf;
-#endif
-{
- Buffer *mBuf = NULLP;
-
- if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG043, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(trcBuf);
- return RFAILED;
- }
- if (pst->selector == ODU_SELECTOR_LC) {
- MsgLen msgLen;
- if (SFndLenMsg(trcBuf, &msgLen) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG044, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(trcBuf);
- return RFAILED;
- }
- if (SCatMsg(mBuf, trcBuf, M1M2) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG045, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(trcBuf);
- return RFAILED;
- }
- SPutMsg(trcBuf);
- CMCHKPK(cmPkMsgLen, msgLen, mBuf);
- }
- if (cmPkRgMngmt(pst, trc, EVTLRGTRCIND, mBuf) != ROK) {
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG046, (ErrVal)0, "Packing failed");
-#endif
- SPutMsg(trcBuf);
- SPutMsg(mBuf);
- return RFAILED;
- }
-
- pst->event = (Event) EVTLRGTRCIND;
- return (SPstTsk(pst,mBuf));
-}
-
-\f
-/**
-* @brief This API is used to send a
-Trace Indication from MAC to LM.
-*
-* @details
-*
-* Function: cmUnpkLrgTrcInd
-*
-* @param[in] Pst * pst
-* @param[in] RgMngmt * trc
-* @param[in] Buffer * trcBuf
-* @return S16
-* -# ROK
-**/
-#ifdef ANSI
-S16 cmUnpkLrgTrcInd
-(
-LrgTrcInd func,
-Pst *pst,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkLrgTrcInd(func, pst, mBuf)
-LrgTrcInd func;
-Pst *pst;
-Buffer *mBuf;
-#endif
-{
- RgMngmt trc;
- /* lrg_c_001.main_3 - MODIFY - Modified trcBuf to have it initialized to NULLP */
- Buffer *trcBuf = NULLP;
-
-
- if (cmUnpkRgMngmt(pst, &trc, EVTLRGTRCIND, mBuf) != ROK) {
- SPutMsg(mBuf);
-#if (ERRCLASS & ERRCLS_ADD_RES)
- SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
- __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
- (ErrVal)ELRG047, (ErrVal)0, "Packing failed");
-#endif
- return RFAILED;
- }
- if (pst->selector == ODU_SELECTOR_LC) {
- MsgLen msgLen, totalMsgLen;
- CMCHKUNPK(cmUnpkMsgLen, &msgLen, mBuf);
- if (SFndLenMsg(mBuf, &totalMsgLen) != ROK)
- return RFAILED;
- if (SSegMsg(mBuf, totalMsgLen-msgLen, &trcBuf) != ROK)
- return RFAILED;
- }
- SPutMsg(mBuf);
- return ((*func)(pst, &trc, trcBuf));
-}
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgGenCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC General Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgGenCfg
-(
-RgGenCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgGenCfg(param, mBuf)
-RgGenCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
-#ifdef LTE_ADV
- CMCHKPK(oduUnpackUInt8, param->isSCellActDeactAlgoEnable, mBuf);
- CMCHKPK(oduUnpackUInt8, param->forceCntrlSrbBoOnPCel, mBuf);
-#endif
- CMCHKPK(oduUnpackUInt8, param->startCellId, mBuf);
- CMCHKPK(oduUnpackUInt8, param->numRguSaps, mBuf);
- CMCHKPK(oduUnpackUInt8, param->tmrRes, mBuf);
- CMCHKPK(cmPkMemoryId, ¶m->mem, mBuf);
- CMCHKPK(cmPkPst, ¶m->lmPst, mBuf);
- return ROK;
-}
-
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgGenCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC General Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgGenCfg
-(
-RgGenCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgGenCfg(param, mBuf)
-RgGenCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKUNPK(cmUnpkPst, ¶m->lmPst, mBuf);
- CMCHKUNPK(cmUnpkMemoryId, ¶m->mem, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->tmrRes, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->numRguSaps, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->startCellId, mBuf);
-#ifdef LTE_ADV
- CMCHKUNPK(oduPackUInt8, ¶m->forceCntrlSrbBoOnPCel, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->isSCellActDeactAlgoEnable, mBuf);
-#endif
- return ROK;
-}
-
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgUpSapCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC Upper SAP Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgUpSapCfg
-(
-RgUpSapCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgUpSapCfg(param, mBuf)
-RgUpSapCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKPK(SPkS16, param->suId, mBuf);
- CMCHKPK(SPkS16, param->spId, mBuf);
- CMCHKPK(oduUnpackUInt8, param->route, mBuf);
- CMCHKPK(oduUnpackUInt8, param->inst, mBuf);
- CMCHKPK(oduUnpackUInt8, param->ent, mBuf);
- CMCHKPK(oduUnpackUInt16, param->procId, mBuf);
- CMCHKPK(oduUnpackUInt8, param->prior, mBuf);
- CMCHKPK(cmPkMemoryId, ¶m->mem, mBuf);
- CMCHKPK(oduUnpackUInt8, param->selector, mBuf);
- return ROK;
-}
-
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgUpSapCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC Upper SAP Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgUpSapCfg
-(
-RgUpSapCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgUpSapCfg(param, mBuf)
-RgUpSapCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKUNPK(oduPackUInt8, ¶m->selector, mBuf);
- CMCHKUNPK(cmUnpkMemoryId, ¶m->mem, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->prior, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->procId, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->ent, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->inst, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->route, mBuf);
- CMCHKUNPK(SUnpkS16, ¶m->spId, mBuf);
- CMCHKUNPK(SUnpkS16, ¶m->suId, mBuf);
- return ROK;
-}
-
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgLowSapCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC Lower SAP Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgLowSapCfg
-(
-RgLowSapCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgLowSapCfg(param, mBuf)
-RgLowSapCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKPK(cmPkTmrCfg, ¶m->bndTmr, mBuf);
- CMCHKPK(SPkS16, param->suId, mBuf);
- CMCHKPK(SPkS16, param->spId, mBuf);
- CMCHKPK(oduUnpackUInt8, param->route, mBuf);
- CMCHKPK(oduUnpackUInt8, param->inst, mBuf);
- CMCHKPK(oduUnpackUInt8, param->ent, mBuf);
- CMCHKPK(oduUnpackUInt16, param->procId, mBuf);
- CMCHKPK(oduUnpackUInt8, param->prior, mBuf);
- CMCHKPK(cmPkMemoryId, ¶m->mem, mBuf);
- CMCHKPK(oduUnpackUInt8, param->selector, mBuf);
- return ROK;
-}
-
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgLowSapCfg
-*
-*
-* Desc : This structure holds configuration parameters for MAC Lower SAP Configuration.
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgLowSapCfg
-(
-RgLowSapCfg *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgLowSapCfg(param, mBuf)
-RgLowSapCfg *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKUNPK(oduPackUInt8, ¶m->selector, mBuf);
- CMCHKUNPK(cmUnpkMemoryId, ¶m->mem, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->prior, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->procId, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->ent, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->inst, mBuf);
- CMCHKUNPK(oduPackUInt8, ¶m->route, mBuf);
- CMCHKUNPK(SUnpkS16, ¶m->spId, mBuf);
- CMCHKUNPK(SUnpkS16, ¶m->suId, mBuf);
- CMCHKUNPK(cmUnpkTmrCfg, ¶m->bndTmr, mBuf);
- return ROK;
-}
-
-#ifdef MAC_SCH_STATS
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgAckNack
-*
-*
-* Desc : Ack and Nack statistics
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgAckNack
-(
-RgAckNack *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgAckNack (param, mBuf)
-RgAckNack *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKPK(oduUnpackUInt16, param->numOfAcks, mBuf);
- CMCHKPK(oduUnpackUInt16, param->numOfNacks, mBuf);
- CMCHKPK(oduUnpackUInt8, param->mcs, mBuf);
-
- return ROK;
-} /* cmPkRgAckNack */
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgSchNackAckStats
-*
-*
-* Desc :
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgSchNackAckStats
-(
-RgSchNackAckStats *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgSchNackAckStats (param, mBuf)
-RgSchNackAckStats *param;
-Buffer *mBuf;
-#endif
-{
-
- S32 i;
-
- for (i=14; i >= 0; i--) {
- CMCHKPK(cmPkRgAckNack, ¶m->ulCqiStat[i], mBuf);
- }
-
- for (i=14; i >= 0; i--) {
- CMCHKPK(cmPkRgAckNack, ¶m->dlCqiStat[i], mBuf);
- }
-
- return ROK;
-}
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgHqNumRetx
-*
-*
-* Desc : Harq Retransmission statistics
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgHqNumRetx
-(
-RgSchHqNumRetx *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgHqNumRetx (param, mBuf)
-RgSchHqNumRetx *param;
-Buffer *mBuf;
-#endif
-{
-
- CMCHKPK(oduUnpackUInt32, param->totalTx, mBuf);
- CMCHKPK(oduUnpackUInt16, param->numOfHQ_4, mBuf);
- CMCHKPK(oduUnpackUInt16, param->numOfHQ_3, mBuf);
- CMCHKPK(oduUnpackUInt16, param->numOfHQ_2, mBuf);
- CMCHKPK(oduUnpackUInt16, param->numOfHQ_1, mBuf);
- CMCHKPK(oduUnpackUInt8, param->mcs, mBuf);
-
- return ROK;
-} /* cmPkRgHqNumRetx */
-
-\f
-/***********************************************************
-*
-* Func : cmPkRgSchHqRetxStats
-*
-*
-* Desc :
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmPkRgSchHqRetxStats
-(
-RgSchHqRetxStats *param,
-Buffer *mBuf
-)
-#else
-S16 cmPkRgSchHqRetxStats (param, mBuf)
-RgSchHqRetxStats *param;
-Buffer *mBuf;
-#endif
-{
-
- S32 i;
-
- for (i=14; i >= 0; i--) {
- CMCHKPK(cmPkRgHqNumRetx, ¶m->ulCqiStat[i], mBuf);
- }
-
- for (i=14; i >= 0; i--) {
- CMCHKPK(cmPkRgHqNumRetx, ¶m->dlCqiStat[i], mBuf);
- }
-
- return ROK;
-} /* cmPkRgSchHqRetxStats */
-
-/* unpcaking functions */
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgAckNack
-*
-*
-* Desc : Ack and Nack statistics
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgAckNack
-(
-RgAckNack *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgAckNack (param, mBuf)
-RgAckNack *param;
-Buffer *mBuf;
-#endif
-{
-
-
- CMCHKUNPK(oduPackUInt8, ¶m->mcs, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfNacks, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfAcks, mBuf);
-
- return ROK;
-} /* cmUnkRgAckNack */
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgSchNackAckStats
-*
-*
-* Desc :
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgSchNackAckStats
-(
-RgSchNackAckStats *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgSchNackAckStats (param, mBuf)
-RgSchNackAckStats *param;
-Buffer *mBuf;
-#endif
-{
- S32 i;
-
- for (i=0; i <= 14; i++) {
- CMCHKUNPK(cmUnpkRgAckNack, ¶m->dlCqiStat[i], mBuf);
- }
-
- for (i=0; i <= 14; i++) {
- CMCHKUNPK(cmUnpkRgAckNack, ¶m->ulCqiStat[i], mBuf);
- }
-
- return ROK;
-} /* cmUnpkRgSchNackAckStats */
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgHqNumRetx
-*
-*
-* Desc : Harq Retransmission statistics
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgHqNumRetx
-(
-RgSchHqNumRetx *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgHqNumRetx (param, mBuf)
-RgSchHqNumRetx *param;
-Buffer *mBuf;
-#endif
-{
-
- CMCHKUNPK(oduPackUInt8, ¶m->mcs, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfHQ_1, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfHQ_2, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfHQ_3, mBuf);
- CMCHKUNPK(oduPackUInt16, ¶m->numOfHQ_4, mBuf);
- CMCHKUNPK(oduPackUInt32, ¶m->totalTx, mBuf);
-
- return ROK;
-} /* cmUnpkRgHqNumRetx */
-
-\f
-/***********************************************************
-*
-* Func : cmUnpkRgSchHqRetxStats
-*
-*
-* Desc :
-*
-*
-* Ret : S16
-*
-* Notes:
-*
-* File :
-*
-**********************************************************/
-#ifdef ANSI
-S16 cmUnpkRgSchHqRetxStats
-(
-RgSchHqRetxStats *param,
-Buffer *mBuf
-)
-#else
-S16 cmUnpkRgSchHqRetxStats (param, mBuf)
-RgSchHqRetxStats *param;
-Buffer *mBuf;