Lines Matching refs:IfrNvData
357 @param[in, out] IfrNvData The IFR nv data.
363 IN OUT ISCSI_CONFIG_IFR_NVDATA *IfrNvData
374 IfrNvData->Enabled = SessionConfigData->Enabled;
375 IfrNvData->IpMode = SessionConfigData->IpMode;
377 IfrNvData->InitiatorInfoFromDhcp = SessionConfigData->InitiatorInfoFromDhcp;
378 IfrNvData->TargetInfoFromDhcp = SessionConfigData->TargetInfoFromDhcp;
379 IfrNvData->TargetPort = SessionConfigData->TargetPort;
381 if (IfrNvData->IpMode == IP_MODE_IP4) {
383 IScsiIpToStr (&Ip, FALSE, IfrNvData->LocalIp);
385 IScsiIpToStr (&Ip, FALSE, IfrNvData->SubnetMask);
387 IScsiIpToStr (&Ip, FALSE, IfrNvData->Gateway);
389 IScsiIpToStr (&Ip, FALSE, IfrNvData->TargetIp);
390 } else if (IfrNvData->IpMode == IP_MODE_IP6) {
391 ZeroMem (IfrNvData->TargetIp, sizeof (IfrNvData->TargetIp));
393 IScsiIpToStr (&Ip, TRUE, IfrNvData->TargetIp);
398 IfrNvData->TargetName,
399 sizeof (IfrNvData->TargetName) / sizeof (IfrNvData->TargetName[0])
401 IScsiLunToUnicodeStr (SessionConfigData->BootLun, IfrNvData->BootLun);
402 IScsiConvertIsIdToString (IfrNvData->IsId, SessionConfigData->IsId);
404 IfrNvData->ConnectRetryCount = SessionConfigData->ConnectRetryCount;
405 IfrNvData->ConnectTimeout = SessionConfigData->ConnectTimeout;
410 IfrNvData->AuthenticationType = Attempt->AuthenticationType;
412 if (IfrNvData->AuthenticationType == ISCSI_AUTH_TYPE_CHAP) {
414 IfrNvData->CHAPType = AuthConfigData->CHAPType;
417 IfrNvData->CHAPName,
418 sizeof (IfrNvData->CHAPName) / sizeof (IfrNvData->CHAPName[0])
422 IfrNvData->CHAPSecret,
423 sizeof (IfrNvData->CHAPSecret) / sizeof (IfrNvData->CHAPSecret[0])
427 IfrNvData->ReverseCHAPName,
428 sizeof (IfrNvData->ReverseCHAPName) / sizeof (IfrNvData->ReverseCHAPName[0])
432 IfrNvData->ReverseCHAPSecret,
433 sizeof (IfrNvData->ReverseCHAPSecret) / sizeof (IfrNvData->ReverseCHAPSecret[0])
442 IfrNvData->AttemptName,
443 sizeof (IfrNvData->AttemptName) / sizeof (IfrNvData->AttemptName[0])
450 @param[in] IfrNvData Point to ISCSI_CONFIG_IFR_NVDATA.
462 IN ISCSI_CONFIG_IFR_NVDATA *IfrNvData,
484 if (IfrNvData == NULL || Attempt == NULL) {
491 Attempt->SessionConfigData.ConnectRetryCount = IfrNvData->ConnectRetryCount;
492 Attempt->SessionConfigData.ConnectTimeout = IfrNvData->ConnectTimeout;
493 Attempt->SessionConfigData.IpMode = IfrNvData->IpMode;
495 if (IfrNvData->IpMode < IP_MODE_AUTOCONFIG) {
496 Attempt->SessionConfigData.InitiatorInfoFromDhcp = IfrNvData->InitiatorInfoFromDhcp;
497 Attempt->SessionConfigData.TargetPort = IfrNvData->TargetPort;
503 Attempt->SessionConfigData.TargetInfoFromDhcp = IfrNvData->TargetInfoFromDhcp;
506 Attempt->AuthenticationType = IfrNvData->AuthenticationType;
509 Attempt->AuthConfigData.CHAP.CHAPType = IfrNvData->CHAPType;
515 if (IfrNvData->Enabled != ISCSI_DISABLED) {
562 if (!IpIsUnicast (&Attempt->SessionConfigData.TargetIp, IfrNvData->IpMode)) {
592 if (IfrNvData->AuthenticationType == ISCSI_AUTH_TYPE_CHAP) {
593 if ((IfrNvData->CHAPName[0] == '\0') || (IfrNvData->CHAPSecret[0] == '\0')) {
604 if ((IfrNvData->CHAPType == ISCSI_CHAP_MUTUAL) &&
605 ((IfrNvData->ReverseCHAPName[0] == '\0') || (IfrNvData->ReverseCHAPSecret[0] == '\0'))
620 SameNicAttempt = IScsiConfigGetAttemptByNic (Attempt, IfrNvData->Enabled);
666 Attempt->SessionConfigData.Enabled = IfrNvData->Enabled;
667 if (IfrNvData->Enabled == ISCSI_DISABLED) {
669 } else if (IfrNvData->Enabled == ISCSI_ENABLED) {
671 } else if (IfrNvData->Enabled == ISCSI_ENABLED_FOR_MPIO) {
675 if (IfrNvData->IpMode == IP_MODE_IP4) {
677 } else if (IfrNvData->IpMode == IP_MODE_IP6) {
679 } else if (IfrNvData->IpMode == IP_MODE_AUTOCONFIG) {
725 if (IfrNvData->Enabled == ISCSI_DISABLED &&
746 } else if (IfrNvData->Enabled == ISCSI_ENABLED_FOR_MPIO &&
759 } else if (IfrNvData->Enabled == ISCSI_ENABLED &&
773 } else if (IfrNvData->Enabled != ISCSI_DISABLED &&
778 if (IfrNvData->Enabled == ISCSI_ENABLED_FOR_MPIO) {
782 } else if (IfrNvData->Enabled == ISCSI_ENABLED) {
851 if (IfrNvData->Enabled == ISCSI_ENABLED_FOR_MPIO) {
857 } else if (IfrNvData->Enabled == ISCSI_ENABLED) {
1155 @param[in] IfrNvData The IFR NV data.
1167 IN ISCSI_CONFIG_IFR_NVDATA *IfrNvData
1204 if (IfrNvData->DeleteAttemptList[Index] == 0) {
1322 @param[in] IfrNvData The IFR nv data.
1331 IN ISCSI_CONFIG_IFR_NVDATA *IfrNvData
1370 IfrNvData->DeleteAttemptList[Index] = 0x00;
1517 @param[in] IfrNvData The IFR nv data.
1527 IN ISCSI_CONFIG_IFR_NVDATA *IfrNvData
1558 if (IfrNvData->DynamicOrderedList[Index] == 0) {
1562 AttemptConfigIndex = IfrNvData->DynamicOrderedList[Index];
1626 @param[in] IfrNvData The IFR nv data.
1637 IN ISCSI_CONFIG_IFR_NVDATA *IfrNvData
1829 if (IfrNvData->AuthenticationType == ISCSI_AUTH_TYPE_CHAP) {
1830 ZeroMem (IfrNvData->CHAPName, sizeof (IfrNvData->CHAPName));
1831 ZeroMem (IfrNvData->CHAPSecret, sizeof (IfrNvData->CHAPSecret));
1832 ZeroMem (IfrNvData->ReverseCHAPName, sizeof (IfrNvData->ReverseCHAPName));
1833 ZeroMem (IfrNvData->ReverseCHAPSecret, sizeof (IfrNvData->ReverseCHAPSecret));
1836 IScsiConvertAttemptConfigDataToIfrNvData (AttemptConfigData, IfrNvData);
1930 ISCSI_CONFIG_IFR_NVDATA *IfrNvData;
1952 IfrNvData = AllocateZeroPool (sizeof (ISCSI_CONFIG_IFR_NVDATA));
1953 if (IfrNvData == NULL) {
1958 IScsiConvertAttemptConfigDataToIfrNvData (Private->Current, IfrNvData);
1964 FreePool (IfrNvData);
1970 IfrNvData->InitiatorName[0] = L'\0';
1974 IfrNvData->InitiatorName,
1975 sizeof (IfrNvData->InitiatorName) / sizeof (IfrNvData->InitiatorName[0])
1994 FreePool (IfrNvData);
2006 (UINT8 *) IfrNvData,
2011 FreePool (IfrNvData);
2145 ISCSI_CONFIG_IFR_NVDATA *IfrNvData;
2176 IfrNvData = AllocateZeroPool (BufferSize);
2177 if (IfrNvData == NULL) {
2183 FreePool (IfrNvData);
2191 HiiGetBrowserData (NULL, NULL, BufferSize, (UINT8 *) IfrNvData);
2193 CopyMem (&OldIfrNvData, IfrNvData, BufferSize);
2223 IfrNvData->DeleteAttemptList,
2224 sizeof (IfrNvData->DeleteAttemptList)
2226 Status = IScsiConfigDisplayDeleteAttempts (IfrNvData);
2235 IfrNvData->DynamicOrderedList,
2236 sizeof (IfrNvData->DynamicOrderedList)
2242 Status = IScsiConfigProcessDefault (QuestionId, IfrNvData);
2248 UnicodeStrToAsciiStrS (IfrNvData->InitiatorName, IScsiName, ISCSI_NAME_MAX_SIZE);
2264 if (StrLen (IfrNvData->AttemptName) > ATTEMPT_NAME_SIZE) {
2265 CopyMem (AttemptName, IfrNvData->AttemptName, ATTEMPT_NAME_SIZE * sizeof (CHAR16));
2270 IfrNvData->AttemptName,
2271 (StrLen (IfrNvData->AttemptName) + 1) * sizeof (CHAR16)
2275 UnicodeStrToAsciiStrS (IfrNvData->AttemptName, Private->Current->AttemptName, sizeof (Private->Current->AttemptName));
2283 Status = IScsiConvertIfrNvDataToAttemptConfigData (IfrNvData, Private->Current);
2295 Status = IScsiConfigOrderAttempts (IfrNvData);
2306 IfrNvData->DynamicOrderedList,
2308 sizeof (IfrNvData->DynamicOrderedList)
2317 Status = IScsiConfigDeleteAttempts (IfrNvData);
2328 IfrNvData->DeleteAttemptList,
2330 sizeof (IfrNvData->DeleteAttemptList)
2338 ZeroMem (IfrNvData->TargetIp, sizeof (IfrNvData->TargetIp));
2339 IScsiIpToStr (&Private->Current->SessionConfigData.TargetIp, TRUE, IfrNvData->TargetIp);
2344 ZeroMem (IfrNvData->TargetIp, sizeof (IfrNvData->TargetIp));
2345 IScsiIpToStr (&Private->Current->SessionConfigData.TargetIp, FALSE, IfrNvData->TargetIp);
2354 Status = NetLibStrToIp4 (IfrNvData->LocalIp, &HostIp.v4);
2373 Status = NetLibStrToIp4 (IfrNvData->SubnetMask, &SubnetMask.v4);
2390 Status = NetLibStrToIp4 (IfrNvData->Gateway, &Gateway.v4);
2409 UnicodeStrToAsciiStrS (IfrNvData->TargetIp, IpString, sizeof (IpString));
2410 Status = IScsiAsciiStrToIp (IpString, IfrNvData->IpMode, &HostIp);
2426 UnicodeStrToAsciiStrS (IfrNvData->TargetName, IScsiName, ISCSI_NAME_MAX_SIZE);
2442 if (IfrNvData->InitiatorInfoFromDhcp == 0) {
2443 IfrNvData->TargetInfoFromDhcp = 0;
2449 UnicodeStrToAsciiStrS (IfrNvData->BootLun, LunString, sizeof (LunString));
2467 IfrNvData->CHAPType = ISCSI_CHAP_UNI;
2477 IfrNvData->CHAPName,
2485 IfrNvData->CHAPSecret,
2493 IfrNvData->ReverseCHAPName,
2501 IfrNvData->ReverseCHAPSecret,
2508 IScsiParseIsIdFromString (IfrNvData->IsId, Private->Current->SessionConfigData.IsId);
2509 IScsiConvertIsIdToString (IfrNvData->IsId, Private->Current->SessionConfigData.IsId);
2523 HiiSetBrowserData (NULL, NULL, BufferSize, (UINT8 *) IfrNvData, NULL);
2526 IfrNvData);