Lines Matching full:ed
219 equiv_intrinsic(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed __unused) in equiv_intrinsic()
241 equiv_plain(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_plain() argument
243 return (equiv_node(stdp->t_tdesc, ttdp->t_tdesc, ed)); in equiv_plain()
247 equiv_function(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_function() argument
256 if (!equiv_node(fn1->fn_ret, fn2->fn_ret, ed)) in equiv_function()
260 if (!equiv_node(fn1->fn_args[i], fn2->fn_args[i], ed)) in equiv_function()
268 equiv_array(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_array() argument
272 if (!equiv_node(ar1->ad_contents, ar2->ad_contents, ed) || in equiv_array()
273 !equiv_node(ar1->ad_idxtype, ar2->ad_idxtype, ed)) in equiv_array()
283 equiv_su(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed) in equiv_su() argument
291 !equiv_node(ml1->ml_type, ml2->ml_type, ed)) in equiv_su()
306 equiv_enum(tdesc_t *stdp, tdesc_t *ttdp, equiv_data_t *ed __unused) in equiv_enum()
328 equiv_assert(tdesc_t *stdp __unused, tdesc_t *ttdp __unused, equiv_data_t *ed __unused) in equiv_assert()
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()
352 mtdp->t_emark > ed->ed_clear_mark) in equiv_node()
365 if ((mapping = get_mapping(ed->ed_ta, ctdp->t_id)) > 0 && in equiv_node()
366 mapping == mtdp->t_id && !ed->ed_selfuniquify) in equiv_node()
379 ctdp->t_emark = ed->ed_cur_mark; in equiv_node()
380 mtdp->t_emark = ed->ed_cur_mark; in equiv_node()
381 ed->ed_cur_mark++; in equiv_node()
384 return (equiv(ctdp, mtdp, ed)); in equiv_node()
404 equiv_data_t *ed = arg; in equiv_cb() local
406 tdesc_t *ctdp = ed->ed_node; in equiv_cb()
408 ed->ed_clear_mark = ed->ed_cur_mark + 1; in equiv_cb()
409 ed->ed_cur_mark = ed->ed_clear_mark + 1; in equiv_cb()
411 if (equiv_node(ctdp, mtdp, ed)) { in equiv_cb()
414 ed->ed_tgt = mtdp; in equiv_cb()
439 equiv_data_t ed; in map_td_tree_post() local
441 ed.ed_ta = mcd->md_ta; in map_td_tree_post()
442 ed.ed_clear_mark = mcd->md_parent->td_curemark; in map_td_tree_post()
443 ed.ed_cur_mark = mcd->md_parent->td_curemark + 1; in map_td_tree_post()
444 ed.ed_node = ctdp; in map_td_tree_post()
445 ed.ed_selfuniquify = 0; in map_td_tree_post()
450 equiv_cb, &ed) < 0) { in map_td_tree_post()
452 if (ed.ed_tgt->t_type == FORWARD && ctdp->t_type != FORWARD) { in map_td_tree_post()
457 alist_add(mcd->md_fdida, (void *)(ulong_t)ed.ed_tgt, in map_td_tree_post()
461 add_mapping(mcd->md_ta, ctdp->t_id, ed.ed_tgt->t_id); in map_td_tree_post()
464 equiv_cb, &ed) < 0) { in map_td_tree_post()
472 tdesc_name(ctdp), ed.ed_tgt->t_id); in map_td_tree_post()
481 mcd->md_parent->td_curemark = ed.ed_cur_mark + 1; in map_td_tree_post()
491 equiv_data_t ed; in map_td_tree_self_post() local
493 ed.ed_ta = mcd->md_ta; in map_td_tree_self_post()
494 ed.ed_clear_mark = mcd->md_parent->td_curemark; in map_td_tree_self_post()
495 ed.ed_cur_mark = mcd->md_parent->td_curemark + 1; in map_td_tree_self_post()
496 ed.ed_node = ctdp; in map_td_tree_self_post()
497 ed.ed_selfuniquify = 1; in map_td_tree_self_post()
498 ed.ed_tgt = NULL; 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()
502 ctdp->t_id, ed.ed_tgt->t_id, ed.ed_tgt->t_id); in map_td_tree_self_post()
504 get_mapping(mcd->md_ta, ed.ed_tgt->t_id)); in map_td_tree_self_post()
506 equiv_cb, &ed) < 0) { 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()
515 ed.ed_tgt->t_id); in map_td_tree_self_post()
524 mcd->md_parent->td_curemark = ed.ed_cur_mark + 1; in map_td_tree_self_post()