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
<JIRA ID: ODUHIGH-332 : Change in TBS calculation part as per TS 38.214 section 5...
[o-du/l2.git]
/
src
/
cm
/
kwu.c
diff --git
a/src/cm/kwu.c
b/src/cm/kwu.c
index
81e3176
..
1784166
100755
(executable)
--- a/
src/cm/kwu.c
+++ b/
src/cm/kwu.c
@@
-136,7
+136,7
@@
S16 cmPkKwuUbndReq(Pst * pst,SuId suId,Reason reason)
return (SPstTsk(pst,mBuf));
} /* cmPkKwuUbndReq */
return (SPstTsk(pst,mBuf));
} /* cmPkKwuUbndReq */
-uint8_t cmPk
KwuDatReqInfo(Kwu
DatReqInfo *param,Buffer *mBuf)
+uint8_t cmPk
RlcDatReqInfo(Rlc
DatReqInfo *param,Buffer *mBuf)
{
#ifdef CCPU_OPT
switch(param->lcType) {
{
#ifdef CCPU_OPT
switch(param->lcType) {
@@
-163,10
+163,10
@@
uint8_t cmPkKwuDatReqInfo(KwuDatReqInfo *param,Buffer *mBuf)
CMCHKPK(oduUnpackUInt32, param->sduId, mBuf);
CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
return ROK;
CMCHKPK(oduUnpackUInt32, param->sduId, mBuf);
CMCHKPK(cmPkLteRlcId, ¶m->rlcId, mBuf);
return ROK;
-} /* cmPk
Kwu
DatReqInfo */
+} /* cmPk
Rlc
DatReqInfo */
\f
\f
-uint8_t cmPk
KwuDatReq(Pst * pst,Kwu
DatReqInfo* datReq,Buffer * mBuf)
+uint8_t cmPk
RlcDatReq(Pst * pst,Rlc
DatReqInfo* datReq,Buffer * mBuf)
{
#ifdef LCKWU
#if (ERRCLASS & ERRCLS_ADD_RES)
{
#ifdef LCKWU
#if (ERRCLASS & ERRCLS_ADD_RES)
@@
-174,7
+174,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
#endif /* LCKWU */
S16 ret1 = ROK;
#ifndef SS_RBUF
#endif /* LCKWU */
S16 ret1 = ROK;
#ifndef SS_RBUF
-
Kwu
DatReqInfo* datReqInfo;
+
Rlc
DatReqInfo* datReqInfo;
#endif
#ifndef SS_RBUF
switch(pst->selector)
#endif
#ifndef SS_RBUF
switch(pst->selector)
@@
-188,7
+188,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
* subsequent free would be done during the Unpack function of the
* primitive. */
if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datReqInfo,
* subsequent free would be done during the Unpack function of the
* primitive. */
if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datReqInfo,
- sizeof(
Kwu
DatReqInfo),SS_SHARABLE_MEMORY)) != ROK)
+ sizeof(
Rlc
DatReqInfo),SS_SHARABLE_MEMORY)) != ROK)
{
#if (ERRCLASS & ERRCLS_ADD_RES)
if(ret1 != ROK)
{
#if (ERRCLASS & ERRCLS_ADD_RES)
if(ret1 != ROK)
@@
-200,7
+200,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
#endif /* ERRCLASS & ERRCLS_ADD_RES */
return (ret1);
}
- memcpy(datReqInfo,datReq,sizeof(
Kwu
DatReqInfo));
+ memcpy(datReqInfo,datReq,sizeof(
Rlc
DatReqInfo));
CMCHKPK(oduPackPointer,(PTR)datReqInfo, mBuf);
}
else
CMCHKPK(oduPackPointer,(PTR)datReqInfo, mBuf);
}
else
@@
-212,7
+212,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
case ODU_SELECTOR_LC:
{
#if (ERRCLASS & ERRCLS_ADD_RES)
case ODU_SELECTOR_LC:
{
#if (ERRCLASS & ERRCLS_ADD_RES)
- ret1 = cmPk
Kwu
DatReqInfo( (datReq), mBuf);
+ ret1 = cmPk
Rlc
DatReqInfo( (datReq), mBuf);
if(ret1 != ROK)
{
SPutMsg(mBuf);
if(ret1 != ROK)
{
SPutMsg(mBuf);
@@
-222,12
+222,12
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
return ( ret1 );
}
#else
return ( ret1 );
}
#else
- cmPk
Kwu
DatReqInfo( (datReq), mBuf);
+ cmPk
Rlc
DatReqInfo( (datReq), mBuf);
#endif /* ERRCLASS & ERRCLS_ADD_RES */
if(pst->srcEnt == ENTNH)
{
if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
#endif /* ERRCLASS & ERRCLS_ADD_RES */
if(pst->srcEnt == ENTNH)
{
if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
- sizeof(
Kwu
DatReqInfo),SS_SHARABLE_MEMORY) != ROK)
+ sizeof(
Rlc
DatReqInfo),SS_SHARABLE_MEMORY) != ROK)
{
SPutMsg(mBuf);
return RFAILED;
{
SPutMsg(mBuf);
return RFAILED;
@@
-290,7
+290,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
#ifdef LCKWU
case ODU_SELECTOR_LC:
{
#ifdef LCKWU
case ODU_SELECTOR_LC:
{
- ret1 = cmPk
Kwu
DatReqInfo( (datReq), mBuf);
+ ret1 = cmPk
Rlc
DatReqInfo( (datReq), mBuf);
#if (ERRCLASS & ERRCLS_ADD_RES)
if(ret1 != ROK)
{
#if (ERRCLASS & ERRCLS_ADD_RES)
if(ret1 != ROK)
{
@@
-317,7
+317,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
if(pst->selector == ODU_SELECTOR_LC)
{
if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
if(pst->selector == ODU_SELECTOR_LC)
{
if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
- sizeof(
Kwu
DatReqInfo),SS_SHARABLE_MEMORY) != ROK)
+ sizeof(
Rlc
DatReqInfo),SS_SHARABLE_MEMORY) != ROK)
{
SPutMsg(mBuf);
return RFAILED;
{
SPutMsg(mBuf);
return RFAILED;
@@
-326,7
+326,7
@@
uint8_t cmPkKwuDatReq(Pst * pst,KwuDatReqInfo* datReq,Buffer * mBuf)
}
return (ret1);
#endif
}
return (ret1);
#endif
-} /* cmPk
Kwu
DatReq */
+} /* cmPk
Rlc
DatReq */
\f
uint8_t cmPkKwuDatIndInfo(KwuDatIndInfo *param,Buffer *mBuf)
\f
uint8_t cmPkKwuDatIndInfo(KwuDatIndInfo *param,Buffer *mBuf)
@@
-900,7
+900,7
@@
S16 cmUnpkKwuUbndReq(KwuUbndReq func,Pst *pst,Buffer *mBuf)
} /* cmUnpkKwuUbndReq */
\f
} /* cmUnpkKwuUbndReq */
\f
-S16 cmUnpk
KwuDatReqInfo(Kwu
DatReqInfo *param,Buffer *mBuf)
+S16 cmUnpk
RlcDatReqInfo(Rlc
DatReqInfo *param,Buffer *mBuf)
{
{
@@
-939,8
+939,8
@@
S16 cmUnpkKwuDatReq(KwuDatReq func,Pst *pst,Buffer *mBuf)
S16 ret1 = ROK;
#endif
S16 retVal;
S16 ret1 = ROK;
#endif
S16 retVal;
-
Kwu
DatReqInfo *datReq = NULLP;
-
Kwu
DatReqInfo datReqTmp;
+
Rlc
DatReqInfo *datReq = NULLP;
+
Rlc
DatReqInfo datReqTmp;
switch(pst->selector)
switch(pst->selector)
@@
-955,9
+955,9
@@
S16 cmUnpkKwuDatReq(KwuDatReq func,Pst *pst,Buffer *mBuf)
/* Allocate the memory statically as there is no free
* in RLC */
datReq = &datReqTmp;
/* Allocate the memory statically as there is no free
* in RLC */
datReq = &datReqTmp;
- memset(datReq, 0, sizeof(
Kwu
DatReqInfo));
+ memset(datReq, 0, sizeof(
Rlc
DatReqInfo));
#if(ERRCLASS & ERRCLS_DEBUG)
#if(ERRCLASS & ERRCLS_DEBUG)
- ret1 = cmUnpk
Kwu
DatReqInfo( (datReq), mBuf);
+ ret1 = cmUnpk
Rlc
DatReqInfo( (datReq), mBuf);
if(ret1 != ROK)
{
SPutMsg(mBuf);
if(ret1 != ROK)
{
SPutMsg(mBuf);
@@
-967,7
+967,7
@@
S16 cmUnpkKwuDatReq(KwuDatReq func,Pst *pst,Buffer *mBuf)
return ( ret1 );
}
#else
return ( ret1 );
}
#else
- cmUnpk
Kwu
DatReqInfo( (datReq), mBuf);
+ cmUnpk
Rlc
DatReqInfo( (datReq), mBuf);
#endif /* ERRCLASS & ERRCLS_DEBUG */
}
break;
#endif /* ERRCLASS & ERRCLS_DEBUG */
}
break;
@@
-987,7
+987,7
@@
S16 cmUnpkKwuDatReq(KwuDatReq func,Pst *pst,Buffer *mBuf)
if(pst->selector == ODU_SELECTOR_LWLC)
{
retVal = SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
if(pst->selector == ODU_SELECTOR_LWLC)
{
retVal = SPutStaticBuffer(pst->region, pst->pool, (Data *)datReq,
- sizeof(
Kwu
DatReqInfo),SS_SHARABLE_MEMORY);
+ sizeof(
Rlc
DatReqInfo),SS_SHARABLE_MEMORY);
}
return (retVal);
} /* cmUnpkKwuDatReq */
}
return (retVal);
} /* cmUnpkKwuDatReq */