X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2F5gnrrlc%2Fkw_lmm.c;h=70118414e6e7c5405160bcd95f822ab540f8c7ad;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=615d6c605a124077aa8d5adf3e4f648ed626cf56;hpb=694adde1a08c393a8443fd5bbd4f036f5cf85403;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/kw_lmm.c b/src/5gnrrlc/kw_lmm.c index 615d6c605..70118414e 100755 --- 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)); -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)); @@ -260,7 +260,7 @@ RlcGenCfg *cfg; #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); @@ -362,7 +362,7 @@ RlcGenCfg *cfg; /* 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); @@ -426,18 +426,18 @@ RlcGenCfg *cfg; PRIVATE Void rlcLmmSendCfm ( RlcCb *gCb, -Pst *pst, +Pst *pst, RlcMngmt *cfm, -U8 type, -Header *hdr +uint8_t type, +Header *hdr ) #else PRIVATE Void rlcLmmSendCfm(gCb,pst, cfm, type, hdr) RlcCb gCb; -Pst *pst; +Pst *pst; RlcMngmt *cfm; -U8 type; -Header *hdr; +uint8_t type; +Header *hdr; #endif { Pst rPst; /* Reply post structure */ @@ -501,7 +501,7 @@ Header *hdr; break; } - RETVOID; + return; } @@ -1082,8 +1082,8 @@ RlcL2MeasReqEvt *measReqEvt; #endif { S16 ret = ROK; - U16 cntr; - U8 measType; + uint16_t cntr; + uint8_t measType; RlcL2MeasCfmEvt measCfmEvt; RlcCb *tRlcCb; @@ -1200,19 +1200,19 @@ After receving this request, RLC stops L2 Measurement S16 RlcMiLkwL2MeasStopReq ( Pst *pst, -U8 measType +uint8_t measType ) #else S16 RlcMiLkwL2MeasStopReq (pst, measType) Pst *pst; -U8 measType; +uint8_t measType; #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); @@ -1266,17 +1266,17 @@ After receving this request, RLC sends L2 Measurement S16 RlcMiLkwL2MeasSendReq ( Pst *pst, -U8 measType +uint8_t measType ) #else S16 RlcMiLkwL2MeasSendReq (pst, measType) Pst *pst; -U8 measType; +uint8_t measType; #endif { /*S16 ret = ROK;*/ RlcL2MeasEvtCb *measEvtCb = NULLP; - U16 cntr; + uint16_t cntr; RlcCb *tRlcCb; tRlcCb = RLC_GET_RLCCB(pst->dstInst); @@ -1579,8 +1579,8 @@ PRIVATE S16 rlcLmmValidateGenCntrl(cntrl) 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; @@ -1703,7 +1703,7 @@ RlcCb *gCb; gCb->init.usta = FALSE; } - RETVOID; + return; } /** @@ -1732,7 +1732,7 @@ RlcCb *gCb; #endif { RlcRguSapCb *rguSap; - U32 idx; + uint32_t idx; if (gCb->genCfg.rlcMode == LKW_RLC_MODE_DL) { @@ -2310,43 +2310,43 @@ Action action; #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; -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 ( -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) -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 */ { @@ -2354,7 +2354,7 @@ U32 ueId; if(gCb->init.usta == FALSE) { - RETVOID; + return; } usta.hdr.elmId.elmnt = STGEN; @@ -2381,7 +2381,7 @@ U32 ueId; RlcMiLkwStaInd(&(gCb->init.lmPst), &usta); - RETVOID; + return; }