Lines Matching refs:ctdp
337 fwd_equiv(tdesc_t *ctdp, tdesc_t *mtdp) in fwd_equiv() argument
339 tdesc_t *defn = (ctdp->t_type == FORWARD ? mtdp : ctdp); in fwd_equiv()
346 equiv_node(tdesc_t *ctdp, tdesc_t *mtdp, equiv_data_t *ed) in equiv_node() argument
351 if (ctdp->t_emark > ed->ed_clear_mark && in equiv_node()
353 return (ctdp->t_emark == mtdp->t_emark); in equiv_node()
365 if ((mapping = get_mapping(ed->ed_ta, ctdp->t_id)) > 0 && in equiv_node()
369 if (!streq(ctdp->t_name, mtdp->t_name)) in equiv_node()
372 if (ctdp->t_type != mtdp->t_type) { in equiv_node()
373 if (ctdp->t_type == FORWARD || mtdp->t_type == FORWARD) in equiv_node()
374 return (fwd_equiv(ctdp, mtdp)); in equiv_node()
379 ctdp->t_emark = ed->ed_cur_mark; in equiv_node()
383 if ((equiv = tdesc_ops[ctdp->t_type].equiv) != NULL) in equiv_node()
384 return (equiv(ctdp, mtdp, ed)); in equiv_node()
406 tdesc_t *ctdp = ed->ed_node; in equiv_cb() local
411 if (equiv_node(ctdp, mtdp, ed)) { in equiv_cb()
413 ctdp->t_id, ctdp->t_id, mtdp->t_id, mtdp->t_id); in equiv_cb()
424 map_td_tree_pre(tdesc_t *ctdp, tdesc_t **ctdpp __unused, void *private) in map_td_tree_pre() argument
428 if (get_mapping(mcd->md_ta, ctdp->t_id) > 0) in map_td_tree_pre()
436 map_td_tree_post(tdesc_t *ctdp, tdesc_t **ctdpp __unused, void *private) in map_td_tree_post() argument
444 ed.ed_node = ctdp; in map_td_tree_post()
447 debug(3, "map_td_tree_post on %d <%x> %s\n", ctdp->t_id, ctdp->t_id,tdesc_name(ctdp)); in map_td_tree_post()
449 if (hash_find_iter(mcd->md_parent->td_layouthash, ctdp, in map_td_tree_post()
452 if (ed.ed_tgt->t_type == FORWARD && ctdp->t_type != FORWARD) { in map_td_tree_post()
456 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_post()
459 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_post()
461 add_mapping(mcd->md_ta, ctdp->t_id, ed.ed_tgt->t_id); in map_td_tree_post()
471 aborterr("Second pass for %d (%s) == %d\n", ctdp->t_id, in map_td_tree_post()
472 tdesc_name(ctdp), ed.ed_tgt->t_id); in map_td_tree_post()
477 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_post()
478 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_post()
488 map_td_tree_self_post(tdesc_t *ctdp, tdesc_t **ctdpp __unused, void *private) in map_td_tree_self_post() argument
496 ed.ed_node = ctdp; in map_td_tree_self_post()
500 if (hash_find_iter(mcd->md_tdtba, ctdp, equiv_cb, &ed) < 0) { in map_td_tree_self_post()
501 debug(3, "Self check found %d <%x> in %d <%x>\n", ctdp->t_id, in map_td_tree_self_post()
502 ctdp->t_id, ed.ed_tgt->t_id, ed.ed_tgt->t_id); in map_td_tree_self_post()
503 add_mapping(mcd->md_ta, ctdp->t_id, in map_td_tree_self_post()
514 ctdp->t_id, ctdp->t_id, tdesc_name(ctdp), ed.ed_tgt->t_id, in map_td_tree_self_post()
520 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_self_post()
521 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_self_post()