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 "JIRA-ID ODUHIGH-275 classification of logs of RLC part -2"
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw_ptmi.c
diff --git
a/src/5gnrrlc/kw_ptmi.c
b/src/5gnrrlc/kw_ptmi.c
index
5f32542
..
2696268
100755
(executable)
--- a/
src/5gnrrlc/kw_ptmi.c
+++ b/
src/5gnrrlc/kw_ptmi.c
@@
-63,7
+63,7
@@
********************************************************************/
/* Configuration confirmation primitive */
********************************************************************/
/* Configuration confirmation primitive */
-
PRIVATE
RlcConfigCfm rlcMiRlcConfigCfmMt[MAXKWMI] =
+
static
RlcConfigCfm rlcMiRlcConfigCfmMt[MAXKWMI] =
{
#ifdef LCKWMILKW
packRlcConfigCfm, /* 0 - loosely coupled - fc */
{
#ifdef LCKWMILKW
packRlcConfigCfm, /* 0 - loosely coupled - fc */
@@
-75,7
+75,7
@@
PRIVATE RlcConfigCfm rlcMiRlcConfigCfmMt[MAXKWMI] =
/* control confirmation primitives */
/* control confirmation primitives */
-
PRIVATE
LkwCntrlCfm kwMiLkwCntrlCfmMt[MAXKWMI] =
+
static
LkwCntrlCfm kwMiLkwCntrlCfmMt[MAXKWMI] =
{
#ifdef LCKWMILKW
cmPkLkwCntrlCfm, /* 0 - loosely coupled - fc */
{
#ifdef LCKWMILKW
cmPkLkwCntrlCfm, /* 0 - loosely coupled - fc */
@@
-87,7
+87,7
@@
PRIVATE LkwCntrlCfm kwMiLkwCntrlCfmMt[MAXKWMI] =
/* Status Indication primitive */
/* Status Indication primitive */
-
PRIVATE
LkwStaInd kwMiLkwStaIndMt[MAXKWMI] =
+
static
LkwStaInd kwMiLkwStaIndMt[MAXKWMI] =
{
#ifdef LCKWMILKW
cmPkLkwStaInd, /* 0 - loosely coupled */
{
#ifdef LCKWMILKW
cmPkLkwStaInd, /* 0 - loosely coupled */
@@
-99,7
+99,7
@@
PRIVATE LkwStaInd kwMiLkwStaIndMt[MAXKWMI] =
/* Status confirm primitive */
/* Status confirm primitive */
-
PRIVATE
LkwStaCfm kwMiLkwStaCfmMt[MAXKWMI] =
+
static
LkwStaCfm kwMiLkwStaCfmMt[MAXKWMI] =
{
#ifdef LCKWMILKW
cmPkLkwStaCfm, /* 0 - loosely coupled */
{
#ifdef LCKWMILKW
cmPkLkwStaCfm, /* 0 - loosely coupled */
@@
-111,7
+111,7
@@
PRIVATE LkwStaCfm kwMiLkwStaCfmMt[MAXKWMI] =
/* Statistics confirm primitive */
/* Statistics confirm primitive */
-
PRIVATE
LkwStsCfm kwMiLkwStsCfmMt[MAXKWMI] =
+
static
LkwStsCfm kwMiLkwStsCfmMt[MAXKWMI] =
{
#ifdef LCKWMILKW
cmPkLkwStsCfm, /* 0 - loosely coupled */
{
#ifdef LCKWMILKW
cmPkLkwStsCfm, /* 0 - loosely coupled */
@@
-123,7
+123,7
@@
PRIVATE LkwStsCfm kwMiLkwStsCfmMt[MAXKWMI] =
/* Trace indication primitive */
/* Trace indication primitive */
-
PRIVATE
LkwTrcInd kwMiLkwTrcIndMt[MAXKWMI] =
+
static
LkwTrcInd kwMiLkwTrcIndMt[MAXKWMI] =
{
#ifdef LCKWMILKW
cmPkLkwTrcInd, /* 0 - loosely coupled */
{
#ifdef LCKWMILKW
cmPkLkwTrcInd, /* 0 - loosely coupled */
@@
-135,7
+135,7
@@
PRIVATE LkwTrcInd kwMiLkwTrcIndMt[MAXKWMI] =
/* kw005.201 added support for L2 Measurement */
#ifdef LTE_L2_MEAS
/* kw005.201 added support for L2 Measurement */
#ifdef LTE_L2_MEAS
-
PRIVATE CONSTANT
LkwL2MeasCfm rlcMiLkwL2MeasCfmMt[] =
+
static const
LkwL2MeasCfm rlcMiLkwL2MeasCfmMt[] =
{
#ifdef LCKWMILKW
cmPkLkwL2MeasCfm,
{
#ifdef LCKWMILKW
cmPkLkwL2MeasCfm,
@@
-144,7
+144,7
@@
PRIVATE CONSTANT LkwL2MeasCfm rlcMiLkwL2MeasCfmMt[] =
SmMiLkwL2MeasCfm,
#endif
};
SmMiLkwL2MeasCfm,
#endif
};
-
PRIVATE CONSTANT
LkwL2MeasStopCfm RlcMiLkwL2MeasStopCfmMt[] =
+
static const
LkwL2MeasStopCfm RlcMiLkwL2MeasStopCfmMt[] =
{
#ifdef LCKWMILKW
cmPkLkwL2MeasStopCfm,
{
#ifdef LCKWMILKW
cmPkLkwL2MeasStopCfm,
@@
-174,19
+174,12
@@
PRIVATE CONSTANT LkwL2MeasStopCfm RlcMiLkwL2MeasStopCfmMt[] =
the layer manager API provided.
*/
the layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiRlcConfigCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* Layer Management structure */
)
S16 RlcMiRlcConfigCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* Layer Management structure */
)
-#else
-S16 RlcMiRlcConfigCfm(pst, cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* Layer Management structure */
-#endif
{
{
- TRC3(RlcMiRlcConfigCfm);
/* jump to specific primitive depending on configured selector */
(*rlcMiRlcConfigCfmMt[pst->selector])(pst, cfm);
/* jump to specific primitive depending on configured selector */
(*rlcMiRlcConfigCfmMt[pst->selector])(pst, cfm);
@@
-208,19
+201,12
@@
RlcMngmt *cfm; /* Layer Management structure */
layer manager API provided.
*/
layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiLkwCntrlCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* configure */
)
S16 RlcMiLkwCntrlCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* configure */
)
-#else
-S16 RlcMiLkwCntrlCfm(pst, cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* confirm */
-#endif
{
{
- TRC3(RlcMiLkwCntrlCfm)
/* jump to specific primitive depending on configured selector */
(*kwMiLkwCntrlCfmMt[pst->selector])(pst, cfm);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwCntrlCfmMt[pst->selector])(pst, cfm);
@@
-247,20
+233,12
@@
RlcMngmt *cfm; /* confirm */
- For a tightly coupled interface, the actual function called depends on
the layer manager API provided.
*/
- For a tightly coupled interface, the actual function called depends on
the layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiLkwStaInd
(
Pst *pst, /* post structure */
RlcMngmt *usta /* unsolicited status */
)
S16 RlcMiLkwStaInd
(
Pst *pst, /* post structure */
RlcMngmt *usta /* unsolicited status */
)
-#else
-S16 RlcMiLkwStaInd(pst, usta)
-Pst *pst; /* post structure */
-RlcMngmt *usta; /* unsolicited status */
-#endif
{
{
- TRC3(RlcMiLkwStaInd);
-
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStaIndMt[pst->selector])(pst, usta);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStaIndMt[pst->selector])(pst, usta);
@@
-285,19
+263,12
@@
RlcMngmt *usta; /* unsolicited status */
on the layer manager API provided.
*/
on the layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiLkwStaCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* solicited status confirmation */
)
S16 RlcMiLkwStaCfm
(
Pst *pst, /* post structure */
RlcMngmt *cfm /* solicited status confirmation */
)
-#else
-S16 RlcMiLkwStaCfm(pst, cfm)
-Pst *pst; /* post structure */
-RlcMngmt *cfm; /* solicited status confirmation */
-#endif
{
{
- TRC3(RlcMiLkwStaCfm);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStaCfmMt[pst->selector])(pst, cfm);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStaCfmMt[pst->selector])(pst, cfm);
@@
-324,22
+295,13
@@
RlcMngmt *cfm; /* solicited status confirmation */
on the layer manager API provided.
*/
on the layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiLkwStsCfm
(
Pst *pst, /* post structure */
Action action, /* action */
RlcMngmt *cfm /* statistics confirmation */
)
S16 RlcMiLkwStsCfm
(
Pst *pst, /* post structure */
Action action, /* action */
RlcMngmt *cfm /* statistics confirmation */
)
-#else
-S16 RlcMiLkwStsCfm(pst, action, cfm)
-Pst *pst; /* post structure */
-Action action; /* action */
-RlcMngmt *cfm; /* statistics confirmation */
-#endif
{
{
- TRC3(RlcMiLkwStsCfm);
-
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStsCfmMt[pst->selector])(pst, action, cfm);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwStsCfmMt[pst->selector])(pst, action, cfm);
@@
-364,22
+326,13
@@
RlcMngmt *cfm; /* statistics confirmation */
the layer manager API provided.
*/
the layer manager API provided.
*/
-#ifdef ANSI
S16 RlcMiLkwTrcInd
(
Pst *pst, /* post structure */
RlcMngmt *trc, /* trace indication */
Buffer *mBuf /* message buffer */
)
S16 RlcMiLkwTrcInd
(
Pst *pst, /* post structure */
RlcMngmt *trc, /* trace indication */
Buffer *mBuf /* message buffer */
)
-#else
-S16 RlcMiLkwTrcInd(pst, trc, mBuf)
-Pst *pst; /* post structure */
-RlcMngmt *trc; /* trace indication */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC3(RlcMiLkwTrcInd);
-
/* jump to specific primitive depending on configured selector */
(*kwMiLkwTrcIndMt[pst->selector])(pst, trc, mBuf);
/* jump to specific primitive depending on configured selector */
(*kwMiLkwTrcIndMt[pst->selector])(pst, trc, mBuf);
@@
-390,43
+343,17
@@
Buffer *mBuf; /* message buffer */
/* kw005.201 added support for L2 Measurement */
#ifdef LTE_L2_MEAS
/* kw005.201 added support for L2 Measurement */
#ifdef LTE_L2_MEAS
-#ifdef ANSI
-S16 RlcMiLkwL2MeasCfm
-(
-Pst * pst,
-RlcL2MeasCfmEvt *measEvt
-)
-#else
-S16 RlcMiLkwL2MeasCfm(pst, measEvt)
-Pst * pst;
-RlcL2MeasCfmEvt *measEvt;
-#endif
+S16 RlcMiLkwL2MeasCfm(Pst * pst,RlcL2MeasCfmEvt *measEvt)
{
{
- TRC3(RlcMiLkwL2MeasCfm)
-
(*rlcMiLkwL2MeasCfmMt[pst->selector])(pst, measEvt);
return ROK;
}
(*rlcMiLkwL2MeasCfmMt[pst->selector])(pst, measEvt);
return ROK;
}
-#ifdef ANSI
-S16 RlcMiLkwL2MeasStopCfm
-(
-Pst *pst,
-U8 measType,
-U8 status
-)
-#else
-S16 RlcMiLkwL2MeasStopCfm(pst, measType,status)
-Pst *pst;
-U8 measType;
-U8 status;
-#endif
+S16 RlcMiLkwL2MeasStopCfm(Pst *pst,uint8_t measType,uint8_t status)
{
{
- TRC3(RlcMiLkwL2MeasStopCfm)
-
(*RlcMiLkwL2MeasStopCfmMt[pst->selector])(pst, measType,status);
return ROK;
(*RlcMiLkwL2MeasStopCfmMt[pst->selector])(pst, measType,status);
return ROK;