Lines Matching refs:IfrNvData
356 @param[out] IfrNvData The IFR nv data.
362 OUT ISCSI_CONFIG_IFR_NVDATA *IfrNvData
372 IfrNvData->Enabled = SessionConfigData->Enabled;
374 IfrNvData->InitiatorInfoFromDhcp = SessionConfigData->InitiatorInfoFromDhcp;
375 IfrNvData->TargetInfoFromDhcp = SessionConfigData->TargetInfoFromDhcp;
376 IfrNvData->TargetPort = SessionConfigData->TargetPort;
378 IScsiIpToStr (&SessionConfigData->LocalIp, IfrNvData->LocalIp);
379 IScsiIpToStr (&SessionConfigData->SubnetMask, IfrNvData->SubnetMask);
380 IScsiIpToStr (&SessionConfigData->Gateway, IfrNvData->Gateway);
381 IScsiIpToStr (&SessionConfigData->TargetIp, IfrNvData->TargetIp);
383 IScsiAsciiStrToUnicodeStr (SessionConfigData->TargetName, IfrNvData->TargetName);
385 IScsiLunToUnicodeStr (SessionConfigData->BootLun, IfrNvData->BootLun);
387 IScsiConvertIsIdToString (IfrNvData->IsId, SessionConfigData->IsId);
394 IfrNvData->CHAPType = AuthConfigData->CHAPType;
396 IScsiAsciiStrToUnicodeStr (AuthConfigData->CHAPName, IfrNvData->CHAPName);
397 IScsiAsciiStrToUnicodeStr (AuthConfigData->CHAPSecret, IfrNvData->CHAPSecret);
398 IScsiAsciiStrToUnicodeStr (AuthConfigData->ReverseCHAPName, IfrNvData->ReverseCHAPName);
399 IScsiAsciiStrToUnicodeStr (AuthConfigData->ReverseCHAPSecret, IfrNvData->ReverseCHAPSecret);
476 ISCSI_CONFIG_IFR_NVDATA *IfrNvData;
507 IfrNvData = AllocateZeroPool (sizeof (ISCSI_CONFIG_IFR_NVDATA));
508 ASSERT (IfrNvData != NULL);
510 IScsiConvertDeviceConfigDataToIfrNvData (Private->Current, IfrNvData);
516 IfrNvData->InitiatorName[0] = L'\0';
518 IScsiAsciiStrToUnicodeStr (InitiatorName, IfrNvData->InitiatorName);
544 (UINT8 *) IfrNvData,
549 FreePool (IfrNvData);
673 ISCSI_CONFIG_IFR_NVDATA *IfrNvData;
689 IfrNvData = AllocateZeroPool (sizeof (ISCSI_CONFIG_IFR_NVDATA));
690 ASSERT (IfrNvData != NULL);
691 if (!HiiGetBrowserData (&gIp4IScsiConfigGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData)) {
692 FreePool (IfrNvData);
709 IScsiConvertDeviceConfigDataToIfrNvData (ConfigFormEntry, IfrNvData);
716 IScsiUnicodeStrToAsciiStr (IfrNvData->InitiatorName, IScsiName);
728 IScsiUnicodeStrToAsciiStr (IfrNvData->LocalIp, Ip4String);
742 IScsiUnicodeStrToAsciiStr (IfrNvData->SubnetMask, Ip4String);
754 IScsiUnicodeStrToAsciiStr (IfrNvData->Gateway, Ip4String);
769 IScsiUnicodeStrToAsciiStr (IfrNvData->TargetIp, Ip4String);
781 IScsiUnicodeStrToAsciiStr (IfrNvData->TargetName, IScsiName);
792 if (IfrNvData->InitiatorInfoFromDhcp == 0) {
793 IfrNvData->TargetInfoFromDhcp = 0;
799 IScsiUnicodeStrToAsciiStr (IfrNvData->BootLun, LunString);
810 IScsiUnicodeStrToAsciiStr (IfrNvData->CHAPName, Private->Current->AuthConfigData.CHAPName);
814 IScsiUnicodeStrToAsciiStr (IfrNvData->CHAPSecret, Private->Current->AuthConfigData.CHAPSecret);
818 IScsiUnicodeStrToAsciiStr (IfrNvData->ReverseCHAPName, Private->Current->AuthConfigData.ReverseCHAPName);
822 IScsiUnicodeStrToAsciiStr (IfrNvData->ReverseCHAPSecret, Private->Current->AuthConfigData.ReverseCHAPSecret);
826 IScsiParseIsIdFromString (IfrNvData->IsId, Private->Current->SessionConfigData.IsId);
827 IScsiConvertIsIdToString (IfrNvData->IsId, Private->Current->SessionConfigData.IsId);
835 Private->Current->SessionConfigData.Enabled = IfrNvData->Enabled;
836 Private->Current->SessionConfigData.InitiatorInfoFromDhcp = IfrNvData->InitiatorInfoFromDhcp;
837 Private->Current->SessionConfigData.TargetPort = IfrNvData->TargetPort;
842 Private->Current->SessionConfigData.TargetInfoFromDhcp = IfrNvData->TargetInfoFromDhcp;
843 Private->Current->AuthConfigData.CHAPType = IfrNvData->CHAPType;
899 if (IfrNvData->CHAPType != ISCSI_CHAP_NONE) {
900 if ((IfrNvData->CHAPName[0] == '\0') || (IfrNvData->CHAPSecret[0] == '\0')) {
906 if ((IfrNvData->CHAPType == ISCSI_CHAP_MUTUAL) &&
907 ((IfrNvData->ReverseCHAPName[0] == '\0') || (IfrNvData->ReverseCHAPSecret[0] == '\0'))
945 HiiSetBrowserData (&gIp4IScsiConfigGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData, NULL);
948 FreePool (IfrNvData);