Lines Matching refs:score
489 int index = 0, score = 0; in __of_device_is_compatible() local
497 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
501 if (!score) in __of_device_is_compatible()
509 score += 2; in __of_device_is_compatible()
516 score++; in __of_device_is_compatible()
519 return score; in __of_device_is_compatible()
545 unsigned int tmp, score = 0; in of_device_compatible_match() local
552 if (tmp > score) in of_device_compatible_match()
553 score = tmp; in of_device_compatible_match()
557 return score; in of_device_compatible_match()
1086 int score, best_score = 0; in __of_match_node() local
1092 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
1094 if (score > best_score) { in __of_match_node()
1096 best_score = score; in __of_match_node()