Lines Matching refs:hp

2539 	di_hp_t			hp;  in di_walk_hp_callback()  local
2542 for (hp = DI_HP_NIL; (hp = di_hp_next(node, hp)) != DI_HP_NIL; ) { in di_walk_hp_callback()
2546 type_str = di_hp_description(hp); in di_walk_hp_callback()
2553 (di_hp_type(hp) == DDI_HP_CN_TYPE_VIRTUAL_PORT)) in di_walk_hp_callback()
2558 !(di_hp_type(hp) == DDI_HP_CN_TYPE_VIRTUAL_PORT)) in di_walk_hp_callback()
2562 if (arg->hp_callback(node, hp, arg->arg) != DI_WALK_CONTINUE) in di_walk_hp_callback()
2571 int (*hp_callback)(di_node_t node, di_hp_t hp, void *arg)) in di_walk_hp() argument
2605 di_hp_next(di_node_t node, di_hp_t hp) in di_hp_next() argument
2620 if (hp != DI_HP_NIL) { in di_hp_next()
2621 if (DI_HP(hp)->next != 0) in di_hp_next()
2622 return (DI_HP((caddr_t)hp - hp->self + hp->next)); in di_hp_next()
2651 di_hp_name(di_hp_t hp) in di_hp_name() argument
2658 if (hp == DI_HP_NIL) { in di_hp_name()
2663 pa = (caddr_t)hp - DI_HP(hp)->self; in di_hp_name()
2665 if (DI_HP(hp)->hp_name == 0) { in di_hp_name()
2670 return ((char *)(pa + DI_HP(hp)->hp_name)); in di_hp_name()
2674 di_hp_connection(di_hp_t hp) in di_hp_connection() argument
2679 if (hp == DI_HP_NIL) { in di_hp_connection()
2684 if (DI_HP(hp)->hp_connection == -1) in di_hp_connection()
2687 return (DI_HP(hp)->hp_connection); in di_hp_connection()
2691 di_hp_depends_on(di_hp_t hp) in di_hp_depends_on() argument
2696 if (hp == DI_HP_NIL) { in di_hp_depends_on()
2701 if (DI_HP(hp)->hp_depends_on == -1) in di_hp_depends_on()
2704 return (DI_HP(hp)->hp_depends_on); in di_hp_depends_on()
2708 di_hp_state(di_hp_t hp) in di_hp_state() argument
2713 if (hp == DI_HP_NIL) { in di_hp_state()
2718 return (DI_HP(hp)->hp_state); in di_hp_state()
2722 di_hp_type(di_hp_t hp) in di_hp_type() argument
2727 if (hp == DI_HP_NIL) { in di_hp_type()
2732 return (DI_HP(hp)->hp_type); in di_hp_type()
2736 di_hp_description(di_hp_t hp) in di_hp_description() argument
2743 if (hp == DI_HP_NIL) { in di_hp_description()
2748 pa = (caddr_t)hp - DI_HP(hp)->self; in di_hp_description()
2750 if (DI_HP(hp)->hp_type_str == 0) in di_hp_description()
2753 return ((char *)(pa + DI_HP(hp)->hp_type_str)); in di_hp_description()
2757 di_hp_child(di_hp_t hp) in di_hp_child() argument
2764 if (hp == DI_HP_NIL) { in di_hp_child()
2769 pa = (caddr_t)hp - DI_HP(hp)->self; in di_hp_child()
2771 if (DI_HP(hp)->hp_child > 0) { in di_hp_child()
2772 return (DI_NODE(pa + DI_HP(hp)->hp_child)); in di_hp_child()
2789 di_hp_last_change(di_hp_t hp) in di_hp_last_change() argument
2794 if (hp == DI_HP_NIL) { in di_hp_last_change()
2799 return ((time_t)DI_HP(hp)->hp_last_change); in di_hp_last_change()