/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 80 int i, score=0; in start_contest() local 107 score += tbsync->race_result; in start_contest() 110 return score; in start_contest() 115 int i, score, score2, old, min=0, max=5000, offset=1000; in smp_generic_give_timebase() local 131 score = start_contest(kSetAndTest, offset, NUM_ITER); in smp_generic_give_timebase() 133 pr_debug("score %d, offset %d\n", score, offset ); in smp_generic_give_timebase() 135 if( score > 0 ) in smp_generic_give_timebase() 141 score = start_contest(kSetAndTest, min, NUM_ITER); in smp_generic_give_timebase() 144 pr_debug("Min %d (score in smp_generic_give_timebase() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | smp-tbsync.c | 80 int i, score=0; in start_contest() local 107 score += tbsync->race_result; in start_contest() 110 return score; in start_contest() 115 int i, score, score2, old, min=0, max=5000, offset=1000; in smp_generic_give_timebase() local 131 score = start_contest(kSetAndTest, offset, NUM_ITER); in smp_generic_give_timebase() 133 pr_debug("score %d, offset %d\n", score, offset ); in smp_generic_give_timebase() 135 if( score > 0 ) in smp_generic_give_timebase() 141 score = start_contest(kSetAndTest, min, NUM_ITER); in smp_generic_give_timebase() 144 pr_debug("Min %d (score in smp_generic_give_timebase() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 35 int score; member 56 int score = 1; in shadow_image() local 91 score += 1; in shadow_image() 92 score += 1; in shadow_image() 96 score += 3; in shadow_image() 100 score += 3; in shadow_image() 105 score += shadow_image(bios, idx + 1, offset + image.size, mthd); in shadow_image() 106 return score; in shadow_image() 123 mthd->score = shadow_image(bios, 0, 0, mthd); in shadow_method() 126 nvkm_debug(subdev, "scored %d\n", mthd->score); in shadow_method() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 35 int score; member 56 int score = 1; in shadow_image() local 91 score += 1; in shadow_image() 92 score += 1; in shadow_image() 96 score += 3; in shadow_image() 100 score += 3; in shadow_image() 105 score += shadow_image(bios, idx + 1, offset + image.size, mthd); in shadow_image() 106 return score; in shadow_image() 123 mthd->score = shadow_image(bios, 0, 0, mthd); in shadow_method() 126 nvkm_debug(subdev, "scored %d\n", mthd->score); in shadow_method() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | glue.c | 131 int score; member 139 int score; in check_one_child() local 159 * First, get the score for the previously found object and terminate in check_one_child() 162 if (!wd->score) { in check_one_child() 163 score = find_child_checks(wd->adev, wd->check_children); in check_one_child() 164 if (score == FIND_CHILD_MAX_SCORE) in check_one_child() 167 wd->score = score; in check_one_child() 170 * Second, if the object that has just been found has a better score, in check_one_child() 172 * the new score i in check_one_child() [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | ninet_hashtables.c | 351 int score = -1; in nip_tcp_compute_score() local 355 score = 1; in nip_tcp_compute_score() 359 score++; in nip_tcp_compute_score() 363 score++; in nip_tcp_compute_score() 365 score++; in nip_tcp_compute_score() 368 return score; in nip_tcp_compute_score() 388 int score; in ninet_lhash2_lookup() local 391 score = nip_tcp_compute_score(sk, net, hnum, daddr, dif, sdif); in ninet_lhash2_lookup() 392 if (score > hiscore) { in ninet_lhash2_lookup() 395 hiscore = score; in ninet_lhash2_lookup() [all...] |
H A D | udp.c | 148 int score = 0; in nip_udp_compute_score() local 163 score++; in nip_udp_compute_score() 172 score++; in nip_udp_compute_score() 181 score++; in nip_udp_compute_score() 190 score++; in nip_udp_compute_score() 194 score++; in nip_udp_compute_score() 195 return score; in nip_udp_compute_score() 212 int score = nip_udp_compute_score(sk, net, saddr, sport, daddr, hnum, dif, sdif); in nip_udp_lib_lookup2() local 214 if (score > badness) { in nip_udp_lib_lookup2() 216 badness = score; in nip_udp_lib_lookup2() [all...] |
/kernel/linux/linux-5.10/drivers/of/ |
H A D | fdt.c | 726 unsigned long l, score = 0; in of_fdt_is_compatible() local 732 score++; in of_fdt_is_compatible() 734 return score; in of_fdt_is_compatible() 758 unsigned int tmp, score = 0; in of_flat_dt_match() local 765 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match() 766 score = tmp; in of_flat_dt_match() 770 return score; in of_flat_dt_match() 817 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local 821 score in of_flat_dt_match_machine() [all...] |
H A D | base.c | 466 * value is a relative score with larger values indicating better 467 * matches. The score is weighted for the most specific compatible value 468 * to get the highest score. Matching type is next, followed by matching 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() 540 * score o 545 unsigned int tmp, score = 0; of_device_compatible_match() local 1086 int score, best_score = 0; __of_match_node() local [all...] |
/kernel/linux/linux-6.6/drivers/of/ |
H A D | fdt.c | 773 unsigned long l, score = 0; in of_fdt_is_compatible() local 779 score++; in of_fdt_is_compatible() 781 return score; in of_fdt_is_compatible() 805 unsigned int tmp, score = 0; in of_flat_dt_match() local 812 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match() 813 score = tmp; in of_flat_dt_match() 817 return score; in of_flat_dt_match() 855 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local 859 score in of_flat_dt_match_machine() [all...] |
H A D | base.c | 302 * value is a relative score with larger values indicating better 303 * matches. The score is weighted for the most specific compatible value 304 * to get the highest score. Matching type is next, followed by matching 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() 376 * score o 381 unsigned int tmp, score = 0; of_device_compatible_match() local 948 int score, best_score = 0; __of_match_node() local [all...] |
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | tlv320aic23.c | 266 int score; in find_rate() local 271 score = get_score(adc, adc_l, adc_h, need_adc, in find_rate() 273 if (best_score > score) { in find_rate() 274 best_score = score; in find_rate() 279 score = get_score((adc >> 1), adc_l, adc_h, need_adc, in find_rate() 282 if ((score != UINT_MAX) && (best_score >= score)) { in find_rate() 283 best_score = score; in find_rate()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | inet6_hashtables.c | 99 int score = -1; in compute_score() local 109 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 111 score++; in compute_score() 113 return score; in compute_score() 143 int score, hiscore = 0; in inet6_lhash2_lookup() local 147 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup() 148 if (score > hiscore) { in inet6_lhash2_lookup() 155 hiscore = score; in inet6_lhash2_lookup()
|
H A D | ip6_gre.c | 129 int score, cand_score = 4; in ip6gre_tunnel_lookup() local 143 score = 0; in ip6gre_tunnel_lookup() 145 score |= 1; in ip6gre_tunnel_lookup() 147 score |= 2; in ip6gre_tunnel_lookup() 148 if (score == 0) in ip6gre_tunnel_lookup() 151 if (score < cand_score) { in ip6gre_tunnel_lookup() 153 cand_score = score; in ip6gre_tunnel_lookup() 167 score = 0; in ip6gre_tunnel_lookup() 169 score |= 1; in ip6gre_tunnel_lookup() 171 score | in ip6gre_tunnel_lookup() [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | tlv320aic23.c | 266 int score; in find_rate() local 271 score = get_score(adc, adc_l, adc_h, need_adc, in find_rate() 273 if (best_score > score) { in find_rate() 274 best_score = score; in find_rate() 279 score = get_score((adc >> 1), adc_l, adc_h, need_adc, in find_rate() 282 if ((score != UINT_MAX) && (best_score >= score)) { in find_rate() 283 best_score = score; in find_rate()
|
/kernel/linux/linux-6.6/sound/usb/ |
H A D | implicit.c | 398 * Return the score of matching two audioformats. 409 int i, score; in match_endpoint_audioformats() local 429 score = 1; in match_endpoint_audioformats() 431 score++; in match_endpoint_audioformats() 433 return score; in match_endpoint_audioformats() 464 int score, high_score; in snd_usb_find_implicit_fb_sync_format() local 478 score = match_endpoint_audioformats(subs, fp, in snd_usb_find_implicit_fb_sync_format() 482 if (score > high_score) { in snd_usb_find_implicit_fb_sync_format() 484 high_score = score; in snd_usb_find_implicit_fb_sync_format()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | inet6_hashtables.c | 98 int score = -1; in compute_score() local 108 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 110 score++; in compute_score() 112 return score; in compute_score() 160 int score, hiscore = 0; in inet6_lhash2_lookup() local 163 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup() 164 if (score > hiscore) { in inet6_lhash2_lookup() 171 hiscore = score; in inet6_lhash2_lookup()
|
H A D | ip6_gre.c | 129 int score, cand_score = 4; in ip6gre_tunnel_lookup() local 143 score = 0; in ip6gre_tunnel_lookup() 145 score |= 1; in ip6gre_tunnel_lookup() 147 score |= 2; in ip6gre_tunnel_lookup() 148 if (score == 0) in ip6gre_tunnel_lookup() 151 if (score < cand_score) { in ip6gre_tunnel_lookup() 153 cand_score = score; in ip6gre_tunnel_lookup() 167 score = 0; in ip6gre_tunnel_lookup() 169 score |= 1; in ip6gre_tunnel_lookup() 171 score | in ip6gre_tunnel_lookup() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | glue.c | 126 int score; in acpi_find_child_device() local 153 score = find_child_checks(adev, check_children); in acpi_find_child_device() 154 if (score == FIND_CHILD_MAX_SCORE) { in acpi_find_child_device() 156 } else if (score > ret_score) { in acpi_find_child_device() 158 ret_score = score; in acpi_find_child_device()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | inet_hashtables.c | 245 int score = -1; in compute_score() local 254 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 257 score++; in compute_score() 259 score++; in compute_score() 261 return score; in compute_score() 296 int score, hiscore = 0; in inet_lhash2_lookup() local 300 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup() 301 if (score > hiscore) { in inet_lhash2_lookup() 308 hiscore = score; in inet_lhash2_lookup()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/scheduler/ |
H A D | sched_main.c | 153 atomic_inc(rq->sched->score); in drm_sched_rq_add_entity() 175 atomic_dec(rq->sched->score); in drm_sched_rq_remove_entity() 271 atomic_dec(sched->score); in drm_sched_job_done() 970 num_score = atomic_read(sched->score); in drm_sched_pick_best() 1079 * @score: optional score atomic shared with other schedulers 1089 atomic_t *score, const char *name, struct device *dev) in drm_sched_init() 1098 sched->score = score ? score in drm_sched_init() 1085 drm_sched_init(struct drm_gpu_scheduler *sched, const struct drm_sched_backend_ops *ops, unsigned hw_submission, unsigned hang_limit, long timeout, struct workqueue_struct *timeout_wq, atomic_t *score, const char *name, struct device *dev) drm_sched_init() argument [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | zswapd_control.c | 316 u64 score; in zswapd_memcgs_param_parse() local 320 score = atomic64_read(&memcg->memcg_reclaimed.app_score); in zswapd_memcgs_param_parse() 322 if (score >= zswap_param[i].min_score && in zswapd_memcgs_param_parse() 323 score <= zswap_param[i].max_score) in zswapd_memcgs_param_parse() 491 u64 score = atomic64_read(&memcg->memcg_reclaimed.app_score); in memcg_active_app_info_list_show() local 521 seq_printf(m, "%s %llu %lu %lu %lu %llu\n", memcg->name, score, in memcg_active_app_info_list_show() 597 seq_printf(m, "level %d min score: %u\n", i, in zswapd_memcgs_param_show() 599 seq_printf(m, "level %d max score: %u\n", i, in zswapd_memcgs_param_show() 616 seq_printf(m, "memcg score: %llu\n", in zswapd_single_memcg_param_show()
|
/kernel/linux/linux-6.6/mm/ |
H A D | zswapd_control.c | 317 u64 score; in zswapd_memcgs_param_parse() local 321 score = atomic64_read(&memcg->memcg_reclaimed.app_score); in zswapd_memcgs_param_parse() 323 if (score >= zswap_param[i].min_score && in zswapd_memcgs_param_parse() 324 score <= zswap_param[i].max_score) in zswapd_memcgs_param_parse() 492 u64 score = atomic64_read(&memcg->memcg_reclaimed.app_score); in memcg_active_app_info_list_show() local 522 seq_printf(m, "%s %llu %lu %lu %lu %llu\n", memcg->name, score, in memcg_active_app_info_list_show() 598 seq_printf(m, "level %d min score: %u\n", i, in zswapd_memcgs_param_show() 600 seq_printf(m, "level %d max score: %u\n", i, in zswapd_memcgs_param_show() 617 seq_printf(m, "memcg score: %llu\n", in zswapd_single_memcg_param_show()
|
/kernel/linux/linux-6.6/mm/damon/ |
H A D | core.c | 1013 unsigned int score, max_score = 0; in damos_adjust_quota() local 1032 /* Fill up the score histogram */ in damos_adjust_quota() 1038 score = c->ops.get_scheme_score(c, t, r, s); in damos_adjust_quota() 1039 quota->histogram[score] += damon_sz_region(r); in damos_adjust_quota() 1040 if (score > max_score) in damos_adjust_quota() 1041 max_score = score; in damos_adjust_quota() 1045 /* Set the min score limit */ in damos_adjust_quota() 1046 for (cumulated_sz = 0, score = max_score; ; score--) { in damos_adjust_quota() 1047 cumulated_sz += quota->histogram[score]; in damos_adjust_quota() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/scheduler/ |
H A D | sched_main.c | 95 atomic_inc(&rq->sched->score); in drm_sched_rq_add_entity() 114 atomic_dec(&rq->sched->score); in drm_sched_rq_remove_entity() 652 atomic_dec(&sched->score); in drm_sched_process_job() 728 num_score = atomic_read(&sched->score); in drm_sched_pick_best() 864 atomic_set(&sched->score, 0); in drm_sched_init()
|