Lines Matching refs:u

110 	hash_obj->u.cont_obj = cont_obj;
138 hash_obj->u.sec_obj = sec_obj;
168 hash_obj->u.seg_obj = seg_obj;
196 hash_obj->u.pkt_obj = pkt_obj;
224 hash_obj = lookup_handle_object(hash_obj->u.sec_obj->cont_hdl,
243 child_obj->u.pkt_obj->segment_hdl = parent_obj->obj_hdl;
245 if (parent_obj->u.seg_obj->pkt_obj_list == NULL) {
246 parent_obj->u.seg_obj->pkt_obj_list = child_obj;
250 for (next_hash = parent_obj->u.seg_obj->pkt_obj_list;
251 next_hash->u.pkt_obj->next != NULL;
252 next_hash = next_hash->u.pkt_obj->next) {
256 next_hash->u.pkt_obj->next = child_obj;
266 next_obj = hash_obj->u.seg_obj->pkt_obj_list;
269 next_obj = next_obj->u.pkt_obj->next;
284 free(free_obj->u.pkt_obj->payload);
285 free(free_obj->u.pkt_obj);
289 hash_obj->u.seg_obj->pkt_obj_list = NULL;
299 seg_hash = sec_hash->u.sec_obj->seg_obj_list;
305 sec_hash->u.sec_obj->seg_obj_list = seg_hash->u.seg_obj->next;
309 seg_hash = seg_hash->u.seg_obj->next;
314 next_hash->u.seg_obj->next = seg_hash->u.seg_obj->next;
330 free(seg_hash->u.seg_obj);
341 child_obj->u.sec_obj->cont_hdl = parent_obj->obj_hdl;
342 if (parent_obj->u.cont_obj->sec_obj_list == NULL) {
343 parent_obj->u.cont_obj->sec_obj_list = child_obj;
347 for (next_hash = parent_obj->u.cont_obj->sec_obj_list;
348 next_hash->u.sec_obj->next != NULL;
349 next_hash = next_hash->u.sec_obj->next) {
353 next_hash->u.sec_obj->next = child_obj;
362 child_obj->u.seg_obj->section_hdl = parent_obj->obj_hdl;
363 if (parent_obj->u.sec_obj->seg_obj_list == NULL) {
364 parent_obj->u.sec_obj->seg_obj_list = child_obj;
368 for (next_hash = parent_obj->u.sec_obj->seg_obj_list;
369 next_hash->u.seg_obj->next != NULL;
370 next_hash = next_hash->u.seg_obj->next) {
374 next_hash->u.seg_obj->next = child_obj;
523 sec_obj = sec_object->u.sec_obj;
532 seg_object = sec_object->u.sec_obj->seg_obj_list;
542 seg_object->u.seg_obj->segment.name, SEG_NAME_LEN);
543 segment->descriptor = seg_object->u.seg_obj->segment.descriptor;
545 segment->offset = seg_object->u.seg_obj->segment.offset;
546 segment->length = seg_object->u.seg_obj->segment.length;
547 seg_object = seg_object->u.seg_obj->next;
606 sec_obj = sec_hash->u.sec_obj;
677 if (sec_hash->u.sec_obj->seg_obj_list != NULL) {
689 copy_segment_layout(&seg_hash->u.seg_obj->segment, seg_hdr);
711 if (cont_object->u.cont_obj->num_of_section > maxsec) {
715 sec_hash = cont_object->u.cont_obj->sec_obj_list;
720 for (count = 0; count < cont_object->u.cont_obj->num_of_section;
728 sec_hash = sec_hash->u.sec_obj->next;
744 sec_hash = lookup_handle_object(seg_hash->u.seg_obj->section_hdl,
756 for (pkt_hash = seg_hash->u.seg_obj->pkt_obj_list; pkt_hash != NULL;
757 pkt_hash = pkt_hash->u.pkt_obj->next) {
758 (void) memcpy(buffer + offset, &pkt_hash->u.pkt_obj->tag,
759 pkt_hash->u.pkt_obj->tag_size);
760 offset += pkt_hash->u.pkt_obj->tag_size;
761 (void) memcpy(buffer + offset, pkt_hash->u.pkt_obj->payload,
762 pkt_hash->u.pkt_obj->paylen);
763 offset += pkt_hash->u.pkt_obj->paylen;
766 protection = sec_hash->u.sec_obj->section.protection;
815 sec_hash = lookup_handle_object(seg_hash->u.seg_obj->section_hdl,
822 seg_hash->u.seg_obj->trailer_offset = offset;
851 (sec_hash->u.sec_obj->section.offset +
852 sec_hash->u.sec_obj->section.length)) {
861 pkt_hash_obj->u.pkt_obj->payload = malloc(paylen);
862 if (pkt_hash_obj->u.pkt_obj->payload == NULL) {
869 retval = raw_memcpy(pkt_hash_obj->u.pkt_obj->payload, rawlist,
873 free(pkt_hash_obj->u.pkt_obj->payload);
879 pkt_hash_obj->u.pkt_obj->tag.raw_data = 0;
880 (void) memcpy(&pkt_hash_obj->u.pkt_obj->tag, &tag, tag_size);
881 pkt_hash_obj->u.pkt_obj->paylen = paylen;
882 pkt_hash_obj->u.pkt_obj->tag_size = tag_size;
883 pkt_hash_obj->u.pkt_obj->payload_offset = offset;
901 segdesc = (fru_segdesc_t *)&seg_hash->u.seg_obj->segment.descriptor;
903 seg_hash->u.seg_obj->trailer_offset = offset;
907 offset = seg_hash->u.seg_obj->segment.offset;
923 seg_hash->u.seg_obj->trailer_offset = offset;
942 return (hash_object->u.cont_obj->num_of_section);
957 sec_obj = sec_object->u.sec_obj;
983 segment_object = seg_hash->u.seg_obj;
1003 if (seg_hash->u.seg_obj->pkt_obj_list != NULL) {
1007 sec_hash = lookup_handle_object(seg_hash->u.seg_obj->section_hdl,
1014 if (offset < sec_hash->u.sec_obj->section.offset) {
1023 seg_hash->u.seg_obj->pkt_obj_list = NULL;
1046 if (seg_hash_obj->u.seg_obj->num_of_packets != maxpackets) {
1050 pkt_hash_obj = seg_hash_obj->u.seg_obj->pkt_obj_list;
1058 (void) memcpy(&packet->tag, &pkt_hash_obj->u.pkt_obj->tag,
1059 pkt_hash_obj->u.pkt_obj->tag_size);
1060 pkt_hash_obj = pkt_hash_obj->u.pkt_obj->next;
1080 if (nbytes != packet_hash_obj->u.pkt_obj->paylen) {
1084 (void) memcpy(buffer, packet_hash_obj->u.pkt_obj->payload, nbytes);
1106 (void) strncpy(cont_hash_obj->u.cont_obj->device_pathname, "unknown",
1107 sizeof (cont_hash_obj->u.cont_obj->device_pathname));
1128 cont_hash_obj->u.cont_obj->num_of_section = cont_info.num_sections;
1129 cont_hash_obj->u.cont_obj->sec_obj_list = NULL;
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 =
1172 sec_hash_obj = hash_obj->u.cont_obj->sec_obj_list;
1178 while (sec_hash_obj->u.sec_obj->seg_obj_list != NULL) {
1181 sec_hash_obj->u.sec_obj->seg_obj_list->obj_hdl;
1200 sec_hash_obj = sec_hash_obj->u.sec_obj->next;
1202 free(prev_hash->u.sec_obj); /* free section hash object */
1220 free(hash_obj->u.cont_obj);