Lines Matching refs:seg_hash

296 	hash_obj_t *seg_hash;
299 seg_hash = sec_hash->u.sec_obj->seg_obj_list;
300 if (seg_hash == NULL) {
304 if (seg_hash->obj_hdl == handle) {
305 sec_hash->u.sec_obj->seg_obj_list = seg_hash->u.seg_obj->next;
307 while (seg_hash->obj_hdl != handle) {
308 next_hash = seg_hash;
309 seg_hash = seg_hash->u.seg_obj->next;
310 if (seg_hash == NULL) {
314 next_hash->u.seg_obj->next = seg_hash->u.seg_obj->next;
317 if (seg_hash->prev == NULL) {
318 hash_table[(seg_hash->obj_hdl % TABLE_SIZE)] = seg_hash->next;
319 if (seg_hash->next != NULL) {
320 seg_hash->next->prev = NULL;
323 seg_hash->prev->next = seg_hash->next;
324 if (seg_hash->next != NULL) {
325 seg_hash->next->prev = seg_hash->prev;
329 free_pkt_object_list(seg_hash);
330 free(seg_hash->u.seg_obj);
331 free(seg_hash);
599 hash_obj_t *seg_hash;
684 seg_hash = create_segment_hash_object();
685 if (seg_hash == NULL) {
688 add_hashobject_to_hashtable(seg_hash);
689 copy_segment_layout(&seg_hash->u.seg_obj->segment, seg_hdr);
690 add_to_seg_object_list(sec_hash, seg_hash);
735 get_checksum_crc(hash_obj_t *seg_hash, int data_size)
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;
792 get_packets(hash_obj_t *seg_hash, raw_list_t *rawlist, int offset, int length)
815 sec_hash = lookup_handle_object(seg_hash->u.seg_obj->section_hdl,
822 seg_hash->u.seg_obj->trailer_offset = offset;
888 add_to_pkt_object_list(seg_hash, pkt_hash_obj);
901 segdesc = (fru_segdesc_t *)&seg_hash->u.seg_obj->segment.descriptor;
903 seg_hash->u.seg_obj->trailer_offset = offset;
906 crc = get_checksum_crc(seg_hash, seg_limit);
907 offset = seg_hash->u.seg_obj->segment.offset;
923 seg_hash->u.seg_obj->trailer_offset = offset;
973 hash_obj_t *seg_hash;
978 seg_hash = lookup_handle_object(segment, SEGMENT_TYPE);
979 if (seg_hash == NULL) {
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,
1020 pktcnt = get_packets(seg_hash, g_raw, offset, length);
1022 free_pkt_object_list(seg_hash);
1023 seg_hash->u.seg_obj->pkt_obj_list = NULL;