*
*/
-#ifdef ANSI
S16 cmAllocEvnt
(
Size evntSize, /* Size of the Event structure */
Mem *sMem, /* Static memory region and pool */
Ptr *ptr /* Location to place allocated event ptr */
)
-#else
-S16 cmAllocEvnt (evntSize,maxBlkSize,sMem,ptr)
-Size evntSize; /* Size of the Event structure */
-Size maxBlkSize; /* Memory size requested */
-Mem *sMem; /* Static Memory region and pool */
-Ptr *ptr; /* Location to place allocated event ptr */
-#endif
{
Data *allocPtr; /* Allocated Memory Pointer */
#ifndef LTE_ENB_PAL
if( evntSize > maxBlkSize)
{
- printf("\nNot Allocating memory for Event\n");
+ DU_LOG("\nERROR --> Not Allocating memory for Event\n");
#ifdef ALIGN_64BIT
- printf("eventSize [%d] greater than maxBlkSize [%d]\n",
+ DU_LOG("\nERROR --> eventSize [%d] greater than maxBlkSize [%d]\n",
evntSize, maxBlkSize);
#else
- printf("eventSize [%ld] greater than maxBlkSize [%ld]\n",
+ DU_LOG("\nERROR --> eventSize [%ld] greater than maxBlkSize [%ld]\n",
evntSize, maxBlkSize);
#endif
return RFAILED;
*
*/
-#ifdef ANSI
Void cmInitMemCp
(
CmMemListCp *memCp, /* Memory control pointer */
Size maxBlkSize, /* Chunk Memory size */
Mem *sMem /* Static memory region and pool */
)
-#else
-Void cmInitMemCp (memCp,maxBlkSize,sMem)
-CmMemListCp *memCp; /* Memory control pointer */
-Size maxBlkSize; /* Memory size requested */
-Mem *sMem; /* Static Memory region and pool */
-#endif
{
-
/* Intialise Memory Control Point */
CM_INIT_MEMCP(memCp,maxBlkSize,sMem);
*
*/
-#ifdef ANSI
S16 cmGetMem
(
Ptr memPtr, /* Pointer to memCp */
Size size, /* Memory size requested */
Ptr *allocPtr /* location to place pointer */
)
-#else
-S16 cmGetMem (memPtr,size,allocPtr)
-Ptr memPtr; /* Pointer to memCp */
-Size size; /* Memory size requested */
-Ptr *allocPtr; /* location to place pointer */
-#endif
{
CmMemCb *cb; /* Pointer to Memory Control Block */
*
*/
-#ifdef ANSI
S16 cmAllocEvntNoInit
(
Size evntSize, /* Size of the Event structure */
Mem *sMem, /* Static memory region and pool */
Ptr *ptr /* Location to place allocated event ptr */
)
-#else
-S16 cmAllocEvntNoInit (evntSize,maxBlkSize,sMem,ptr)
-Size evntSize; /* Size of the Event structure */
-Size maxBlkSize; /* Memory size requested */
-Mem *sMem; /* Static Memory region and pool */
-Ptr *ptr; /* Location to place allocated event ptr */
-#endif
{
Data *allocPtr; /* Allocated Memory Pointer */
*
*/
-#ifdef ANSI
S16 cmGetMemNoInit
(
Ptr memPtr, /* Pointer to memCp */
Size size, /* Memory size requested */
Ptr *allocPtr /* location to place pointer */
)
-#else
-S16 cmGetMemNoInit (memPtr,size,allocPtr)
-Ptr memPtr; /* Pointer to memCp */
-Size size; /* Memory size requested */
-Ptr *allocPtr; /* location to place pointer */
-#endif
{
CmMemCb *cb; /* Pointer to Memory Control Block */
*
*/
-#ifdef ANSI
Void cmFreeMem
(
Ptr memPtr /* Link List CP */
)
-#else
-Void cmFreeMem (memPtr)
-Ptr memPtr; /* Link List CP */
-#endif
{
Mem sMem; /* Static Memory region and pool */
S32 count; /* Count of linked blocks */
* File: cm_mblk.c
*
*/
-#ifdef ANSI
static Void cmAddMemNode
(
CmMemListCp *lCp, /* list control point */
CmMemList *node /* node to be added */
)
-#else
-static Void cmAddMemNode (lCp, node)
-CmMemListCp *lCp; /* list control point */
-CmMemList *node; /* node to be added */
-#endif
{
lCp->count++;
*
*/
-#ifdef ANSI
Void cmGetMemStatus
(
Ptr memPtr, /* Memory control pointer */
CmMemStatus *status /* memory region,pool and status */
)
-#else
-Void cmGetMemStatus (memPtr,status)
-Ptr memPtr; /* Memory control pointer */
-CmMemStatus *status; /* memory region,pool and status */
-#endif
{
CmMemListCp *memCp; /* Memory Link List */