Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "SIB1 optional parameters, Cell start request, stop request and slot indication"
[o-du/l2.git]
/
src
/
cm
/
legtp.c
diff --git
a/src/cm/legtp.c
b/src/cm/legtp.c
index
a1ba6b1
..
6d763d1
100644
(file)
--- a/
src/cm/legtp.c
+++ b/
src/cm/legtp.c
@@
-27,7
+27,7
@@
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpCfmStatus
+ * Function :
pac
kEgtpCfmStatus
*
* Functionality:
* Packs EGTP confirm status
*
* Functionality:
* Packs EGTP confirm status
@@
-38,7
+38,7
@@
* RFAILED - failure
*
******************************************************************/
* RFAILED - failure
*
******************************************************************/
-S16
cmP
kEgtpCfmStatus(CmStatus cfm, Buffer *mBuf)
+S16
pac
kEgtpCfmStatus(CmStatus cfm, Buffer *mBuf)
{
SPkU16(cfm.status, mBuf);
SPkU16(cfm.reason, mBuf);
{
SPkU16(cfm.status, mBuf);
SPkU16(cfm.reason, mBuf);
@@
-52,7
+52,7
@@
S16 cmPkEgtpCfmStatus(CmStatus cfm, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpCfmStatus
+ * Function :
unpac
kEgtpCfmStatus
*
* Functionality:
* Packs EGTP confirm status
*
* Functionality:
* Packs EGTP confirm status
@@
-64,7
+64,7
@@
S16 cmPkEgtpCfmStatus(CmStatus cfm, Buffer *mBuf)
*
******************************************************************/
*
******************************************************************/
-S16
cmUnp
kEgtpCfmStatus(CmStatus *cfm, Buffer *mBuf)
+S16
unpac
kEgtpCfmStatus(CmStatus *cfm, Buffer *mBuf)
{
SUnpkU16(&(cfm->reason), mBuf);
SUnpkU16(&(cfm->status), mBuf);
{
SUnpkU16(&(cfm->reason), mBuf);
SUnpkU16(&(cfm->status), mBuf);
@@
-78,7
+78,7
@@
S16 cmUnpkEgtpCfmStatus(CmStatus *cfm, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpCfgReq
+ * Function :
pac
kEgtpCfgReq
*
* Functionality:
* Packs EGTP configuration
*
* Functionality:
* Packs EGTP configuration
@@
-89,7
+89,7
@@
S16 cmUnpkEgtpCfmStatus(CmStatus *cfm, Buffer *mBuf)
* RFAILED - failure
*
******************************************************************/
* RFAILED - failure
*
******************************************************************/
-S16
cmP
kEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
+S16
pac
kEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-126,7
+126,7
@@
S16 cmPkEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpCfgReq
+ * Function :
unpac
kEgtpCfgReq
*
* Functionality:
* Unpacks EGTP configuration
*
* Functionality:
* Unpacks EGTP configuration
@@
-138,7
+138,7
@@
S16 cmPkEgtpCfgReq(Pst *pst, EgtpConfig egtpCfg)
* RFAILED - failure
*
* ****************************************************************/
* RFAILED - failure
*
* ****************************************************************/
-S16
cmUnp
kEgtpCfgReq(EgtpCfgReq func, Pst *pst, Buffer *mBuf)
+S16
unpac
kEgtpCfgReq(EgtpCfgReq func, Pst *pst, Buffer *mBuf)
{
EgtpConfig egtpCfg;
{
EgtpConfig egtpCfg;
@@
-173,7
+173,7
@@
S16 cmUnpkEgtpCfgReq(EgtpCfgReq func, Pst *pst, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpCfgCfm
+ * Function :
pac
kEgtpCfgCfm
*
* Functionality:
* Packs EGTP configuration result
*
* Functionality:
* Packs EGTP configuration result
@@
-185,7
+185,7
@@
S16 cmUnpkEgtpCfgReq(EgtpCfgReq func, Pst *pst, Buffer *mBuf)
*
******************************************************************/
*
******************************************************************/
-S16
cmP
kEgtpCfgCfm(Pst *pst, CmStatus cfm)
+S16
pac
kEgtpCfgCfm(Pst *pst, CmStatus cfm)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-195,7
+195,7
@@
S16 cmPkEgtpCfgCfm(Pst *pst, CmStatus cfm)
RETVALUE(RFAILED);
}
RETVALUE(RFAILED);
}
-
cmP
kEgtpCfmStatus(cfm, mBuf);
+
pac
kEgtpCfmStatus(cfm, mBuf);
SPstTsk(pst, mBuf);
RETVALUE(ROK);
}
SPstTsk(pst, mBuf);
RETVALUE(ROK);
}
@@
-206,7
+206,7
@@
S16 cmPkEgtpCfgCfm(Pst *pst, CmStatus cfm)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpCfgCfm
+ * Function :
unpac
kEgtpCfgCfm
*
* Functionality:
* Unpacks EGTP configuration result
*
* Functionality:
* Unpacks EGTP configuration result
@@
-218,12
+218,12
@@
S16 cmPkEgtpCfgCfm(Pst *pst, CmStatus cfm)
*
******************************************************************/
*
******************************************************************/
-S16
cmUnp
kEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf)
+S16
unpac
kEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf)
{
CmStatus cfm;
cmMemset((U8 *)&cfm, 0, sizeof(CmStatus));
{
CmStatus cfm;
cmMemset((U8 *)&cfm, 0, sizeof(CmStatus));
-
cmUnp
kEgtpCfmStatus(&cfm, mBuf);
+
unpac
kEgtpCfmStatus(&cfm, mBuf);
RETVALUE((*func)(cfm));
}
RETVALUE((*func)(cfm));
}
@@
-234,7
+234,7
@@
S16 cmUnpkEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpSrvOpenReq
+ * Function :
pac
kEgtpSrvOpenReq
*
* Functionality:
* Packs EGTP server open request
*
* Functionality:
* Packs EGTP server open request
@@
-244,7
+244,7
@@
S16 cmUnpkEgtpCfgCfm(EgtpCfgCfm func, Buffer *mBuf)
* RFAILED - failure
*
*******************************************************************/
* RFAILED - failure
*
*******************************************************************/
-S16
cmP
kEgtpSrvOpenReq(Pst *pst)
+S16
pac
kEgtpSrvOpenReq(Pst *pst)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-264,7
+264,7
@@
S16 cmPkEgtpSrvOpenReq(Pst *pst)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpSrvOpenReq
+ * Function :
unpac
kEgtpSrvOpenReq
*
* Functionality:
* Unpacks EGTP server open req
*
* Functionality:
* Unpacks EGTP server open req
@@
-275,7
+275,7
@@
S16 cmPkEgtpSrvOpenReq(Pst *pst)
* RFAILED - failure
*
******************************************************************/
* RFAILED - failure
*
******************************************************************/
-S16
cmUnp
kEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf)
+S16
unpac
kEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf)
{
RETVALUE((*func)(pst));
}
{
RETVALUE((*func)(pst));
}
@@
-287,7
+287,7
@@
S16 cmUnpkEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpSrvOpenCfm
+ * Function :
pac
kEgtpSrvOpenCfm
*
* Functionality:
* Packs EGTP server open confirm
*
* Functionality:
* Packs EGTP server open confirm
@@
-297,7
+297,7
@@
S16 cmUnpkEgtpSrvOpenReq(EgtpSrvOpenReq func, Pst *pst, Buffer *mBuf)
* RFAILED - failure
*
*******************************************************************/
* RFAILED - failure
*
*******************************************************************/
-S16
cmP
kEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
+S16
pac
kEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-307,7
+307,7
@@
S16 cmPkEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
RETVALUE(RFAILED);
}
RETVALUE(RFAILED);
}
-
cmP
kEgtpCfmStatus(cfm, mBuf);
+
pac
kEgtpCfmStatus(cfm, mBuf);
SPstTsk(pst, mBuf);
RETVALUE(ROK);
SPstTsk(pst, mBuf);
RETVALUE(ROK);
@@
-319,7
+319,7
@@
S16 cmPkEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpSrvOpenCfm
+ * Function :
unpac
kEgtpSrvOpenCfm
*
* Functionality:
* Unpacks EGTP server open confirm
*
* Functionality:
* Unpacks EGTP server open confirm
@@
-330,12
+330,12
@@
S16 cmPkEgtpSrvOpenCfm(Pst *pst, CmStatus cfm)
* RFAILED - failure
*
*******************************************************************/
* RFAILED - failure
*
*******************************************************************/
-S16
cmUnp
kEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf)
+S16
unpac
kEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf)
{
CmStatus cfm;
cmMemset((U8 *)&cfm, 0, sizeof(CmStatus));
{
CmStatus cfm;
cmMemset((U8 *)&cfm, 0, sizeof(CmStatus));
-
cmUnp
kEgtpCfmStatus(&cfm, mBuf);
+
unpac
kEgtpCfmStatus(&cfm, mBuf);
RETVALUE((*func)(cfm));
}
RETVALUE((*func)(cfm));
}
@@
-346,7
+346,7
@@
S16 cmUnpkEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpTnlMgmtReq
+ * Function :
pac
kEgtpTnlMgmtReq
*
* Functionality:
* Packs EGTP tunnel management request
*
* Functionality:
* Packs EGTP tunnel management request
@@
-359,7
+359,7
@@
S16 cmUnpkEgtpSrvOpenCfm(EgtpSrvOpenCfm func, Buffer *mBuf)
* RFAILED - failure
*
*******************************************************************/
* RFAILED - failure
*
*******************************************************************/
-S16
cmP
kEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt)
+S16
pac
kEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-384,7
+384,7
@@
S16 cmPkEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpTnlMgmtReq
+ * Function :
unpac
kEgtpTnlMgmtReq
*
* Functionality:
* Unpacks EGTP tunnel management request
*
* Functionality:
* Unpacks EGTP tunnel management request
@@
-396,7
+396,7
@@
S16 cmPkEgtpTnlMgmtReq(Pst *pst, EgtpTnlEvt tnlEvt)
* RFAILED - failure
*
* *******************************************************************/
* RFAILED - failure
*
* *******************************************************************/
-S16
cmUnp
kEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf)
+S16
unpac
kEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf)
{
EgtpTnlEvt tnlEvt;
{
EgtpTnlEvt tnlEvt;
@@
-416,7
+416,7
@@
S16 cmUnpkEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf)
*
* @details
*
*
* @details
*
- * Function :
cmP
kEgtpTnlMgmtCfm
+ * Function :
pac
kEgtpTnlMgmtCfm
*
* Functionality:
* Packs EGTP tunnel management cfm
*
* Functionality:
* Packs EGTP tunnel management cfm
@@
-429,7
+429,7
@@
S16 cmUnpkEgtpTnlMgmtReq(EgtpTnlMgmtReq func, Pst *pst, Buffer *mBuf)
*
********************************************************************/
*
********************************************************************/
-S16
cmP
kEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
+S16
pac
kEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-443,7
+443,7
@@
S16 cmPkEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
SPkU32(tnlEvt.lclTeid, mBuf);
SPkU32(tnlEvt.remTeid, mBuf);
SPkU32(tnlEvt.lclTeid, mBuf);
SPkU32(tnlEvt.remTeid, mBuf);
-
cmP
kEgtpCfmStatus(tnlEvt.cfmStatus, mBuf);
+
pac
kEgtpCfmStatus(tnlEvt.cfmStatus, mBuf);
SPstTsk(pst, mBuf);
RETVALUE(ROK);
SPstTsk(pst, mBuf);
RETVALUE(ROK);
@@
-456,7
+456,7
@@
S16 cmPkEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
*
* @details
*
*
* @details
*
- * Function :
cmUnp
kEgtpTnlMgmtCfm
+ * Function :
unpac
kEgtpTnlMgmtCfm
*
* Functionality:
* Unpacks EGTP tunnel management confirm
*
* Functionality:
* Unpacks EGTP tunnel management confirm
@@
-468,13
+468,13
@@
S16 cmPkEgtpTnlMgmtCfm(Pst *pst, EgtpTnlEvt tnlEvt)
* RFAILED - failure
*
* *******************************************************************/
* RFAILED - failure
*
* *******************************************************************/
-S16
cmUnp
kEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf)
+S16
unpac
kEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf)
{
EgtpTnlEvt tnlEvt;
cmMemset((U8 *)&tnlEvt, 0, sizeof(EgtpTnlEvt));
{
EgtpTnlEvt tnlEvt;
cmMemset((U8 *)&tnlEvt, 0, sizeof(EgtpTnlEvt));
-
cmUnp
kEgtpCfmStatus(&(tnlEvt.cfmStatus), mBuf);
+
unpac
kEgtpCfmStatus(&(tnlEvt.cfmStatus), mBuf);
SUnpkU32(&(tnlEvt.remTeid), mBuf);
SUnpkU32(&(tnlEvt.lclTeid), mBuf);
SUnpkU8(&(tnlEvt.action), mBuf);
SUnpkU32(&(tnlEvt.remTeid), mBuf);
SUnpkU32(&(tnlEvt.lclTeid), mBuf);
SUnpkU8(&(tnlEvt.action), mBuf);
@@
-485,21
+485,21
@@
S16 cmUnpkEgtpTnlMgmtCfm(EgtpTnlMgmtCfm func, Buffer *mBuf)
/*******************************************************************
*
/*******************************************************************
*
- * @brief Packs
TTI
indication and sends to EGTP
+ * @brief Packs
Slot
indication and sends to EGTP
*
* @details
*
*
* @details
*
- * Function :
cmPkEgtpTTI
Ind
+ * Function :
packEgtpSlot
Ind
*
* Functionality:
*
* Functionality:
- * Packs
TTI
indication and sends tp EGTP
+ * Packs
slot
indication and sends tp EGTP
*
* @params[in] Post structure
* @return ROK - success
* RFAILED - failure
*
*******************************************************************/
*
* @params[in] Post structure
* @return ROK - success
* RFAILED - failure
*
*******************************************************************/
-S16
cmPkEgtpTTI
Ind(Pst *pst)
+S16
packEgtpSlot
Ind(Pst *pst)
{
Buffer *mBuf;
{
Buffer *mBuf;
@@
-516,21
+516,21
@@
S16 cmPkEgtpTTIInd(Pst *pst)
/*******************************************************************
*
/*******************************************************************
*
- * @brief Unpacks
TTI
indication
+ * @brief Unpacks
slot
indication
*
* @details
*
*
* @details
*
- * Function :
cmUnpkEgtpTTI
Ind
+ * Function :
unpackEgtpSlot
Ind
*
* Functionality:
*
* Functionality:
- * Unpacks
TTI
indication
+ * Unpacks
slot
indication
*
* @params[in]
* @return ROK - success
* RFAILED - failure
*
******************************************************************/
*
* @params[in]
* @return ROK - success
* RFAILED - failure
*
******************************************************************/
-S16
cmUnpkEgtpTTIInd(EgtpTTI
Ind func, Pst *pst, Buffer *mBuf)
+S16
unpackEgtpSlotInd(EgtpSlot
Ind func, Pst *pst, Buffer *mBuf)
{
RETVALUE((*func)());
}
{
RETVALUE((*func)());
}