Home | History | Annotate | Download | only in Lan9118Dxe

Lines Matching refs:Snp

50   EFI_SIMPLE_NETWORK_PROTOCOL *Snp;

69 Snp = &(LanDriver->Snp);
71 Snp->Mode = SnpMode;
77 Snp->Revision = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;
78 Snp->WaitForPacket = NULL;
79 Snp->Initialize = SnpInitialize;
80 Snp->Start = SnpStart;
81 Snp->Stop = SnpStop;
82 Snp->Reset = SnpReset;
83 Snp->Shutdown = SnpShutdown;
84 Snp->ReceiveFilters = SnpReceiveFilters;
85 Snp->StationAddress = SnpStationAddress;
86 Snp->Statistics = SnpStatistics;
87 Snp->MCastIpToMac = SnpMcastIptoMac;
88 Snp->NvData = SnpNvData;
89 Snp->GetStatus = SnpGetStatus;
90 Snp->Transmit = SnpTransmit;
91 Snp->Receive = SnpReceive;
143 Status = Lan9118Initialize (Snp);
150 CopyMem (&Lan9118Path->Lan9118.MacAddress, &Snp->Mode->CurrentAddress, NET_ETHER_ADDR_LEN);
151 Lan9118Path->Lan9118.IfType = Snp->Mode->IfType;
157 &gEfiSimpleNetworkProtocolGuid, Snp,
176 * @param Snp: A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.
186 IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp
189 // Check Snp instance
190 if (Snp == NULL) {
195 if ((Snp->Mode->State == EfiSimpleNetworkStarted) ||
196 (Snp->Mode->State == EfiSimpleNetworkInitialized) ) {
201 Snp->Mode->State = EfiSimpleNetworkStarted;
212 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp
215 // Check Snp Instance
216 if (Snp == NULL) {
221 if (Snp->Mode->State == EfiSimpleNetworkStopped) {
226 StopTx (STOP_TX_CFG | STOP_TX_MAC, Snp);
227 StopRx (0, Snp);
230 switch (Snp->Mode->State) {
233 Snp->Mode->State = EfiSimpleNetworkStopped;
254 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp,
269 // Check Snp Instance
270 if (Snp == NULL) {
275 if (Snp->Mode->State == EfiSimpleNetworkInitialized) {
279 if (Snp->Mode->State == EfiSimpleNetworkStopped) {
285 Status = PhySoftReset (PHY_RESET_PMT, Snp);
287 Snp->Mode->State = EfiSimpleNetworkStopped;
293 Status = SoftReset (0, Snp);
312 Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);
333 Snp
342 Status = AutoNegotiate (AUTO_NEGOTIATE_ADVERTISE_ALL, Snp);
348 Status = ConfigureFlow (0, 0, 0, 0, Snp);
354 Status = StartTx (START_TX_MAC | START_TX_CFG, Snp);
363 Snp->Mode->State = EfiSimpleNetworkInitialized;
375 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp,
388 // Check Snp Instance
389 if (Snp == NULL) {
394 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
397 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
403 Status = PhySoftReset (PHY_RESET_PMT, Snp);
405 Snp->Mode->State = EfiSimpleNetworkStopped;
416 Status = SoftReset (ResetFlags, Snp);
434 Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);
449 StartRx (START_RX_CLEAR, Snp);
450 StartTx (START_TX_MAC | START_TX_CFG | START_TX_CLEAR, Snp);
465 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp
470 // Check Snp Instance
471 if (Snp == NULL) {
476 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
479 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
485 Status = PhySoftReset (PHY_RESET_PMT, Snp);
491 Status = SoftReset (0, Snp);
498 Snp->Mode->State = EfiSimpleNetworkStarted;
509 @param[in] Snp A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL
535 greater than Snp->Mode->MaxMCastFilterCount.
546 IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp,
565 // Check Snp Instance
566 if (Snp == NULL) {
569 Mode = Snp->Mode;
645 StopRx (STOP_RX_CLEAR, Snp);
663 Lan9118SetMacAddress (&Mode->CurrentAddress, Snp);
672 Lan9118SetMacAddress (&ZeroMac, Snp);
706 StartRx (0, Snp);
715 @param[in] Snp A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL
732 IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp,
742 // Check Snp instance
743 if (Snp == NULL) {
748 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
751 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
764 Lan9118SetMacAddress ((EFI_MAC_ADDRESS *) PermAddr, Snp);
782 CopyMem (&Snp->Mode->CurrentAddress, New, NET_ETHER_ADDR_LEN);
791 if (Snp->Mode->ReceiveFilterSetting != 0) {
792 StopRx (STOP_RX_CLEAR, Snp);
793 Lan9118SetMacAddress (New, Snp);
794 StartRx (0, Snp);
807 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp,
816 LanDriver = INSTANCE_FROM_SNP_THIS (Snp);
820 // Check Snp instance
821 if (Snp == NULL) {
826 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
829 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
876 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp,
884 // Check Snp instance
885 if (Snp == NULL) {
890 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
893 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
961 IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp,
974 LanDriver = INSTANCE_FROM_SNP_THIS (Snp);
977 if (Snp == NULL) {
982 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
985 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
991 // consumer of SNP does not call GetStatus.)
1068 Status = SoftReset (0, Snp);
1075 Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);
1085 StartTx (START_TX_MAC | START_TX_CFG, Snp);
1086 if (Snp->Mode->ReceiveFilterSetting != 0) {
1087 StartRx (0, Snp);
1092 Status = CheckLinkStatus (0, Snp);
1094 Snp->Mode->MediaPresent = FALSE;
1096 Snp->Mode->MediaPresent = TRUE;
1110 IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp,
1138 LanDriver = INSTANCE_FROM_SNP_THIS (Snp);
1141 if ((Snp == NULL) || (Data == NULL)) {
1146 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
1149 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
1156 if (HdrSize != Snp->Mode->MediaHeaderSize) {
1168 if (BuffSize < Snp->Mode->MediaHeaderSize) {
1173 /*if (CheckLinkStatus (0, Snp) < 0) {
1178 TxFreeSpace = TxDataFreeSpace (0, Snp);
1184 TxStatusSpace = TxStatusUsedSpace (0, Snp);
1301 IN EFI_SIMPLE_NETWORK_PROTOCOL* Snp,
1325 LanDriver = INSTANCE_FROM_SNP_THIS (Snp);
1333 if ((Snp == NULL) || (Data == NULL) || (BuffSize == NULL)) {
1338 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
1341 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
1371 NumPackets = RxStatusUsedSpace (0, Snp) / 4;
1464 *HdrSize = Snp->Mode->MediaHeaderSize;
1506 Status = SoftReset (0, Snp);
1513 Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);
1522 StartRx (0, Snp);
1523 StartTx (START_TX_MAC | START_TX_CFG, Snp);