/Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_pp_smu.c | 122 clks->num_levels = 6; in get_default_clock_levels() 127 clks->num_levels = 6; in get_default_clock_levels() 132 clks->num_levels = 2; in get_default_clock_levels() 137 clks->num_levels = 0; in get_default_clock_levels() 224 dc_clks->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels() 226 dc_clks->num_levels = pp_clks->count; in pp_to_dc_clock_levels() 231 for (i = 0; i < dc_clks->num_levels; i++) { in pp_to_dc_clock_levels() 244 if (pp_clks->num_levels > DM_PP_MAX_CLOCK_LEVELS) { in pp_to_dc_clock_levels_with_latency() 247 pp_clks->num_levels, in pp_to_dc_clock_levels_with_latency() 250 clk_level_info->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels_with_latency() [all …]
|
/Linux-v6.1/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; in pwm_backlight_parse_dt() local 262 num_levels = length / sizeof(u32); in pwm_backlight_parse_dt() 265 if (num_levels > 0) { in pwm_backlight_parse_dt() 266 data->levels = devm_kcalloc(dev, num_levels, in pwm_backlight_parse_dt() 273 num_levels); in pwm_backlight_parse_dt() 298 unsigned int num_input_levels = num_levels; in pwm_backlight_parse_dt() 314 num_levels = (num_input_levels - 1) * num_steps + 1; in pwm_backlight_parse_dt() 316 num_levels); in pwm_backlight_parse_dt() 322 table = devm_kcalloc(dev, num_levels, sizeof(*table), in pwm_backlight_parse_dt() 355 data->max_brightness = num_levels - 1; in pwm_backlight_parse_dt()
|
/Linux-v6.1/drivers/firmware/arm_scmi/ |
D | voltage.c | 96 u32 num_levels; in scmi_init_voltage_levels() local 98 num_levels = num_returned + num_remaining; in scmi_init_voltage_levels() 103 if (!num_levels || in scmi_init_voltage_levels() 107 num_levels, num_returned, num_remaining, v->id); in scmi_init_voltage_levels() 111 v->levels_uv = devm_kcalloc(dev, num_levels, sizeof(u32), GFP_KERNEL); in scmi_init_voltage_levels() 115 v->num_levels = num_levels; in scmi_init_voltage_levels() 150 if (!p->v->num_levels) { in iter_volt_levels_update_state() 155 st->max_resources = p->v->num_levels; in iter_volt_levels_update_state() 193 iter = ph->hops->iter_response_init(ph, &ops, v->num_levels, in scmi_voltage_levels_get() 202 v->num_levels = 0; in scmi_voltage_levels_get() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr.c | 80 …ck(struct clk_mgr_internal *clk_mgr, uint32_t clk, unsigned int *entry_0, unsigned int *num_levels) in dcn3_init_single_clock() argument 88 *num_levels = 2; in dcn3_init_single_clock() 92 *num_levels = ret & 0xFF; in dcn3_init_single_clock() 95 for (i = 0; i < *num_levels; i++) { in dcn3_init_single_clock() 111 unsigned int num_levels; in dcn3_init_clocks() local 134 &num_levels); in dcn3_init_clocks() 140 &num_levels); in dcn3_init_clocks() 145 &num_levels); in dcn3_init_clocks() 151 &num_levels); in dcn3_init_clocks() 156 &num_levels); in dcn3_init_clocks() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 1084 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1086 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1088 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1090 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1092 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1094 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1096 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1109 clks.clocks_in_khz[clks.num_levels>>1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib() 1112 clks.clocks_in_khz[clks.num_levels-1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib() 1120 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 928 &eng_clks) || eng_clks.num_levels == 0) { in bw_calcs_data_update_from_pplib() 930 eng_clks.num_levels = 8; in bw_calcs_data_update_from_pplib() 933 for (i = 0; i < eng_clks.num_levels; i++) { in bw_calcs_data_update_from_pplib() 941 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 943 eng_clks.data[eng_clks.num_levels/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 945 eng_clks.data[eng_clks.num_levels*2/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 947 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 949 eng_clks.data[eng_clks.num_levels*4/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 951 eng_clks.data[eng_clks.num_levels*5/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() 953 eng_clks.data[eng_clks.num_levels*6/8].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
D | dcn32_clk_mgr.c | 126 unsigned int *num_levels) in dcn32_init_single_clock() argument 135 *num_levels = 2; in dcn32_init_single_clock() 139 *num_levels = ret & 0xFF; in dcn32_init_single_clock() 142 for (i = 0; i < *num_levels; i++) { in dcn32_init_single_clock() 158 unsigned int num_levels; in dcn32_init_clocks() local 201 num_levels = num_entries_per_clk->num_dispclk_levels; in dcn32_init_clocks() 209 for (i = 0; i < num_levels; i++) in dcn32_init_clocks() 215 for (i = 0; i < num_levels; i++) in dcn32_init_clocks() 220 for (i = 0; i < num_levels; i++) in dcn32_init_clocks() 662 unsigned int num_levels; in dcn32_get_memclk_states_from_smu() local [all …]
|
/Linux-v6.1/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 | 802 u32 n_current_state_levels = (old_ps == NULL) ? 1 : old_ps->num_levels; in trinity_program_power_levels_0_to_n() 804 for (i = 0; i < new_ps->num_levels; i++) { in trinity_program_power_levels_0_to_n() 809 for (i = new_ps->num_levels; i < n_current_state_levels; i++) in trinity_program_power_levels_0_to_n() 925 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock() 926 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_before_set_eng_clock() 939 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock() 940 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_after_set_eng_clock() 1165 if (ps->num_levels <= 1) in trinity_dpm_force_performance_level() 1172 ret = trinity_dpm_n_levels_disabled(rdev, ps->num_levels - 1); in trinity_dpm_force_performance_level() 1176 for (i = 0; i < ps->num_levels; i++) { in trinity_dpm_force_performance_level() [all …]
|
D | r100_track.h | 44 unsigned num_levels; member
|
/Linux-v6.1/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-v6.1/arch/arm64/kernel/ |
D | cacheinfo.c | 80 this_cpu_ci->num_levels = level; in init_cache_level() 92 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in populate_cache_leaves()
|
/Linux-v6.1/drivers/gpu/drm/amd/include/ |
D | dm_pp_interface.h | 175 uint32_t num_levels; member 185 uint32_t num_levels; member
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_resource.c | 1291 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1293 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib() 1295 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib() 1297 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib() 1299 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib() 1301 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib() 1303 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib() 1314 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib() 1316 clks.clocks_in_khz[clks.num_levels>>1], 1000); in bw_calcs_data_update_from_pplib() 1329 clks.clocks_in_khz[clks.num_levels>>1] * MEMORY_TYPE_MULTIPLIER_CZ, in bw_calcs_data_update_from_pplib() [all …]
|
/Linux-v6.1/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-v6.1/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 | 60 if (level < params->num_levels) { in build_merkle_tree_level() 113 if (level == params->num_levels) /* Root hash? */ in build_merkle_tree_level() 181 for (level = 0; level <= params->num_levels; level++) { in build_merkle_tree()
|
/Linux-v6.1/arch/s390/kernel/ |
D | cache.c | 142 this_cpu_ci->num_levels = level; in init_cache_level() 156 for (idx = 0, level = 0; level < this_cpu_ci->num_levels && in populate_cache_leaves()
|
/Linux-v6.1/drivers/gpu/drm/i915/display/ |
D | intel_display_debugfs.c | 1341 int num_levels; in wm_latency_show() local 1344 num_levels = 3; in wm_latency_show() 1346 num_levels = 1; in wm_latency_show() 1348 num_levels = 3; in wm_latency_show() 1350 num_levels = ilk_wm_max_level(dev_priv) + 1; in wm_latency_show() 1354 for (level = 0; level < num_levels; level++) { in wm_latency_show() 1458 int num_levels; in wm_latency_write() local 1464 num_levels = 3; in wm_latency_write() 1466 num_levels = 1; in wm_latency_write() 1468 num_levels = 3; in wm_latency_write() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu10_hwmgr.c | 1193 clocks->num_levels = 0; in smu10_get_clock_by_type_with_latency() 1196 clocks->data[clocks->num_levels].clocks_in_khz = in smu10_get_clock_by_type_with_latency() 1198 clocks->data[clocks->num_levels].latency_in_us = latency_required ? in smu10_get_clock_by_type_with_latency() 1202 clocks->num_levels++; in smu10_get_clock_by_type_with_latency() 1247 clocks->num_levels = 0; in smu10_get_clock_by_type_with_voltage() 1250 clocks->data[clocks->num_levels].clocks_in_khz = pclk_vol_table->entries[i].clk * 10; in smu10_get_clock_by_type_with_voltage() 1251 clocks->data[clocks->num_levels].voltage_in_mv = pclk_vol_table->entries[i].vol; in smu10_get_clock_by_type_with_voltage() 1252 clocks->num_levels++; in smu10_get_clock_by_type_with_voltage()
|
/Linux-v6.1/include/linux/ |
D | cacheinfo.h | 76 unsigned int num_levels; member
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 50 .num_levels = num_levels_val,\ 156 int num_levels; member 1150 if (ft_attr->level >= fs_prio->num_levels) { in __mlx5_create_flow_table() 2415 int num_levels, in _fs_create_prio() argument 2427 fs_prio->num_levels = num_levels; in _fs_create_prio() 2436 int num_levels) in fs_create_prio_chained() argument 2438 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO_CHAINS); in fs_create_prio_chained() 2442 unsigned int prio, int num_levels) in fs_create_prio() argument 2444 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO); in fs_create_prio() 2480 fs_prio = fs_create_prio(ns, prio++, prio_metadata->num_levels); in create_leaf_prios() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | aldebaran_ppt.c | 560 clocks->num_levels = min_t(uint32_t, in aldebaran_get_clk_table() 564 for (i = 0; i < clocks->num_levels; i++) { in aldebaran_get_clk_table() 781 display_levels = (clocks.num_levels == 1) ? 1 : 2; in aldebaran_print_clk_levels() 825 for (i = 0; i < clocks.num_levels; i++) in aldebaran_print_clk_levels() 828 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels() 848 for (i = 0; i < clocks.num_levels; i++) in aldebaran_print_clk_levels() 851 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels() 874 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels() 897 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels() 920 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels()
|
/Linux-v6.1/arch/loongarch/kernel/ |
D | cacheinfo.c | 17 this_cpu_ci->num_levels = in init_cache_level()
|