Lines Matching refs:sec_obj

112 	section_obj_t		*sec_obj;  in create_section_hash_object()  local
114 sec_obj = malloc(sizeof (section_obj_t)); in create_section_hash_object()
115 if (sec_obj == NULL) { in create_section_hash_object()
121 free(sec_obj); in create_section_hash_object()
125 sec_obj->next = NULL; in create_section_hash_object()
126 sec_obj->seg_obj_list = NULL; in create_section_hash_object()
128 hash_obj->u.sec_obj = sec_obj; in create_section_hash_object()
223 child_obj->u.sec_obj->cont_hdl = parent_obj->obj_hdl; in add_to_sec_object_list()
230 next_hash->u.sec_obj->next != NULL; in add_to_sec_object_list()
231 next_hash = next_hash->u.sec_obj->next) { in add_to_sec_object_list()
235 next_hash->u.sec_obj->next = child_obj; in add_to_sec_object_list()
246 if (parent_obj->u.sec_obj->seg_obj_list == NULL) { in add_to_seg_object_list()
247 parent_obj->u.sec_obj->seg_obj_list = child_obj; in add_to_seg_object_list()
251 for (next_hash = parent_obj->u.sec_obj->seg_obj_list; in add_to_seg_object_list()
315 hash_obj = lookup_handle_object(hash_obj->u.sec_obj->cont_hdl, in get_container_hash_object()
876 sec_hash_obj->u.sec_obj->section.offset = in fru_open_container()
879 sec_hash_obj->u.sec_obj->section.protection = in fru_open_container()
882 sec_hash_obj->u.sec_obj->section.length = in fru_open_container()
885 sec_hash_obj->u.sec_obj->section.version = cont_info.header_ver; in fru_open_container()
886 sec_hash_obj->u.sec_obj->encoding = in fru_open_container()
959 section_obj_t *sec_obj; in get_section() local
964 sec_obj = sec_hash->u.sec_obj; in get_section()
965 if (sec_obj == NULL) { in get_section()
971 section->offset = sec_obj->section.offset; in get_section()
972 section->length = sec_obj->section.length; in get_section()
973 section->protection = sec_obj->section.protection; in get_section()
974 section->version = sec_obj->section.version; in get_section()
975 sec_obj->num_of_segment = 0; in get_section()
977 switch (sec_obj->encoding) { in get_section()
981 sec_obj->section.offset); in get_section()
1018 switch (sec_obj->encoding) { in get_section()
1022 sec_obj->section.offset + sizeof (sec_hdr)); in get_section()
1052 sec_obj->section.version = hdrver; in get_section()
1068 sec_obj->num_of_segment++; in get_section()
1160 sec_hash = sec_hash->u.sec_obj->next; in fru_get_sections()
1186 section_obj_t *sec_obj; in fru_get_num_segments() local
1193 sec_obj = sec_object->u.sec_obj; in fru_get_num_segments()
1194 if (sec_obj == NULL) { in fru_get_num_segments()
1198 return (sec_obj->num_of_segment); in fru_get_num_segments()
1225 section_obj_t *sec_obj; in fru_get_segments() local
1232 sec_obj = sec_object->u.sec_obj; in fru_get_segments()
1233 if (sec_obj == NULL) { in fru_get_segments()
1237 if (sec_obj->num_of_segment > maxseg) { in fru_get_segments()
1241 seg_object = sec_object->u.sec_obj->seg_obj_list; in fru_get_segments()
1246 for (count = 0; count < sec_obj->num_of_segment; count++) { in fru_get_segments()
1319 if (sec_hash->u.sec_obj->section.protection == READ_ONLY_SECTION) { in fru_add_segment()
1325 seg_hash = sec_hash->u.sec_obj->seg_obj_list; in fru_add_segment()
1336 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_add_segment()
1349 offset = sec_hash->u.sec_obj->section.offset; in fru_add_segment()
1369 sec_size = sec_hash->u.sec_obj->section.length; in fru_add_segment()
1467 sec_hash->u.sec_obj->num_of_segment += 1; in fru_add_segment()
1511 seg_hash = sec_hash->u.sec_obj->seg_obj_list; in free_segment_hash()
1517 sec_hash->u.sec_obj->seg_obj_list = seg_hash->u.seg_obj->next; in free_segment_hash()
1603 if (sec_hash->u.sec_obj->section.protection == READ_ONLY_SECTION) { in fru_delete_segment()
1608 num_of_seg = sec_hash->u.sec_obj->num_of_segment; in fru_delete_segment()
1618 for (tmp_hash = sec_hash->u.sec_obj->seg_obj_list; tmp_hash != NULL; in fru_delete_segment()
1626 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_delete_segment()
1645 sec_hash->u.sec_obj->section.offset); in fru_delete_segment()
1653 sec_hash->u.sec_obj->section.offset + sizeof (section_layout_t)); in fru_delete_segment()
1662 count < sec_hash->u.sec_obj->num_of_segment - 1; count++) { in fru_delete_segment()
1689 sec_hash->u.sec_obj->section.offset); in fru_delete_segment()
1697 sec_hash->u.sec_obj->section.offset + sizeof (section_layout_t)); in fru_delete_segment()
1706 sec_hash->u.sec_obj->num_of_segment = sec_layout->segmentcount; in fru_delete_segment()
1755 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_read_segment()
1770 switch (sec_hash->u.sec_obj->encoding) { in fru_read_segment()
1785 spd_buf = alloca(sec_hash->u.sec_obj->section.length); in fru_read_segment()
1790 sec_hash->u.sec_obj->section.length, in fru_read_segment()
1798 sec_hash->u.sec_obj->section.length, &ptr, &len); in fru_read_segment()
1883 protection = sec_hash->u.sec_obj->section.protection; in get_checksum_crc()
2114 switch (sec_hash->u.sec_obj->encoding) { in fru_get_num_packets()
2313 if (sec_hash->u.sec_obj->section.protection == READ_ONLY_SECTION) { in fru_update_payload()
2318 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_update_payload()
2420 if (sec_hash->u.sec_obj->section.protection == READ_ONLY_SECTION) { in fru_append_packet()
2477 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_append_packet()
2665 if (sec_hash->u.sec_obj->section.protection == READ_ONLY_SECTION) { in fru_delete_packet()
2676 cont_hash = lookup_handle_object(sec_hash->u.sec_obj->cont_hdl, in fru_delete_packet()
2770 while (sec_hash_obj->u.sec_obj->seg_obj_list != NULL) { in fru_close_container()
2773 sec_hash_obj->u.sec_obj->seg_obj_list->obj_hdl; in fru_close_container()
2793 sec_hash_obj = sec_hash_obj->u.sec_obj->next; in fru_close_container()
2795 free(prev_hash->u.sec_obj); /* free section hash object */ in fru_close_container()