Lines Matching defs:rfp
244 ctf_file_t *rfp = fp;
246 ctf_lookup_by_id(&rfp, cdp->cd_type);
247 const char *name = ctf_strptr(rfp, tp->ctt_name);
539 ctf_type_cmp(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype)
550 if (lfp == rfp)
556 if (CTF_TYPE_ISPARENT(rtype) && rfp->ctf_parent != NULL)
557 rfp = rfp->ctf_parent;
559 if (lfp < rfp)
562 if (lfp > rfp)
575 ctf_type_compat(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype)
577 return ctf_type_compat_helper(lfp, ltype, rfp, rtype, 1);
587 ctf_type_printf_compat(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype)
589 return ctf_type_compat_helper(lfp, ltype, rfp, rtype, 0);
594 ctf_type_compat_helper(ctf_file_t *lfp, ctf_id_t ltype, ctf_file_t *rfp, ctf_id_t rtype, int nameMustMatch)
601 if (ctf_type_cmp(lfp, ltype, rfp, rtype) == 0)
607 rtype = ctf_type_resolve(rfp, rtype);
608 rkind = ctf_type_kind(rfp, rtype);
611 rtp = ctf_lookup_by_id(&rfp, rtype);
615 strcmp(ctf_strptr(lfp, ltp->ctt_name), ctf_strptr(rfp, rtp->ctt_name)) != 0)
623 ctf_type_encoding(rfp, rtype, &re) == 0 &&
627 rfp, ctf_type_reference(rfp, rtype)));
630 ctf_array_info(rfp, rtype, &ra) == 0 &&
632 lfp, la.ctr_contents, rfp, ra.ctr_contents) &&
633 ctf_type_compat(lfp, la.ctr_index, rfp, ra.ctr_index));
636 return (ctf_type_size(lfp, ltype) == ctf_type_size(rfp, rtype));