Home | History | Annotate | Download | only in Lan9118Dxe

Lines Matching refs:Mode

71   Snp->Mode = SnpMode;

93 // Start completing simple network mode structure
102 // Claim that all receive filter settings are supported, though the MULTICAST mode
108 // We claim that the perfect MULTICAST filtering mode is supported because
109 // we do not want the user to switch directly to the PROMISCOUS_MULTICAST mode
150 CopyMem (&Lan9118Path->Lan9118.MacAddress, &Snp->Mode->CurrentAddress, NET_ETHER_ADDR_LEN);
151 Lan9118Path->Lan9118.IfType = Snp->Mode->IfType;
195 if ((Snp->Mode->State == EfiSimpleNetworkStarted) ||
196 (Snp->Mode->State == EfiSimpleNetworkInitialized) ) {
201 Snp->Mode->State = EfiSimpleNetworkStarted;
221 if (Snp->Mode->State == EfiSimpleNetworkStopped) {
230 switch (Snp->Mode->State) {
233 Snp->Mode->State = EfiSimpleNetworkStopped;
239 // Put the device into a power saving mode ?
275 if (Snp->Mode->State == EfiSimpleNetworkInitialized) {
279 if (Snp->Mode->State == EfiSimpleNetworkStopped) {
287 Snp->Mode->State = EfiSimpleNetworkStopped;
303 // MPTCTRL_ED_EN: Allow energy detection to allow lowest power consumption mode
363 Snp->Mode->State = EfiSimpleNetworkInitialized;
394 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
397 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
405 Snp->Mode->State = EfiSimpleNetworkStopped;
426 // MPTCTRL_ED_EN: Allow energy detection to allow lowest power consumption mode
476 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
479 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
498 Snp->Mode->State = EfiSimpleNetworkStarted;
535 greater than Snp->Mode->MaxMCastFilterCount.
554 EFI_SIMPLE_NETWORK_MODE *Mode;
569 Mode = Snp->Mode;
572 if (Mode->State == EfiSimpleNetworkStarted) {
575 } else if (Mode->State == EfiSimpleNetworkStopped) {
580 if ((Enable & (~Mode->ReceiveFilterMask)) ||
581 (Disable & (~Mode->ReceiveFilterMask)) ) {
596 (MCastFilterCnt > Mode->MaxMCastFilterCount) ||
615 CopyMem (&Mode->MCastFilter[Count], Mac, sizeof(EFI_MAC_ADDRESS));
633 Mode->MCastFilterCount = MCastFilterCnt;
635 Mode->MCastFilterCount = 0;
654 ReceiveFilterSetting = (Mode->ReceiveFilterSetting | Enable) & (~Disable);
663 Lan9118SetMacAddress (&Mode->CurrentAddress, Snp);
682 DEBUG ((DEBUG_NET, "Enabling Promiscuous Multicast Mode\n"));
693 DEBUG ((DEBUG_NET, "Enabling Promiscuous Mode\n"));
704 Mode->ReceiveFilterSetting = ReceiveFilterSetting;
748 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
751 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
782 CopyMem (&Snp->Mode->CurrentAddress, New, NET_ETHER_ADDR_LEN);
791 if (Snp->Mode->ReceiveFilterSetting != 0) {
826 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
829 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
890 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
893 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
982 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
985 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
1086 if (Snp->Mode->ReceiveFilterSetting != 0) {
1094 Snp->Mode->MediaPresent = FALSE;
1096 Snp->Mode->MediaPresent = TRUE;
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) {
1338 if (Snp->Mode->State == EfiSimpleNetworkStarted) {
1341 } else if (Snp->Mode->State == EfiSimpleNetworkStopped) {
1464 *HdrSize = Snp->Mode->MediaHeaderSize;