Lines Matching refs:writable
555 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument
559 if (!writable) in sev_ioctl_do_reset()
604 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
609 if (!writable) in sev_ioctl_do_pek_pdh_gen()
621 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument
630 if (!writable) in sev_ioctl_do_pek_csr()
817 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument
825 if (!writable) in sev_ioctl_do_pek_import()
961 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument
973 if (!writable) in sev_ioctl_do_pdh_export()
1057 bool writable = file->f_mode & FMODE_WRITE; in sev_ioctl() local
1076 ret = sev_ioctl_do_reset(&input, writable); in sev_ioctl()
1082 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PEK_GEN, &input, writable); in sev_ioctl()
1085 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PDH_GEN, &input, writable); in sev_ioctl()
1088 ret = sev_ioctl_do_pek_csr(&input, writable); in sev_ioctl()
1091 ret = sev_ioctl_do_pek_import(&input, writable); in sev_ioctl()
1094 ret = sev_ioctl_do_pdh_export(&input, writable); in sev_ioctl()