Home | History | Annotate | Download | only in Mtftp6Dxe

Lines Matching refs:Instance

22   @param[in]  Instance              The pointer to the Mtftp6 instance.

32 IN MTFTP6_INSTANCE *Instance,
59 // Reset current retry count of the instance.
61 Instance->CurRetry = 0;
62 Instance->LastPacket = Packet;
64 return Mtftp6TransmitPacket (Instance, Packet);
72 @param[in] Instance The pointer to the Mtftp6 instance.
86 IN MTFTP6_INSTANCE *Instance,
101 Token = Instance->Token;
108 if (DataLen < Instance->BlkSize) {
110 Instance->LastBlk = Block;
111 Mtftp6SetLastBlockNum (&Instance->BlkList, Block);
121 Status = Mtftp6RemoveBlockNum (&Instance->BlkList, Block, Completed, &TotalBlock);
133 Status = Token->CheckPacket (&Instance->Mtftp6, Token, (UINT16) Len, Packet);
146 Instance,
157 Start = MultU64x32 (TotalBlock - 1, Instance->BlkSize);
163 if ((Instance->LastBlk == Block) && Completed) {
166 } else if (Instance->LastBlk != 0) {
184 Instance,
201 @param[in] Instance The pointer to the Mtftp6 instance.
215 IN MTFTP6_INSTANCE *Instance,
228 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
237 if (Instance->IsMaster && (Expected != BlockNum)) {
245 Mtftp6TransmitPacket (Instance, Instance->LastPacket);
249 Status = Mtftp6RrqSaveBlock (Instance, Packet, Len, UdpPacket);
258 if (!Instance->IsMaster) {
259 Instance->PacketToLive = Instance->Timeout * 2;
268 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
270 if (Instance->IsMaster || Expected < 0) {
276 // the Block == Instance->LastBlock.
278 BlockNum = Instance->LastBlk;
291 Mtftp6RrqSendAck (Instance, BlockNum);
306 @param[in] Instance The pointer to the Mtftp6 instance.
316 IN MTFTP6_INSTANCE *Instance,
343 if (((ReplyInfo->BitMap & MTFTP6_OPT_MCAST_BIT) != 0) && !NetIp6IsUnspecifiedAddr (&Instance->McastIp)) {
347 &Instance->McastIp,
353 if ((ReplyInfo->McastPort != 0) && (ReplyInfo->McastPort != Instance->McastPort)) {
383 MTFTP6_INSTANCE *Instance;
387 Instance = (MTFTP6_INSTANCE *) Context;
401 Udp6Cfg->StationPort = Instance->McastPort;
406 &Instance->ServerIp,
422 CopyMem (&Group, &Instance->McastIp, sizeof (EFI_IPv6_ADDRESS));
431 @param[in] Instance The pointer to the Mtftp6 instance.
445 IN MTFTP6_INSTANCE *Instance,
466 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
469 if (Instance->IsMaster && Expected != 1) {
490 if (EFI_ERROR (Status) || !Mtftp6RrqOackValid (Instance, &ExtInfo, &Instance->ExtInfo)) {
505 Instance,
521 Instance->IsMaster = ExtInfo.IsMaster;
523 if (NetIp6IsUnspecifiedAddr (&Instance->McastIp)) {
535 Instance,
547 &Instance->McastIp,
552 Instance->McastPort = ExtInfo.McastPort;
553 if (Instance->McastUdpIo == NULL) {
554 Instance->McastUdpIo = UdpIoCreateIo (
555 Instance->Service->Controller,
556 Instance->Service->Image,
559 Instance
561 if (Instance->McastUdpIo != NULL) {
563 Instance->McastUdpIo->UdpHandle,
566 Instance->Service->Image,
567 Instance->Handle,
571 UdpIoFreeIo (Instance->McastUdpIo);
572 Instance->McastUdpIo = NULL;
578 if (Instance->McastUdpIo == NULL) {
583 Instance->McastUdpIo,
585 Instance,
600 Instance,
612 Instance->BlkSize = ExtInfo.BlkSize;
616 Instance->Timeout = ExtInfo.Timeout;
622 Instance->IsMaster = TRUE;
625 Instance->BlkSize = ExtInfo.BlkSize;
629 Instance->Timeout = ExtInfo.Timeout;
643 return Mtftp6RrqSendAck (Instance, (UINT16) (Expected - 1));
652 @param[in] IoStatus The status from Udp6 instance.
665 MTFTP6_INSTANCE *Instance;
674 Instance = (MTFTP6_INSTANCE *) Context;
676 NET_CHECK_SIGNATURE (Instance, MTFTP6_INSTANCE_SIGNATURE);
685 // Return error status if Udp6 instance failed to receive.
703 &Instance->McastIp,
717 if (UdpEpt->RemotePort != Instance->ServerDataPort) {
718 if (Instance->ServerDataPort != 0) {
727 Instance->ServerDataPort = UdpEpt->RemotePort;
758 if ((Instance->Token->CheckPacket != NULL) &&
762 Status = Instance->Token->CheckPacket (
763 &Instance->Mtftp6,
764 Instance->Token,
784 Instance,
800 if ((Len > (UINT32) (MTFTP6_DATA_HEAD_LEN + Instance->BlkSize)) || (Len < (UINT32) MTFTP6_DATA_HEAD_LEN)) {
807 Instance,
823 Instance,
853 Instance->McastUdpIo,
855 Instance,
860 Instance->UdpIo,
862 Instance,
871 Mtftp6OperationClean (Instance, Status);
877 Start the Mtftp6 instance to download. It first initializes some
881 @param[in] Instance The pointer to the Mtftp6 instance.
890 IN MTFTP6_INSTANCE *Instance,
902 Status = Mtftp6InitBlockRange (&Instance->BlkList, 1, 0xffff);
908 Status = Mtftp6SendRequest (Instance, Operation);
915 Instance->UdpIo,
917 Instance,