Lines Matching refs:head
419 struct tpm_input_header *head; in tpm_buf_init() local
428 head = (struct tpm_input_header *) buf->data; in tpm_buf_init()
430 head->tag = cpu_to_be16(tag); in tpm_buf_init()
431 head->length = cpu_to_be32(sizeof(*head)); in tpm_buf_init()
432 head->ordinal = cpu_to_be32(ordinal); in tpm_buf_init()
445 struct tpm_input_header *head = (struct tpm_input_header *) buf->data; in tpm_buf_length() local
447 return be32_to_cpu(head->length); in tpm_buf_length()
452 struct tpm_input_header *head = (struct tpm_input_header *) buf->data; in tpm_buf_tag() local
454 return be16_to_cpu(head->tag); in tpm_buf_tag()
461 struct tpm_input_header *head = (struct tpm_input_header *) buf->data; in tpm_buf_append() local
475 head->length = cpu_to_be32(len + new_len); in tpm_buf_append()