Lines Matching refs:score
490 int index = 0, score = 0; in __of_device_is_compatible() local
498 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
502 if (!score) in __of_device_is_compatible()
510 score += 2; in __of_device_is_compatible()
517 score++; in __of_device_is_compatible()
520 return score; in __of_device_is_compatible()
546 unsigned int tmp, score = 0; in of_device_compatible_match() local
553 if (tmp > score) in of_device_compatible_match()
554 score = tmp; in of_device_compatible_match()
558 return score; in of_device_compatible_match()
1085 int score, best_score = 0; in __of_match_node() local
1091 score = __of_device_is_compatible(node, matches->compatible, in __of_match_node()
1093 if (score > best_score) { in __of_match_node()
1095 best_score = score; in __of_match_node()