Searched refs:best_match (Results 1 – 5 of 5) sorted by relevance
415 struct et8ek8_reglist *best_match = NULL; in et8ek8_reglist_find_mode_fmt() local446 if (dist < max_dist_match || !best_match) { in et8ek8_reglist_find_mode_fmt()447 best_match = *list; in et8ek8_reglist_find_mode_fmt()458 return best_match ? best_match : best_other; in et8ek8_reglist_find_mode_fmt()
2598 int cmd, best_match = fls(shared_hwcaps & SNOR_HWCAPS_READ_MASK) - 1; in spi_nor_select_read() local2601 if (best_match < 0) in spi_nor_select_read()2604 cmd = spi_nor_hwcaps_read2cmd(BIT(best_match)); in spi_nor_select_read()2630 int cmd, best_match = fls(shared_hwcaps & SNOR_HWCAPS_PP_MASK) - 1; in spi_nor_select_pp() local2633 if (best_match < 0) in spi_nor_select_pp()2636 cmd = spi_nor_hwcaps_pp2cmd(BIT(best_match)); in spi_nor_select_pp()
1023 const struct of_device_id *best_match = NULL; in __of_match_node() local1033 best_match = matches; in __of_match_node()1038 return best_match; in __of_match_node()
981 struct tcp_md5sig_key *best_match = NULL; in tcp_md5_do_lookup() local1007 if (match && (!best_match || in tcp_md5_do_lookup()1008 key->prefixlen > best_match->prefixlen)) in tcp_md5_do_lookup()1009 best_match = key; in tcp_md5_do_lookup()1011 return best_match; in tcp_md5_do_lookup()
917 int best_match = 0; in dnet_select_source() local932 if (ret > best_match) in dnet_select_source()934 if (best_match == 0) in dnet_select_source()