Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 9 of 9) sorted by relevance

/TwlSDK-5.1.0/build/libraries/wfs/common/src/
Dwfs_server.c103 const int packet = (int)((msg->packet_hi << 8) | msg->packet_lo); in WFSi_WBTCallback() local
106 offset, length, aid, packet)); in WFSi_WBTCallback()
109 (packet != WBT_GetParentPacketLength(work->wbt) + WBT_PACKET_SIZE_MIN)) in WFSi_WBTCallback()
287 void WFS_CallServerPacketSendHook(WFSServerContext *context, WFSPacketBuffer *packet) in WFS_CallServerPacketSendHook() argument
396 packet->length = WBT_CallPacketSendHook(context->wbt, packet->buffer, packet->length, TRUE); in WFS_CallServerPacketSendHook()
409 void WFS_CallServerPacketRecvHook(WFSServerContext *context, const WFSPacketBuffer *packet) in WFS_CallServerPacketRecvHook() argument
411 int aid = (int)MATH_CTZ((u32)packet->bitmap); in WFS_CallServerPacketRecvHook()
412 const void *buffer = packet->buffer; in WFS_CallServerPacketRecvHook()
413 int length = packet->length; in WFS_CallServerPacketRecvHook()
438 MIAllocator *allocator, int packet) in WFS_InitServer() argument
[all …]
Dwfs_client.c62 const int packet = WBT_GetParentPacketLength(context->wbt); in WFSi_ReallocBitmap() local
63 const u32 newsize = WBT_PACKET_BITMAP_SIZE((u32)length, packet); in WFSi_ReallocBitmap()
354 void WFS_CallClientPacketSendHook(WFSClientContext *context, WFSPacketBuffer *packet) in WFS_CallClientPacketSendHook() argument
356 packet->length = WBT_CallPacketSendHook(context->wbt, packet->buffer, packet->length, FALSE); in WFS_CallClientPacketSendHook()
369 void WFS_CallClientPacketRecvHook(WFSClientContext *context, const WFSPacketBuffer *packet) in WFS_CallClientPacketRecvHook() argument
371 int aid = (int)MATH_CTZ((u32)packet->bitmap); in WFS_CallClientPacketRecvHook()
372 WBT_CallPacketRecvHook(context->wbt, aid, packet->buffer, packet->length); in WFS_CallClientPacketRecvHook()
/TwlSDK-5.1.0/build/demos/wireless_shared/wfs/src/
Dwfs_common.c162 WFSPacketBuffer packet[1]; in WFSi_NotifySend() local
163 packet->buffer = work->packet_buf; in WFSi_NotifySend()
164 packet->bitmap = (work->status_buf->aid == 0) ? 0xFFFE : 0x0001; in WFSi_NotifySend()
165 packet->length = (work->status_buf->aid == 0) ? in WFSi_NotifySend()
168 NotifyWirelessEvent(work, WIRELESS_EVENT_PACKET_SEND, packet); in WFSi_NotifySend()
170 if (packet->length > 0) in WFSi_NotifySend()
174 (const u16 *)packet->buffer, in WFSi_NotifySend()
175 (u16)packet->length, in WFSi_NotifySend()
176 (u16)packet->bitmap, in WFSi_NotifySend()
242 WFSPacketBuffer packet[1]; in WFSi_PortCallback() local
[all …]
/TwlSDK-5.1.0/include/nitro/wfs/
Dserver.h121 MIAllocator *allocator, int packet);
186 void WFS_CallServerPacketSendHook(WFSServerContext *context, WFSPacketBuffer *packet);
198 void WFS_CallServerPacketRecvHook(WFSServerContext *context, const WFSPacketBuffer *packet);
Dclient.h154 void WFS_CallClientPacketSendHook(WFSClientContext *context, WFSPacketBuffer *packet);
166 void WFS_CallClientPacketRecvHook(WFSClientContext *context, const WFSPacketBuffer *packet);
Dformat.h242 int packet = WBT_GetParentPacketLength(context) + WBT_PACKET_SIZE_MIN; in WFS_SendMessage() local
246 message.packet_hi = (u8)(packet >> 8); in WFS_SendMessage()
247 message.packet_lo = (u8)(packet >> 0); in WFS_SendMessage()
/TwlSDK-5.1.0/build/libraries/wbt/common/src/
Dwbt_context.c74 u32 packet; /* Command packet size (minimum length) */ member
198 int packet) in WBTi_InitBitmap() argument
200 SDK_ASSERT(packet > 0); in WBTi_InitBitmap()
203 pkt_bmp->total = (length + packet - 1) / packet; in WBTi_InitBitmap()
221 static BOOL WBTi_MergeBitmapIndex(WBTPacketBitmap * pkt_bmp, int index, u32 packet, const void *src) in WBTi_MergeBitmapIndex() argument
229 const u32 offset = index * packet; in WBTi_MergeBitmapIndex()
231 u32 length = (u32)MATH_MIN(packet, total - offset); in WBTi_MergeBitmapIndex()
604 u32 packet = work->my_data_packet_size; in WBTi_TryCreateResponse() local
611 id, index, packet); in WBTi_TryCreateResponse()
620 system_cmd->prepare_send_data.own_packet_size = (s16)packet; in WBTi_TryCreateResponse()
[all …]
/TwlSDK-5.1.0/build/libraries/snd/ARM9.TWL/src/
Dsndex.c1693 u32 packet = (u32)(((command << SNDEX_PXI_COMMAND_SHIFT) & SNDEX_PXI_COMMAND_MASK) in SendCommand() local
1696 if (0 > PXI_SendWordByFifo(PXI_FIFO_TAG_SNDEX, packet, 0)) in SendCommand()
1723 u32 packet = (u32)(((command << SNDEX_PXI_COMMAND_SHIFT) & SNDEX_PXI_COMMAND_MASK) in SendCommandEx() local
1726 if (0 > PXI_SendWordByFifo(PXI_FIFO_TAG_SNDEX, packet, 0)) in SendCommandEx()
/TwlSDK-5.1.0/build/demos/prc/characterRecognition-1/src/
Dmain.c72 BOOL RecognizePatternAsync(RecognitionObject * packet);