Lines Matching refs:hat
1015 struct aa_profile *root, *hat = NULL; in build_change_hat() local
1029 hat = aa_find_child(root, name); in build_change_hat()
1030 if (!hat) { in build_change_hat()
1033 hat = aa_new_learning_profile(profile, true, name, in build_change_hat()
1035 if (!hat) { in build_change_hat()
1046 name, hat ? hat->base.hname : NULL, in build_change_hat()
1047 hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info, in build_change_hat()
1049 if (!hat || (error && error != -ENOENT)) in build_change_hat()
1054 return &hat->label; in build_change_hat()
1065 struct aa_profile *profile, *root, *hat = NULL; in change_hat() local
1080 for (i = 0; i < count && !hat; i++) { in change_hat()
1092 hat = aa_find_child(root, name); in change_hat()
1094 if (!hat) { in change_hat()
1098 } else if (!PROFILE_IS_HAT(hat)) { in change_hat()
1101 aa_put_profile(hat); in change_hat()
1104 aa_put_profile(hat); in change_hat()