CmMemListCp *memCp; /* memory Link list control point */
CmMemCb *cb; /* Allocated Memory Control Block */
- TRC2(cmAllocEvnt)
/* Validation check */
#ifndef LTE_ENB_PAL
return RFAILED;
/* Reset the contents */
- cmMemset((U8 *)allocPtr, (U8 )0,
- (PTR)(maxBlkSize + sizeof(CmMemList)) );
+ memset(allocPtr, 0,
+ (maxBlkSize + sizeof(CmMemList)) );
/* The above allocated memory chunk is structured as follows
#endif
{
- TRC2(cmInitMemCp)
/* Intialise Memory Control Point */
CM_INIT_MEMCP(memCp,maxBlkSize,sMem);
/* cm_mblk_c_001.101: added local variable */
Size blkSize; /* required block size */
- TRC2(cmGetMem)
memCp = (CmMemListCp *)memPtr;
cb = &memCp->memCb;
/* Reset the contents */
/* Initialise above allocated structure */
/* cm_mblk_c_001.101: use blkSize instead of cb->maxSize */
- cmMemset((U8 *)cb->initPtr, (U8 )0,
- (PTR)(blkSize + sizeof(CmMemList) ));
+ memset(&(cb->initPtr), 0,
+ (blkSize + sizeof(CmMemList) ));
/* The above allocated memory chunk is structured as follows
CmMemListCp *memCp; /* memory Link list control point */
CmMemCb *cb; /* Allocated Memory Control Block */
- TRC2(cmAllocEvntNoInit)
/* Validation check */
if( evntSize > maxBlkSize)
return RFAILED;
/* Reset the contents */
- cmMemset((U8 *)allocPtr, (U8 )0,
- (PTR)(sizeof(CmMemList)) );
+ memset(allocPtr, 0,
+ (sizeof(CmMemList)) );
/* The above allocated memory chunk is structured as follows
/* cm_mblk_c_001.101: added local variable */
Size blkSize; /* required block size */
- TRC2(cmGetMemNoInit)
memCp = (CmMemListCp *)memPtr;
cb = &memCp->memCb;
{
/* Requested memory is available in present chunk */
*allocPtr = (Ptr) cb->runPtr;
- //cmMemset((U8 *)*allocPtr, (U8 )0,
+ //memset(*allocPtr, (U8 )0,
// (PTR)(size) );
cb->memAllocated += size;
cb->runPtr += size;
/* Reset the contents */
/* Initialise above allocated structure */
/* cm_mblk_c_001.101: use blkSize instead of cb->maxSize */
- cmMemset((U8 *)cb->initPtr, (U8 )0,
- (PTR)(sizeof(CmMemList)));
+ memset(&(cb->initPtr), 0,
+ (sizeof(CmMemList)));
/* The above allocated memory chunk is structured as follows
+-------------------+
CmMemList *prevNode; /* Pointer to previous node */
CmMemListCp *lcp; /* Memory Link List */
- TRC2(cmFreeMem)
lcp = (CmMemListCp *)memPtr;
CmMemList *node; /* node to be added */
#endif
{
- TRC3(cmAddMemNode);
lCp->count++;
CmMemListCp *memCp; /* Memory Link List */
- TRC3(cmGetMemStatus)
memCp = (CmMemListCp *)memPtr;