1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /********************************************************************20**
25 Desc: This file Contains the packing and unpacking functions for
30 *********************************************************************21*/
32 /* header include files (.h) */
33 #include "envopt.h" /* environment options */
34 #include "envdep.h" /* environment dependent */
35 #include "envind.h" /* environment independent */
37 #include "gen.h" /* general */
38 #include "ssi.h" /* system services */
39 #include "cm5.h" /* common timer defines */
40 #include "cm_tkns.h" /* common tokens defines */
41 #include "cm_mblk.h" /* common memory allocation library defines */
42 #include "cm_llist.h" /* common link list defines */
43 #include "cm_hash.h" /* common hash list defines */
44 #include "cm_lte.h" /* common LTE defines */
45 #ifdef TENB_SPLIT_ARCH
50 #include "kwu.h" /* KWU defines */
52 /* extern (.x) include files */
53 #include "gen.x" /* general */
54 #include "ssi.x" /* system services */
56 #include "cm5.x" /* common timer library */
57 #include "cm_tkns.x" /* common tokens */
58 #include "cm_mblk.x" /* common memory allocation */
59 #include "cm_llist.x" /* common link list */
60 #include "cm_hash.x" /* common hash list */
61 #include "cm_lte.x" /* common LTE includes */
62 #include "cm_lib.x" /* common memory allocation library */
63 #ifdef TENB_SPLIT_ARCH
72 #include "kwu.x" /* KWU */
76 /****************************************************************************
78 ***************************************************************************/
80 PUBLIC S16 cmPkKwuBndReq
87 PUBLIC S16 cmPkKwuBndReq(pst, suId, spId)
100 if((ret1 = SGetMsg(pst->region, pst->pool, &mBuf)) != ROK)
102 #if (ERRCLASS & ERRCLS_ADD_RES)
105 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
106 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
107 (ErrVal)EKWU001, (ErrVal)0, "SGetMsg() failed");
109 #endif /* ERRCLASS & ERRCLS_ADD_RES */
112 CMCHKPKLOG(SPkS16, spId, mBuf, EKWU002, pst);
113 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU003, pst);
114 pst->event = (Event) KWU_EVT_BND_REQ;
115 RETVALUE(SPstTsk(pst,mBuf));
120 PUBLIC S16 cmPkKwuBndCfm
127 PUBLIC S16 cmPkKwuBndCfm(pst, suId, status)
140 if((ret1 = SGetMsg(pst->region, pst->pool, &mBuf)) != ROK)
142 #if (ERRCLASS & ERRCLS_ADD_RES)
145 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
146 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
147 (ErrVal)EKWU004, (ErrVal)0, "SGetMsg() failed");
149 #endif /* ERRCLASS & ERRCLS_ADD_RES */
153 CMCHKPKLOG(SPkU8, status, mBuf, EKWU005, pst);
154 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU006, pst);
155 pst->event = (Event) KWU_EVT_BND_CFM;
156 RETVALUE(SPstTsk(pst,mBuf));
161 PUBLIC S16 cmPkKwuUbndReq
168 PUBLIC S16 cmPkKwuUbndReq(pst, suId, reason)
181 if((ret1 = SGetMsg(pst->region, pst->pool, &mBuf)) != ROK)
183 #if (ERRCLASS & ERRCLS_ADD_RES)
186 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
187 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
188 (ErrVal)EKWU007, (ErrVal)0, "SGetMsg() failed");
190 #endif /* ERRCLASS & ERRCLS_ADD_RES */
193 CMCHKPKLOG(SPkS16, reason, mBuf, EKWU008, pst);
194 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU009, pst);
196 pst->event = (Event) KWU_EVT_UBND_REQ;
197 RETVALUE(SPstTsk(pst,mBuf));
198 } /* cmPkKwuUbndReq */
201 PUBLIC S16 cmPkKwuDatReqInfo
203 KwuDatReqInfo *param,
207 PUBLIC S16 cmPkKwuDatReqInfo(param, mBuf)
208 KwuDatReqInfo *param;
213 TRC3(cmPkKwuDatReqInfo);
216 switch(param->lcType) {
217 case CM_LTE_LCH_CCCH:
218 CMCHKPK(cmPkLteRnti, param->tm.rnti, mBuf);
220 case CM_LTE_LCH_BCCH:
221 case CM_LTE_LCH_PCCH:
222 CMCHKPK(cmPkLteTimingInfo, ¶m->tm.tmg, mBuf);
224 CMCHKPK(SPkU8, param->emtcDiReason,mBuf);
225 CMCHKPK(SPkU8, param->pnb,mBuf);
228 case CM_LTE_LCH_DTCH:
229 case CM_LTE_LCH_DCCH:
234 CMCHKPK(cmPkLteLcType, param->lcType, mBuf);
237 CMCHKPK(SPkU32, param->sduId, mBuf);
238 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
240 } /* cmPkKwuDatReqInfo */
244 PUBLIC S16 cmPkKwuDatReq
247 KwuDatReqInfo* datReq,
251 PUBLIC S16 cmPkKwuDatReq(pst, datReq, mBuf)
253 KwuDatReqInfo* datReq;
258 #if (ERRCLASS & ERRCLS_ADD_RES)
263 KwuDatReqInfo* datReqInfo;
267 switch(pst->selector)
271 if(pst->srcEnt == ENTDUAPP)
273 /* When the Selector is LWLC, we need to allocate memory, copy
274 * the contents and pass the pointer of the allocated memory. The
275 * subsequent free would be done during the Unpack function of the
277 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datReqInfo,
278 sizeof(KwuDatReqInfo),SS_SHARABLE_MEMORY)) != ROK)
280 #if (ERRCLASS & ERRCLS_ADD_RES)
283 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
284 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
285 (ErrVal)EKWU028, (ErrVal)0, "SGetMsg() failed");
287 #endif /* ERRCLASS & ERRCLS_ADD_RES */
290 cmMemcpy((U8*)datReqInfo,(U8*)datReq,sizeof(KwuDatReqInfo));
291 CMCHKPK(cmPkPtr,(PTR)datReqInfo, mBuf);
295 CMCHKPK(cmPkPtr,(PTR)datReq, mBuf);
301 #if (ERRCLASS & ERRCLS_ADD_RES)
302 ret1 = cmPkKwuDatReqInfo( (datReq), mBuf);
306 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
307 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
308 (ErrVal)EKWU010, (ErrVal)ret1, "Packing failure");
312 cmPkKwuDatReqInfo( (datReq), mBuf);
313 #endif /* ERRCLASS & ERRCLS_ADD_RES */
314 if(pst->srcEnt == ENTNH)
316 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
317 sizeof(KwuDatReqInfo),SS_SHARABLE_MEMORY) != ROK)
327 #if (ERRCLASS & ERRCLS_ADD_RES)
328 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
329 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
330 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
331 #endif /* ERRCLASS & ERRCLS_ADD_RES */
336 if(datReq->rlcId.rbType == CM_LTE_SRB)
338 pst->event = (Event) KWU_EVT_CPLANE_DAT_REQ;
342 pst->event = (Event) KWU_EVT_UPLANE_DAT_REQ;
345 pst->event = (Event) KWU_EVT_DAT_REQ;
347 RETVALUE(SPstTsk(pst,mBuf));
349 if (pst->srcEnt == ENTPJ)
352 KwuDatReqDetl *kwuDatReqDetl = NULLP;
353 elem = SRngGetWIndx(SS_RNG_BUF_DLPDCP_TO_DLRLC);
356 kwuDatReqDetl = (KwuDatReqDetl *) elem;
357 kwuDatReqDetl->spId = spId;
358 kwuDatReqDetl->lcType = datReq->lcType;
359 kwuDatReqDetl->sduId = datReq->sduId;
360 kwuDatReqDetl->rlcId = datReq->rlcId;
361 kwuDatReqDetl->mBuf = mBuf;
362 SRngIncrWIndx(SS_RNG_BUF_DLPDCP_TO_DLRLC);
363 SsRngInfoTbl[SS_RNG_BUF_DLPDCP_TO_DLRLC].pktRate++;
368 SsRngInfoTbl[SS_RNG_BUF_DLPDCP_TO_DLRLC].pktDrop++;
375 switch(pst->selector)
380 ret1 = cmPkKwuDatReqInfo( (datReq), mBuf);
381 #if (ERRCLASS & ERRCLS_ADD_RES)
385 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
386 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
387 (ErrVal)EKWU010, (ErrVal)ret1, "Packing failure");
390 #endif /* ERRCLASS & ERRCLS_ADD_RES */
395 CMCHKPK(cmPkPtr,(PTR)datReq, mBuf);
401 CMCHKPKLOG(SPkS16, spId, mBuf, EKWU011, pst);
402 pst->event = (Event) KWU_EVT_DAT_REQ;
403 ret1 = SPstTsk(pst,mBuf);
404 if(pst->selector == KWU_SEL_LC)
406 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
407 sizeof(KwuDatReqInfo),SS_SHARABLE_MEMORY) != ROK)
416 } /* cmPkKwuDatReq */
420 PUBLIC S16 cmPkKwuDatIndInfo
422 KwuDatIndInfo *param,
426 PUBLIC S16 cmPkKwuDatIndInfo(param, mBuf)
427 KwuDatIndInfo *param;
431 TRC3(cmPkKwuDatIndInfo);
433 CMCHKPK(SPkU8, param->isOutOfSeq, mBuf);
435 CMCHKPK(cmPkLteRnti, param->tCrnti, mBuf);
437 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
443 PUBLIC S16 cmPkKwuDatInd
446 KwuDatIndInfo* datInd,
450 PUBLIC S16 cmPkKwuDatInd(pst, datInd, mBuf)
452 KwuDatIndInfo* datInd;
459 #ifdef TENB_SPLIT_ARCH
460 #ifdef SS_LOCKLESS_MEMORY
464 KwuDatIndInfo *datIndInfo = NULLP;
468 #ifdef TENB_SPLIT_ARCH
470 #ifdef SS_LOCKLESS_MEMORY
471 mInfo = (SsMsgInfo *)mBuf->b_rptr;
472 mInfo->region = pst->region;
473 #endif /* SS_LOCKLESS_MEMORY */
476 switch(pst->selector)
480 /* When the Selector is LWLC, we need to allocate memory, copy
481 * the contents and pass the pointer of the allocated memory. The
482 * subsequent free would be done during the Unpack function of the
484 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datIndInfo,
485 sizeof(KwuDatIndInfo),SS_SHARABLE_MEMORY)) != ROK)
487 #if (ERRCLASS & ERRCLS_ADD_RES)
490 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
491 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
492 (ErrVal)EKWU028, (ErrVal)0, "SGetMsg() failed");
494 #endif /* ERRCLASS & ERRCLS_ADD_RES */
498 cmMemcpy((U8*)datIndInfo,(U8*)datInd,sizeof(KwuDatIndInfo));
499 CMCHKPK(cmPkPtr,(PTR)datIndInfo, mBuf);
504 #if (ERRCLASS & ERRCLS_ADD_RES)
505 ret1 = cmPkKwuDatIndInfo( (datInd), mBuf);
509 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
510 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
511 (ErrVal)EKWU012, (ErrVal)ret1, "Packing failure");
515 cmPkKwuDatIndInfo( (datInd), mBuf);
516 #endif /* ERRCLASS & ERRCLS_ADD_RES */
521 #if (ERRCLASS & ERRCLS_ADD_RES)
522 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
523 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
524 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
525 #endif /* ERRCLASS & ERRCLS_ADD_RES */
529 pst->event = (Event) KWU_EVT_DAT_IND;
531 RETVALUE(SPstTsk(pst,mBuf));
532 } /* cmPkKwuDatInd */
536 PUBLIC S16 cmPkKwuDatCfmInfo
538 KwuDatCfmInfo *param,
542 PUBLIC S16 cmPkKwuDatCfmInfo(param, mBuf)
543 KwuDatCfmInfo *param;
549 TRC3(cmPkKwuDatCfmInfo);
550 for(iter = 0; iter < param->numSduIds; iter++)
552 CMCHKPK(SPkU32, param->sduIds[iter], mBuf);
554 CMCHKPK(SPkU32, param->numSduIds, mBuf);
555 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
557 } /* cmPkKwuDatCfmInfo */
561 PUBLIC S16 cmPkKwuDatCfm
565 KwuDatCfmInfo* datCfm
568 PUBLIC S16 cmPkKwuDatCfm(pst, suId, datCfm)
571 KwuDatCfmInfo* datCfm;
574 #if (ERRCLASS & ERRCLS_ADD_RES)
583 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
587 switch(pst->selector)
591 CMCHKPK(cmPkPtr,(PTR)datCfm, mBuf);
596 #if (ERRCLASS & ERRCLS_ADD_RES)
597 ret1 = cmPkKwuDatCfmInfo( (datCfm), mBuf);
601 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
602 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
603 (ErrVal)EKWU014, (ErrVal)ret1, "Packing failure");
607 cmPkKwuDatCfmInfo( (datCfm), mBuf);
608 #endif /* ERRCLASS & ERRCLS_ADD_RES */
609 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datCfm,
610 sizeof(KwuDatCfmInfo),SS_SHARABLE_MEMORY) != ROK)
619 #if (ERRCLASS & ERRCLS_ADD_RES)
620 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
621 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
622 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
623 #endif /* ERRCLASS & ERRCLS_ADD_RES */
627 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU015, pst);
628 pst->event = (Event) KWU_EVT_DAT_CFM;
630 RETVALUE(SPstTsk(pst,mBuf));
631 } /* cmPkKwuDatCfm */
635 PUBLIC S16 cmPkKwuDiscSduReq
639 KwuDiscSduInfo* discSdu
642 PUBLIC S16 cmPkKwuDiscSduReq(pst, spId, discSdu)
645 KwuDiscSduInfo* discSdu;
652 KwuDiscSduInfo* discSduInfo = NULLP;
654 TRC3(cmPkKwuDiscSduReq)
657 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
661 switch(pst->selector)
665 /* When the Selector is LWLC, we need to allocate memory, copy
666 * the contents and pass the pointer of the allocated memory. The
667 * subsequent free would be done during the Unpack function of the
669 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&discSduInfo,
670 sizeof(KwuDiscSduInfo),SS_SHARABLE_MEMORY)) != ROK)
672 #if (ERRCLASS & ERRCLS_ADD_RES)
675 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
676 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
677 (ErrVal)EKWU028, (ErrVal)0, "SGetMsg() failed");
679 #endif /* ERRCLASS & ERRCLS_ADD_RES */
683 cmMemcpy((U8*)discSduInfo,(U8*)discSdu,sizeof(KwuDiscSduInfo));
684 CMCHKPK(cmPkPtr,(PTR)discSduInfo, mBuf);
689 #if (ERRCLASS & ERRCLS_ADD_RES)
690 ret1 = cmPkKwuDiscSduInfo( (discSdu), mBuf);
694 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
695 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
696 (ErrVal)EKWU016, (ErrVal)ret1, "Packing failure");
700 cmPkKwuDiscSduInfo( (discSdu), mBuf);
701 #endif /* ERRCLASS & ERRCLS_ADD_RES */
706 CMCHKPKLOG(SPkS16, spId, mBuf, EKWU017, pst);
707 pst->event = (Event) KWU_EVT_DISC_SDU_REQ;
709 RETVALUE(SPstTsk(pst,mBuf));
710 } /* cmPkKwuDiscSduReq */
714 PUBLIC S16 cmPkKwuStaIndInfo
716 KwuStaIndInfo *param,
720 PUBLIC S16 cmPkKwuStaIndInfo(param, mBuf)
721 KwuStaIndInfo *param;
727 TRC3(cmPkKwuStaIndInfo);
729 for (i = (param->numSdu - 1); i >= 0; i--)
731 CMCHKPK(SPkU32, param->sduId[(U16)i], mBuf);
733 CMCHKPK(SPkU32, param->numSdu, mBuf);
734 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
739 PUBLIC S16 cmPkKwuFlowCntrlIndInfo
741 KwuFlowCntrlIndInfo *param,
745 PUBLIC S16 cmPkKwuFlowCntrlIndInfo(param, mBuf)
746 KwuFlowCntrlIndInfo *param;
750 TRC3(cmPkKwuFlowCntrlIndInfo);
752 CMCHKPK(SPkU32, param->pktAdmitCnt, mBuf);
753 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
756 } /* cmPkKwuFlowCntrlIndInfo */
759 PUBLIC S16 cmUnpkKwuFlowCntrlIndInfo
761 KwuFlowCntrlIndInfo *param,
765 PUBLIC S16 cmUnpkKwuFlowCntrlIndInfo(param, mBuf)
766 KwuFlowCntrlIndInfo *param;
770 TRC3(cmUnpkKwuFlowCntrlIndInfo);
772 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
773 CMCHKUNPK(SUnpkU32, ¶m->pktAdmitCnt, mBuf);
776 } /* cmUnpkKwuFlowCntrlIndInfo */
780 PUBLIC S16 cmPkKwuStaInd
784 KwuStaIndInfo* staInd
787 PUBLIC S16 cmPkKwuStaInd(pst, suId, staInd)
790 KwuStaIndInfo* staInd;
794 #if (ERRCLASS & ERRCLS_ADD_RES)
804 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
808 switch(pst->selector)
812 CMCHKPK(cmPkPtr,(PTR) staInd, mBuf);
817 #if (ERRCLASS & ERRCLS_ADD_RES)
818 ret1 = cmPkKwuStaIndInfo( (staInd), mBuf);
822 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
823 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
824 (ErrVal)EKWU018, (ErrVal)ret1, "Packing failure");
828 cmPkKwuStaIndInfo( (staInd), mBuf);
829 #endif /* ERRCLASS & ERRCLS_ADD_RES */
830 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)staInd,
831 sizeof(KwuStaIndInfo),SS_SHARABLE_MEMORY) != ROK)
840 #if (ERRCLASS & ERRCLS_ADD_RES)
841 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
842 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
843 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
848 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU019, pst);
849 pst->event = (Event) KWU_EVT_STA_IND;
851 RETVALUE(SPstTsk(pst,mBuf));
852 } /* cmPkKwuStaInd */
856 PUBLIC S16 cmPkKwuReEstCmpInd
863 PUBLIC S16 cmPkKwuReEstCmpInd(pst, suId, rlcId)
870 #if (ERRCLASS & ERRCLS_ADD_RES)
876 TRC3(cmPkKwuReEstCmpInd)
880 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
884 switch(pst->selector)
889 #if (ERRCLASS & ERRCLS_ADD_RES)
890 ret1 = cmPkLteRlcId( &rlcId, mBuf);
894 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
895 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
896 (ErrVal)EKWU018, (ErrVal)ret1, "Packing failure");
900 cmPkLteRlcId( &rlcId, mBuf);
901 #endif /* ERRCLASS & ERRCLS_ADD_RES */
907 CMCHKPKLOG(SPkS16, suId, mBuf, EKWU019, pst);
908 pst->event = (Event) KWU_EVT_REEST_CMP_IND;
910 RETVALUE(SPstTsk(pst,mBuf));
911 } /* cmPkKwuReEstCmpInd */
913 /* kwu_c_001.main_3 added support for L2 Measurement */
915 PUBLIC S16 cmPkKwuDiscSduCfm
919 KwuDiscSduInfo *discCfmSdu
922 PUBLIC S16 cmPkKwuDiscSduCfm(pst, spId, discCfmSdu)
925 KwuDiscSduInfo *discCfmSdu;
928 #if (ERRCLASS & ERRCLS_ADD_RES)
933 TRC3(cmPkKwuDiscSduCfm)
937 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
941 switch(pst->selector)
945 CMCHKPK(cmPkPtr,(PTR)discCfmSdu, mBuf);
950 #if (ERRCLASS & ERRCLS_ADD_RES)
951 ret1 = cmPkKwuDiscSduInfo((discCfmSdu), mBuf);
955 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
956 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
957 (ErrVal)ERRKWU, (ErrVal)ret1, "Packing failure");
961 cmPkKwuDiscSduInfo((discCfmSdu), mBuf);
962 #endif /* ERRCLASS & ERRCLS_ADD_RES */
963 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)discCfmSdu,
964 sizeof(KwuDiscSduInfo),SS_SHARABLE_MEMORY) != ROK)
973 #if (ERRCLASS & ERRCLS_ADD_RES)
974 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
975 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
976 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
981 CMCHKPKLOG(SPkS16, spId, mBuf, ERRKWU, pst);
982 pst->event = (Event) KWU_EVT_DISC_SDU_CFM;
984 RETVALUE(SPstTsk(pst,mBuf));
985 } /* cmPkKwuDiscSduCfm */
988 PUBLIC S16 cmPkKwuFlowCntrlInd
992 KwuFlowCntrlIndInfo *flowCntrlIndInfo
995 PUBLIC S16 cmPkKwuFlowCntrlInd(pst, suId, flowCntrlIndInfo)
998 KwuFlowCntrlIndInfo *flowCntrlIndInfo;
1003 TRC3(cmPkKwuFlowCntrlInd)
1007 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK)
1009 SPutStaticBuffer(pst->region,
1011 (Data *)flowCntrlIndInfo,
1012 sizeof(KwuFlowCntrlIndInfo),0);
1016 switch(pst->selector)
1020 cmPkKwuFlowCntrlIndInfo((flowCntrlIndInfo), mBuf);
1022 if (SPutStaticBuffer(pst->region,
1024 (Data *)flowCntrlIndInfo,
1025 sizeof(KwuFlowCntrlIndInfo),0) != ROK)
1035 CMCHKPK(cmPkPtr,(PTR) flowCntrlIndInfo, mBuf);
1041 CMCHKPKLOG(SPkS16, suId, mBuf, ERRKWU, pst);
1042 pst->event = (Event) KWU_EVT_FLOW_CNTRL_IND;
1044 RETVALUE(SPstTsk(pst,mBuf));
1045 } /* cmPkKwuFlowCntrlInd */
1049 PUBLIC S16 cmPkKwuDatAckInfo
1051 KwuDatAckInfo *param,
1055 PUBLIC S16 cmPkKwuDatAckInfo(param, mBuf)
1056 KwuDatAckInfo *param;
1060 TRC3(cmPkKwuDatAckIndInfo);
1062 CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
1063 CMCHKPK(SPkU32, param->sduId, mBuf);
1068 PUBLIC S16 cmPkKwuDatAckInd
1072 KwuDatAckInfo* datInd
1075 PUBLIC S16 cmPkKwuDatAckInd(pst, suId, datInd)
1078 KwuDatAckInfo* datInd;
1085 TRC3(cmPkKwuDatAckInd);
1089 if (SGetMsg(pst->region, pst->pool, &mBuf) != ROK) {
1093 ret1 = cmPkKwuDatAckInfo( (datInd), mBuf);
1094 #if (ERRCLASS & ERRCLS_ADD_RES)
1098 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1099 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1100 (ErrVal)ERRKWU, (ErrVal)ret1, "Packing failure");
1103 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1104 if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datInd,
1105 sizeof(KwuDatAckInfo),SS_SHARABLE_MEMORY) != ROK)
1111 CMCHKPKLOG(SPkS16, suId, mBuf, ERRKWU, pst);
1112 pst->event = (Event) KWU_EVT_DAT_ACK_IND;
1114 RETVALUE(SPstTsk(pst,mBuf));
1115 } /* cmPkKwuDatAckInd */
1116 #endif /* LTE_L2_MEAS */
1120 PUBLIC S16 cmUnpkKwuBndReq
1127 PUBLIC S16 cmUnpkKwuBndReq(func, pst, mBuf)
1136 TRC3(cmUnpkKwuBndReq)
1138 CMCHKUNPKLOG(SUnpkS16, &suId, mBuf, EKWU020, pst);
1139 CMCHKUNPKLOG(SUnpkS16, &spId, mBuf, EKWU021, pst);
1142 RETVALUE((*func)(pst, suId, spId));
1147 PUBLIC S16 cmUnpkKwuBndCfm
1154 PUBLIC S16 cmUnpkKwuBndCfm(func, pst, mBuf)
1163 TRC3(cmUnpkKwuBndCfm)
1165 CMCHKUNPKLOG(SUnpkS16, &suId, mBuf, EKWU022, pst);
1166 CMCHKUNPKLOG(SUnpkU8, &status, mBuf, EKWU023, pst);
1169 RETVALUE((*func)(pst, suId, status));
1174 PUBLIC S16 cmUnpkKwuUbndReq
1181 PUBLIC S16 cmUnpkKwuUbndReq(func, pst, mBuf)
1190 TRC3(cmUnpkKwuUbndReq)
1192 CMCHKUNPKLOG(SUnpkS16, &spId, mBuf, EKWU024, pst);
1193 CMCHKUNPKLOG(SUnpkS16, &reason, mBuf, EKWU025, pst);
1196 RETVALUE((*func)(pst, spId, reason));
1197 } /* cmUnpkKwuUbndReq */
1201 PUBLIC S16 cmUnpkKwuDatReqInfo
1203 KwuDatReqInfo *param,
1207 PUBLIC S16 cmUnpkKwuDatReqInfo(param, mBuf)
1208 KwuDatReqInfo *param;
1213 TRC3(cmUnpkKwuDatReqInfo);
1215 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
1216 CMCHKUNPK(SUnpkU32, ¶m->sduId, mBuf);
1219 CMCHKUNPK(cmUnpkLteLcType, ¶m->lcType, mBuf);
1220 switch(param->lcType) {
1221 case CM_LTE_LCH_BCCH:
1222 case CM_LTE_LCH_PCCH:
1224 CMCHKUNPK(SUnpkU8,¶m->pnb , mBuf);
1225 CMCHKUNPK(SUnpkU8,¶m->emtcDiReason , mBuf);
1227 CMCHKUNPK(cmUnpkLteTimingInfo, ¶m->tm.tmg, mBuf);
1230 case CM_LTE_LCH_CCCH:
1231 CMCHKUNPK(cmUnpkLteRnti, ¶m->tm.rnti, mBuf);
1233 case CM_LTE_LCH_DTCH:
1234 case CM_LTE_LCH_DCCH:
1245 PUBLIC S16 cmUnpkKwuDatReq
1252 PUBLIC S16 cmUnpkKwuDatReq(func, pst, mBuf)
1258 #if(ERRCLASS & ERRCLS_DEBUG)
1262 KwuDatReqInfo *datReq = NULLP;
1263 KwuDatReqInfo datReqTmp;
1265 TRC3(cmUnpkKwuDatReq)
1267 switch(pst->selector)
1271 CMCHKUNPK(cmUnpkPtr,(PTR *) &datReq, mBuf);
1276 /* Allocate the memory statically as there is no free
1278 datReq = &datReqTmp;
1279 cmMemset((U8 *)datReq, 0, sizeof(KwuDatReqInfo));
1280 #if(ERRCLASS & ERRCLS_DEBUG)
1281 ret1 = cmUnpkKwuDatReqInfo( (datReq), mBuf);
1285 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1286 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1287 (ErrVal)EKWU027, (ErrVal)ret1, "Unpacking failure");
1291 cmUnpkKwuDatReqInfo( (datReq), mBuf);
1292 #endif /* ERRCLASS & ERRCLS_DEBUG */
1297 #if (ERRCLASS & ERRCLS_ADD_RES)
1298 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1299 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1300 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1305 retVal = (*func)(pst, datReq, mBuf);
1306 /* If LWLC is configured, we need to
1307 * free the memory here. */
1308 if(pst->selector == KWU_SEL_LWLC)
1310 retVal = SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
1311 sizeof(KwuDatReqInfo),SS_SHARABLE_MEMORY);
1314 } /* cmUnpkKwuDatReq */
1318 PUBLIC S16 cmUnpkKwuDatIndInfo
1320 KwuDatIndInfo *param,
1324 PUBLIC S16 cmUnpkKwuDatIndInfo(param, mBuf)
1325 KwuDatIndInfo *param;
1329 TRC3(cmUnpkKwuDatIndInfo);
1331 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
1334 CMCHKUNPK(cmUnpkLteRnti, ¶m->tCrnti, mBuf);
1336 CMCHKUNPK(SUnpkU8, ¶m->isOutOfSeq, mBuf);
1342 PUBLIC S16 cmUnpkKwuDatInd
1349 PUBLIC S16 cmUnpkKwuDatInd(func, pst, mBuf)
1355 S16 ret1 = ROK, retVal;
1356 KwuDatIndInfo *datInd = NULLP;
1357 KwuDatIndInfo datIndTmp;
1359 TRC3(cmUnpkKwuDatInd)
1361 switch(pst->selector)
1365 CMCHKUNPK(cmUnpkPtr,(PTR *) &datInd, mBuf);
1370 /*SGetStaticBuffer used as RRC has an equivalent free but PDCP
1371 * doesn't free any memory */
1372 if(pst->dstEnt != ENTPJ)
1374 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datInd,
1375 sizeof(KwuDatIndInfo),SS_SHARABLE_MEMORY)) != ROK)
1377 #if (ERRCLASS & ERRCLS_ADD_RES)
1380 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1381 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1382 (ErrVal)EKWU028, (ErrVal)0, "SGetMsg() failed");
1384 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1390 datInd = &datIndTmp;
1393 ret1 = cmUnpkKwuDatIndInfo( (datInd), mBuf);
1394 #if(ERRCLASS & ERRCLS_DEBUG)
1398 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1399 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1400 (ErrVal)EKWU029, (ErrVal)ret1, "Unpacking failure");
1403 #endif /* ERRCLASS & ERRCLS_DEBUG */
1408 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1409 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1410 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1413 retVal = (*func)(pst, datInd, mBuf);
1414 /* If LWLC is configured and the destination entity is PDCP, we need to
1415 * free the memory here. */
1416 if((pst->selector == KWU_SEL_LWLC) && (pst->dstEnt == ENTPJ))
1418 retVal = SPutStaticBuffer(pst->region, pst->pool, (Data *)datInd,
1419 sizeof(KwuDatIndInfo),SS_SHARABLE_MEMORY);
1422 } /* cmUnpkKwuDatInd */
1426 PUBLIC S16 cmUnpkKwuDatCfmInfo
1428 KwuDatCfmInfo *param,
1432 PUBLIC S16 cmUnpkKwuDatCfmInfo(param, mBuf)
1433 KwuDatCfmInfo *param;
1438 TRC3(cmUnpkKwuDatCfmInfo);
1440 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
1441 CMCHKUNPK(SUnpkU32, ¶m->numSduIds, mBuf);
1443 #ifdef L2_L3_SPLIT /*Work Around */
1444 if (param->numSduIds >= KWU_MAX_DAT_CFM)
1445 param->numSduIds = KWU_MAX_DAT_CFM;
1447 for(iter = param->numSduIds -1; iter >= 0 ; iter--)
1449 CMCHKUNPK(SUnpkU32, ¶m->sduIds[iter], mBuf);
1455 PUBLIC S16 cmUnpkKwuDatCfm
1462 PUBLIC S16 cmUnpkKwuDatCfm(func, pst, mBuf)
1470 KwuDatCfmInfo *datCfm = NULLP;
1472 TRC3(cmUnpkKwuDatCfm)
1474 CMCHKUNPK(SUnpkS16, &(suId), mBuf);
1476 switch(pst->selector)
1480 CMCHKUNPK(cmUnpkPtr,(PTR *) &datCfm, mBuf);
1485 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datCfm,\
1486 sizeof(KwuDatCfmInfo),SS_SHARABLE_MEMORY)) != ROK)
1488 #if (ERRCLASS & ERRCLS_ADD_RES)
1491 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1492 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1493 (ErrVal)EKWU030, (ErrVal)0, "SGetMsg() failed");
1495 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1499 cmMemset((U8 *)datCfm, 0, sizeof(KwuDatCfmInfo));
1500 ret1 = cmUnpkKwuDatCfmInfo( (datCfm), mBuf);
1501 #if(ERRCLASS & ERRCLS_DEBUG)
1505 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1506 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1507 (ErrVal)EKWU031, (ErrVal)ret1, "Unpacking failure");
1510 #endif /* ERRCLASS & ERRCLS_DEBUG */
1514 #if (ERRCLASS & ERRCLS_ADD_RES)
1515 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1516 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1517 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1525 RETVALUE((*func)(pst, suId, datCfm));
1526 } /* cmUnpkKwuDatCfm */
1530 PUBLIC S16 cmUnpkKwuDiscSduReq
1537 PUBLIC S16 cmUnpkKwuDiscSduReq(func, pst, mBuf)
1545 KwuDiscSduInfo *discSdu = NULLP;
1548 CMCHKUNPK(SUnpkS16, &(spId), mBuf);
1549 switch(pst->selector)
1553 CMCHKUNPK(cmUnpkPtr,(PTR *) &discSdu, mBuf);
1558 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&discSdu,\
1559 sizeof(KwuDiscSduInfo),SS_SHARABLE_MEMORY)) != ROK)
1561 #if (ERRCLASS & ERRCLS_ADD_RES)
1563 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1564 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1565 (ErrVal)EKWU032, (ErrVal)0, "SGetMsg() failed");
1567 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1571 cmMemset((U8 *)discSdu, 0, sizeof(KwuDiscSduInfo));
1572 ret1 = cmUnpkKwuDiscSduInfo( (discSdu), mBuf);
1573 #if(ERRCLASS & ERRCLS_DEBUG)
1577 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1578 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1579 (ErrVal)EKWU033, (ErrVal)ret1, "Unpacking failure");
1582 #endif /* ERRCLASS & ERRCLS_DEBUG */
1586 #if (ERRCLASS & ERRCLS_ADD_RES)
1587 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1588 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1589 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1596 RETVALUE((*func)(pst, spId, discSdu));
1597 } /* cmUnpkKwuDiscSduReq */
1601 PUBLIC S16 cmUnpkKwuStaIndInfo
1603 KwuStaIndInfo *param,
1607 PUBLIC S16 cmUnpkKwuStaIndInfo(param, mBuf)
1608 KwuStaIndInfo *param;
1614 TRC3(cmUnpkKwuStaIndInfo);
1616 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
1617 CMCHKUNPK(SUnpkU32, ¶m->numSdu, mBuf);
1618 for (i = 0; i < param->numSdu; i++)
1620 CMCHKUNPK(SUnpkU32, ¶m->sduId[i], mBuf);
1624 } /* cmUnpkKwuStaIndInfo */
1628 PUBLIC S16 cmUnpkKwuStaInd
1635 PUBLIC S16 cmUnpkKwuStaInd(func, pst, mBuf)
1643 KwuStaIndInfo *staInd = NULLP;
1645 TRC3(cmUnpkKwuStaInd)
1647 CMCHKUNPK(SUnpkS16, &(suId), mBuf);
1649 switch(pst->selector)
1653 CMCHKUNPK(cmUnpkPtr,(PTR *)&staInd, mBuf);
1658 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&staInd,\
1659 sizeof(KwuStaIndInfo),SS_SHARABLE_MEMORY)) != ROK)
1661 #if (ERRCLASS & ERRCLS_ADD_RES)
1664 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1665 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1666 (ErrVal)EKWU034, (ErrVal)0, "SGetMsg() failed");
1668 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1672 cmMemset((U8 *)staInd, 0, sizeof(KwuStaIndInfo));
1674 ret1 = cmUnpkKwuStaIndInfo( (staInd), mBuf);
1675 #if(ERRCLASS & ERRCLS_DEBUG)
1679 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1680 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1681 (ErrVal)EKWU035, (ErrVal)ret1, "Unpacking failure");
1684 #endif /* ERRCLASS & ERRCLS_DEBUG */
1689 #if(ERRCLASS & ERRCLS_DEBUG)
1690 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1691 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1692 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1698 RETVALUE((*func)(pst, suId, staInd));
1699 } /* cmUnpkKwuStaInd */
1703 PUBLIC S16 cmUnpkKwuReEstCmpInd
1705 KwuReEstCmpInd func,
1710 PUBLIC S16 cmUnpkKwuReEstCmpInd(func, pst, mBuf)
1711 KwuReEstCmpInd func;
1716 #if(ERRCLASS & ERRCLS_DEBUG)
1722 TRC3(cmUnpkKwuReEstCmpInd)
1724 cmMemset((U8 *)&rlcId, 0, sizeof(CmLteRlcId));
1726 CMCHKUNPK(SUnpkS16, &(suId), mBuf);
1727 switch(pst->selector)
1732 #if(ERRCLASS & ERRCLS_DEBUG)
1733 ret1 = cmUnpkLteRlcId( &rlcId, mBuf);
1737 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1738 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1739 (ErrVal)EKWU035, (ErrVal)ret1, "Unpacking failure");
1743 cmUnpkLteRlcId( &rlcId, mBuf);
1744 #endif /* ERRCLASS & ERRCLS_DEBUG */
1751 RETVALUE((*func)(pst, suId, rlcId));
1752 } /* cmUnpkKwuReEstCmpInd */
1754 /* kwu_c_001.main_3 added support for L2 Measurement */
1756 PUBLIC S16 cmUnpkKwuDiscSduCfm
1763 PUBLIC S16 cmUnpkKwuDiscSduCfm(func, pst, mBuf)
1771 KwuDiscSduInfo *discSdu = NULLP;
1773 TRC3(cmUnpkKwuDiscSduCfm);
1775 CMCHKUNPK(SUnpkS16, &(spId), mBuf);
1777 switch(pst->selector)
1781 CMCHKUNPK(cmUnpkPtr,(PTR *) &discSdu, mBuf);
1786 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&discSdu,\
1787 sizeof(KwuDiscSduInfo),SS_SHARABLE_MEMORY)) != ROK)
1789 #if (ERRCLASS & ERRCLS_ADD_RES)
1792 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1793 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1794 (ErrVal)ERRKWU, (ErrVal)0, "SGetMsg() failed");
1796 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1799 cmMemset((U8 *)discSdu, 0, sizeof(KwuDiscSduInfo));
1801 ret1 = cmUnpkKwuDiscSduInfo( (discSdu), mBuf);
1802 #if(ERRCLASS & ERRCLS_DEBUG)
1806 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1807 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1808 (ErrVal)ERRKWU, (ErrVal)0, "SGetMsg() failed");
1810 #endif /* ERRCLASS & ERRCLS_DEBUG */
1815 #if(ERRCLASS & ERRCLS_DEBUG)
1816 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1817 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1818 (ErrVal)ERRKWU, (ErrVal)ret1, "pst->selector is invalid\n");
1824 RETVALUE((*func)(pst, spId, discSdu));
1825 } /* cmUnpkKwuDiscSduCfm */
1827 PUBLIC S16 cmUnpkKwuFlowCntrlInd
1829 KwuFlowCntrlInd func,
1834 PUBLIC S16 cmUnpkKwuFlowCntrlInd(func, pst, mBuf)
1835 KwuFlowCntrlInd func;
1841 KwuFlowCntrlIndInfo *flowCntrlInfo = NULLP;
1843 TRC3(cmUnpkKwuFlowCntrlInd);
1845 CMCHKUNPK(SUnpkS16, &(suId), mBuf);
1846 switch(pst->selector)
1851 if(SGetStaticBuffer(pst->region,
1853 (Data **)&flowCntrlInfo,
1854 sizeof(KwuFlowCntrlIndInfo),0) != ROK)
1860 cmUnpkKwuFlowCntrlIndInfo(flowCntrlInfo, mBuf);
1866 CMCHKUNPK(cmUnpkPtr,(PTR *) &flowCntrlInfo, mBuf);
1874 RETVALUE((*func)(pst, suId, flowCntrlInfo));
1875 } /* cmUnpkKwuFlowCntrlInd */
1879 PUBLIC S16 cmUnpkKwuDatAckInfo
1881 KwuDatAckInfo *param,
1885 PUBLIC S16 cmUnpkKwuDatAckInfo(param, mBuf)
1886 KwuDatAckInfo *param;
1890 TRC3(cmUnpkKwuDatAckInfo);
1892 CMCHKUNPK(SUnpkU32, ¶m->sduId, mBuf);
1893 CMCHKUNPK(cmUnpkLteRlcId, ¶m->rlcId, mBuf);
1900 PUBLIC S16 cmUnpkKwuDatAckInd
1907 PUBLIC S16 cmUnpkKwuDatAckInd(func, pst, mBuf)
1915 KwuDatAckInfo *datInd = NULLP;
1917 TRC3(cmUnpkKwuDatAckInd);
1919 if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datInd,\
1920 sizeof(KwuDatAckInfo),SS_SHARABLE_MEMORY)) != ROK)
1922 #if (ERRCLASS & ERRCLS_ADD_RES)
1925 SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId,
1926 __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES,
1927 (ErrVal)ERRKWU, (ErrVal)0, "SGetMsg() failed");
1929 #endif /* ERRCLASS & ERRCLS_ADD_RES */
1933 cmMemset((U8 *)datInd, 0, sizeof(KwuDatAckInfo));
1935 CMCHKUNPK(SUnpkS16, &(suId), mBuf);
1936 ret1 = cmUnpkKwuDatAckInfo( (datInd), mBuf);
1937 #if(ERRCLASS & ERRCLS_DEBUG)
1941 SLogError(pst->dstEnt, pst->dstInst, pst->dstProcId,
1942 __FILE__, __LINE__, (ErrCls)ERRCLS_DEBUG,
1943 (ErrVal)ERRKWU, (ErrVal)ret1, "Unpacking failure");
1946 #endif /* ERRCLASS & ERRCLS_DEBUG */
1948 RETVALUE((*func)(pst, suId, datInd));
1949 } /* cmUnpkKwuDatAckInd */
1950 #endif /* LTE_L2_MEAS */
1953 /**********************************************************************
1955 **********************************************************************/