2 #include "wilc_memory.h"
9 void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
10 char *pcFileName, u32 u32LineNo)
13 return kmalloc(u32Size, GFP_ATOMIC);
24 void *WILC_MemoryCalloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
25 char *pcFileName, u32 u32LineNo)
27 return kcalloc(u32Size, 1, GFP_KERNEL);
35 void *WILC_MemoryRealloc(void *pvOldBlock, u32 u32NewSize,
36 tstrWILC_MemoryAttrs *strAttrs, char *pcFileName, u32 u32LineNo)
38 if (u32NewSize == 0) {
41 } else if (pvOldBlock == NULL) {
42 return kmalloc(u32NewSize, GFP_KERNEL);
44 return krealloc(pvOldBlock, u32NewSize, GFP_KERNEL);
54 void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,
55 char *pcFileName, u32 u32LineNo)