| /kernel/linux/linux-5.10/arch/powerpc/kernel/ |
| 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() 145 min, score, max, score2); in smp_generic_give_timebase() 146 score = abs(score); in smp_generic_give_timebase() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| 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/common_modules/newip/third_party/linux-5.10/net/newip/ |
| D | ninet_hashtables.c | 350 int score = -1; in nip_tcp_compute_score() local 354 score = 1; in nip_tcp_compute_score() 358 score++; in nip_tcp_compute_score() 362 score++; in nip_tcp_compute_score() 364 score++; in nip_tcp_compute_score() 367 return score; in nip_tcp_compute_score() 387 int score; in ninet_lhash2_lookup() local 390 score = nip_tcp_compute_score(sk, net, hnum, daddr, dif, sdif); in ninet_lhash2_lookup() 391 if (score > hiscore) { in ninet_lhash2_lookup() 394 hiscore = score; in ninet_lhash2_lookup() [all …]
|
| 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()
|
| /kernel/linux/linux-5.10/net/ipv6/ |
| 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()
|
| 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 |= 2; in ip6gre_tunnel_lookup() [all …]
|
| D | addrconf.c | 1513 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 …]
|
| D | udp.c | 106 int score; in compute_score() local 118 score = 0; in compute_score() 124 score++; in compute_score() 130 score++; in compute_score() 137 score++; in compute_score() 140 score++; in compute_score() 142 return score; in compute_score() 171 int score, badness; in udp6_lib_lookup2() local 176 score = compute_score(sk, net, saddr, sport, in udp6_lib_lookup2() 178 if (score > badness) { in udp6_lib_lookup2() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| 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/drivers/of/ |
| D | fdt.c | 727 unsigned long l, score = 0; in of_fdt_is_compatible() local 733 score++; in of_fdt_is_compatible() 735 return score; in of_fdt_is_compatible() 759 unsigned int tmp, score = 0; in of_flat_dt_match() local 766 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match() 767 score = tmp; in of_flat_dt_match() 771 return score; in of_flat_dt_match() 818 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local 822 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine() 823 if (score > 0 && score < best_score) { in of_flat_dt_match_machine() [all …]
|
| D | base.c | 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() 545 unsigned int tmp, score = 0; in of_device_compatible_match() local 552 if (tmp > score) in of_device_compatible_match() 553 score = tmp; in of_device_compatible_match() 557 return score; in of_device_compatible_match() [all …]
|
| /kernel/linux/linux-5.10/drivers/acpi/ |
| 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/ |
| 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-5.10/mm/ |
| 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()
|
| D | compaction.c | 1896 unsigned long score; in fragmentation_score_zone() local 1898 score = zone->present_pages * in fragmentation_score_zone() 1900 return div64_ul(score, zone->zone_pgdat->node_present_pages + 1); in fragmentation_score_zone() 1912 unsigned int score = 0; in fragmentation_score_node() local 1919 score += fragmentation_score_zone(zone); in fragmentation_score_node() 1922 return score; in fragmentation_score_node() 1976 int score, wmark_low; in __compact_finished() local 1983 score = fragmentation_score_zone(cc->zone); in __compact_finished() 1986 if (score > wmark_low) in __compact_finished() 2828 unsigned int prev_score, score; in kcompactd() local [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/scheduler/ |
| 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()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
| D | intel_reset.c | 62 unsigned int score; in client_mark_guilty() local 67 score = 0; in client_mark_guilty() 69 score = I915_CLIENT_SCORE_CONTEXT_BAN; in client_mark_guilty() 73 score += I915_CLIENT_SCORE_HANG_FAST; in client_mark_guilty() 75 if (score) { in client_mark_guilty() 76 atomic_add(score, &file_priv->ban_score); in client_mark_guilty() 80 ctx->name, score, in client_mark_guilty()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
| D | cgroup_util.h | 48 extern int set_oom_adj_score(int pid, int score);
|
| D | cgroup_util.c | 511 int set_oom_adj_score(int pid, int score) in set_oom_adj_score() argument 522 len = dprintf(fd, "%d", score); in set_oom_adj_score()
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 203 unsigned int score, delta, i, shift = 1; in mlxsw_thermal_tz_score_update() local 208 score = MLXSW_THERMAL_TEMP_SCORE_MAX; in mlxsw_thermal_tz_score_update() 213 score = delta * shift; in mlxsw_thermal_tz_score_update() 219 if (score > thermal->tz_highest_score) { in mlxsw_thermal_tz_score_update() 220 thermal->tz_highest_score = score; in mlxsw_thermal_tz_score_update()
|
| /kernel/linux/linux-5.10/sound/usb/ |
| D | pcm.c | 628 int score = 0; in match_endpoint_audioformats() local 645 score++; in match_endpoint_audioformats() 649 if (!score) { in match_endpoint_audioformats() 657 score++; in match_endpoint_audioformats() 660 "%s: (fmt @%p) score %d\n", __func__, fp, score); in match_endpoint_audioformats() 662 return score; in match_endpoint_audioformats() 691 int score = match_endpoint_audioformats(subs, in configure_sync_endpoint() local 695 if (score > cur_score) { in configure_sync_endpoint() 697 cur_score = score; in configure_sync_endpoint()
|
| /kernel/linux/linux-5.10/drivers/mtd/ |
| D | rfd_ftl.c | 412 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()
|
| /kernel/linux/linux-5.10/net/ipv6/ila/ |
| D | ila_xlat.c | 77 int score = 0; in ila_order() local 80 score += 1 << 1; in ila_order() 82 return score; in ila_order()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | radeon_uvd.c | 979 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()
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
| D | modedb.c | 778 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()
|