Lines Matching refs:ctdp

347 fwd_equiv(tdesc_t *ctdp, tdesc_t *mtdp)  in fwd_equiv()  argument
349 tdesc_t *defn = (ctdp->t_type == FORWARD ? mtdp : ctdp); in fwd_equiv()
355 equiv_node(tdesc_t *ctdp, tdesc_t *mtdp, equiv_data_t *ed) in equiv_node() argument
360 if (ctdp->t_emark > ed->ed_clear_mark || in equiv_node()
362 return (ctdp->t_emark == mtdp->t_emark); in equiv_node()
374 if ((mapping = get_mapping(ed->ed_ta, ctdp->t_id)) > 0 && in equiv_node()
378 if (!streq(ctdp->t_name, mtdp->t_name)) in equiv_node()
381 if (ctdp->t_type != mtdp->t_type) { in equiv_node()
382 if (ctdp->t_type == FORWARD || mtdp->t_type == FORWARD) in equiv_node()
383 return (fwd_equiv(ctdp, mtdp)); in equiv_node()
388 ctdp->t_emark = ed->ed_cur_mark; in equiv_node()
392 if ((equiv = tdesc_ops[ctdp->t_type].equiv) != NULL) in equiv_node()
393 return (equiv(ctdp, mtdp, ed)); in equiv_node()
415 tdesc_t *ctdp = ed->ed_node; in equiv_cb() local
420 if (equiv_node(ctdp, mtdp, ed)) { in equiv_cb()
421 debug(3, "equiv_node matched %d %d\n", ctdp->t_id, mtdp->t_id); in equiv_cb()
432 map_td_tree_pre(tdesc_t *ctdp, tdesc_t **ctdpp, void *private) in map_td_tree_pre() argument
436 if (get_mapping(mcd->md_ta, ctdp->t_id) > 0) in map_td_tree_pre()
444 map_td_tree_post(tdesc_t *ctdp, tdesc_t **ctdpp, void *private) in map_td_tree_post() argument
452 ed.ed_node = ctdp; in map_td_tree_post()
455 debug(3, "map_td_tree_post on %d %s\n", ctdp->t_id, tdesc_name(ctdp)); in map_td_tree_post()
457 if (hash_find_iter(mcd->md_parent->td_layouthash, ctdp, in map_td_tree_post()
460 if (ed.ed_tgt->t_type == FORWARD && ctdp->t_type != FORWARD) { in map_td_tree_post()
464 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_post()
467 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_post()
469 add_mapping(mcd->md_ta, ctdp->t_id, ed.ed_tgt->t_id); in map_td_tree_post()
479 aborterr("Second pass for %d (%s) == %d\n", ctdp->t_id, in map_td_tree_post()
480 tdesc_name(ctdp), ed.ed_tgt->t_id); in map_td_tree_post()
485 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_post()
486 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_post()
496 map_td_tree_self_post(tdesc_t *ctdp, tdesc_t **ctdpp, void *private) in map_td_tree_self_post() argument
504 ed.ed_node = ctdp; in map_td_tree_self_post()
508 if (hash_find_iter(mcd->md_tdtba, ctdp, equiv_cb, &ed) < 0) { in map_td_tree_self_post()
509 debug(3, "Self check found %d in %d\n", ctdp->t_id, in map_td_tree_self_post()
511 add_mapping(mcd->md_ta, ctdp->t_id, in map_td_tree_self_post()
522 ctdp->t_id, tdesc_name(ctdp), ed.ed_tgt->t_id); in map_td_tree_self_post()
527 add_mapping(mcd->md_ta, ctdp->t_id, id); in map_td_tree_self_post()
528 hash_add(mcd->md_tdtba, ctdp); in map_td_tree_self_post()