Lines Matching refs:sec_obj

122 	section_obj_t *sec_obj;  in create_section_hash_object()  local
124 sec_obj = malloc(sizeof (section_obj_t)); in create_section_hash_object()
125 if (sec_obj == NULL) { in create_section_hash_object()
131 free(sec_obj); in create_section_hash_object()
135 sec_obj->next = NULL; in create_section_hash_object()
136 sec_obj->seg_obj_list = NULL; in create_section_hash_object()
138 hash_obj->u.sec_obj = sec_obj; in create_section_hash_object()
224 hash_obj = lookup_handle_object(hash_obj->u.sec_obj->cont_hdl, in get_container_hash_object()
299 seg_hash = sec_hash->u.sec_obj->seg_obj_list; in free_segment_hash()
305 sec_hash->u.sec_obj->seg_obj_list = seg_hash->u.seg_obj->next; in free_segment_hash()
341 child_obj->u.sec_obj->cont_hdl = parent_obj->obj_hdl; in add_to_sec_object_list()
348 next_hash->u.sec_obj->next != NULL; in add_to_sec_object_list()
349 next_hash = next_hash->u.sec_obj->next) { in add_to_sec_object_list()
353 next_hash->u.sec_obj->next = child_obj; in add_to_sec_object_list()
363 if (parent_obj->u.sec_obj->seg_obj_list == NULL) { in add_to_seg_object_list()
364 parent_obj->u.sec_obj->seg_obj_list = child_obj; in add_to_seg_object_list()
368 for (next_hash = parent_obj->u.sec_obj->seg_obj_list; in add_to_seg_object_list()
516 section_obj_t *sec_obj; in fru_get_segments() local
523 sec_obj = sec_object->u.sec_obj; in fru_get_segments()
524 if (sec_obj == NULL) { in fru_get_segments()
528 if (sec_obj->num_of_segment > maxseg) { in fru_get_segments()
532 seg_object = sec_object->u.sec_obj->seg_obj_list; in fru_get_segments()
537 for (count = 0; count < sec_obj->num_of_segment; count++) { in fru_get_segments()
601 section_obj_t *sec_obj; in get_section() local
606 sec_obj = sec_hash->u.sec_obj; in get_section()
607 if (sec_obj == NULL) { in get_section()
613 section->offset = sec_obj->section.offset; in get_section()
614 section->length = sec_obj->section.length; in get_section()
615 section->protection = sec_obj->section.protection; in get_section()
616 section->version = sec_obj->section.version; in get_section()
619 retval = raw_memcpy(&sec_hdr, rawlist, sec_obj->section.offset, in get_section()
651 sec_obj->section.offset + sizeof (sec_hdr), in get_section()
672 sec_obj->section.version = hdrver; in get_section()
677 if (sec_hash->u.sec_obj->seg_obj_list != NULL) { in get_section()
680 sec_obj->num_of_segment = 0; in get_section()
691 sec_obj->num_of_segment++; in get_section()
728 sec_hash = sec_hash->u.sec_obj->next; in fru_get_sections()
766 protection = sec_hash->u.sec_obj->section.protection; in get_checksum_crc()
851 (sec_hash->u.sec_obj->section.offset + in get_packets()
852 sec_hash->u.sec_obj->section.length)) { in get_packets()
950 section_obj_t *sec_obj; in fru_get_num_segments() local
957 sec_obj = sec_object->u.sec_obj; in fru_get_num_segments()
958 if (sec_obj == NULL) { in fru_get_num_segments()
962 return (sec_obj->num_of_segment); in fru_get_num_segments()
1014 if (offset < sec_hash->u.sec_obj->section.offset) { in fru_get_num_packets()
1139 sec_hash_obj->u.sec_obj->section.offset = in open_raw_data()
1142 sec_hash_obj->u.sec_obj->section.protection = in open_raw_data()
1145 sec_hash_obj->u.sec_obj->section.length = in open_raw_data()
1147 sec_hash_obj->u.sec_obj->section.version = in open_raw_data()
1178 while (sec_hash_obj->u.sec_obj->seg_obj_list != NULL) { in fru_close_container()
1181 sec_hash_obj->u.sec_obj->seg_obj_list->obj_hdl; in fru_close_container()
1200 sec_hash_obj = sec_hash_obj->u.sec_obj->next; in fru_close_container()
1202 free(prev_hash->u.sec_obj); /* free section hash object */ in fru_close_container()