Lines Matching refs:user_gcs
1491 static void task_gcs_to_user(struct user_gcs *user_gcs, in task_gcs_to_user() argument
1494 user_gcs->features_enabled = target->thread.gcs_el0_mode; in task_gcs_to_user()
1495 user_gcs->features_locked = target->thread.gcs_el0_locked; in task_gcs_to_user()
1496 user_gcs->gcspr_el0 = target->thread.gcspr_el0; in task_gcs_to_user()
1500 const struct user_gcs *user_gcs) in task_gcs_from_user() argument
1502 target->thread.gcs_el0_mode = user_gcs->features_enabled; in task_gcs_from_user()
1503 target->thread.gcs_el0_locked = user_gcs->features_locked; in task_gcs_from_user()
1504 target->thread.gcspr_el0 = user_gcs->gcspr_el0; in task_gcs_from_user()
1511 struct user_gcs user_gcs; in gcs_get() local
1519 task_gcs_to_user(&user_gcs, target); in gcs_get()
1521 return membuf_write(&to, &user_gcs, sizeof(user_gcs)); in gcs_get()
1530 struct user_gcs user_gcs; in gcs_set() local
1535 task_gcs_to_user(&user_gcs, target); in gcs_set()
1537 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &user_gcs, 0, -1); in gcs_set()
1541 if (user_gcs.features_enabled & ~PR_SHADOW_STACK_SUPPORTED_STATUS_MASK) in gcs_set()
1544 task_gcs_from_user(target, &user_gcs); in gcs_set()
1757 .n = sizeof(struct user_gcs) / sizeof(u64),