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
RLC UeCb Changes
[o-du/l2.git]
/
src
/
5gnrrlc
/
kw.h
diff --git
a/src/5gnrrlc/kw.h
b/src/5gnrrlc/kw.h
index
aa2755a
..
0dcf019
100755
(executable)
--- a/
src/5gnrrlc/kw.h
+++ b/
src/5gnrrlc/kw.h
@@
-102,7
+102,7
@@
******************************************************************************/
#ifdef MCCABE_COV
/* Allocate function */
******************************************************************************/
#ifdef MCCABE_COV
/* Allocate function */
-#define
KW
_ALLOC(_cb,_buf, _size) \
+#define
RLC
_ALLOC(_cb,_buf, _size) \
{ \
SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, \
(Size) _size); \
{ \
SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, \
(Size) _size); \
@@
-113,17
+113,17
@@
{ \
SPutMsg(_sdu->mBuf); \
cmLListDelFrm(_sduQ,&_sdu->lstEnt); \
{ \
SPutMsg(_sdu->mBuf); \
cmLListDelFrm(_sduQ,&_sdu->lstEnt); \
-
KW
_FREE_WC(_cb,_sdu, sizeof(KwSdu)); \
+
RLC
_FREE_WC(_cb,_sdu, sizeof(KwSdu)); \
}
}
-#define
KW
_FREE(_cb,_buf, _size) \
+#define
RLC
_FREE(_cb,_buf, _size) \
{ \
(Void) SPutSBuf(_cb->init.region, _cb->init.pool, \
(Data *) _buf, (Size) _size); \
_buf = NULLP; \
}
{ \
(Void) SPutSBuf(_cb->init.region, _cb->init.pool, \
(Data *) _buf, (Size) _size); \
_buf = NULLP; \
}
-#define
KW
_FREE_BUF(_buf) \
+#define
RLC
_FREE_BUF(_buf) \
{ \
SPutMsg(_buf); \
_buf = NULLP; \
{ \
SPutMsg(_buf); \
_buf = NULLP; \
@@
-131,7
+131,7
@@
#else
#else
-#define
KW
_FREE_SHRABL_BUF(_region, _pool,_buf, _size) \
+#define
RLC
_FREE_SHRABL_BUF(_region, _pool,_buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-141,20
+141,20
@@
} \
}
} \
}
-#define
KW
_FREE_SHRABL_BUF_WC(_region, _pool,_buf, _size) \
+#define
RLC
_FREE_SHRABL_BUF_WC(_region, _pool,_buf, _size) \
{ \
(Void) SPutStaticBuffer(_region, _pool, \
(Data *) _buf, (Size) _size, 0); \
_buf = NULLP; \
}
{ \
(Void) SPutStaticBuffer(_region, _pool, \
(Data *) _buf, (Size) _size, 0); \
_buf = NULLP; \
}
-#define
KW
_ALLOC_SHRABL_BUF_WC(_region, _pool,_buf, _size) \
+#define
RLC
_ALLOC_SHRABL_BUF_WC(_region, _pool,_buf, _size) \
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
}
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
}
-#define
KW
_ALLOC_SHRABL_BUF(_region, _pool,_buf, _size) \
+#define
RLC
_ALLOC_SHRABL_BUF(_region, _pool,_buf, _size) \
{ \
if (SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0) == ROK) \
{ \
if (SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0) == ROK) \
@@
-167,7
+167,7
@@
} \
}
/* Allocate function */
} \
}
/* Allocate function */
-#define
KW
_ALLOC(_cb,_buf, _size) \
+#define
RLC
_ALLOC(_cb,_buf, _size) \
{ \
if (SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, \
(Size) _size) == ROK) \
{ \
if (SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, \
(Size) _size) == ROK) \
@@
-180,7
+180,7
@@
} \
}
} \
}
-#define
KW
_ALLOC_WC(_cb,_buf, _size) \
+#define
RLC
_ALLOC_WC(_cb,_buf, _size) \
SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, (Size) _size)
#define KW_RMV_SDU(_cb,_sduQ,_sdu) \
SGetSBuf(_cb->init.region, _cb->init.pool, (Data **)&_buf, (Size) _size)
#define KW_RMV_SDU(_cb,_sduQ,_sdu) \
@@
-190,10
+190,10
@@
SPutMsg(_sdu->mBuf); \
} \
cmLListDelFrm(_sduQ,&_sdu->lstEnt); \
SPutMsg(_sdu->mBuf); \
} \
cmLListDelFrm(_sduQ,&_sdu->lstEnt); \
-
KW
_FREE(_cb,_sdu, sizeof(KwSdu)); \
+
RLC
_FREE(_cb,_sdu, sizeof(KwSdu)); \
}
}
-#define
KW
_FREE(_cb,_buf, _size) \
+#define
RLC
_FREE(_cb,_buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-203,7
+203,7
@@
} \
}
} \
}
-#define
KW
_FREE_BUF(_buf) \
+#define
RLC
_FREE_BUF(_buf) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-216,7
+216,7
@@
-#define
KW
_FREE_WC(_cb,_buf, _size) \
+#define
RLC
_FREE_WC(_cb,_buf, _size) \
{ \
(Void) SPutSBuf(_cb->init.region, _cb->init.pool, \
(Data *) _buf, (Size) _size); \
{ \
(Void) SPutSBuf(_cb->init.region, _cb->init.pool, \
(Data *) _buf, (Size) _size); \
@@
-224,7
+224,7
@@
}
/* kw002.201 Freeing from region of pst */
}
/* kw002.201 Freeing from region of pst */
-#define
KW
_PST_FREE(_region, _pool, _buf, _size) \
+#define
RLC
_PST_FREE(_region, _pool, _buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-236,7
+236,7
@@
#ifdef XEON_SPECIFIC_CHANGES
#ifdef SS_LOCKLESS_MEMORY
#ifdef XEON_SPECIFIC_CHANGES
#ifdef SS_LOCKLESS_MEMORY
-#define
KW
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-246,7
+246,7
@@
} \
}
} \
}
-#define
KW
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
@@
-254,7
+254,7
@@
#else
#else
-#define
KW
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-264,7
+264,7
@@
} \
}
} \
}
-#define
KW
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
{ \
SGetSBuf(_region, _pool, (Data **)&_buf, \
(Size) _size); \
{ \
SGetSBuf(_region, _pool, (Data **)&_buf, \
(Size) _size); \
@@
-273,7
+273,7
@@
#else
#else
-#define
KW
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_FREE(_region, _pool, _buf, _size) \
{ \
if (_buf != NULLP) \
{ \
{ \
if (_buf != NULLP) \
{ \
@@
-283,14
+283,14
@@
} \
}
} \
}
-#define
KW
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
+#define
RLC
_SHRABL_STATIC_BUF_ALLOC(_region, _pool, _buf, _size) \
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
}
#endif
{ \
SGetStaticBuffer(_region, _pool, (Data **)&_buf, \
(Size) _size, 0); \
}
#endif
-#define
KW
_FREE_BUF_WC(_buf) SPutMsg((_buf));
+#define
RLC
_FREE_BUF_WC(_buf) SPutMsg((_buf));
#define KW_MEM_CPY(_dst, _src, _size) cmMemcpy((U8*)_dst, (U8 *)_src, _size);
#define KW_MEM_CPY(_dst, _src, _size) cmMemcpy((U8*)_dst, (U8 *)_src, _size);
@@
-303,7
+303,7
@@
#define KW_GET_MEM_POOL_ADDRESS(_cb) (&_cb->init.pool)
/* Memset to value */
#define KW_GET_MEM_POOL_ADDRESS(_cb) (&_cb->init.pool)
/* Memset to value */
-#define
KW
_MEM_SET(_arg, _val, _size) cmMemset((U8 *)_arg, (U8)_val, _size);
+#define
RLC
_MEM_SET(_arg, _val, _size) cmMemset((U8 *)_arg, (U8)_val, _size);
/* Alarms */
/* Send an alarm for sapId events */
/* Alarms */
/* Send an alarm for sapId events */
@@
-373,14
+373,14
@@
#define KW_MIN(x,y) (x) < (y) ? (x) : (y)
/**
#define KW_MIN(x,y) (x) < (y) ? (x) : (y)
/**
- * @def
KW_GET_KW
CB
+ * @def
RLC_GET_RLC
CB
*
* Macro to the RLC instance
*
* @param[in] _inst Instance Id
*
*/
*
* Macro to the RLC instance
*
* @param[in] _inst Instance Id
*
*/
-#define
KW_GET_KWCB(_inst) kw
Cb[_inst]
+#define
RLC_GET_RLCCB(_inst) rlc
Cb[_inst]
#define KW_ADD_SDU 1 /*!< Add SDU. */
#define KW_DEL_SDU 2 /*!< Delete SDU. */
#define KW_ADD_SDU 1 /*!< Add SDU. */
#define KW_DEL_SDU 2 /*!< Delete SDU. */
@@
-389,15
+389,15
@@
#define KW_CFM_OK 1 /*!< Send DatCfm */
/* Set the unsolictated Status flag */
#define KW_CFM_OK 1 /*!< Send DatCfm */
/* Set the unsolictated Status flag */
-#define KW_SET_USTA_FLAG(_
kw
Cb, _value) \
+#define KW_SET_USTA_FLAG(_
rlc
Cb, _value) \
{ \
{ \
- _
kw
Cb->init.usta = _value; \
+ _
rlc
Cb->init.usta = _value; \
}
/* Macros to get the init parameters */
}
/* Macros to get the init parameters */
-#define KW_GET_DBG_MASK(_
kwCb) (_kw
Cb->init.dbgMask)
-#define KW_GET_LMPST_MEM_POOL(_
kwCb) (_kw
Cb->init.lmPst.pool)
-#define KW_GET_LMPST_MEM_REGION(_
kwCb) (_kw
Cb->init.lmPst.region)
+#define KW_GET_DBG_MASK(_
rlcCb) (_rlc
Cb->init.dbgMask)
+#define KW_GET_LMPST_MEM_POOL(_
rlcCb) (_rlc
Cb->init.lmPst.pool)
+#define KW_GET_LMPST_MEM_REGION(_
rlcCb) (_rlc
Cb->init.lmPst.region)
/* Macros for configuration module */
#define KW_CFG_FILL_CFG_CFM(_entCfm, _rbId, _rbType, _status, _reason) \
/* Macros for configuration module */
#define KW_CFG_FILL_CFG_CFM(_entCfm, _rbId, _rbType, _status, _reason) \
@@
-758,7
+758,7
@@
while (_seg) \
{ \
cmLListDelFrm(&_recBuf->segLst, &_seg->lstEnt); \
while (_seg) \
{ \
cmLListDelFrm(&_recBuf->segLst, &_seg->lstEnt); \
-
KW
_FREE(_seg, sizeof(KwSeg)); \
+
RLC
_FREE(_seg, sizeof(KwSeg)); \
KW_LLIST_NEXT_SEG(_recBuf->segLst, _seg); \
} \
}
KW_LLIST_NEXT_SEG(_recBuf->segLst, _seg); \
} \
}