Lines Matching refs:writable
340 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument
344 if (!writable) in sev_ioctl_do_reset()
387 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
392 if (!writable) in sev_ioctl_do_pek_pdh_gen()
404 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument
413 if (!writable) in sev_ioctl_do_pek_csr()
587 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument
595 if (!writable) in sev_ioctl_do_pek_import()
731 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument
743 if (!writable) in sev_ioctl_do_pdh_export()
827 bool writable = file->f_mode & FMODE_WRITE; in sev_ioctl() local
846 ret = sev_ioctl_do_reset(&input, writable); in sev_ioctl()
852 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PEK_GEN, &input, writable); in sev_ioctl()
855 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PDH_GEN, &input, writable); in sev_ioctl()
858 ret = sev_ioctl_do_pek_csr(&input, writable); in sev_ioctl()
861 ret = sev_ioctl_do_pek_import(&input, writable); in sev_ioctl()
864 ret = sev_ioctl_do_pdh_export(&input, writable); in sev_ioctl()