Lines Matching refs:score
515 int index = 0, score = 0; in __of_device_is_compatible() local
523 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
527 if (!score) in __of_device_is_compatible()
535 score += 2; in __of_device_is_compatible()
542 score++; in __of_device_is_compatible()
545 return score; in __of_device_is_compatible()
571 unsigned int tmp, score = 0; in of_device_compatible_match() local
578 if (tmp > score) in of_device_compatible_match()
579 score = tmp; in of_device_compatible_match()
583 return score; in of_device_compatible_match()
1112 int score, best_score = 0; in __of_match_node() local
1118 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
1120 if (score > best_score) { in __of_match_node()
1122 best_score = score; in __of_match_node()