Lines Matching refs:rank
75 unsigned rank;
81 /* This function returns direction based on rank and guid info of current &
98 /* Equal rank, decide by id number, bigger == UP direction */
160 next_dir = updn_get_dir(u->rank, rem_u->rank,
209 /* rank is a SWITCH for BFS purpose */
230 if (!u->rank)
237 /* Go over all remote nodes and rank them (if not already visited) */
264 if (remote_u->rank > u->rank + 1) {
265 remote_u->rank = u->rank + 1;
266 max_rank = remote_u->rank;
272 remote_u->rank);
300 rank != 0)
403 u->rank = 0xffffffff;
502 /* If thd conditions are valid - rank the root node */
507 ((struct updn_node *)p_sw->priv)->rank = 0;
523 if (!((struct updn_node *)sw->priv)->rank)
572 ((struct updn_node *)sw->priv)->rank = 0;