/Linux-v5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_pp_smu.c | 131 clks->num_levels = 6; in get_default_clock_levels() 136 clks->num_levels = 6; in get_default_clock_levels() 141 clks->num_levels = 2; in get_default_clock_levels() 146 clks->num_levels = 0; in get_default_clock_levels() 263 dc_clks->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels() 265 dc_clks->num_levels = pp_clks->count; in pp_to_dc_clock_levels() 270 for (i = 0; i < dc_clks->num_levels; i++) { in pp_to_dc_clock_levels() 283 if (pp_clks->num_levels > DM_PP_MAX_CLOCK_LEVELS) { in pp_to_dc_clock_levels_with_latency() 286 pp_clks->num_levels, in pp_to_dc_clock_levels_with_latency() 289 clk_level_info->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels_with_latency() [all …]
|
/Linux-v5.10/drivers/video/backlight/ |
D | led_bl.c | 127 int num_levels; in led_bl_parse_levels() local 134 num_levels = of_property_count_u32_elems(node, "brightness-levels"); in led_bl_parse_levels() 135 if (num_levels > 1) { in led_bl_parse_levels() 140 levels = devm_kzalloc(dev, sizeof(u32) * num_levels, in led_bl_parse_levels() 147 num_levels); in led_bl_parse_levels() 156 for (i = 0 ; i < num_levels; i++) { in led_bl_parse_levels() 161 priv->max_brightness = num_levels - 1; in led_bl_parse_levels() 163 } else if (num_levels >= 0) in led_bl_parse_levels()
|
D | pwm_bl.c | 233 unsigned int num_levels = 0; in pwm_backlight_parse_dt() local 314 num_levels += num_steps; in pwm_backlight_parse_dt() 316 num_levels++; in pwm_backlight_parse_dt() 318 num_levels++; in pwm_backlight_parse_dt() 320 num_levels); in pwm_backlight_parse_dt() 326 size = sizeof(*table) * num_levels; in pwm_backlight_parse_dt() 361 data->max_brightness = num_levels; in pwm_backlight_parse_dt()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 1090 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1092 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1094 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1096 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1098 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1100 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1102 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1115 clks.clocks_in_khz[clks.num_levels>>1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib() 1118 clks.clocks_in_khz[clks.num_levels-1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib() 1126 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 935 &eng_clks) || eng_clks.num_levels == 0) { in bw_calcs_data_update_from_pplib() 937 eng_clks.num_levels = 8; in bw_calcs_data_update_from_pplib() 940 for (i = 0; i < eng_clks.num_levels; i++) { in bw_calcs_data_update_from_pplib() 948 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 950 eng_clks.data[eng_clks.num_levels/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 952 eng_clks.data[eng_clks.num_levels*2/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 954 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 956 eng_clks.data[eng_clks.num_levels*4/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 958 eng_clks.data[eng_clks.num_levels*5/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 960 eng_clks.data[eng_clks.num_levels*6/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr.c | 86 …ock(struct clk_mgr_internal *clk_mgr, PPCLK_e clk, unsigned int *entry_0, unsigned int *num_levels) in dcn3_init_single_clock() argument 94 *num_levels = 2; in dcn3_init_single_clock() 98 *num_levels = ret & 0xFF; in dcn3_init_single_clock() 101 for (i = 0; i < *num_levels; i++) { in dcn3_init_single_clock() 153 unsigned int num_levels; in dcn3_init_clocks() local 176 &num_levels); in dcn3_init_clocks() 181 &num_levels); in dcn3_init_clocks() 188 &num_levels); in dcn3_init_clocks() 193 &num_levels); in dcn3_init_clocks() 198 &num_levels); in dcn3_init_clocks() [all …]
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | sumo_dpm.c | 347 u32 highest_engine_clock = ps->levels[ps->num_levels - 1].sclk; in sumo_program_bsp() 354 for (i = 0; i < ps->num_levels - 1; i++) in sumo_program_bsp() 408 for (i = 0; i < ps->num_levels; i++) { in sumo_program_at() 409 asi = (i == ps->num_levels - 1) ? pi->pasi : pi->asi; in sumo_program_at() 423 a_t = CG_R(m_a * r[ps->num_levels - 1] / 100) | in sumo_program_at() 424 CG_L(m_a * l[ps->num_levels - 1] / 100); in sumo_program_at() 670 pi->boost_pl = new_ps->levels[new_ps->num_levels - 1]; in sumo_patch_boost_state() 743 dpm_ctrl4 |= (1 << (new_ps->num_levels - 1)); in sumo_program_wl() 759 u32 n_current_state_levels = (old_ps == NULL) ? 1 : old_ps->num_levels; in sumo_program_power_levels_0_to_n() 761 for (i = 0; i < new_ps->num_levels; i++) { in sumo_program_power_levels_0_to_n() [all …]
|
D | trinity_dpm.c | 846 u32 n_current_state_levels = (old_ps == NULL) ? 1 : old_ps->num_levels; in trinity_program_power_levels_0_to_n() 848 for (i = 0; i < new_ps->num_levels; i++) { in trinity_program_power_levels_0_to_n() 853 for (i = new_ps->num_levels; i < n_current_state_levels; i++) in trinity_program_power_levels_0_to_n() 969 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock() 970 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_before_set_eng_clock() 983 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock() 984 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_after_set_eng_clock() 1209 if (ps->num_levels <= 1) in trinity_dpm_force_performance_level() 1216 ret = trinity_dpm_n_levels_disabled(rdev, ps->num_levels - 1); in trinity_dpm_force_performance_level() 1220 for (i = 0; i < ps->num_levels; i++) { in trinity_dpm_force_performance_level() [all …]
|
D | r100_track.h | 44 unsigned num_levels; member
|
D | trinity_dpm.h | 48 u32 num_levels; member
|
/Linux-v5.10/arch/nds32/kernel/ |
D | cacheinfo.c | 32 this_cpu_ci->num_levels = 1; in init_cache_level() 43 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in populate_cache_leaves()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/ |
D | dm_services_types.h | 98 uint32_t num_levels; member 108 uint32_t num_levels; member 118 uint32_t num_levels; member
|
/Linux-v5.10/arch/arm64/kernel/ |
D | cacheinfo.c | 76 this_cpu_ci->num_levels = level; in __init_cache_level() 88 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in __populate_cache_leaves()
|
/Linux-v5.10/drivers/gpu/drm/amd/include/ |
D | dm_pp_interface.h | 175 uint32_t num_levels; member 185 uint32_t num_levels; member
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 76 if (dc->sclk_lvls.num_levels == 0) in determine_sclk_from_bounding_box() 79 for (i = 0; i < dc->sclk_lvls.num_levels; i++) { in determine_sclk_from_bounding_box() 89 return dc->sclk_lvls.clocks_in_khz[dc->sclk_lvls.num_levels - 1]; in determine_sclk_from_bounding_box()
|
/Linux-v5.10/fs/verity/ |
D | open.c | 95 if (params->num_levels >= FS_VERITY_MAX_LEVELS) { in fsverity_init_merkle_tree_params() 103 params->level_start[params->num_levels++] = blocks; in fsverity_init_merkle_tree_params() 109 for (level = (int)params->num_levels - 1; level >= 0; level--) { in fsverity_init_merkle_tree_params()
|
D | enable.c | 61 if (level < params->num_levels) { in build_merkle_tree_level() 114 if (level == params->num_levels) /* Root hash? */ in build_merkle_tree_level() 182 for (level = 0; level <= params->num_levels; level++) { in build_merkle_tree()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 1298 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1300 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1302 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1304 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1306 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1308 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1310 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1321 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1323 clks.clocks_in_khz[clks.num_levels>>1], 1000); in bw_calcs_data_update_from_pplib() 1336 clks.clocks_in_khz[clks.num_levels>>1] * MEMORY_TYPE_MULTIPLIER_CZ, in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v5.10/arch/s390/kernel/ |
D | cache.c | 147 this_cpu_ci->num_levels = level; in init_cache_level() 163 for (idx = 0, level = 0; level < this_cpu_ci->num_levels && in populate_cache_leaves()
|
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu10_hwmgr.c | 1107 clocks->num_levels = 0; in smu10_get_clock_by_type_with_latency() 1110 clocks->data[clocks->num_levels].clocks_in_khz = in smu10_get_clock_by_type_with_latency() 1112 clocks->data[clocks->num_levels].latency_in_us = latency_required ? in smu10_get_clock_by_type_with_latency() 1116 clocks->num_levels++; in smu10_get_clock_by_type_with_latency() 1161 clocks->num_levels = 0; in smu10_get_clock_by_type_with_voltage() 1164 clocks->data[clocks->num_levels].clocks_in_khz = pclk_vol_table->entries[i].clk * 10; in smu10_get_clock_by_type_with_voltage() 1165 clocks->data[clocks->num_levels].voltage_in_mv = pclk_vol_table->entries[i].vol; in smu10_get_clock_by_type_with_voltage() 1166 clocks->num_levels++; in smu10_get_clock_by_type_with_voltage()
|
/Linux-v5.10/drivers/gpu/drm/i915/display/ |
D | intel_display_debugfs.c | 1439 int num_levels; in wm_latency_show() local 1442 num_levels = 3; in wm_latency_show() 1444 num_levels = 1; in wm_latency_show() 1446 num_levels = 3; in wm_latency_show() 1448 num_levels = ilk_wm_max_level(dev_priv) + 1; in wm_latency_show() 1452 for (level = 0; level < num_levels; level++) { in wm_latency_show() 1556 int num_levels; in wm_latency_write() local 1562 num_levels = 3; in wm_latency_write() 1564 num_levels = 1; in wm_latency_write() 1566 num_levels = 3; in wm_latency_write() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 51 .num_levels = num_levels_val,\ 146 int num_levels; member 1091 if (ft_attr->level >= fs_prio->num_levels) { in __mlx5_create_flow_table() 2252 int num_levels, in _fs_create_prio() argument 2264 fs_prio->num_levels = num_levels; in _fs_create_prio() 2273 int num_levels) in fs_create_prio_chained() argument 2275 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO_CHAINS); in fs_create_prio_chained() 2279 unsigned int prio, int num_levels) in fs_create_prio() argument 2281 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO); in fs_create_prio() 2317 fs_prio = fs_create_prio(ns, prio++, prio_metadata->num_levels); in create_leaf_prios() [all …]
|
/Linux-v5.10/include/linux/ |
D | cacheinfo.h | 77 unsigned int num_levels; member
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calcs.c | 1470 if (clks->num_levels == 0) in verify_clock_values() 1473 for (i = 0; i < clks->num_levels; i++) in verify_clock_values() 1498 ASSERT(fclks.num_levels); in dcn_bw_update_from_pplib() 1501 vmid0p72_idx = fclks.num_levels - in dcn_bw_update_from_pplib() 1502 (fclks.num_levels > 2 ? 3 : (fclks.num_levels > 1 ? 2 : 1)); in dcn_bw_update_from_pplib() 1503 vnom0p8_idx = fclks.num_levels - (fclks.num_levels > 1 ? 2 : 1); in dcn_bw_update_from_pplib() 1504 vmax0p9_idx = fclks.num_levels - 1; in dcn_bw_update_from_pplib() 1533 if (res && dcfclks.num_levels >= 3) { in dcn_bw_update_from_pplib() 1535 dc->dcn_soc->dcfclkv_mid0p72 = dcfclks.data[dcfclks.num_levels - 3].clocks_in_khz / 1000.0; in dcn_bw_update_from_pplib() 1536 dc->dcn_soc->dcfclkv_nom0p8 = dcfclks.data[dcfclks.num_levels - 2].clocks_in_khz / 1000.0; in dcn_bw_update_from_pplib() [all …]
|
/Linux-v5.10/arch/mips/kernel/ |
D | cacheinfo.c | 48 this_cpu_ci->num_levels = levels; in __init_cache_level()
|