Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 10 of 10) sorted by relevance

/TwlSDK-5.1.0/include/nitro/mi/
Dallocator.h65 void MI_InitAllocator(MIAllocator *allocator, void *userdata, in MI_InitAllocator() argument
69 allocator->userdata = userdata; in MI_InitAllocator()
70 allocator->Alloc = alloc; in MI_InitAllocator()
71 allocator->Free = free; in MI_InitAllocator()
86 void* MI_CallAlloc(MIAllocator *allocator, u32 length, u32 alignment) in MI_CallAlloc() argument
88 return allocator->Alloc(allocator->userdata, length, alignment); in MI_CallAlloc()
102 void MI_CallFree(MIAllocator *allocator, void *buffer) in MI_CallFree() argument
104 allocator->Free(allocator->userdata, buffer); in MI_CallFree()
/TwlSDK-5.1.0/build/demos/wireless_shared/wfs/include/
Dwfs.h102 WFSAllocator allocator, void *allocator_arg, int parent_packet,
122 WFSAllocator allocator, void *allocator_arg);
149 WFSStateCallback callback, WFSAllocator allocator, void *allocator_arg) in WFS_Init() argument
152 WFS_InitParent(port, callback, allocator, allocator_arg, parent_packet, NULL, TRUE); in WFS_Init()
154 WFS_InitChild(port, callback, allocator, allocator_arg); in WFS_Init()
/TwlSDK-5.1.0/build/demos/wireless_shared/wfs/src/
Dwfs_common.c55 MIAllocator allocator[1]; member
286 WFSAllocator allocator, void *allocator_arg, in WFSi_InitCommon() argument
301 static_work->user_alloc = allocator; in WFSi_InitCommon()
303 MI_InitAllocator(static_work->allocator, static_work, in WFSi_InitCommon()
306 static_work->context = MI_CallAlloc(static_work->allocator, worksize, 32); in WFSi_InitCommon()
498 WFSAllocator allocator, void *allocator_arg, int parent_packet, in WFS_InitParent() argument
502 WFSi_InitCommon(callback, allocator, allocator_arg, port, in WFS_InitParent()
508 WFS_InitServer(server, server, ParentWFSEvent, static_work->allocator, parent_packet); in WFS_InitParent()
532 void WFS_InitChild(int port, WFSStateCallback callback, WFSAllocator allocator, void *allocator_arg) in WFS_InitChild() argument
535 WFSi_InitCommon(callback, allocator, allocator_arg, port, in WFS_InitChild()
[all …]
/TwlSDK-5.1.0/build/libraries/wfs/common/src/
Dwfs_client.c65 MI_CallFree(context->allocator, context->recv_pkt_bmp_buf); in WFSi_ReallocBitmap()
66 context->recv_pkt_bmp_buf = (u32 *)MI_CallAlloc(context->allocator, in WFSi_ReallocBitmap()
120 context->table->buffer = (u8 *)MI_CallAlloc(context->allocator, (u32)length, 1); in WFSi_ReceiveTableSequence()
390 MIAllocator *allocator) in WFS_InitClient() argument
395 context->allocator = allocator; in WFS_InitClient()
428 MI_CallFree(context->allocator, context->recv_pkt_bmp_buf); in WFS_EndClient()
432 MI_CallFree(context->allocator, context->table->buffer); in WFS_EndClient()
Dwfs_server.c438 MIAllocator *allocator, int packet) in WFS_InitServer() argument
444 context->allocator = allocator; in WFS_InitServer()
482 MI_CallFree(context->allocator, context->thread_work); in WFS_EndServer()
488 MI_CallFree(context->allocator, context->table->buffer); in WFS_EndServer()
519 else if (WFS_LoadTable(context->table, context->allocator, device, fatbase, overlay)) in WFS_RegisterServerTable()
Dwfs_format.c35 BOOL WFS_LoadTable(WFSTableFormat *archive, MIAllocator *allocator, in WFS_LoadTable() argument
96 if (allocator) in WFS_LoadTable()
98 archive->buffer = MI_CallAlloc(allocator, archive->length, sizeof(u32)); in WFS_LoadTable()
Dwfs_thread.c216 WFSServerThread *thread = MI_CallAlloc(context->allocator, sizeof(WFSServerThread), 32); in WFS_ExecuteRomServerThread()
252 MI_CallFree(context->allocator, thread); in WFS_ExecuteRomServerThread()
/TwlSDK-5.1.0/include/nitro/wfs/
Dclient.h50 MIAllocator *allocator; member
95 MIAllocator *allocator);
Dserver.h79 MIAllocator *allocator; member
121 MIAllocator *allocator, int packet);
Dformat.h207 BOOL WFS_LoadTable(WFSTableFormat *table, MIAllocator *allocator,