Lines Matching defs:section

510 fru_get_segments(section_hdl_t section, segment_t *segment, int maxseg,
518 sec_object = lookup_handle_object(section, SECTION_TYPE);
593 get_section(raw_list_t *rawlist, hash_obj_t *sec_hash, section_t *section)
612 section->handle = sec_hash->obj_hdl;
613 section->offset = sec_obj->section.offset;
614 section->length = sec_obj->section.length;
615 section->protection = sec_obj->section.protection;
616 section->version = sec_obj->section.version;
618 /* read section header layout */
619 retval = raw_memcpy(&sec_hdr, rawlist, sec_obj->section.offset,
630 (hdrver != section->version)) {
634 /* size = section layout + total sizeof segment header */
651 sec_obj->section.offset + sizeof (sec_hdr),
658 /* copy section header layout */
671 section->version = hdrver;
672 sec_obj->section.version = hdrver;
698 fru_get_sections(container_hdl_t container, section_t *section, int maxsec,
722 section->version = -1;
724 if (get_section(g_raw, sec_hash, section) == 0) {
725 section++;
766 protection = sec_hash->u.sec_obj->section.protection;
768 if (protection == READ_ONLY_SECTION) { /* read-only section */
770 } else { /* read/write section */
814 /* section hash object */
851 (sec_hash->u.sec_obj->section.offset +
852 sec_hash->u.sec_obj->section.length)) {
947 fru_get_num_segments(section_hdl_t section, door_cred_t *cred)
952 sec_object = lookup_handle_object(section, SECTION_TYPE);
1006 /* section hash object */
1014 if (offset < sec_hash->u.sec_obj->section.offset) {
1139 sec_hash_obj->u.sec_obj->section.offset =
1142 sec_hash_obj->u.sec_obj->section.protection =
1145 sec_hash_obj->u.sec_obj->section.length =
1147 sec_hash_obj->u.sec_obj->section.version =
1171 /* points to section object list */
1174 /* traverse section object list */
1177 /* traverse segment hash object in the section */
1185 /* going to free section hash object, relink the hash object */
1202 free(prev_hash->u.sec_obj); /* free section hash object */
1203 free(prev_hash); /* free section hash */