Lines Matching refs:work
252 void WBT_InitContext(WBTContext *work, void *userdata, WBTEventCallback callback);
266 void WBT_StartParent(WBTContext *work, int own, int peer) in WBT_StartParent() argument
270 work->my_aid = 0; in WBT_StartParent()
271 work->my_data_packet_size = (s16)(own - WBT_PACKET_SIZE_MIN); in WBT_StartParent()
272 work->peer_data_packet_size = (s16)(peer - WBT_PACKET_SIZE_MIN); in WBT_StartParent()
286 void WBT_StartChild(WBTContext *work, int aid) in WBT_StartChild() argument
288 work->my_data_packet_size = 0; in WBT_StartChild()
289 work->peer_data_packet_size = 0; in WBT_StartChild()
290 work->my_aid = aid; in WBT_StartChild()
303 void WBT_ResetContext(WBTContext *work, WBTEventCallback callback);
316 int WBT_CallPacketSendHook(WBTContext *work, void *buffer, int length, BOOL is_parent);
330 void WBT_CallPacketRecvHook(WBTContext *work, int aid, const void *buffer, int length);
342 void *WBT_GetUserData(const WBTContext *work) in WBT_GetUserData() argument
344 return work->userdata; in WBT_GetUserData()
357 int WBT_GetAid(const WBTContext *work) in WBT_GetAid() argument
359 return work->my_aid; in WBT_GetAid()
372 int WBT_GetOwnPacketLength(const WBTContext *work) in WBT_GetOwnPacketLength() argument
374 return work->my_data_packet_size; in WBT_GetOwnPacketLength()
387 int WBT_GetPeerPacketLength(const WBTContext *work) in WBT_GetPeerPacketLength() argument
389 return work->peer_data_packet_size; in WBT_GetPeerPacketLength()
402 int WBT_GetParentPacketLength(const WBTContext *work) in WBT_GetParentPacketLength() argument
404 return (work->my_aid == 0) ? work->my_data_packet_size : work->peer_data_packet_size; in WBT_GetParentPacketLength()
416 int WBT_GetRegisteredCount(const WBTContext * work);
428 WBTCommandList *WBT_GetCurrentCommandList(const WBTContext *work) in WBT_GetCurrentCommandList() argument
430 return work->command; in WBT_GetCurrentCommandList()
443 WBTCommand *WBT_GetCurrentCommand(const WBTContext *work) in WBT_GetCurrentCommand() argument
445 WBTCommandList *list = work->command; in WBT_GetCurrentCommand()
459 int WBT_GetBitmapLength(const WBTContext *work, int length);
473 void WBT_AddCommandPool(WBTContext *work, WBTCommandList *list, int count) in WBT_AddCommandPool() argument
477 list->next = work->command_pool; in WBT_AddCommandPool()
478 work->command_pool = list++; in WBT_AddCommandPool()
492 WBTCommandList *WBT_AllocCommandList(WBTContext *work) in WBT_AllocCommandList() argument
494 WBTCommandList *list = work->command_pool; in WBT_AllocCommandList()
497 work->command_pool = list->next; in WBT_AllocCommandList()
515 BOOL WBT_SetPacketLength(WBTContext *work, int own, int peer);
528 void WBT_CreateCommandSYNC(WBTContext *work, WBTCommandList *list) in WBT_CreateCommandSYNC() argument
530 (void)work; in WBT_CreateCommandSYNC()
549 void WBT_CreateCommandINFO(WBTContext *work, WBTCommandList *list, in WBT_CreateCommandINFO() argument
559 arg->pkt_bmp_table.packet_bitmap[i] = work->binfo_bitmap[i]; in WBT_CreateCommandINFO()
583 void WBT_CreateCommandGET(WBTContext *work, WBTCommandList * list, in WBT_CreateCommandGET() argument
589 (void)work; in WBT_CreateCommandGET()
612 void WBT_CreateCommandMSG(WBTContext *work, WBTCommandList *list, in WBT_CreateCommandMSG() argument
616 (void)work; in WBT_CreateCommandMSG()
636 void WBT_PostCommand(WBTContext *work, WBTCommandList *list, u16 bitmap,
759 int WBT_CancelCommand(WBTContext * work, int bitmap);
775 void WBT_GetDownloadProgress(const WBTContext * work, u32 id, int aid, int *current, int *total);
798 void WBT_RegisterBlockInfo(WBTContext * work, WBTBlockInfoList *list, u32 id,
811 WBTBlockInfoList *WBT_UnregisterBlockInfo(WBTContext * work, u32 id);