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
U8, U16, U32 data type changes
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw_lmm.c
diff --git
a/src/5gnrrlc/kw_lmm.c
b/src/5gnrrlc/kw_lmm.c
index
615d6c6
..
7011841
100755
(executable)
--- a/
src/5gnrrlc/kw_lmm.c
+++ b/
src/5gnrrlc/kw_lmm.c
@@
-81,7
+81,7
@@
RLCStats gRlcStats;
RlcCb *rlcCb[MAX_RLC_INSTANCES];
EXTERN S16 rlcActvTmr ARGS ((Ent ent, Inst inst));
RlcCb *rlcCb[MAX_RLC_INSTANCES];
EXTERN S16 rlcActvTmr ARGS ((Ent ent, Inst inst));
-PRIVATE Void rlcLmmSendCfm ARGS ((RlcCb *gCb,Pst *pst,RlcMngmt *cfm,
U8
type,
+PRIVATE Void rlcLmmSendCfm ARGS ((RlcCb *gCb,Pst *pst,RlcMngmt *cfm,
uint8_t
type,
Header *hdr));
PRIVATE S16 rlcLmmGenCfg ARGS ((RlcCb *gCb, RlcGenCfg *cfg));
PRIVATE S16 rlcLmmCfgKwuSap ARGS ((RlcCb *gCb,RlcSapCfg *cfg));
Header *hdr));
PRIVATE S16 rlcLmmGenCfg ARGS ((RlcCb *gCb, RlcGenCfg *cfg));
PRIVATE S16 rlcLmmCfgKwuSap ARGS ((RlcCb *gCb,RlcSapCfg *cfg));
@@
-260,7
+260,7
@@
RlcGenCfg *cfg;
#if 0
/* Register the timer */
/*Pradeep: changing the SRegTmrMt() to SRegTmr()*/
#if 0
/* Register the timer */
/*Pradeep: changing the SRegTmrMt() to SRegTmr()*/
- if(SRegTmrMt(gCb->init.ent, gCb->init.inst, (
U16
)cfg->timeRes,
+ if(SRegTmrMt(gCb->init.ent, gCb->init.inst, (
uint16_t
)cfg->timeRes,
rlcActvTmr) != ROK)
{
RLC_FREE(gCb,gCb->u.dlCb->udxDlSap, rlcUdxSapSize);
rlcActvTmr) != ROK)
{
RLC_FREE(gCb,gCb->u.dlCb->udxDlSap, rlcUdxSapSize);
@@
-362,7
+362,7
@@
RlcGenCfg *cfg;
/* Register the timer */
#if 0
/* Register the timer */
#if 0
- if(SRegTmrMt(gCb->init.ent, gCb->init.inst, (
U16
)cfg->timeRes,
+ if(SRegTmrMt(gCb->init.ent, gCb->init.inst, (
uint16_t
)cfg->timeRes,
rlcActvTmr) != ROK)
{
RLC_FREE(gCb,gCb->u.ulCb->udxUlSap, rlcUdxSapSize);
rlcActvTmr) != ROK)
{
RLC_FREE(gCb,gCb->u.ulCb->udxUlSap, rlcUdxSapSize);
@@
-426,18
+426,18
@@
RlcGenCfg *cfg;
PRIVATE Void rlcLmmSendCfm
(
RlcCb *gCb,
PRIVATE Void rlcLmmSendCfm
(
RlcCb *gCb,
-Pst *pst,
+Pst
*pst,
RlcMngmt *cfm,
RlcMngmt *cfm,
-
U8
type,
-Header *hdr
+
uint8_t
type,
+Header
*hdr
)
#else
PRIVATE Void rlcLmmSendCfm(gCb,pst, cfm, type, hdr)
RlcCb gCb;
)
#else
PRIVATE Void rlcLmmSendCfm(gCb,pst, cfm, type, hdr)
RlcCb gCb;
-Pst *pst;
+Pst
*pst;
RlcMngmt *cfm;
RlcMngmt *cfm;
-
U8
type;
-Header *hdr;
+
uint8_t
type;
+Header
*hdr;
#endif
{
Pst rPst; /* Reply post structure */
#endif
{
Pst rPst; /* Reply post structure */
@@
-501,7
+501,7
@@
Header *hdr;
break;
}
break;
}
-
RETVOID
;
+
return
;
}
}
@@
-1082,8
+1082,8
@@
RlcL2MeasReqEvt *measReqEvt;
#endif
{
S16 ret = ROK;
#endif
{
S16 ret = ROK;
-
U16
cntr;
-
U8
measType;
+
uint16_t
cntr;
+
uint8_t
measType;
RlcL2MeasCfmEvt measCfmEvt;
RlcCb *tRlcCb;
RlcL2MeasCfmEvt measCfmEvt;
RlcCb *tRlcCb;
@@
-1200,19
+1200,19
@@
After receving this request, RLC stops L2 Measurement
S16 RlcMiLkwL2MeasStopReq
(
Pst *pst,
S16 RlcMiLkwL2MeasStopReq
(
Pst *pst,
-
U8
measType
+
uint8_t
measType
)
#else
S16 RlcMiLkwL2MeasStopReq (pst, measType)
Pst *pst;
)
#else
S16 RlcMiLkwL2MeasStopReq (pst, measType)
Pst *pst;
-
U8
measType;
+
uint8_t
measType;
#endif
{
S16 ret = ROK;
RlcL2MeasEvtCb *measEvtCb = NULLP;
#endif
{
S16 ret = ROK;
RlcL2MeasEvtCb *measEvtCb = NULLP;
-
U16
cntr;
-
U8
status = ROK;
+
uint16_t
cntr;
+
uint8_t
status = ROK;
RlcCb *tRlcCb;
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
RlcCb *tRlcCb;
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
@@
-1266,17
+1266,17
@@
After receving this request, RLC sends L2 Measurement
S16 RlcMiLkwL2MeasSendReq
(
Pst *pst,
S16 RlcMiLkwL2MeasSendReq
(
Pst *pst,
-
U8
measType
+
uint8_t
measType
)
#else
S16 RlcMiLkwL2MeasSendReq (pst, measType)
Pst *pst;
)
#else
S16 RlcMiLkwL2MeasSendReq (pst, measType)
Pst *pst;
-
U8
measType;
+
uint8_t
measType;
#endif
{
/*S16 ret = ROK;*/
RlcL2MeasEvtCb *measEvtCb = NULLP;
#endif
{
/*S16 ret = ROK;*/
RlcL2MeasEvtCb *measEvtCb = NULLP;
-
U16
cntr;
+
uint16_t
cntr;
RlcCb *tRlcCb;
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
RlcCb *tRlcCb;
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
@@
-1579,8
+1579,8
@@
PRIVATE S16 rlcLmmValidateGenCntrl(cntrl)
RlcMngmt *cntrl;
#endif
{
RlcMngmt *cntrl;
#endif
{
- S16 reason; /* reason for failure */
-
U8
sAction; /* subaction field */
+ S16
reason; /* reason for failure */
+
uint8_t
sAction; /* subaction field */
reason = LCM_REASON_NOT_APPL;
sAction = cntrl->t.cntrl.subAction;
reason = LCM_REASON_NOT_APPL;
sAction = cntrl->t.cntrl.subAction;
@@
-1703,7
+1703,7
@@
RlcCb *gCb;
gCb->init.usta = FALSE;
}
gCb->init.usta = FALSE;
}
-
RETVOID
;
+
return
;
}
/**
}
/**
@@
-1732,7
+1732,7
@@
RlcCb *gCb;
#endif
{
RlcRguSapCb *rguSap;
#endif
{
RlcRguSapCb *rguSap;
-
U32
idx;
+
uint32_t
idx;
if (gCb->genCfg.rlcMode == LKW_RLC_MODE_DL)
{
if (gCb->genCfg.rlcMode == LKW_RLC_MODE_DL)
{
@@
-2310,43
+2310,43
@@
Action action;
#ifdef ANSI
Void rlcLmmSendAlarm
(
#ifdef ANSI
Void rlcLmmSendAlarm
(
-RlcCb *gCb,
-
U16
category,
-
U16
event,
-
U16
cause,
-SuId suId,
-
U32
ueId,
-
U8
qci
+RlcCb
*gCb,
+
uint16_t
category,
+
uint16_t
event,
+
uint16_t
cause,
+SuId
suId,
+
uint32_t
ueId,
+
uint8_t
qci
)
#else
Void rlcLmmSendAlarm(category, event, cause, suId, ueId, qci)
RlcCb *gCb;
)
#else
Void rlcLmmSendAlarm(category, event, cause, suId, ueId, qci)
RlcCb *gCb;
-
U16
category;
-
U16
event;
-
U16
cause;
-SuId suId;
-
U32
ueId;
-
U8
qci;
+
uint16_t
category;
+
uint16_t
event;
+
uint16_t
cause;
+SuId
suId;
+
uint32_t
ueId;
+
uint8_t
qci;
#endif
#else /* LTE_L2_MEAS */
#ifdef ANSI
Void rlcLmmSendAlarm
(
#endif
#else /* LTE_L2_MEAS */
#ifdef ANSI
Void rlcLmmSendAlarm
(
-RlcCb *gCb,
-
U16
category,
-
U16
event,
-
U16
cause,
-SuId suId,
-
U32
ueId
+RlcCb
*gCb,
+
uint16_t
category,
+
uint16_t
event,
+
uint16_t
cause,
+SuId
suId,
+
uint32_t
ueId
)
#else
Void rlcLmmSendAlarm(category, event, cause, suId, ueId)
)
#else
Void rlcLmmSendAlarm(category, event, cause, suId, ueId)
-RlcCb *gCb;
-
U16
category;
-
U16
event;
-
U16
cause;
-SuId suId;
-
U32
ueId;
+RlcCb
*gCb;
+
uint16_t
category;
+
uint16_t
event;
+
uint16_t
cause;
+SuId
suId;
+
uint32_t
ueId;
#endif
#endif /* LTE_L2_MEAS */
{
#endif
#endif /* LTE_L2_MEAS */
{
@@
-2354,7
+2354,7
@@
U32 ueId;
if(gCb->init.usta == FALSE)
{
if(gCb->init.usta == FALSE)
{
-
RETVOID
;
+
return
;
}
usta.hdr.elmId.elmnt = STGEN;
}
usta.hdr.elmId.elmnt = STGEN;
@@
-2381,7
+2381,7
@@
U32 ueId;
RlcMiLkwStaInd(&(gCb->init.lmPst), &usta);
RlcMiLkwStaInd(&(gCb->init.lmPst), &usta);
-
RETVOID
;
+
return
;
}
}