Lines Matching refs:length
43 buf->length = sizeof(*head);
45 head->length = cpu_to_be32(sizeof(*head));
75 buf->length = 2;
95 return buf->length;
111 if ((buf->length + new_length) > PAGE_SIZE) {
117 memcpy(&buf->data[buf->length], new_data, new_length);
118 buf->length += new_length;
121 ((__be16 *)buf->data)[0] = cpu_to_be16(buf->length - 2);
123 ((struct tpm_header *)buf->data)->length = cpu_to_be32(buf->length);
165 if (next_offset > buf->length) {