Lines Matching refs:hat
1013 struct aa_profile *root, *hat = NULL; in build_change_hat() local
1027 hat = aa_find_child(root, name); in build_change_hat()
1028 if (!hat) { in build_change_hat()
1031 hat = aa_new_learning_profile(profile, true, name, in build_change_hat()
1033 if (!hat) { in build_change_hat()
1044 name, hat ? hat->base.hname : NULL, in build_change_hat()
1045 hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info, in build_change_hat()
1047 if (!hat || (error && error != -ENOENT)) in build_change_hat()
1052 return &hat->label; in build_change_hat()
1063 struct aa_profile *profile, *root, *hat = NULL; in change_hat() local
1078 for (i = 0; i < count && !hat; i++) { in change_hat()
1090 hat = aa_find_child(root, name); in change_hat()
1092 if (!hat) { in change_hat()
1096 } else if (!PROFILE_IS_HAT(hat)) { in change_hat()
1099 aa_put_profile(hat); in change_hat()
1102 aa_put_profile(hat); in change_hat()