Lines Matching refs:tpm_buf
12 * @buf: A &tpm_buf
18 int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal)
31 * @buf: A &tpm_buf
35 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal)
53 * @buf: A @tpm_buf
57 int tpm_buf_init_sized(struct tpm_buf *buf)
70 * @buf: A &tpm_buf
72 void tpm_buf_reset_sized(struct tpm_buf *buf)
81 void tpm_buf_destroy(struct tpm_buf *buf)
89 * @buf: A &tpm_buf
93 u32 tpm_buf_length(struct tpm_buf *buf)
101 * @buf: A &tpm_buf
105 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length)
112 WARN(1, "tpm_buf: write overflow\n");
127 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value)
133 void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value)
141 void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value)
151 * @buf: &tpm_buf instance
156 static void tpm_buf_read(struct tpm_buf *buf, off_t *offset, size_t count, void *output)
166 WARN(1, "tpm_buf: read out of boundary\n");
177 * @buf: &tpm_buf instance
182 u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset)
194 * @buf: &tpm_buf instance
199 u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset)
211 * @buf: &tpm_buf instance
216 u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset)