Lines Matching refs:pv
74 #define PV2ADDR(pv, eaddr) do { \ argument
75 eaddr[0] = pv >> 40; \
76 eaddr[1] = pv >> 32; \
77 eaddr[2] = pv >> 24; \
78 eaddr[3] = pv >> 16; \
79 eaddr[4] = pv >> 8; \
80 eaddr[5] = pv >> 0; \
755 bstp_info_cmp(struct bstp_pri_vector *pv, in bstp_info_cmp() argument
758 if (cpv->pv_root_id < pv->pv_root_id) in bstp_info_cmp()
760 if (cpv->pv_root_id > pv->pv_root_id) in bstp_info_cmp()
763 if (cpv->pv_cost < pv->pv_cost) in bstp_info_cmp()
765 if (cpv->pv_cost > pv->pv_cost) in bstp_info_cmp()
768 if (cpv->pv_dbridge_id < pv->pv_dbridge_id) in bstp_info_cmp()
770 if (cpv->pv_dbridge_id > pv->pv_dbridge_id) in bstp_info_cmp()
773 if (cpv->pv_dport_id < pv->pv_dport_id) in bstp_info_cmp()
775 if (cpv->pv_dport_id > pv->pv_dport_id) in bstp_info_cmp()
788 bstp_info_superior(struct bstp_pri_vector *pv, in bstp_info_superior() argument
791 if (bstp_info_cmp(pv, cpv) == INFO_BETTER || in bstp_info_superior()
792 (bstp_same_bridgeid(pv->pv_dbridge_id, cpv->pv_dbridge_id) && in bstp_info_superior()
793 (cpv->pv_dport_id & 0xfff) == (pv->pv_dport_id & 0xfff))) in bstp_info_superior()
802 struct bstp_pri_vector pv; in bstp_assign_roles() local
817 pv = bp->bp_port_pv; in bstp_assign_roles()
818 pv.pv_cost += bp->bp_path_cost; in bstp_assign_roles()
825 if (bstp_same_bridgeid(pv.pv_dbridge_id, in bstp_assign_roles()
827 bstp_info_cmp(&bs->bs_root_pv, &pv) == INFO_BETTER) { in bstp_assign_roles()
829 bs->bs_root_pv = pv; in bstp_assign_roles()