Home
last modified time | relevance | path

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

/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
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()
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 …]
/drivers/of/
Dfdt.c726 unsigned long l, score = 0; in of_fdt_is_compatible() local
732 score++; in of_fdt_is_compatible()
734 return score; in of_fdt_is_compatible()
758 unsigned int tmp, score = 0; in of_flat_dt_match() local
765 if (tmp && (score == 0 || (tmp < score))) in of_flat_dt_match()
766 score = tmp; in of_flat_dt_match()
770 return score; in of_flat_dt_match()
817 unsigned int best_score = ~1, score = 0; in of_flat_dt_match_machine() local
821 score = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine()
822 if (score > 0 && score < best_score) { in of_flat_dt_match_machine()
[all …]
Dbase.c489 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 …]
/drivers/acpi/
Dglue.c126 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()
/drivers/gpu/drm/scheduler/
Dsched_main.c95 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()
Dsched_entity.c495 atomic_inc(&entity->rq->sched->score); in drm_sched_entity_push_job()
/drivers/gpu/drm/i915/gt/
Dintel_reset.c62 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()
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c203 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()
/drivers/mtd/
Drfd_ftl.c412 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()
/drivers/gpu/drm/radeon/
Dradeon_uvd.c979 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()
/drivers/video/fbdev/core/
Dmodedb.c783 int score = abs(db[i].refresh - refresh); in fb_find_mode() local
786 score += abs(db_interlace - interlace); in fb_find_mode()
794 if (score < diff) { in fb_find_mode()
795 diff = score; in fb_find_mode()
/drivers/gpu/drm/
Ddrm_client_modeset.c497 int my_score, best_score, score; in drm_client_pick_crtcs() local
550 score = my_score + drm_client_pick_crtcs(client, connectors, connector_count, in drm_client_pick_crtcs()
552 if (score > best_score) { in drm_client_pick_crtcs()
553 best_score = score; in drm_client_pick_crtcs()
Ddrm_edid.c1572 int i, score = 0; in drm_edid_header_is_valid() local
1576 score++; in drm_edid_header_is_valid()
1578 return score; in drm_edid_header_is_valid()
1674 int score = drm_edid_header_is_valid(raw_edid); in drm_edid_block_valid() local
1676 if (score == 8) { in drm_edid_block_valid()
1679 } else if (score >= edid_fixup) { in drm_edid_block_valid()
/drivers/net/wireless/st/cw1200/
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()
/drivers/gpu/drm/amd/amdgpu/
Dsi.c1616 unsigned vclk_div, dclk_div, score; in si_calc_upll_dividers() local
1639 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in si_calc_upll_dividers()
1642 if (score < optimal_score) { in si_calc_upll_dividers()
1646 optimal_score = score; in si_calc_upll_dividers()