| /drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| 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() 106 return score; in shadow_image() 132 return mthd->score; in shadow_method() 212 if (!best->score) { in nvbios_shadow() 224 if (mthd->score > best->score) in nvbios_shadow() [all …]
|
| /drivers/acpi/ |
| 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 …]
|
| /drivers/of/ |
| A D | fdt.c | 643 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 = of_flat_dt_match(dt_root, compat); in of_flat_dt_match_machine() 730 if (score > 0 && score < best_score) { in of_flat_dt_match_machine() [all …]
|
| A D | base.c | 343 int index = 0, score = 0; in __of_device_is_compatible() local 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() 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() 1077 int score, best_score = 0; in __of_match_node() local 1085 if (score > best_score) { in __of_match_node() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_gpu_scheduler.c | 63 atomic_t *score, const char *name, in xe_sched_init() argument 74 .score = score, in xe_sched_init()
|
| A D | xe_gpu_scheduler.h | 18 atomic_t *score, const char *name,
|
| /drivers/gpu/drm/scheduler/ |
| 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() 394 atomic_dec(sched->score); in drm_sched_job_done() 1203 num_score = atomic_read(sched->score); in drm_sched_pick_best() 1329 sched->score = args->score ? args->score : &sched->_score; in drm_sched_init()
|
| A D | sched_entity.c | 582 atomic_inc(entity->rq->sched->score); in drm_sched_entity_push_job()
|
| /drivers/gpu/drm/i915/gt/ |
| A D | intel_reset.c | 43 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() 61 ctx->name, score, in client_mark_guilty()
|
| /drivers/mtd/ |
| A D | rfd_ftl.c | 409 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()
|
| /drivers/gpu/drm/radeon/ |
| A D | radeon_uvd.c | 968 unsigned vclk_div, dclk_div, score; in radeon_uvd_calc_upll_dividers() local 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()
|
| /drivers/video/fbdev/core/ |
| 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()
|
| /drivers/gpu/drm/ |
| A D | drm_client_modeset.c | 553 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()
|
| A D | drm_edid.c | 1785 int i, score = 0; in drm_edid_header_is_valid() local 1789 score++; in drm_edid_header_is_valid() 1792 return score; in drm_edid_header_is_valid() 1875 int score = drm_edid_header_is_valid(block); in edid_block_check() local 1877 if (score < clamp(edid_fixup, 0, 8)) { in edid_block_check() 1884 if (score < 8) in edid_block_check()
|
| /drivers/net/wireless/st/cw1200/ |
| 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()
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | si.c | 1747 unsigned vclk_div, dclk_div, score; in si_calc_upll_dividers() local 1770 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in si_calc_upll_dividers() 1773 if (score < optimal_score) { in si_calc_upll_dividers() 1777 optimal_score = score; in si_calc_upll_dividers()
|
| A D | amdgpu_device.c | 3008 args.score = ring->sched_score; in amdgpu_device_init_schedulers()
|
| /drivers/net/wireless/realtek/rtw89/ |
| A D | phy.c | 5358 u16 report, u16 score) in rtw89_phy_ccx_get_report() argument 5364 numer = report * score + (env->ccx_period >> 1); in rtw89_phy_ccx_get_report() 5368 return ret >= score ? score - 1 : ret; in rtw89_phy_ccx_get_report()
|