Lines Matching refs:score
343 int index = 0, score = 0; in __of_device_is_compatible() local
351 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
355 if (!score) in __of_device_is_compatible()
363 score += 2; in __of_device_is_compatible()
370 score++; in __of_device_is_compatible()
373 return score; in __of_device_is_compatible()
399 unsigned int tmp, score = 0; in of_device_compatible_match() local
406 if (tmp > score) in of_device_compatible_match()
407 score = tmp; in of_device_compatible_match()
411 return score; in of_device_compatible_match()
1050 int score, best_score = 0; in __of_match_node() local
1056 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
1058 if (score > best_score) { in __of_match_node()
1060 best_score = score; in __of_match_node()