Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/kernel/
H 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()
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...]
/linux/drivers/acpi/
H A Dglue.c131 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...]
/linux/net/ipv6/
H A Dinet6_hashtables.c97 int score = -1; in compute_score() local
107 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score()
109 score++; in compute_score()
111 return score; in compute_score()
159 int score, hiscore = 0; in inet6_lhash2_lookup() local
162 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet6_lhash2_lookup()
163 if (score > hiscore) { in inet6_lhash2_lookup()
170 hiscore = score; in inet6_lhash2_lookup()
H A Dudp.c134 int bound_dev_if, score; in compute_score() local
146 score = 0; in compute_score()
152 score++; in compute_score()
158 score++; in compute_score()
166 score++; in compute_score()
169 score++; in compute_score()
171 return score; in compute_score()
192 * Return: socket with highest matching score if any, NULL if none
203 int score, badness = 0; in udp6_lib_lookup1() local
206 score in udp6_lib_lookup1()
225 int score, badness; udp6_lib_lookup2() local
[all...]
H A Daddrconf.c1586 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument
1592 if (i <= score->rule) { in ipv6_get_saddr_eval()
1595 ret = score->scopedist; in ipv6_get_saddr_eval()
1598 ret = score->matchlen; in ipv6_get_saddr_eval()
1601 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval()
1609 ret = !!score->ifa; in ipv6_get_saddr_eval()
1613 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval()
1637 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1642 score->scopedist = ret; in ipv6_get_saddr_eval()
1649 if (!ipv6_use_optimistic_addr(net, score in ipv6_get_saddr_eval()
1725 struct ipv6_saddr_score *score = &scores[1 - hiscore_idx], *hiscore = &scores[hiscore_idx]; __ipv6_dev_get_saddr() local
[all...]
H A Dip6_gre.c117 int score = 0; in ip6gre_tunnel_match() local
124 score |= 1; in ip6gre_tunnel_match()
126 score |= 2; in ip6gre_tunnel_match()
127 if (score == 0) { in ip6gre_tunnel_match()
132 if (score < *cand_score) { in ip6gre_tunnel_match()
134 *cand_score = score; in ip6gre_tunnel_match()
/linux/sound/usb/
H A Dimplicit.c399 * Return the score of matching two audioformats.
410 int i, score; in match_endpoint_audioformats() local
430 score = 1; in match_endpoint_audioformats()
432 score++; in match_endpoint_audioformats()
434 return score; in match_endpoint_audioformats()
465 int score, high_score; in snd_usb_find_implicit_fb_sync_format() local
479 score = match_endpoint_audioformats(subs, fp, in snd_usb_find_implicit_fb_sync_format()
483 if (score > high_score) { in snd_usb_find_implicit_fb_sync_format()
485 high_score = score; in snd_usb_find_implicit_fb_sync_format()
/linux/sound/soc/codecs/
H 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/
H A Dfdt.c643 unsigned long l, score = 0; in of_fdt_is_compatible() local
649 score++; in of_fdt_is_compatible()
651 return score; in of_fdt_is_compatible()
675 unsigned int tmp, score = 0; in of_flat_dt_match() local
682 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match()
683 score = tmp; in of_flat_dt_match()
687 return score; in of_flat_dt_match()
725 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local
729 score in of_flat_dt_match_machine()
[all...]
H A Dbase.c320 * value is a relative score with larger values indicating better
321 * matches. The score is weighted for the most specific compatible value
322 * to get the highest score. Matching type is next, followed by matching
343 int index = 0, score = 0; in __of_device_is_compatible() local
351 score = INT_MAX/2 - (index << 2); in __of_device_is_compatible()
355 if (!score) in __of_device_is_compatible()
363 score += 2; in __of_device_is_compatible()
370 score++; in __of_device_is_compatible()
373 return score; in __of_device_is_compatible()
394 * score o
399 unsigned int tmp, score = 0; of_device_compatible_match() local
1077 int score, best_score = 0; __of_match_node() local
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_gpu_scheduler.c63 atomic_t *score, const char *name, in xe_sched_init() argument
74 .score = score, in xe_sched_init()
H A Dxe_gpu_scheduler.h18 atomic_t *score, const char *name,
/linux/mm/damon/
H A Dcore.c1519 unsigned long score);
1909 * damon_feed_loop_next_input() - get next input to achieve a target score.
1911 * @score Current score that made with @last_input.
1913 * Calculate next input to achieve the target score, based on the last input
1914 * and current score. Assuming the input and the score are positively
1923 * For simple implementation, we assume the target score is always 10,000. The
1924 * caller should adjust @score for this.
1926 * Returns next input that assumed to achieve the target score
1929 damon_feed_loop_next_input(unsigned long last_input,unsigned long score) damon_feed_loop_next_input() argument
2053 unsigned long score = damos_quota_score(quota); damos_set_effective_quota() local
2096 unsigned int score, max_score = 0; damos_adjust_quota() local
[all...]
/linux/include/drm/
H A Dgpu_scheduler.h563 * @score: score to help loadbalancer pick a idle sched
564 * @_score: score used when the driver doesn't provide one
591 atomic_t *score; member
613 * @score: score atomic shared with other schedulers. May be NULL.
625 atomic_t *score; member
/linux/Documentation/driver-api/cxl/
H A Dmaturity-map.rst19 responsibilities along with a maturity score. The expectation is that
26 Note that this score can regress from one kernel release to the next
38 a '0' score in this document, there is a good chance that no one in
/linux/mm/
H A Dcompaction.c31 * Fragmentation score check interval for proactive compaction purposes.
73 * the "fragmentation score" of a node/zone.
2164 * A zone's fragmentation score is the external fragmentation wrt to the
2173 * A weighted zone's fragmentation score is the external fragmentation
2179 * ZONE_DMA32. For smaller zones, the score value remains close to zero,
2184 unsigned long score; in fragmentation_score_zone_weighted() local
2186 score = zone->present_pages * fragmentation_score_zone(zone); in fragmentation_score_zone_weighted()
2187 return div64_ul(score, zone->zone_pgdat->node_present_pages + 1); in fragmentation_score_zone_weighted()
2192 * corresponding kcompactd thread when the node's fragmentation score
2194 * the node's score fall
2199 unsigned int score = 0; fragmentation_score_node() local
2261 int score, wmark_low; __compact_finished() local
3211 unsigned int prev_score, score; kcompactd() local
[all...]
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_reset.c43 unsigned int score; in client_mark_guilty() local
48 score = 0; in client_mark_guilty()
50 score = I915_CLIENT_SCORE_CONTEXT_BAN; in client_mark_guilty()
54 score += I915_CLIENT_SCORE_HANG_FAST; in client_mark_guilty()
56 if (score) { in client_mark_guilty()
57 atomic_add(score, &file_priv->ban_score); in client_mark_guilty()
60 "client %s: gained %u ban score, now %u\n", in client_mark_guilty()
61 ctx->name, score, in client_mark_guilty()
/linux/drivers/mtd/
H 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/net/ipv6/ila/
H A Dila_xlat.c76 int score = 0; in ila_order() local
79 score += 1 << 1; in ila_order()
81 return score; in ila_order()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_uvd.c968 unsigned vclk_div, dclk_div, score; in radeon_uvd_calc_upll_dividers() local
990 /* calc score with current vco freq */ in radeon_uvd_calc_upll_dividers()
991 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in radeon_uvd_calc_upll_dividers()
994 if (score < optimal_score) { in radeon_uvd_calc_upll_dividers()
998 optimal_score = score; in radeon_uvd_calc_upll_dividers()
/linux/drivers/video/fbdev/core/
H A Dmodedb.c788 int score = abs(db[i].refresh - refresh); in fb_find_mode() local
791 score += abs(db_interlace - interlace); in fb_find_mode()
799 if (score < diff) { in fb_find_mode()
800 diff = score; in fb_find_mode()
/linux/Documentation/devicetree/bindings/cpu/
H A Dcpu-capacity.txt37 max frequency (with caches enabled). The obtained DMIPS score is then divided
40 score obtained in the system.
/linux/drivers/gpu/drm/
H A Ddrm_client_modeset.c553 int my_score, best_score, score; in drm_client_pick_crtcs() local
606 score = my_score + drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
608 if (score > best_score) { in drm_client_pick_crtcs()
609 best_score = score; in drm_client_pick_crtcs()
/linux/Documentation/usb/
H A Diuu_phoenix.rst64 the speed to a score 10 to 20% better than the simple clockmode=3 !!!
/linux/drivers/net/wireless/st/cw1200/
H A Dwsm.c1582 unsigned score, best = -1; in cw1200_get_prio_queue() local
1595 score = ((edca->aifns + edca->cwmin) << 16) + in cw1200_get_prio_queue()
1598 if (score < best && (winner < 0 || i != 3)) { in cw1200_get_prio_queue()
1599 best = score; in cw1200_get_prio_queue()

12