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));
CmTqCp *rlcTqCp;
Size rguSapSize;
- TRC2(rlcLmmGenCfg)
-
if(cfg->maxUe > RLC_MAX_UE)
{
#if (ERRCLASS & ERRCLS_INT_PAR)
#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);
/* 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);
/* Timer Initialization */
gCb->rlcTqCp.tmrLen = RLC_TMR_LEN;
- cmMemset((U8*)gCb->rlcTq, NULLP, sizeof(CmTqType) * RLC_TMR_LEN);
+ memset(gCb->rlcTq, NULLP, sizeof(CmTqType) * RLC_TMR_LEN);
RLC_MEM_CPY(&(gCb->init.lmPst), &cfg->lmPst, sizeof(Pst));
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 */
- TRC2(rlcLmmSendCfm);
-
RLC_MEM_SET(&rPst, 0, sizeof(Pst));
/* reply post structure for confirmation */
break;
}
- RETVOID;
+ return;
}
Reason reason; /* failure reason */
RlcCb *tRlcCb=NULLP;
- TRC3(RlcMiRlcConfigReq);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Check if the instance is configured */
if (pst->dstInst >= MAX_RLC_INSTANCES)
Reason reason; /* failure reason */
RlcCb *tRlcCb=NULLP;
- TRC3(RlcMiLkwCntrlReq)
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Check if the instance is configured */
if (pst->dstInst >= MAX_RLC_INSTANCES)
Reason reason; /* Failure reason */
RlcCb *tRlcCb=NULLP;
- TRC3(RlcMiLkwStaReq);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Check if the instance is configured */
if (pst->dstInst >= MAX_RLC_INSTANCES)
Reason reason; /* Reason for failure */
RlcCb *tRlcCb=NULLP;
- TRC3(RlcMiLkwStsReq);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Check if the instance is configured */
if (pst->dstInst >= MAX_RLC_INSTANCES)
#endif
{
S16 ret = ROK;
- U16 cntr;
- U8 measType;
+ uint16_t cntr;
+ uint8_t measType;
RlcL2MeasCfmEvt measCfmEvt;
RlcCb *tRlcCb;
- TRC3(RlcMiLkwL2MeasReq);
-
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
/* Initialize measCfmEvt */
return RFAILED;
}
#endif
- cmMemcpy((Void*)measEvt, (Void*)measReqEvt, sizeof(RlcL2MeasReqEvt));
+ memcpy(measEvt, measReqEvt, sizeof(RlcL2MeasReqEvt));
/*Redirect the request to DL task */
/* NOTE:As of today, there are no cases where the Req will fail at DL
as long as it reached the DL, so we don't wait for a confirmation from
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;
- TRC3(RlcMiLkwL2MeasStopReq);
-
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
/* reset the counter values for the measurement that is stopped */
rlcUlUdxL2MeasStopReq(&(RLC_GET_UDX_SAP(tRlcCb)->pst),measType);
/*return ROK;*/
}
- /*cmMemset((U8*)&measCfmEvt, 0, sizeof(RlcL2MeasCfmEvt)); */
+ /*memset(&measCfmEvt, 0, sizeof(RlcL2MeasCfmEvt)); */
status = LCM_PRIM_OK;
RlcMiLkwL2MeasStopCfm(&tRlcCb->genCfg.lmPst, measType,status);
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;
- TRC3(RlcMiLkwL2MeasSendReq);
tRlcCb = RLC_GET_RLCCB(pst->dstInst);
#endif
{
RlcKwuSapCb *rlcKwuSapCb;
- TRC2(rlcLmmCfgKwuSap)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate the protocol parameters */
{
RlcCkwSapCb *ckwSap;
- TRC2(rlcLmmCfgCkwSap)
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate config parameters */
if ((cfg->sapId >= RLC_MAX_CKWSAPS) || (cfg->sapId < 0) )
RlcUdxDlSapCb *udxDlSap;
RlcUdxUlSapCb *udxUlSap;
- TRC2(rlcLmmCfgUdxSap);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate the protocol parameters */
if((cfg->sapId >= RLC_MAX_UDXSAPS) || (cfg->sapId < 0))
{
RlcRguSapCb *rguSap;
- TRC2(rlcLmmCfgRguSap);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate the protocol parameters */
if((cfg->sapId >= gCb->genCfg.maxRguSaps) || \
RlcMngmt *cntrl;
#endif
{
- S16 reason; /* reason for failure */
- U8 sAction; /* subaction field */
-
- TRC2(rlcLmmValidateGenCntrl);
+ S16 reason; /* reason for failure */
+ uint8_t sAction; /* subaction field */
reason = LCM_REASON_NOT_APPL;
sAction = cntrl->t.cntrl.subAction;
Size rlcSapSize;
Size rlcUdxSapSize;
- TRC2(rlcLmmCleanGblRsrcs)
-
if (gCb->init.cfgDone)
{
/* Deregister the timers */
gCb->init.usta = FALSE;
}
- RETVOID;
+ return;
}
/**
#endif
{
RlcRguSapCb *rguSap;
- U32 idx;
-
- TRC2(rlcLmmShutdown)
+ uint32_t idx;
if (gCb->genCfg.rlcMode == LKW_RLC_MODE_DL)
{
#endif /* DEBUGP */
S16 reason; /* reason for failure */
- TRC2(rlcLmmGenCntrl);
-
/* Validate control parameters */
reason = rlcLmmValidateGenCntrl (cntrl);
RlcMngmt *cntrl;
#endif
{
- TRC2(rlcLmmUdxSapCntrl)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (gCb->genCfg.rlcMode == LKW_RLC_MODE_DL)
{
RlcRguSapCb *rguSap; /* rgu sap pointer */
- TRC2(rlcLmmLSapCntrl)
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* validate SuId */
if((cntrl->t.cntrl.s.sapCntrl.suId < 0) ||
{
RlcKwuSapCb *rlcKwSapCb;
- TRC2(rlcLmmGetKwuSapSta);
-
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate the protocol parameters */
if ((sta->spId >= (S16)gCb->genCfg.maxKwuSaps)||
RlcRguSapSta *sta;
#endif
{
- TRC2(rlcLmmGetRguSapSta);
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate the protocol parameters */
RlcCkwCntSapSta *sta;
#endif
{
- TRC2(rlcLmmGetCkwCntSapSta);
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate config parameters */
Action action;
#endif
{
- TRC2(rlcLmmGetGenSts);
#if (ERRCLASS & ERRCLS_INT_PAR)
/* Validate protocol parameters */
Action action;
#endif
{
- TRC2(rlcLmmGetSapSts);
/* Validate protocol parameters */
if (action != LKW_ZEROSTS && action != LKW_NOZEROSTS)
#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 */
{
RlcMngmt usta; /* Rlc Management Structure */
- TRC2(rlcLmmSendAlarm);
-
if(gCb->init.usta == FALSE)
{
- RETVOID;
+ return;
}
usta.hdr.elmId.elmnt = STGEN;
RlcMiLkwStaInd(&(gCb->init.lmPst), &usta);
- RETVOID;
+ return;
}
MsgLen tempCnt;
Pst pst;
- TRC2(rlcLmmSendTrc)
-
RLOG2(L_DEBUG, "rlcLmmSendTrc(): Trace for event=%d, gCb->trcLen=%d",
event,
gCb->trcLen);
- cmMemset((U8 *)&trc, 0, sizeof(RlcMngmt));
+ memset(&trc, 0, sizeof(RlcMngmt));
pst = gCb->init.lmPst;
#endif
{
RlcCb *gCb;
- TRC2(rlcActvTmr)
if (inst >= MAX_RLC_INSTANCES)
{