Lines Matching refs:dst_fp

1338 soucmp(ctf_file_t *src_fp, ctf_id_t src_type, ctf_file_t *dst_fp,  in soucmp()  argument
1348 if ((dst_type = ctf_type_resolve(dst_fp, dst_type)) == CTF_ERR) in soucmp()
1353 if ((dst_tp = ctf_lookup_by_id(&dst_fp, dst_type)) == NULL) in soucmp()
1357 ctf_get_ctt_info(dst_fp, dst_tp, &dst_kind, &dst_vlen, NULL); in soucmp()
1360 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1362 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1364 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1367 (void) ctf_get_ctt_size(dst_fp, dst_tp, &dst_sz, &dst_inc); in soucmp()
1369 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1380 ctf_get_ctm_info(dst_fp, dst_mp, dst_sz, &dst_inc, NULL, in soucmp()
1384 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1386 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in soucmp()
1400 ctf_add_type(ctf_file_t *dst_fp, ctf_file_t *src_fp, ctf_id_t src_type) in ctf_add_type() argument
1420 if (dst_fp == src_fp) in ctf_add_type()
1423 if (!(dst_fp->ctf_flags & LCTF_RDWR)) in ctf_add_type()
1424 return (ctf_set_errno(dst_fp, ECTF_RDONLY)); in ctf_add_type()
1427 return (ctf_set_errno(dst_fp, ctf_errno(src_fp))); in ctf_add_type()
1435 hp = &dst_fp->ctf_structs; in ctf_add_type()
1438 hp = &dst_fp->ctf_unions; in ctf_add_type()
1441 hp = &dst_fp->ctf_enums; in ctf_add_type()
1444 hp = &dst_fp->ctf_names; in ctf_add_type()
1454 (hep = ctf_hash_lookup(hp, dst_fp, name, strlen(name))) != NULL) { in ctf_add_type()
1456 dst_kind = ctf_type_kind(dst_fp, dst_type); in ctf_add_type()
1467 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in ctf_add_type()
1485 for (dtd = ctf_list_prev(&dst_fp->ctf_dtdefs); dtd != NULL && in ctf_add_type()
1486 LCTF_TYPE_TO_INDEX(dst_fp, dtd->dtd_type) > in ctf_add_type()
1487 dst_fp->ctf_dtoldid; dtd = ctf_list_prev(dtd)) { in ctf_add_type()
1488 if (LCTF_INFO_KIND(dst_fp, dtd->dtd_data.ctt_info) != in ctf_add_type()
1508 dst.ctb_file = dst_fp; in ctf_add_type()
1522 return (ctf_set_errno(dst_fp, ctf_errno(src_fp))); in ctf_add_type()
1536 return (ctf_set_errno(dst_fp, in ctf_add_type()
1540 ctf_add_type(dst_fp, src_fp, in ctf_add_type()
1546 if (ctf_type_encoding(dst_fp, dst_type, &dst_en) != 0) in ctf_add_type()
1550 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in ctf_add_type()
1553 dst_type = ctf_add_integer(dst_fp, flag, name, &src_en); in ctf_add_type()
1555 dst_type = ctf_add_float(dst_fp, flag, name, &src_en); in ctf_add_type()
1563 src_type = ctf_add_type(dst_fp, src_fp, src_type); in ctf_add_type()
1568 dst_type = ctf_add_reftype(dst_fp, flag, src_type, kind); in ctf_add_type()
1573 return (ctf_set_errno(dst_fp, ctf_errno(src_fp))); in ctf_add_type()
1576 ctf_add_type(dst_fp, src_fp, src_ar.ctr_contents); in ctf_add_type()
1578 ctf_add_type(dst_fp, src_fp, src_ar.ctr_index); in ctf_add_type()
1586 if (ctf_array_info(dst_fp, dst_type, &dst_ar) != 0) in ctf_add_type()
1590 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in ctf_add_type()
1592 dst_type = ctf_add_array(dst_fp, flag, &src_ar); in ctf_add_type()
1597 ctc.ctc_return = ctf_add_type(dst_fp, src_fp, type); in ctf_add_type()
1604 dst_type = ctf_add_function(dst_fp, flag, &ctc, NULL); in ctf_add_type()
1619 if (soucmp(src_fp, src_type, dst_fp, dst_type) != 0) in ctf_add_type()
1629 dst_type = ctf_add_generic(dst_fp, flag, name, &dtd); in ctf_add_type()
1641 dtd->dtd_data.ctt_size = LCTF_LSIZE_SENT(dst_fp); in ctf_add_type()
1647 dtd->dtd_data.ctt_info = LCTF_TYPE_INFO(dst_fp, kind, flag, in ctf_add_type()
1657 if ((dmd->dmd_type = ctf_add_type(dst_fp, src_fp, in ctf_add_type()
1671 ctf_ref_inc(dst_fp, dmd->dmd_type); in ctf_add_type()
1678 ctf_enum_iter(dst_fp, dst_type, enumcmp, &src)) in ctf_add_type()
1679 return (ctf_set_errno(dst_fp, ECTF_CONFLICT)); in ctf_add_type()
1681 dst_type = ctf_add_enum(dst_fp, flag, name); in ctf_add_type()
1690 dst_type = ctf_add_forward(dst_fp, in ctf_add_type()
1697 src_type = ctf_add_type(dst_fp, src_fp, src_type); in ctf_add_type()
1712 dst_type = ctf_add_typedef(dst_fp, flag, in ctf_add_type()
1718 return (ctf_set_errno(dst_fp, ECTF_CORRUPT)); in ctf_add_type()