Lines Matching refs:tpm_chip
31 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions()
56 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space()
68 static int tpm2_load_context(struct tpm_chip *chip, u8 *buf, in tpm2_load_context()
119 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context()
161 void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space()
173 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space()
236 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd) in tpm2_map_command()
262 static int tpm_find_and_validate_cc(struct tpm_chip *chip, in tpm_find_and_validate_cc()
297 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd, in tpm2_prepare_space()
333 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session()
369 static int tpm2_map_response_header(struct tpm_chip *chip, u32 cc, u8 *rsp, in tpm2_map_response_header()
429 static int tpm2_map_response_body(struct tpm_chip *chip, u32 cc, u8 *rsp, in tpm2_map_response_body()
483 static int tpm2_save_space(struct tpm_chip *chip) in tpm2_save_space()
527 int tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space, in tpm2_commit_space()