Lines Matching refs:UnicodeSN
78 UnicodeSPrint (RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN->Data); in GenerateUsbSNBySeed()
85 OUT CHAR16 *UnicodeSN in GenerateUsbSN() argument
93 if (UnicodeSN == NULL) { in GenerateUsbSN()
103 UnicodeSPrint (RandomSN.UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN.Data); in GenerateUsbSN()
104 StrCpyS (UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), RandomSN.UnicodeSN); in GenerateUsbSN()
111 OUT CHAR16 *UnicodeSN in AssignUsbSN() argument
118 if ((AsciiCmd == NULL) || (UnicodeSN == NULL)) { in AssignUsbSN()
138 AsciiStrToUnicodeStr (AsciiCmd, RandomSN.UnicodeSN); in AssignUsbSN()
139 StrCpyS (UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), RandomSN.UnicodeSN); in AssignUsbSN()
147 OUT CHAR16 *UnicodeSN in LoadSNFromBlock() argument
159 if (UnicodeSN == NULL) { in LoadSNFromBlock()
199 if (StrLen (RandomSN->UnicodeSN) != StrLen (UnicodeStr)) { in LoadSNFromBlock()
202 if (StrnCmp (RandomSN->UnicodeSN, UnicodeStr, StrLen (UnicodeStr)) != 0) { in LoadSNFromBlock()
225 CopyMem (UnicodeSN, RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16)); in LoadSNFromBlock()
235 IN CHAR16 *UnicodeSN in StoreSNToBlock() argument
245 if (UnicodeSN == NULL) { in StoreSNToBlock()
269 …StrnCpyS (RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), UnicodeSN, StrSize (UnicodeSN… in StoreSNToBlock()
270 RandomSN->Data = StrHexToUint64 (RandomSN->UnicodeSN); in StoreSNToBlock()
275 if (StrLen (RandomSN->UnicodeSN) != StrLen (UnicodeStr)) { in StoreSNToBlock()
276 DEBUG ((DEBUG_ERROR, "#%a, %d, strlen:%d, %d\n", __func__, __LINE__, StrLen (RandomSN->UnicodeSN), … in StoreSNToBlock()
280 if (StrnCmp (RandomSN->UnicodeSN, UnicodeStr, StrLen (UnicodeStr)) != 0) { in StoreSNToBlock()
281 DEBUG ((DEBUG_ERROR, "#%a, %d, %s, %s\n", __func__, __LINE__, RandomSN->UnicodeSN, UnicodeStr)); in StoreSNToBlock()