Lines Matching defs:snp_dev
76 static bool is_vmpck_empty(struct snp_guest_dev *snp_dev) in is_vmpck_empty()
103 static void snp_disable_vmpck(struct snp_guest_dev *snp_dev) in snp_disable_vmpck()
111 static inline u64 __snp_get_msg_seqno(struct snp_guest_dev *snp_dev) in __snp_get_msg_seqno()
124 static u64 snp_get_msg_seqno(struct snp_guest_dev *snp_dev) in snp_get_msg_seqno()
144 static void snp_inc_msg_seqno(struct snp_guest_dev *snp_dev) in snp_inc_msg_seqno()
160 static struct snp_guest_crypto *init_crypto(struct snp_guest_dev *snp_dev, u8 *key, size_t keylen) in init_crypto()
254 static int __enc_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, in __enc_payload()
266 static int dec_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, in dec_payload()
279 static int verify_and_dec_payload(struct snp_guest_dev *snp_dev, void *payload, u32 sz) in verify_and_dec_payload()
313 static int enc_payload(struct snp_guest_dev *snp_dev, u64 seqno, int version, u8 type, in enc_payload()
340 static int __handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in __handle_guest_request()
426 static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in handle_guest_request()
478 static int get_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg) in get_report()
517 static int get_derived_key(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg) in get_derived_key()
558 static int get_ext_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg) in get_ext_report()
636 struct snp_guest_dev *snp_dev = to_snp_dev(file); in snp_guest_ioctl() local
756 struct snp_guest_dev *snp_dev; in sev_guest_probe() local
844 struct snp_guest_dev *snp_dev = platform_get_drvdata(pdev); in sev_guest_remove() local