Home
last modified time | relevance | path

Searched refs:score (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.4/arch/powerpc/kernel/
Dsmp-tbsync.c80 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()
145 min, score, max, score2); in smp_generic_give_timebase()
146 score = abs(score); in smp_generic_give_timebase()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c35 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 …]
/Linux-v5.4/net/ipv6/
Dinet6_hashtables.c97 int score = -1; in compute_score() local
107 score = 1; in compute_score()
109 score++; in compute_score()
111 return score; in compute_score()
125 int score, hiscore = 0; in inet6_lhash2_lookup() local
130 score = compute_score(sk, net, hnum, daddr, dif, sdif, in inet6_lhash2_lookup()
132 if (score > hiscore) { in inet6_lhash2_lookup()
142 hiscore = score; in inet6_lhash2_lookup()
Dip6_gre.c129 int score, cand_score = 4; in ip6gre_tunnel_lookup() local
142 score = 0; in ip6gre_tunnel_lookup()
144 score |= 1; in ip6gre_tunnel_lookup()
146 score |= 2; in ip6gre_tunnel_lookup()
147 if (score == 0) in ip6gre_tunnel_lookup()
150 if (score < cand_score) { in ip6gre_tunnel_lookup()
152 cand_score = score; in ip6gre_tunnel_lookup()
166 score = 0; in ip6gre_tunnel_lookup()
168 score |= 1; in ip6gre_tunnel_lookup()
170 score |= 2; in ip6gre_tunnel_lookup()
[all …]
Dudp.c106 int score; in compute_score() local
118 score = 0; in compute_score()
124 score++; in compute_score()
130 score++; in compute_score()
136 score++; in compute_score()
139 score++; in compute_score()
141 return score; in compute_score()
152 int score, badness; in udp6_lib_lookup2() local
158 score = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2()
160 if (score > badness) { in udp6_lib_lookup2()
[all …]
Daddrconf.c1513 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument
1519 if (i <= score->rule) { in ipv6_get_saddr_eval()
1522 ret = score->scopedist; in ipv6_get_saddr_eval()
1525 ret = score->matchlen; in ipv6_get_saddr_eval()
1528 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval()
1536 ret = !!score->ifa; in ipv6_get_saddr_eval()
1540 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval()
1564 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1569 score->scopedist = ret; in ipv6_get_saddr_eval()
1576 if (!ipv6_use_optimistic_addr(net, score->ifa->idev)) in ipv6_get_saddr_eval()
[all …]
/Linux-v5.4/sound/soc/codecs/
Dtlv320aic23.c266 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()
/Linux-v5.4/drivers/of/
Dfdt.c731 unsigned long l, score = 0; in of_fdt_is_compatible() local
737 score++; in of_fdt_is_compatible()
739 return score; in of_fdt_is_compatible()
763 unsigned int tmp, score = 0; in of_flat_dt_match() local
770 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match()
771 score = tmp; in of_flat_dt_match()
775 return score; in of_flat_dt_match()
822 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local
826 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine()
827 if (score > 0 && score < best_score) { in of_flat_dt_match_machine()
[all …]
Dbase.c515 int index = 0, score = 0; in __of_device_is_compatible() local
523 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
527 if (!score) in __of_device_is_compatible()
535 score += 2; in __of_device_is_compatible()
542 score++; in __of_device_is_compatible()
545 return score; in __of_device_is_compatible()
571 unsigned int tmp, score = 0; in of_device_compatible_match() local
578 if (tmp > score) in of_device_compatible_match()
579 score = tmp; in of_device_compatible_match()
583 return score; in of_device_compatible_match()
[all …]
/Linux-v5.4/drivers/acpi/
Dglue.c126 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()
/Linux-v5.4/net/ipv4/
Dinet_hashtables.c232 int score = -1; in compute_score() local
242 score = sk->sk_family == PF_INET ? 2 : 1; in compute_score()
244 score++; in compute_score()
246 return score; in compute_score()
267 int score, hiscore = 0; in inet_lhash2_lookup() local
272 score = compute_score(sk, net, hnum, daddr, in inet_lhash2_lookup()
274 if (score > hiscore) { in inet_lhash2_lookup()
284 hiscore = score; in inet_lhash2_lookup()
Dudp.c358 int score; in compute_score() local
370 score = (sk->sk_family == PF_INET) ? 2 : 1; in compute_score()
376 score += 4; in compute_score()
382 score += 4; in compute_score()
389 score += 4; in compute_score()
392 score++; in compute_score()
393 return score; in compute_score()
417 int score, badness; in udp4_lib_lookup2() local
423 score = compute_score(sk, net, saddr, sport, in udp4_lib_lookup2()
425 if (score > badness) { in udp4_lib_lookup2()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dintel_reset.c57 unsigned int score; in client_mark_guilty() local
61 score = I915_CLIENT_SCORE_CONTEXT_BAN; in client_mark_guilty()
63 score = 0; in client_mark_guilty()
67 score += I915_CLIENT_SCORE_HANG_FAST; in client_mark_guilty()
69 if (score) { in client_mark_guilty()
70 atomic_add(score, &file_priv->ban_score); in client_mark_guilty()
73 ctx->name, score, in client_mark_guilty()
/Linux-v5.4/tools/testing/selftests/cgroup/
Dcgroup_util.h45 extern int set_oom_adj_score(int pid, int score);
Dcgroup_util.c392 int set_oom_adj_score(int pid, int score) in set_oom_adj_score() argument
403 len = dprintf(fd, "%d", score); in set_oom_adj_score()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c209 unsigned int score, delta, i, shift = 1; in mlxsw_thermal_tz_score_update() local
214 score = MLXSW_THERMAL_TEMP_SCORE_MAX; in mlxsw_thermal_tz_score_update()
219 score = delta * shift; in mlxsw_thermal_tz_score_update()
225 if (score > thermal->tz_highest_score) { in mlxsw_thermal_tz_score_update()
226 thermal->tz_highest_score = score; in mlxsw_thermal_tz_score_update()
/Linux-v5.4/sound/usb/
Dpcm.c586 int score = 0; in match_endpoint_audioformats() local
603 score++; in match_endpoint_audioformats()
607 if (!score) { in match_endpoint_audioformats()
615 score++; in match_endpoint_audioformats()
618 "%s: (fmt @%p) score %d\n", __func__, fp, score); in match_endpoint_audioformats()
620 return score; in match_endpoint_audioformats()
649 int score = match_endpoint_audioformats(subs, in configure_sync_endpoint() local
653 if (score > cur_score) { in configure_sync_endpoint()
655 cur_score = score; in configure_sync_endpoint()
/Linux-v5.4/drivers/mtd/
Drfd_ftl.c412 int block, best_block, score, old_sector_block; in reclaim_block() local
418 score = 0x7fffffff; /* MAX_INT */ in reclaim_block()
452 if (this_score < score) { in reclaim_block()
454 score = this_score; in reclaim_block()
/Linux-v5.4/net/ipv6/ila/
Dila_xlat.c77 int score = 0; in ila_order() local
80 score += 1 << 1; in ila_order()
82 return score; in ila_order()
/Linux-v5.4/drivers/video/fbdev/core/
Dmodedb.c778 int score = abs(db[i].refresh - refresh); in fb_find_mode() local
781 score += abs(db_interlace - interlace); in fb_find_mode()
789 if (score < diff) { in fb_find_mode()
790 diff = score; in fb_find_mode()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_uvd.c979 unsigned vclk_div, dclk_div, score; in radeon_uvd_calc_upll_dividers() local
1002 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in radeon_uvd_calc_upll_dividers()
1005 if (score < optimal_score) { in radeon_uvd_calc_upll_dividers()
1009 optimal_score = score; in radeon_uvd_calc_upll_dividers()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_client_modeset.c437 int my_score, best_score, score; in drm_client_pick_crtcs() local
490 score = my_score + drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
492 if (score > best_score) { in drm_client_pick_crtcs()
493 best_score = score; in drm_client_pick_crtcs()
/Linux-v5.4/Documentation/devicetree/bindings/arm/
Dcpu-capacity.txt37 max frequency (with caches enabled). The obtained DMIPS score is then divided
40 score obtained in the system.
/Linux-v5.4/Documentation/usb/
Diuu_phoenix.rst64 the speed to a score 10 to 20% better than the simple clockmode=3 !!!
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dwsm.c1584 unsigned score, best = -1; in cw1200_get_prio_queue() local
1597 score = ((edca->aifns + edca->cwmin) << 16) + in cw1200_get_prio_queue()
1600 if (score < best && (winner < 0 || i != 3)) { in cw1200_get_prio_queue()
1601 best = score; in cw1200_get_prio_queue()

12