Lines Matching refs:Packet

37   EFI_MTFTP6_PACKET         *Packet;  in Mtftp6WrqSendBlock()  local
54 Packet = (EFI_MTFTP6_PACKET *) NetbufAllocSpace ( in Mtftp6WrqSendBlock()
59 ASSERT (Packet != NULL); in Mtftp6WrqSendBlock()
61 Packet->Data.OpCode = HTONS (EFI_MTFTP6_OPCODE_DATA); in Mtftp6WrqSendBlock()
62 Packet->Data.Block = HTONS (BlockNum); in Mtftp6WrqSendBlock()
81 CopyMem (Packet->Data.Data, (UINT8 *) Token->Buffer + Start, DataLen); in Mtftp6WrqSendBlock()
114 CopyMem (Packet->Data.Data, DataBuf, DataLen); in Mtftp6WrqSendBlock()
148 IN EFI_MTFTP6_PACKET *Packet, in Mtftp6WrqHandleAck() argument
159 AckNum = NTOHS (Packet->Ack.Block[0]); in Mtftp6WrqHandleAck()
284 IN EFI_MTFTP6_PACKET *Packet, in Mtftp6WrqHandleOack() argument
314 Status = Mtftp6ParseStart (Packet, Len, &Count, &Options); in Mtftp6WrqHandleOack()
392 EFI_MTFTP6_PACKET *Packet; in Mtftp6WrqInput() local
404 Packet = NULL; in Mtftp6WrqInput()
441 Packet = AllocateZeroPool (Len); in Mtftp6WrqInput()
443 if (Packet == NULL) { in Mtftp6WrqInput()
448 NetbufCopy (UdpPacket, 0, Len, (UINT8 *) Packet); in Mtftp6WrqInput()
451 Packet = (EFI_MTFTP6_PACKET *) NetbufGetByte (UdpPacket, 0, NULL); in Mtftp6WrqInput()
452 ASSERT (Packet != NULL); in Mtftp6WrqInput()
455 Opcode = NTOHS (Packet->OpCode); in Mtftp6WrqInput()
469 Packet in Mtftp6WrqInput()
509 Status = Mtftp6WrqHandleAck (Instance, Packet, Len, &UdpPacket, &IsCompleted); in Mtftp6WrqInput()
519 Status = Mtftp6WrqHandleOack (Instance, Packet, Len, &UdpPacket, &IsCompleted); in Mtftp6WrqInput()
535 if (Packet != NULL && TotalNum > 1) { in Mtftp6WrqInput()
536 FreePool (Packet); in Mtftp6WrqInput()