Lines Matching refs:score
511 int index = 0, score = 0; in __of_device_is_compatible() local
519 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
523 if (!score) in __of_device_is_compatible()
531 score += 2; in __of_device_is_compatible()
538 score++; in __of_device_is_compatible()
541 return score; in __of_device_is_compatible()
567 unsigned int tmp, score = 0; in of_device_compatible_match() local
574 if (tmp > score) in of_device_compatible_match()
575 score = tmp; in of_device_compatible_match()
579 return score; in of_device_compatible_match()
1134 int score, best_score = 0; in __of_match_node() local
1140 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
1142 if (score > best_score) { in __of_match_node()
1144 best_score = score; in __of_match_node()