Lines Matching refs:tpm_buf

376 struct tpm_buf {
426 int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal);
427 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal);
428 int tpm_buf_init_sized(struct tpm_buf *buf);
429 void tpm_buf_reset_sized(struct tpm_buf *buf);
430 void tpm_buf_destroy(struct tpm_buf *buf);
431 u32 tpm_buf_length(struct tpm_buf *buf);
432 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);
433 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value);
434 void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value);
435 void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value);
436 u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset);
437 u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset);
438 u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset);
440 u8 *tpm_buf_parameters(struct tpm_buf *buf);
460 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
470 static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
506 static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
513 void tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
515 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
519 struct tpm_buf *buf,
527 void tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf);
528 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
542 struct tpm_buf *buf,
550 struct tpm_buf *buf,
576 struct tpm_buf *buf,
592 struct tpm_buf *buf)
596 struct tpm_buf *buf,