• Home
  • Raw
  • Download

Lines Matching refs:argp

353 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable)  in sev_ioctl_do_reset()  argument
369 rc = sev_get_platform_state(&state, &argp->error); in sev_ioctl_do_reset()
377 rc = __sev_platform_shutdown_locked(&argp->error); in sev_ioctl_do_reset()
382 return __sev_do_cmd_locked(SEV_CMD_FACTORY_RESET, NULL, &argp->error); in sev_ioctl_do_reset()
385 static int sev_ioctl_do_platform_status(struct sev_issue_cmd *argp) in sev_ioctl_do_platform_status() argument
392 ret = __sev_do_cmd_locked(SEV_CMD_PLATFORM_STATUS, &data, &argp->error); in sev_ioctl_do_platform_status()
396 if (copy_to_user((void __user *)argp->data, &data, sizeof(data))) in sev_ioctl_do_platform_status()
402 static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_pdh_gen() argument
411 rc = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_pdh_gen()
416 return __sev_do_cmd_locked(cmd, NULL, &argp->error); in sev_ioctl_do_pek_pdh_gen()
419 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument
431 if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) in sev_ioctl_do_pek_csr()
454 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_csr()
459 ret = __sev_do_cmd_locked(SEV_CMD_PEK_CSR, &data, &argp->error); in sev_ioctl_do_pek_csr()
464 if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { in sev_ioctl_do_pek_csr()
602 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument
613 if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) in sev_ioctl_do_pek_import()
637 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_import()
642 ret = __sev_do_cmd_locked(SEV_CMD_PEK_CERT_IMPORT, &data, &argp->error); in sev_ioctl_do_pek_import()
651 static int sev_ioctl_do_get_id2(struct sev_issue_cmd *argp) in sev_ioctl_do_get_id2() argument
663 if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) in sev_ioctl_do_get_id2()
687 ret = __sev_do_cmd_locked(SEV_CMD_GET_ID, &data, &argp->error); in sev_ioctl_do_get_id2()
695 if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { in sev_ioctl_do_get_id2()
713 static int sev_ioctl_do_get_id(struct sev_issue_cmd *argp) in sev_ioctl_do_get_id() argument
742 ret = __sev_do_cmd_locked(SEV_CMD_GET_ID, data, &argp->error); in sev_ioctl_do_get_id()
744 if (copy_to_user((void __user *)argp->data, id_blob, data->len)) in sev_ioctl_do_get_id()
753 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument
768 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pdh_export()
773 if (copy_from_user(&input, (void __user *)argp->data, sizeof(input))) in sev_ioctl_do_pdh_export()
812 ret = __sev_do_cmd_locked(SEV_CMD_PDH_CERT_EXPORT, &data, &argp->error); in sev_ioctl_do_pdh_export()
818 if (copy_to_user((void __user *)argp->data, &input, sizeof(input))) { in sev_ioctl_do_pdh_export()
846 void __user *argp = (void __user *)arg; in sev_ioctl() local
857 if (copy_from_user(&input, argp, sizeof(struct sev_issue_cmd))) in sev_ioctl()
900 if (copy_to_user(argp, &input, sizeof(struct sev_issue_cmd))) in sev_ioctl()