Lines Matching refs:score
325 int index = 0, score = 0; in __of_device_is_compatible() local
333 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
337 if (!score) in __of_device_is_compatible()
345 score += 2; in __of_device_is_compatible()
352 score++; in __of_device_is_compatible()
355 return score; in __of_device_is_compatible()
381 unsigned int tmp, score = 0; in of_device_compatible_match() local
388 if (tmp > score) in of_device_compatible_match()
389 score = tmp; in of_device_compatible_match()
393 return score; in of_device_compatible_match()
948 int score, best_score = 0; in __of_match_node() local
954 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
956 if (score > best_score) { in __of_match_node()
958 best_score = score; in __of_match_node()