/openbmc/linux/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() 145 min, score, max, score2); in smp_generic_give_timebase() 146 score = abs(score); in smp_generic_give_timebase() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/drivers/acpi/ |
H A D | glue.c | 131 int score; member 139 int score; in check_one_child() local 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() 174 score = find_child_checks(adev, wd->check_children); in check_one_child() 175 if (score > wd->score) { in check_one_child() 177 if (score == FIND_CHILD_MAX_SCORE) in check_one_child() 180 wd->score = score; in check_one_child() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-benchmark/glmark2/files/ |
H A D | 0003-GLVisualConfig-By-default-don-t-care-about-the-stenc.patch | 47 score += score_component(blue, target.blue, 4); 48 score += score_component(alpha, target.alpha, 4); 49 score += score_component(depth, target.depth, 1); 50 - score += score_component(stencil, target.stencil, 0); 51 + score += score_component(stencil, target.stencil, 1); 52 score += score_component(buffer, target.buffer, 1); 53 score += score_component(samples, target.samples, -1); 56 * score for all components ranges from [0,MAXIMUM_COMPONENT_SCORE). 65 - score = scale < 0 ? MAXIMUM_COMPONENT_SCORE - diff : diff; 66 + score = (scale < 0 || target < 0) ? [all …]
|
/openbmc/qemu/contrib/plugins/ |
H A D | howvec.c | 170 qemu_plugin_scoreboard_free(rec->count.score); in free_record() 231 qemu_plugin_scoreboard_free(class_tables[i].table[j].count.score); in plugin_exit() 246 struct qemu_plugin_scoreboard *score = udata; in vcpu_insn_exec_before() local 247 qemu_plugin_u64_add(qemu_plugin_scoreboard_u64(score), cpu_index, 1); in vcpu_insn_exec_before() 280 return class->count.score; in find_counter() 294 struct qemu_plugin_scoreboard *score = in find_counter() local 296 icount->count = qemu_plugin_scoreboard_u64(score); in find_counter() 303 return icount->count.score; in find_counter() 342 struct qemu_plugin_scoreboard *score = in qemu_plugin_install() local 344 class_tables[i].table[j].count = qemu_plugin_scoreboard_u64(score); in qemu_plugin_install()
|
/openbmc/qemu/plugins/ |
H A D | core.c | 252 struct qemu_plugin_scoreboard *score; in plugin_grow_scoreboards__locked() local 253 QLIST_FOREACH(score, &plugin.scoreboards, entry) { in plugin_grow_scoreboards__locked() 254 g_array_set_size(score->data, scoreboard_size); in plugin_grow_scoreboards__locked() 586 char *ptr = cb->entry.score->data->data; in exec_inline_op() 588 cb->entry.score->data); in exec_inline_op() 750 struct qemu_plugin_scoreboard *score = in plugin_scoreboard_new() local 752 score->data = g_array_new(FALSE, TRUE, element_size); in plugin_scoreboard_new() 753 g_array_set_size(score->data, plugin.scoreboard_alloc_size); in plugin_scoreboard_new() 756 QLIST_INSERT_HEAD(&plugin.scoreboards, score, entry); in plugin_scoreboard_new() 759 return score; in plugin_scoreboard_new() [all …]
|
H A D | api.c | 595 void qemu_plugin_scoreboard_free(struct qemu_plugin_scoreboard *score) in qemu_plugin_scoreboard_free() argument 597 plugin_scoreboard_free(score); in qemu_plugin_scoreboard_free() 600 void *qemu_plugin_scoreboard_find(struct qemu_plugin_scoreboard *score, in qemu_plugin_scoreboard_find() argument 605 char *base_ptr = score->data->data; in qemu_plugin_scoreboard_find() 606 return base_ptr + vcpu_index * g_array_get_element_size(score->data); in qemu_plugin_scoreboard_find() 612 char *ptr = qemu_plugin_scoreboard_find(entry.score, vcpu_index); in plugin_u64_address()
|
/openbmc/linux/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 |= 2; in ip6gre_tunnel_lookup() [all …]
|
H A D | addrconf.c | 1546 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() argument 1552 if (i <= score->rule) { in ipv6_get_saddr_eval() 1555 ret = score->scopedist; in ipv6_get_saddr_eval() 1558 ret = score->matchlen; in ipv6_get_saddr_eval() 1561 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval() 1569 ret = !!score->ifa; in ipv6_get_saddr_eval() 1573 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval() 1597 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval() 1602 score->scopedist = ret; in ipv6_get_saddr_eval() 1609 if (!ipv6_use_optimistic_addr(net, score->ifa->idev)) in ipv6_get_saddr_eval() [all …]
|
H A D | udp.c | 125 int bound_dev_if, score; in compute_score() local 137 score = 0; in compute_score() 143 score++; in compute_score() 149 score++; in compute_score() 157 score++; in compute_score() 160 score++; in compute_score() 162 return score; in compute_score() 173 int score, badness; in udp6_lib_lookup2() local 181 score = compute_score(need_rescore ? result : sk, net, saddr, in udp6_lib_lookup2() 183 if (score > badness) { in udp6_lib_lookup2() [all …]
|
/openbmc/qemu/include/qemu/ |
H A D | qemu-plugin.h | 247 struct qemu_plugin_scoreboard *score; member 950 void qemu_plugin_scoreboard_free(struct qemu_plugin_scoreboard *score); 961 void *qemu_plugin_scoreboard_find(struct qemu_plugin_scoreboard *score, 965 #define qemu_plugin_scoreboard_u64(score) \ argument 966 (qemu_plugin_u64) {score, 0} 967 #define qemu_plugin_scoreboard_u64_in_struct(score, type, member) \ argument 968 (qemu_plugin_u64) {score, offsetof(type, member)}
|
/openbmc/linux/sound/usb/ |
H A D | implicit.c | 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()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/of/ |
H A D | fdt.c | 774 unsigned long l, score = 0; in of_fdt_is_compatible() local 780 score++; in of_fdt_is_compatible() 782 return score; in of_fdt_is_compatible() 806 unsigned int tmp, score = 0; in of_flat_dt_match() local 813 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match() 814 score = tmp; in of_flat_dt_match() 818 return score; in of_flat_dt_match() 856 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local 860 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine() 861 if (score > 0 && score < best_score) { in of_flat_dt_match_machine() [all …]
|
H A D | base.c | 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() 381 unsigned int tmp, score = 0; in of_device_compatible_match() local 388 if (tmp > score) in of_device_compatible_match() 389 score = tmp; in of_device_compatible_match() 393 return score; in of_device_compatible_match() [all …]
|
/openbmc/linux/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() 978 num_score = atomic_read(sched->score); in drm_sched_pick_best() 1097 atomic_t *score, const char *name, struct device *dev) in drm_sched_init() argument 1106 sched->score = score ? score : &sched->_score; in drm_sched_init()
|
/openbmc/u-boot/drivers/core/ |
H A D | of_access.c | 196 int index = 0, score = 0; in of_device_is_compatible() local 204 score = INT_MAX/2 - (index << 2); in of_device_is_compatible() 208 if (!score) in of_device_is_compatible() 216 score += 2; in of_device_is_compatible() 223 score++; in of_device_is_compatible() 226 return score; in of_device_is_compatible()
|
/openbmc/linux/mm/damon/ |
H A D | core.c | 1041 unsigned int score, max_score = 0; in damos_adjust_quota() local 1066 score = c->ops.get_scheme_score(c, t, r, s); in damos_adjust_quota() 1067 quota->histogram[score] += damon_sz_region(r); in damos_adjust_quota() 1068 if (score > max_score) in damos_adjust_quota() 1069 max_score = score; in damos_adjust_quota() 1074 for (cumulated_sz = 0, score = max_score; ; score--) { in damos_adjust_quota() 1075 cumulated_sz += quota->histogram[score]; in damos_adjust_quota() 1076 if (cumulated_sz >= quota->esz || !score) in damos_adjust_quota() 1079 quota->min_score = score; in damos_adjust_quota()
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | pylintrc | 38 # Activate the evaluation score. 39 score=no
|
/openbmc/linux/net/ipv4/ |
H A D | inet_hashtables.c | 323 int score = -1; in compute_score() local 332 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 335 score++; in compute_score() 337 score++; in compute_score() 339 return score; in compute_score() 392 int score, hiscore = 0; in inet_lhash2_lookup() local 395 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup() 396 if (score > hiscore) { in inet_lhash2_lookup() 403 hiscore = score; in inet_lhash2_lookup()
|
/openbmc/linux/include/drm/ |
H A D | gpu_scheduler.h | 514 atomic_t *score; member 525 atomic_t *score, const char *name, struct device *dev);
|
/openbmc/linux/mm/ |
H A D | compaction.c | 2115 unsigned long score; in fragmentation_score_zone_weighted() local 2117 score = zone->present_pages * fragmentation_score_zone(zone); in fragmentation_score_zone_weighted() 2118 return div64_ul(score, zone->zone_pgdat->node_present_pages + 1); in fragmentation_score_zone_weighted() 2130 unsigned int score = 0; in fragmentation_score_node() local 2139 score += fragmentation_score_zone_weighted(zone); in fragmentation_score_node() 2142 return score; in fragmentation_score_node() 2196 int score, wmark_low; in __compact_finished() local 2203 score = fragmentation_score_zone(cc->zone); in __compact_finished() 2206 if (score > wmark_low) in __compact_finished() 3092 unsigned int prev_score, score; in kcompactd() local [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/nmap/files/ |
H A D | 0002-Fix-building-with-libc.patch | 52 /* The payload magic may affect the score only between 56 * increasing the score a lot and cause problems for
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_reset.c | 42 unsigned int score; in client_mark_guilty() local 47 score = 0; in client_mark_guilty() 49 score = I915_CLIENT_SCORE_CONTEXT_BAN; in client_mark_guilty() 53 score += I915_CLIENT_SCORE_HANG_FAST; in client_mark_guilty() 55 if (score) { in client_mark_guilty() 56 atomic_add(score, &file_priv->ban_score); in client_mark_guilty() 60 ctx->name, score, in client_mark_guilty()
|