Lines Matching defs:ctdp

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