Lines Matching refs:buf
74 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument
79 len = LOAD32(buf, TPM_SIZE_OFFSET); in dump_tpm_buf()
80 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_NONE, 16, 1, buf, len, 0); in dump_tpm_buf()
95 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument
100 static inline void store8(struct tpm_buf *buf, const unsigned char value) in store8() argument
102 buf->data[buf->len++] = value; in store8()
105 static inline void store16(struct tpm_buf *buf, const uint16_t value) in store16() argument
107 *(uint16_t *) & buf->data[buf->len] = htons(value); in store16()
108 buf->len += sizeof value; in store16()
111 static inline void store32(struct tpm_buf *buf, const uint32_t value) in store32() argument
113 *(uint32_t *) & buf->data[buf->len] = htonl(value); in store32()
114 buf->len += sizeof value; in store32()
117 static inline void storebytes(struct tpm_buf *buf, const unsigned char *in, in storebytes() argument
120 memcpy(buf->data + buf->len, in, len); in storebytes()
121 buf->len += len; in storebytes()