Lines Matching defs:User

84   And if NextUser is TRUE, return the next User in the user database.  
86 @param[in, out] User On entry, points to the user profile entry to search.
88 @param[in] NextUser If FALSE, find the user in user profile database specifyed by User
90 by User.
92 user specifyed by User.
94 @retval EFI_NOT_FOUND User was NULL, or User was not found, or the next user was not found.
95 @retval EFI_SUCCESS User or the next user are found in user profile database
100 IN OUT USER_PROFILE_ENTRY **User,
110 if ((mUserProfileDb == NULL) || (User == NULL)) {
118 if (mUserProfileDb->UserProfile[Index] == *User) {
132 *User = mUserProfileDb->UserProfile[Index];
134 *User = NULL;
137 if ((mUserProfileDb->UserProfileNum > 0) && (*User == NULL)) {
138 *User = mUserProfileDb->UserProfile[0];
140 *User = NULL;
152 Find the specified user information record in the specified User profile.
157 @param[in] User Points to the user profile entry.
161 @param[in] NextInfo If FALSE, find the user information record in profile specifyed by User.
163 by User.
173 IN USER_PROFILE_ENTRY * User,
190 Status = FindUserProfile (&User, FALSE, NULL);
199 while (InfoLen < User->UserProfileSize) {
200 UserInfo = (EFI_USER_INFO *) (User->ProfileInfo + InfoLen);
214 if (InfoLen < User->UserProfileSize) {
215 UserInfo = (EFI_USER_INFO *) (User->ProfileInfo + InfoLen);
217 if (InfoLen < User->UserProfileSize) {
218 *Info = (EFI_USER_INFO *) (User->ProfileInfo + InfoLen);
222 } else if (InfoLen == User->UserProfileSize) {
228 *Info = (EFI_USER_INFO *) User->ProfileInfo;
237 } else if (InfoLen == User->UserProfileSize) {
247 This function searches all user information records of User. The search starts with the
252 @param[in] User Points to the user profile record to search.
258 @retval EFI_SUCCESS User information was found. Info points to the user information record.
259 @retval EFI_NOT_FOUND User information was not found.
260 @retval EFI_INVALID_PARAMETER User is NULL or Info is NULL.
265 IN USER_PROFILE_ENTRY *User,
283 Status = FindUserProfile (&User, FALSE, NULL);
285 Status = FindUserInfo (User, Info, TRUE, &InfoLen);
292 while (InfoLen < User->UserProfileSize) {
293 UserInfo = (EFI_USER_INFO *) (User->ProfileInfo + InfoLen);
317 @param[in, out] User On entry, points to the previously returned user profile record,
327 @retval EFI_SUCCESS User information was found. User points to the user profile record,
329 @retval EFI_NOT_FOUND User information was not found.
330 @retval EFI_INVALID_PARAMETER User is NULL; Info is NULL; or, InfoSize is too small.
335 IN OUT USER_PROFILE_ENTRY **User,
345 if ((User == NULL) || (Info == NULL)) {
361 if (*User == NULL) {
362 *User = mUserProfileDb->UserProfile[0];
368 Status = FindUserProfile (User, FALSE, NULL);
375 Status = FindUserInfoByType (*User, &InfoEntry, Info->InfoType);
397 Status = FindUserProfile (User, TRUE, NULL);
936 @param[in] User Points to user profile.
945 IN USER_PROFILE_ENTRY *User,
956 User->MaxProfileSize += ((ExpandSize + InfoSizeInc - 1) / InfoSizeInc) * InfoSizeInc;
957 Info = AllocateZeroPool (User->MaxProfileSize);
965 if (User->UserProfileSize > 0) {
966 CopyMem (Info, User->ProfileInfo, User->UserProfileSize);
967 FreePool (User->ProfileInfo);
970 User->ProfileInfo = Info;
978 @param[in] User Point to the user profile
987 IN USER_PROFILE_ENTRY *User,
996 Status = FindUserProfile (&User, FALSE, NULL);
1005 User->UserVarName,
1008 Delete ? 0 : User->UserProfileSize,
1009 User->ProfileInfo
1017 @param[in] User point to the user profile
1030 IN USER_PROFILE_ENTRY *User,
1039 if ((Info == NULL) || (User == NULL)) {
1046 Status = FindUserProfile (&User, FALSE, NULL);
1054 if (User->MaxProfileSize - User->UserProfileSize < ALIGN_VARIABLE (InfoSize)) {
1055 if (!ExpandUserProfile (User, ALIGN_VARIABLE (InfoSize))) {
1063 CopyMem (User->ProfileInfo + User->UserProfileSize, Info, InfoSize);
1065 *UserInfo = (EFI_USER_INFO *) (User->ProfileInfo + User->UserProfileSize);
1067 User->UserProfileSize += ALIGN_VARIABLE (InfoSize);
1073 Status = SaveNvUserProfile (User, FALSE);
1083 @param[in] User Point to the user profile.
1102 IN USER_PROFILE_ENTRY *User,
1122 Status = FindUserInfo (User, &UserInfo, FALSE, NULL);
1134 if (User != mCurrentUser) {
1168 @param[in] User Point to the user profile.
1179 IN USER_PROFILE_ENTRY *User,
1191 Status = FindUserInfo (User, &Info, FALSE, &Offset);
1204 User->UserProfileSize -= ALIGN_VARIABLE (Info->InfoSize);
1205 if (Offset < User->UserProfileSize) {
1206 CopyMem (User->ProfileInfo + Offset, User->ProfileInfo + NextOffset, User->UserProfileSize - Offset);
1210 Status = SaveNvUserProfile (User, FALSE);
1220 @param[in] User Point to the user profile.
1229 @retval EFI_SUCCESS User information was successfully changed/added.
1234 IN USER_PROFILE_ENTRY *User,
1270 Status = FindUserInfoByType (User, &OldInfo, Info->InfoType);
1310 Status = AddUserInfo (User, (UINT8 *) Info, InfoSize, UserInfo, TRUE);
1330 Status = FindUserInfoByType (User, &OldInfo, Info->InfoType);
1344 Status = DelUserInfo (User, *UserInfo, FALSE);
1349 return AddUserInfo (User, (UINT8 *) Info, InfoSize, UserInfo, TRUE);
1356 @param[in] User Points to the user profile.
1364 IN USER_PROFILE_ENTRY *User
1373 Status = FindUserProfile (&User, FALSE, &Index);
1381 if (User == mCurrentUser) {
1401 User->UserVarName,
1402 sizeof (User->UserVarName)
1412 if (User->ProfileInfo != NULL) {
1413 FreePool (User->ProfileInfo);
1416 FreePool (User);
1443 USER_PROFILE_ENTRY *User;
1455 User = AllocateZeroPool (sizeof (USER_PROFILE_ENTRY));
1456 if (User == NULL) {
1464 FreePool (User);
1470 User->UserVarName,
1471 sizeof (User->UserVarName),
1472 L"User%04x",
1475 User->UserProfileSize = 0;
1476 User->MaxProfileSize = 0;
1477 User->ProfileInfo = NULL;
1478 mUserProfileDb->UserProfile[mUserProfileDb->UserProfileNum] = (EFI_USER_PROFILE_HANDLE) User;
1484 Status = AddUserInfo (User, ProfileInfo, ProfileSize, NULL, Save);
1486 DelUserProfile (User);
1493 *UserProfile = User;
1503 handle User can change across reboots.
1505 @param[out] User Handle of a new user profile.
1507 @retval EFI_SUCCESS User profile was successfully created.
1513 OUT USER_PROFILE_ENTRY **User
1519 if (User == NULL) {
1538 Status = AddUserProfile (User, UserInfo->InfoSize, (UINT8 *) UserInfo, TRUE);
1557 USER_PROFILE_ENTRY *User;
1568 Status = CreateUserProfile (&User);
1589 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1607 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1621 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1636 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1651 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1662 By UEFI spec, the User Identity Manager will publish the current user profile
1746 @param[in] User Handle of a user profile.
1755 IN EFI_USER_PROFILE_HANDLE User,
1768 Status = FindUserInfoByType (User, &IdentifyInfo, EFI_USER_INFO_IDENTITY_POLICY_RECORD);
1797 Identify the User by the specfied provider.
1799 @param[in] User Handle of a user profile.
1804 @retval EFI_SUCCESS User is identified successfully.
1809 IN EFI_USER_PROFILE_HANDLE User,
1869 Status = UserCredential->User (UserCredential, User, &UserId);
1890 @param[in] User Points to user profile.
1898 IN USER_PROFILE_ENTRY *User
1921 Status = FindUserInfoByType (User, &NewInfo, EFI_USER_INFO_CREATE_DATE_RECORD);
1934 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1945 Status = FindUserInfoByType (User, &NewInfo, EFI_USER_INFO_USAGE_DATE_RECORD);
1957 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
1969 Status = FindUserInfoByType (User, &NewInfo, EFI_USER_INFO_USAGE_COUNT_RECORD);
1983 Status = ModifyUserInfo (User, &NewInfo, Info, Info->InfoSize);
2045 @param[in] User Points to the user profile whose username is added.
2055 IN USER_PROFILE_ENTRY *User,
2064 Status = FindUserInfoByType (User, &UserInfo, EFI_USER_INFO_NAME_RECORD);
2093 @param[in] User Points to the user profile.
2101 IN USER_PROFILE_ENTRY *User
2115 Status = FindUserInfoByType (User, &IdentifyInfo, EFI_USER_INFO_IDENTITY_POLICY_RECORD);
2185 Status = IdentifyByProviderId (User, (EFI_GUID *) (Identity + 1));
2216 @param[in] User Points to the user profile.
2224 IN USER_PROFILE_ENTRY *User
2241 Status = FindUserInfoByType (User, &IdentifyInfo, EFI_USER_INFO_IDENTITY_POLICY_RECORD);
2336 USER_PROFILE_ENTRY *User;
2391 User = (USER_PROFILE_ENTRY *) mUserProfileDb->UserProfile[Index];
2392 AddUserSelection ((UINT16)(LABEL_USER_NAME + Index), User, StartOpCodeHandle);
2437 User = (USER_PROFILE_ENTRY *) mUserProfileDb->UserProfile[QuestionId & 0xFFF];
2438 Status = GetIdentifyType (User, &PolicyType);
2447 Status = IdentifyOrTypeUser (User);
2452 mCurrentUser = (EFI_USER_PROFILE_HANDLE) User;
2457 Status = IdentifyAndTypeUser (User);
2462 mCurrentUser = (EFI_USER_PROFILE_HANDLE) User;
2536 L"User%04x",
2856 @param[out] User Points to user user profile if a user is identified successfully.
2865 OUT USER_PROFILE_ENTRY **User
2883 Status = mProviderDb->Provider[ProviderIndex]->User (
2896 *User = NULL;
2897 Status = FindUserProfileByInfo (User, NULL, Info, Info->InfoSize);
2903 Status = GetIdentifyType ((EFI_USER_PROFILE_HANDLE) * User, &PolicyType);
2993 @param[out] User Points to user user profile if a user is identified successfully.
3000 OUT USER_PROFILE_ENTRY **User
3037 *User = UserEntry;
3057 *User = UserEntry;
3084 *User = (USER_PROFILE_ENTRY *) mCurrentUser;
3085 UpdateUserInfo (*User);
3112 Create, Signal, and Close the User Profile Changed event.
3141 its handle. The user profile is non-volatile, but the handle User can change across reboots.
3144 @param[out] User On return, points to the new user profile handle.
3147 @retval EFI_SUCCESS User profile was successfully created.
3151 @retval EFI_INVALID_PARAMETER The User parameter is NULL.
3158 OUT EFI_USER_PROFILE_HANDLE *User
3163 if ((This == NULL) || (User == NULL)) {
3179 Status = CreateUserProfile ((USER_PROFILE_ENTRY **) User);
3191 @param[in] User User profile handle.
3193 @retval EFI_SUCCESS User profile was successfully deleted.
3197 @retval EFI_INVALID_PARAMETER User does not refer to a valid user profile.
3204 IN EFI_USER_PROFILE_HANDLE User
3223 Status = DelUserProfile (User);
3239 point User at a NULL. Each subsequent call will retrieve another user profile handle until there
3240 are no more, at which point User will point to NULL.
3243 @param[in, out] User On entry, points to the previous user profile handle or NULL to
3249 @retval EFI_INVALID_PARAMETER The User parameter is NULL.
3255 IN OUT EFI_USER_PROFILE_HANDLE *User
3260 if ((This == NULL) || (User == NULL)) {
3264 Status = FindUserProfile ((USER_PROFILE_ENTRY **) User, TRUE, NULL);
3311 @param[out] User On return, points to the user profile handle for the current
3314 @retval EFI_SUCCESS User was successfully identified.
3315 @retval EFI_ACCESS_DENIED User was not successfully identified.
3316 @retval EFI_INVALID_PARAMETER The User parameter is NULL.
3323 OUT EFI_USER_PROFILE_HANDLE *User
3328 if ((This == NULL) || (User == NULL)) {
3333 *User = mCurrentUser;
3340 Status = IdentifyUser ((USER_PROFILE_ENTRY **) User);
3351 // Signal User Profile Changed event.
3367 @param[in, out] User On entry, points to the previously returned user profile
3384 @retval EFI_SUCCESS User information was found. User points to the user profile
3386 @retval EFI_NOT_FOUND User information was not found. User points to NULL, and
3388 @retval EFI_INVALID_PARAMETER User is NULL. Or Info is NULL.
3395 IN OUT EFI_USER_PROFILE_HANDLE *User,
3404 if ((This == NULL) || (User == NULL) || (Info == NULL)) {
3426 (USER_PROFILE_ENTRY **) User,
3432 *User = NULL;
3446 This function returns user information. The format of the information is described in User
3448 and the handle specified by User is not the current user profile. The function may return
3453 @param[in] User Handle of the user whose profile will be retrieved.
3467 @retval EFI_NOT_FOUND User does not refer to a valid user profile or UserInfo does not refer
3476 IN EFI_USER_PROFILE_HANDLE User,
3492 if ((User == NULL) || (UserInfo == NULL)) {
3496 Status = GetUserInfo (User, UserInfo, Info, InfoSize, TRUE);
3520 @param[in] User Handle of the user whose profile will be retrieved.
3533 @retval EFI_NOT_FOUND User does not refer to a valid user profile or UserInfo does not
3541 IN EFI_USER_PROFILE_HANDLE User,
3549 if ((This == NULL) || (User == NULL) || (UserInfo == NULL) || (Info == NULL)) {
3556 if (User != mCurrentUser) {
3574 if (User == mCurrentUser) {
3588 Status = ModifyUserInfo (User, (EFI_USER_INFO **) UserInfo, Info, InfoSize);
3602 This function allows the credential provider to notify the User Identity Manager when user status
3604 If the User Identity Manager doesn't support asynchronous changes in credentials, then this function
3617 @retval EFI_SUCCESS The User Identity Manager has handled the notification.
3619 @retval EFI_UNSUPPORTED The User Identity Manager doesn't support asynchronous notifications.
3639 @param[in] User Handle of the user whose information will be deleted.
3642 @retval EFI_SUCCESS User information deleted successfully.
3643 @retval EFI_NOT_FOUND User information record UserInfo does not exist in the user profile.
3651 IN EFI_USER_PROFILE_HANDLE User,
3664 if (User != mCurrentUser) {
3673 Status = DelUserInfo (User, UserInfo, TRUE);
3693 @param[in] User Handle of the user whose information will be deleted.
3696 @retval EFI_SUCCESS User information returned.
3705 IN EFI_USER_PROFILE_HANDLE User,
3715 return FindUserInfo (User, (EFI_USER_INFO **) UserInfo, TRUE, NULL);
3744 // Install protocol interfaces for the User Identity Manager.