Symbol: tpm_buf
drivers/char/tpm/tpm-buf.c
105
void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length)
drivers/char/tpm/tpm-buf.c
127
void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value)
drivers/char/tpm/tpm-buf.c
133
void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value)
drivers/char/tpm/tpm-buf.c
141
void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value)
drivers/char/tpm/tpm-buf.c
158
void tpm_buf_append_handle(struct tpm_chip *chip, struct tpm_buf *buf, u32 handle)
drivers/char/tpm/tpm-buf.c
176
static void tpm_buf_read(struct tpm_buf *buf, off_t *offset, size_t count, void *output)
drivers/char/tpm/tpm-buf.c
18
int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal)
drivers/char/tpm/tpm-buf.c
202
u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset)
drivers/char/tpm/tpm-buf.c
219
u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset)
drivers/char/tpm/tpm-buf.c
236
u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset)
drivers/char/tpm/tpm-buf.c
35
void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal)
drivers/char/tpm/tpm-buf.c
57
int tpm_buf_init_sized(struct tpm_buf *buf)
drivers/char/tpm/tpm-buf.c
72
void tpm_buf_reset_sized(struct tpm_buf *buf)
drivers/char/tpm/tpm-buf.c
81
void tpm_buf_destroy(struct tpm_buf *buf)
drivers/char/tpm/tpm-buf.c
93
u32 tpm_buf_length(struct tpm_buf *buf)
drivers/char/tpm/tpm-interface.c
264
ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm-sysfs.c
35
struct tpm_buf tpm_buf;
drivers/char/tpm/tpm-sysfs.c
47
if (tpm_buf_init(&tpm_buf, TPM_TAG_RQU_COMMAND, TPM_ORD_READPUBEK))
drivers/char/tpm/tpm-sysfs.c
50
tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay));
drivers/char/tpm/tpm-sysfs.c
52
if (tpm_transmit_cmd(chip, &tpm_buf, READ_PUBEK_RESULT_MIN_BODY_SIZE,
drivers/char/tpm/tpm-sysfs.c
56
out = (struct tpm_readpubek_out *)&tpm_buf.data[10];
drivers/char/tpm/tpm-sysfs.c
75
tpm_buf_destroy(&tpm_buf);
drivers/char/tpm/tpm1-cmd.c
326
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
466
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
485
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
534
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
586
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
622
struct tpm_buf buf;
drivers/char/tpm/tpm1-cmd.c
745
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
122
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
187
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
261
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
352
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
392
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
433
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
459
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
497
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
553
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
629
struct tpm_buf buf;
drivers/char/tpm/tpm2-cmd.c
709
struct tpm_buf buf;
drivers/char/tpm/tpm2-sessions.c
1079
static int tpm2_parse_create_primary(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm2-sessions.c
1260
struct tpm_buf buf;
drivers/char/tpm/tpm2-sessions.c
1261
struct tpm_buf template;
drivers/char/tpm/tpm2-sessions.c
171
struct tpm_buf buf;
drivers/char/tpm/tpm2-sessions.c
248
int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm2-sessions.c
313
void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm2-sessions.c
364
void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm2-sessions.c
489
static void tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip,
drivers/char/tpm/tpm2-sessions.c
582
int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf)
drivers/char/tpm/tpm2-sessions.c
758
int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
drivers/char/tpm/tpm2-sessions.c
908
struct tpm_buf *buf)
drivers/char/tpm/tpm2-sessions.c
985
struct tpm_buf buf;
drivers/char/tpm/tpm2-space.c
128
struct tpm_buf tbuf;
drivers/char/tpm/tpm2-space.c
74
struct tpm_buf tbuf;
drivers/char/tpm/tpm_vtpm_proxy.c
398
struct tpm_buf buf;
include/linux/tpm.h
418
int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal);
include/linux/tpm.h
419
void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal);
include/linux/tpm.h
420
int tpm_buf_init_sized(struct tpm_buf *buf);
include/linux/tpm.h
421
void tpm_buf_reset_sized(struct tpm_buf *buf);
include/linux/tpm.h
422
void tpm_buf_destroy(struct tpm_buf *buf);
include/linux/tpm.h
423
u32 tpm_buf_length(struct tpm_buf *buf);
include/linux/tpm.h
424
void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);
include/linux/tpm.h
425
void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value);
include/linux/tpm.h
426
void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value);
include/linux/tpm.h
427
void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value);
include/linux/tpm.h
428
u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset);
include/linux/tpm.h
429
u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset);
include/linux/tpm.h
430
u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset);
include/linux/tpm.h
431
void tpm_buf_append_handle(struct tpm_chip *chip, struct tpm_buf *buf, u32 handle);
include/linux/tpm.h
471
extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
include/linux/tpm.h
482
static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
include/linux/tpm.h
518
static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
include/linux/tpm.h
532
int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
include/linux/tpm.h
534
void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
include/linux/tpm.h
537
void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
include/linux/tpm.h
543
int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf);
include/linux/tpm.h
544
int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
include/linux/tpm.h
559
struct tpm_buf *buf)
include/linux/tpm.h
565
struct tpm_buf *buf,
security/keys/trusted-keys/trusted_tpm1.c
316
struct tpm_buf buf;
security/keys/trusted-keys/trusted_tpm1.c
358
static int osap(struct tpm_buf *tb, struct osapsess *s,
security/keys/trusted-keys/trusted_tpm1.c
393
static int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce)
security/keys/trusted-keys/trusted_tpm1.c
423
static int tpm_seal(struct tpm_buf *tb, uint16_t keytype,
security/keys/trusted-keys/trusted_tpm1.c
539
static int tpm_unseal(struct tpm_buf *tb,
security/keys/trusted-keys/trusted_tpm1.c
628
struct tpm_buf tb;
security/keys/trusted-keys/trusted_tpm1.c
654
struct tpm_buf tb;
security/keys/trusted-keys/trusted_tpm2.c
204
static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle,
security/keys/trusted-keys/trusted_tpm2.c
237
struct tpm_buf buf, sized;
security/keys/trusted-keys/trusted_tpm2.c
376
struct tpm_buf buf;
security/keys/trusted-keys/trusted_tpm2.c
485
struct tpm_buf buf;