• Home
  • Raw
  • Download

Lines Matching refs:header_ptr

103     tbd_header_t *header_ptr = a_data_ptr;  in validate_anysize()  local
106 if (!is_valid_pointer(header_ptr)) { in validate_anysize()
113 if (header_ptr->size % sizeof(uint32_t)) { in validate_anysize()
117 if (header_ptr->size < sizeof(tbd_header_t)) { in validate_anysize()
124 byte_ptr = (uint8_t *)(header_ptr + 1); in validate_anysize()
125 eof_ptr = (uint8_t *)(a_data_ptr) + header_ptr->size; in validate_anysize()
174 tbd_header_t *header_ptr = a_data_ptr; in validate() local
177 if (!is_valid_pointer(header_ptr)) { in validate()
189 if (header_ptr->size > a_data_size) { in validate()
212 tbd_header_t *header_ptr; in tbd_create() local
224 header_ptr = a_data_ptr; in tbd_create()
226 header_ptr->tag = a_tag; in tbd_create()
228 header_ptr->size = sizeof(tbd_header_t); in tbd_create()
229 header_ptr->version = IA_TBD_VERSION; in tbd_create()
230 header_ptr->revision = IA_TBD_REVISION; in tbd_create()
231 header_ptr->config_bits = 0; in tbd_create()
232 header_ptr->checksum = get_checksum(header_ptr, sizeof(tbd_header_t)); in tbd_create()
249 tbd_header_t *header_ptr; in tbd_validate_anytag() local
258 header_ptr = a_data_ptr; in tbd_validate_anytag()
267 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) { in tbd_validate_anytag()
289 tbd_header_t *header_ptr; in tbd_validate() local
298 header_ptr = a_data_ptr; in tbd_validate()
301 if (header_ptr->tag != a_tag) { in tbd_validate()
308 if (reverse_tag == header_ptr->tag) { in tbd_validate()
323 if (get_checksum(header_ptr, header_ptr->size) - header_ptr->checksum != header_ptr->checksum) { in tbd_validate()
348 tbd_header_t *header_ptr; in tbd_get_record() local
358 header_ptr = a_data_ptr; in tbd_get_record()
361 byte_ptr = (uint8_t *)(header_ptr + 1); in tbd_get_record()
362 eof_ptr = (uint8_t *)(a_data_ptr) + header_ptr->size; in tbd_get_record()
417 tbd_header_t *header_ptr; in tbd_insert_record() local
428 header_ptr = a_data_ptr; in tbd_insert_record()
431 new_size = header_ptr->size + sizeof(tbd_record_header_t) + a_record_size; in tbd_insert_record()
451 record_ptr = (tbd_record_header_t *)((char *)(a_data_ptr) + header_ptr->size); in tbd_insert_record()
462 header_ptr->size = new_size; in tbd_insert_record()
463 header_ptr->checksum = 0; in tbd_insert_record()
464 header_ptr->checksum = get_checksum(header_ptr, new_size); in tbd_insert_record()
489 tbd_header_t *header_ptr; in tbd_remove_record() local
500 header_ptr = a_data_ptr; in tbd_remove_record()
503 byte_ptr = (uint8_t *)(header_ptr + 1); in tbd_remove_record()
504 eof_ptr = (uint8_t *)(a_data_ptr) + header_ptr->size; in tbd_remove_record()
522 new_size = header_ptr->size - record_size; in tbd_remove_record()
523 header_ptr->size = new_size; in tbd_remove_record()
524 header_ptr->checksum = 0; in tbd_remove_record()
525 header_ptr->checksum = get_checksum(header_ptr, new_size); in tbd_remove_record()
538 *a_new_size = header_ptr->size; in tbd_remove_record()
554 tbd_header_t *header_ptr; in tbd_infoprint() local
567 header_ptr = a_data_ptr; in tbd_infoprint()
569 …\')\n", header_ptr->tag, ((char *)(&header_ptr->tag))[0], ((char *)(&header_ptr->tag))[1], ((char … in tbd_infoprint()
570 …outfile, "Data size: %d (0x%x), buffer size %d (0x%x)\n", header_ptr->size, header_ptr->size, … in tbd_infoprint()
571 fprintf(a_outfile, "Data version: 0x%08x\n", header_ptr->version); in tbd_infoprint()
572 fprintf(a_outfile, "Data revision: 0x%08x\n", header_ptr->revision); in tbd_infoprint()
573 fprintf(a_outfile, "Data config: 0x%08x\n", header_ptr->config_bits); in tbd_infoprint()
574 fprintf(a_outfile, "Data checksum: 0x%08x\n", header_ptr->checksum); in tbd_infoprint()
579 byte_ptr = (uint8_t *)(header_ptr + 1); in tbd_infoprint()
580 eof_ptr = (uint8_t *)(a_data_ptr) + header_ptr->size; in tbd_infoprint()