Lines Matching refs:head
331 struct tpm_header *head = (struct tpm_header *)buf->data;
333 head->tag = cpu_to_be16(tag);
334 head->length = cpu_to_be32(sizeof(*head));
335 head->ordinal = cpu_to_be32(ordinal);
356 struct tpm_header *head = (struct tpm_header *)buf->data;
358 return be32_to_cpu(head->length);
363 struct tpm_header *head = (struct tpm_header *)buf->data;
365 return be16_to_cpu(head->tag);
372 struct tpm_header *head = (struct tpm_header *)buf->data;
386 head->length = cpu_to_be32(len + new_len);