Lines Matching refs:Mode

71   Snp->Mode = SnpMode;  in Lan9118DxeEntry()
150 CopyMem (&Lan9118Path->Lan9118.MacAddress, &Snp->Mode->CurrentAddress, NET_ETHER_ADDR_LEN); in Lan9118DxeEntry()
151 Lan9118Path->Lan9118.IfType = Snp->Mode->IfType; in Lan9118DxeEntry()
195 if ((Snp->Mode->State == EfiSimpleNetworkStarted) || in SnpStart()
196 (Snp->Mode->State == EfiSimpleNetworkInitialized) ) { in SnpStart()
201 Snp->Mode->State = EfiSimpleNetworkStarted; in SnpStart()
221 if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpStop()
230 switch (Snp->Mode->State) { in SnpStop()
233 Snp->Mode->State = EfiSimpleNetworkStopped; in SnpStop()
275 if (Snp->Mode->State == EfiSimpleNetworkInitialized) { in SnpInitialize()
279 if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpInitialize()
287 Snp->Mode->State = EfiSimpleNetworkStopped; in SnpInitialize()
365 Snp->Mode->State = EfiSimpleNetworkInitialized; in SnpInitialize()
396 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpReset()
399 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpReset()
407 Snp->Mode->State = EfiSimpleNetworkStopped; in SnpReset()
480 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpShutdown()
483 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpShutdown()
502 Snp->Mode->State = EfiSimpleNetworkStarted; in SnpShutdown()
558 EFI_SIMPLE_NETWORK_MODE *Mode; in SnpReceiveFilters() local
573 Mode = Snp->Mode; in SnpReceiveFilters()
576 if (Mode->State == EfiSimpleNetworkStarted) { in SnpReceiveFilters()
579 } else if (Mode->State == EfiSimpleNetworkStopped) { in SnpReceiveFilters()
584 if ((Enable & (~Mode->ReceiveFilterMask)) || in SnpReceiveFilters()
585 (Disable & (~Mode->ReceiveFilterMask)) ) { in SnpReceiveFilters()
600 (MCastFilterCnt > Mode->MaxMCastFilterCount) || in SnpReceiveFilters()
619 CopyMem (&Mode->MCastFilter[Count], Mac, sizeof(EFI_MAC_ADDRESS)); in SnpReceiveFilters()
637 Mode->MCastFilterCount = MCastFilterCnt; in SnpReceiveFilters()
639 Mode->MCastFilterCount = 0; in SnpReceiveFilters()
658 ReceiveFilterSetting = (Mode->ReceiveFilterSetting | Enable) & (~Disable); in SnpReceiveFilters()
667 Lan9118SetMacAddress (&Mode->CurrentAddress, Snp); in SnpReceiveFilters()
709 Mode->ReceiveFilterSetting = ReceiveFilterSetting; in SnpReceiveFilters()
753 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpStationAddress()
756 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpStationAddress()
787 CopyMem (&Snp->Mode->CurrentAddress, New, NET_ETHER_ADDR_LEN); in SnpStationAddress()
796 if (Snp->Mode->ReceiveFilterSetting != 0) { in SnpStationAddress()
831 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpStatistics()
834 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpStatistics()
895 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpMcastIptoMac()
898 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpMcastIptoMac()
987 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpGetStatus()
990 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpGetStatus()
1089 if (Snp->Mode->ReceiveFilterSetting != 0) { in SnpGetStatus()
1097 Snp->Mode->MediaPresent = FALSE; in SnpGetStatus()
1099 Snp->Mode->MediaPresent = TRUE; in SnpGetStatus()
1149 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpTransmit()
1152 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpTransmit()
1159 if (HdrSize != Snp->Mode->MediaHeaderSize) { in SnpTransmit()
1171 if (BuffSize < Snp->Mode->MediaHeaderSize) { in SnpTransmit()
1341 if (Snp->Mode->State == EfiSimpleNetworkStarted) { in SnpReceive()
1344 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) { in SnpReceive()
1467 *HdrSize = Snp->Mode->MediaHeaderSize; in SnpReceive()