| /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() 144 pr_debug("Min %d (score in smp_generic_give_timebase() [all...] |
| /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 …]
|
| /linux/drivers/acpi/ |
| H A D | glue.c | 131 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/sound/usb/ |
| H A D | implicit.c | 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/drivers/of/ |
| H A D | fdt.c | 684 unsigned long l, score = 0; in of_fdt_is_compatible() local 690 score++; in of_fdt_is_compatible() 692 return score; in of_fdt_is_compatible() 716 unsigned int tmp, score = 0; in of_flat_dt_match() local 723 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match() 724 score = tmp; in of_flat_dt_match() 728 return score; in of_flat_dt_match() 766 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local 770 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine() 771 if (score > 0 && score < best_score) { in of_flat_dt_match_machine() [all …]
|
| H A D | base.c | 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() 399 unsigned int tmp, score = 0; in of_device_compatible_match() local 406 if (tmp > score) in of_device_compatible_match() 407 score = tmp; in of_device_compatible_match() 411 return score; in of_device_compatible_match() [all …]
|
| /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()
|
| /linux/mm/damon/ |
| H A D | core.c | 1625 unsigned long score); 2023 * damon_feed_loop_next_input() - get next input to achieve a target score. 2025 * @score Current score that made with @last_input. 2027 * Calculate next input to achieve the target score, based on the last input 2028 * and current score. Assuming the input and the score are positively 2037 * For simple implementation, we assume the target score is always 10,000. The 2038 * caller should adjust @score for this. 2040 * Returns next input that assumed to achieve the target score 2043 damon_feed_loop_next_input(unsigned long last_input,unsigned long score) damon_feed_loop_next_input() argument 2232 unsigned long score = damos_quota_score(quota); damos_set_effective_quota() local 2275 unsigned int score, max_score = 0; damos_adjust_quota() local [all...] |
| /linux/drivers/gpu/drm/scheduler/ |
| H A D | sched_main.c | 209 atomic_inc(rq->sched->score); in drm_sched_rq_add_entity() 231 atomic_dec(rq->sched->score); in drm_sched_rq_remove_entity() 373 atomic_dec(sched->score); in drm_sched_job_done() 1192 num_score = atomic_read(sched->score); in drm_sched_pick_best() 1326 sched->score = args->score ? args->score : &sched->_score; in drm_sched_init()
|
| H A D | sched_entity.c | 591 atomic_inc(entity->rq->sched->score); in drm_sched_entity_push_job()
|
| /linux/net/ipv4/ |
| H A D | inet_hashtables.c | 353 int score = -1; in compute_score() local 362 score = sk->sk_bound_dev_if ? 2 : 1; in compute_score() 365 score++; in compute_score() 367 score++; in compute_score() 369 return score; in compute_score() 422 int score, hiscore = 0; in inet_lhash2_lookup() local 425 score = compute_score(sk, net, hnum, daddr, dif, sdif); in inet_lhash2_lookup() 426 if (score > hiscore) { in inet_lhash2_lookup() 433 hiscore = score; in inet_lhash2_lookup()
|
| H A D | udp.c | 373 int score; in compute_score() local 385 score = (sk->sk_family == PF_INET) ? 2 : 1; in compute_score() 391 score += 4; in compute_score() 397 score += 4; in compute_score() 405 score += 4; in compute_score() 408 score++; in compute_score() 409 return score; in compute_score() 440 * Return: socket with highest matching score if any, NULL if none 451 int score, badness = 0; in udp4_lib_lookup1() local 454 score in udp4_lib_lookup1() 474 int score, badness; udp4_lib_lookup2() local [all...] |
| /linux/net/ipv6/ |
| H A D | addrconf.c | 1585 struct ipv6_saddr_score *score, in ipv6_get_saddr_eval() 1591 if (i <= score->rule) { in ipv6_get_saddr_eval() 1594 ret = score->scopedist; in ipv6_get_saddr_eval() 1597 ret = score->matchlen; in ipv6_get_saddr_eval() 1600 ret = !!test_bit(i, score->scorebits); in ipv6_get_saddr_eval() 1608 ret = !!score->ifa; in ipv6_get_saddr_eval() 1612 ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); in ipv6_get_saddr_eval() 1636 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval() 1641 score->scopedist = ret; in ipv6_get_saddr_eval() 1648 if (!ipv6_use_optimistic_addr(net, score in ipv6_get_saddr_eval() 1586 ipv6_get_saddr_eval(struct net * net,struct ipv6_saddr_score * score,struct ipv6_saddr_dst * dst,int i) ipv6_get_saddr_eval() argument 1725 struct ipv6_saddr_score *score = &scores[1 - hiscore_idx], *hiscore = &scores[hiscore_idx]; __ipv6_dev_get_saddr() local [all...] |
| H A D | ip6_gre.c | 117 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/mm/ |
| H A D | compaction.c | 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() 2199 unsigned int score = 0; in fragmentation_score_node() local 2208 score += fragmentation_score_zone_weighted(zone); in fragmentation_score_node() 2211 return score; in fragmentation_score_node() 2261 int score, wmark_low; in __compact_finished() local 2268 score = fragmentation_score_zone(cc->zone); in __compact_finished() 2271 if (score > wmark_low) in __compact_finished() 3211 unsigned int prev_score, score; in kcompactd() local [all …]
|
| /linux/drivers/mtd/ |
| H A D | rfd_ftl.c | 408 int block, best_block, score, old_sector_block; in reclaim_block() 414 score = 0x7fffffff; /* MAX_INT */ in reclaim_block() 448 if (this_score < score) { in reclaim_block() 450 score = this_score; in reclaim_block() 409 int block, best_block, score, old_sector_block; reclaim_block() local
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | cgroup_util.h | |
| H A D | cgroup_util.c | |
| H A D | test_memcontrol.c | 86 int set_oom_adj_score(int pid, int score) in set_oom_adj_score() 97 len = dprintf(fd, "%d", score); in set_oom_adj_score() 84 set_oom_adj_score(int pid,int score) set_oom_adj_score() argument
|
| /linux/net/ipv6/ila/ |
| H A D | ila_xlat.c | 76 int score = 0; in ila_order() local 79 score += 1 << 1; in ila_order() 81 return score; in ila_order()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | modedb.c | 788 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 D | cpu-capacity.txt | 37 max frequency (with caches enabled). The obtained DMIPS score is then divided 40 score obtained in the system.
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_client_modeset.c | 553 int my_score, best_score, score; in drm_client_pick_crtcs() 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() 555 int my_score, best_score, score; drm_client_pick_crtcs() local
|
| /linux/Documentation/usb/ |
| H A D | iuu_phoenix.rst | 64 the speed to a score 10 to 20% better than the simple clockmode=3 !!!
|
| /linux/drivers/net/wireless/st/cw1200/ |
| H A D | wsm.c | 1582 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()
|