Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/kernel/
A 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()
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()
148 offset = (score < score2) ? min : max; in smp_generic_give_timebase()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
A 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()
106 return score; in shadow_image()
132 return mthd->score; in shadow_method()
206 if (!best->score) { in nvbios_shadow()
218 if (mthd->score > best->score) in nvbios_shadow()
[all …]
/linux/net/ipv6/
A Dinet6_hashtables.c99 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()
A Dip6_gre.c143 score = 0; in ip6gre_tunnel_lookup()
145 score |= 1; in ip6gre_tunnel_lookup()
147 score |= 2; in ip6gre_tunnel_lookup()
167 score = 0; in ip6gre_tunnel_lookup()
169 score |= 1; in ip6gre_tunnel_lookup()
171 score |= 2; in ip6gre_tunnel_lookup()
193 score = 0; in ip6gre_tunnel_lookup()
195 score |= 1; in ip6gre_tunnel_lookup()
197 score |= 2; in ip6gre_tunnel_lookup()
216 score = 0; in ip6gre_tunnel_lookup()
[all …]
A Daddrconf.c1523 if (i <= score->rule) { in ipv6_get_saddr_eval()
1526 ret = score->scopedist; in ipv6_get_saddr_eval()
1529 ret = score->matchlen; in ipv6_get_saddr_eval()
1540 ret = !!score->ifa; in ipv6_get_saddr_eval()
1573 score->scopedist = ret; in ipv6_get_saddr_eval()
1603 &score->ifa->addr, score->addr_type, in ipv6_get_saddr_eval()
1629 score->matchlen = ret; in ipv6_get_saddr_eval()
1645 score->rule = i; in ipv6_get_saddr_eval()
1675 score->addr_type = __ipv6_addr_type(&score->ifa->addr); in __ipv6_dev_get_saddr()
1684 score->rule = -1; in __ipv6_dev_get_saddr()
[all …]
A Dudp.c107 int score; in compute_score() local
119 score = 0; in compute_score()
125 score++; in compute_score()
131 score++; in compute_score()
138 score++; in compute_score()
141 score++; in compute_score()
143 return score; in compute_score()
172 int score, badness; in udp6_lib_lookup2() local
177 score = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2()
179 if (score > badness) { in udp6_lib_lookup2()
[all …]
/linux/sound/usb/
A Dimplicit.c408 int i, score; in match_endpoint_audioformats() local
428 score = 1; in match_endpoint_audioformats()
430 score++; in match_endpoint_audioformats()
432 return score; in match_endpoint_audioformats()
462 int score, high_score; in snd_usb_find_implicit_fb_sync_format() local
476 score = match_endpoint_audioformats(subs, fp, in snd_usb_find_implicit_fb_sync_format()
480 if (score > high_score) { in snd_usb_find_implicit_fb_sync_format()
482 high_score = score; in snd_usb_find_implicit_fb_sync_format()
/linux/sound/soc/codecs/
A 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/drivers/of/
A Dfdt.c771 unsigned long l, score = 0; in of_fdt_is_compatible() local
777 score++; in of_fdt_is_compatible()
779 return score; in of_fdt_is_compatible()
803 unsigned int tmp, score = 0; in of_flat_dt_match() local
810 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match()
811 score = tmp; in of_flat_dt_match()
815 return score; in of_flat_dt_match()
862 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local
866 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine()
867 if (score > 0 && score < best_score) { in of_flat_dt_match_machine()
[all …]
A Dbase.c512 int index = 0, score = 0; in __of_device_is_compatible() local
524 if (!score) in __of_device_is_compatible()
532 score += 2; in __of_device_is_compatible()
539 score++; in __of_device_is_compatible()
542 return score; in __of_device_is_compatible()
575 if (tmp > score) in of_device_compatible_match()
576 score = tmp; in of_device_compatible_match()
580 return score; in of_device_compatible_match()
1107 int score, best_score = 0; in __of_match_node() local
1115 if (score > best_score) { in __of_match_node()
[all …]
/linux/drivers/acpi/
A Dglue.c117 int score; in acpi_find_child_device() local
142 score = find_child_checks(adev, check_children); in acpi_find_child_device()
143 if (score == FIND_CHILD_MAX_SCORE) { in acpi_find_child_device()
145 } else if (score > ret_score) { in acpi_find_child_device()
147 ret_score = score; in acpi_find_child_device()
/linux/drivers/gpu/drm/scheduler/
A Dsched_main.c96 atomic_inc(rq->sched->score); in drm_sched_rq_add_entity()
115 atomic_dec(rq->sched->score); in drm_sched_rq_remove_entity()
178 atomic_dec(sched->score); in drm_sched_job_done()
875 num_score = atomic_read(sched->score); in drm_sched_pick_best()
994 atomic_t *score, const char *name) in drm_sched_init() argument
1003 sched->score = score ? score : &sched->_score; in drm_sched_init()
/linux/mm/damon/
A Dcore.c685 unsigned int score, max_score = 0; in kdamond_apply_schemes() local
712 score = c->primitive.get_scheme_score( in kdamond_apply_schemes()
714 quota->histogram[score] += in kdamond_apply_schemes()
716 if (score > max_score) in kdamond_apply_schemes()
717 max_score = score; in kdamond_apply_schemes()
722 for (cumulated_sz = 0, score = max_score; ; score--) { in kdamond_apply_schemes()
723 cumulated_sz += quota->histogram[score]; in kdamond_apply_schemes()
724 if (cumulated_sz >= quota->esz || !score) in kdamond_apply_schemes()
727 quota->min_score = score; in kdamond_apply_schemes()
/linux/net/ipv4/
A Dinet_hashtables.c236 int score = -1; in compute_score() local
245 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
248 score++; in compute_score()
250 score++; in compute_score()
252 return score; in compute_score()
287 int score, hiscore = 0; in inet_lhash2_lookup() local
291 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup()
292 if (score > hiscore) { in inet_lhash2_lookup()
299 hiscore = score; in inet_lhash2_lookup()
A Dudp.c361 int score; in compute_score() local
373 score = (sk->sk_family == PF_INET) ? 2 : 1; in compute_score()
379 score += 4; in compute_score()
385 score += 4; in compute_score()
393 score += 4; in compute_score()
396 score++; in compute_score()
397 return score; in compute_score()
437 int score, badness; in udp4_lib_lookup2() local
442 score = compute_score(sk, net, saddr, sport, in udp4_lib_lookup2()
444 if (score > badness) { in udp4_lib_lookup2()
[all …]
/linux/include/drm/
A Dgpu_scheduler.h446 atomic_t *score; member
456 atomic_t *score, const char *name);
/linux/mm/
A Dcompaction.c1980 unsigned long score; in fragmentation_score_zone_weighted() local
1982 score = zone->present_pages * fragmentation_score_zone(zone); in fragmentation_score_zone_weighted()
1995 unsigned int score = 0; in fragmentation_score_node() local
2002 score += fragmentation_score_zone_weighted(zone); in fragmentation_score_node()
2005 return score; in fragmentation_score_node()
2059 int score, wmark_low; in __compact_finished() local
2066 score = fragmentation_score_zone(cc->zone); in __compact_finished()
2069 if (score > wmark_low) in __compact_finished()
2960 unsigned int prev_score, score; in kcompactd() local
2964 score = fragmentation_score_node(pgdat); in kcompactd()
[all …]
/linux/drivers/gpu/drm/i915/gt/
A Dintel_reset.c45 unsigned int score; in client_mark_guilty() local
50 score = 0; in client_mark_guilty()
52 score = I915_CLIENT_SCORE_CONTEXT_BAN; in client_mark_guilty()
56 score += I915_CLIENT_SCORE_HANG_FAST; in client_mark_guilty()
58 if (score) { in client_mark_guilty()
59 atomic_add(score, &file_priv->ban_score); in client_mark_guilty()
63 ctx->name, score, in client_mark_guilty()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_thermal.c195 unsigned int score, delta, i, shift = 1; in mlxsw_thermal_tz_score_update() local
200 score = MLXSW_THERMAL_TEMP_SCORE_MAX; in mlxsw_thermal_tz_score_update()
205 score = delta * shift; in mlxsw_thermal_tz_score_update()
211 if (score > thermal->tz_highest_score) { in mlxsw_thermal_tz_score_update()
212 thermal->tz_highest_score = score; in mlxsw_thermal_tz_score_update()
/linux/drivers/mtd/
A Drfd_ftl.c409 int block, best_block, score, old_sector_block; in reclaim_block() local
415 score = 0x7fffffff; /* MAX_INT */ in reclaim_block()
449 if (this_score < score) { in reclaim_block()
451 score = this_score; in reclaim_block()
/linux/tools/testing/selftests/cgroup/
A Dcgroup_util.h48 extern int set_oom_adj_score(int pid, int score);
/linux/net/ipv6/ila/
A Dila_xlat.c77 int score = 0; in ila_order() local
80 score += 1 << 1; in ila_order()
82 return score; in ila_order()
/linux/drivers/video/fbdev/core/
A 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/drivers/gpu/drm/radeon/
A Dradeon_uvd.c981 unsigned vclk_div, dclk_div, score; in radeon_uvd_calc_upll_dividers() local
1004 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in radeon_uvd_calc_upll_dividers()
1007 if (score < optimal_score) { in radeon_uvd_calc_upll_dividers()
1011 optimal_score = score; in radeon_uvd_calc_upll_dividers()
/linux/drivers/gpu/drm/
A Ddrm_client_modeset.c493 int my_score, best_score, score; in drm_client_pick_crtcs() local
546 score = my_score + drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
548 if (score > best_score) { in drm_client_pick_crtcs()
549 best_score = score; in drm_client_pick_crtcs()

Completed in 83 milliseconds

12