Lines Matching refs:buf
85 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument
90 len = LOAD32(buf, TPM_SIZE_OFFSET); in dump_tpm_buf()
91 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_NONE, 16, 1, buf, len, 0); in dump_tpm_buf()
106 static inline void dump_tpm_buf(unsigned char *buf) in dump_tpm_buf() argument
111 static inline void store8(struct tpm_buf *buf, const unsigned char value) in store8() argument
113 buf->data[buf->len++] = value; in store8()
116 static inline void store16(struct tpm_buf *buf, const uint16_t value) in store16() argument
118 *(uint16_t *) & buf->data[buf->len] = htons(value); in store16()
119 buf->len += sizeof value; in store16()
122 static inline void store32(struct tpm_buf *buf, const uint32_t value) in store32() argument
124 *(uint32_t *) & buf->data[buf->len] = htonl(value); in store32()
125 buf->len += sizeof value; in store32()
128 static inline void storebytes(struct tpm_buf *buf, const unsigned char *in, in storebytes() argument
131 memcpy(buf->data + buf->len, in, len); in storebytes()
132 buf->len += len; in storebytes()