Lines Matching refs:current_depth
90 int current_depth = 0; in Validate() local
102 if (current_index == parents[current_depth]) { in Validate()
105 current_depth++; in Validate()
107 if (current_depth == kMaxTopologyDepth) { in Validate()
118 for (int i = current_depth - 1; i >= 0; --i) { in Validate()
121 current_depth = 0; in Validate()
132 if (parents[current_depth] == ZBI_TOPOLOGY_NO_PARENT) { in Validate()
133 parents[current_depth] = node->parent_index; in Validate()
134 } else if (parents[current_depth] != node->parent_index) { in Validate()
140 if (current_depth == 0 && node->entity_type != ZBI_TOPOLOGY_ENTITY_PROCESSOR) { in Validate()
146 if (current_depth != 0 && node->entity_type == ZBI_TOPOLOGY_ENTITY_PROCESSOR) { in Validate()
153 if (current_index == 0 && parents[current_depth] != ZBI_TOPOLOGY_NO_PARENT && in Validate()
154 (current_depth == kMaxTopologyDepth - 1 || in Validate()
155 parents[current_depth + 1] == ZBI_TOPOLOGY_NO_PARENT)) { in Validate()