Home
last modified time | relevance | path

Searched refs:num_levels (Results 1 – 25 of 57) sorted by relevance

123

/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_pp_smu.c125 clks->num_levels = 6; in get_default_clock_levels()
130 clks->num_levels = 6; in get_default_clock_levels()
135 clks->num_levels = 2; in get_default_clock_levels()
140 clks->num_levels = 0; in get_default_clock_levels()
227 dc_clks->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels()
229 dc_clks->num_levels = pp_clks->count; in pp_to_dc_clock_levels()
234 for (i = 0; i < dc_clks->num_levels; i++) { in pp_to_dc_clock_levels()
247 if (pp_clks->num_levels > DM_PP_MAX_CLOCK_LEVELS) { in pp_to_dc_clock_levels_with_latency()
250 pp_clks->num_levels, in pp_to_dc_clock_levels_with_latency()
253 clk_level_info->num_levels = DM_PP_MAX_CLOCK_LEVELS; in pp_to_dc_clock_levels_with_latency()
[all …]
/Linux-v5.15/drivers/firmware/arm_scmi/
Dvoltage.c88 u32 num_levels; in scmi_init_voltage_levels() local
90 num_levels = num_returned + num_remaining; in scmi_init_voltage_levels()
95 if (!num_levels || in scmi_init_voltage_levels()
99 num_levels, num_returned, num_remaining, v->id); in scmi_init_voltage_levels()
103 v->levels_uv = devm_kcalloc(dev, num_levels, sizeof(u32), GFP_KERNEL); in scmi_init_voltage_levels()
107 v->num_levels = num_levels; in scmi_init_voltage_levels()
169 if (!v->num_levels) { in scmi_voltage_descriptors_get()
178 if (desc_index + num_returned > v->num_levels) { in scmi_voltage_descriptors_get()
181 v->num_levels); in scmi_voltage_descriptors_get()
203 v->num_levels = 0; in scmi_voltage_descriptors_get()
[all …]
/Linux-v5.15/drivers/video/backlight/
Dled_bl.c127 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()
Dpwm_bl.c233 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 size_t size = sizeof(*data->levels) * num_levels; in pwm_backlight_parse_dt()
274 num_levels); in pwm_backlight_parse_dt()
299 unsigned int num_input_levels = num_levels; in pwm_backlight_parse_dt()
315 num_levels = (num_input_levels - 1) * num_steps + 1; in pwm_backlight_parse_dt()
317 num_levels); in pwm_backlight_parse_dt()
323 size = sizeof(*table) * num_levels; in pwm_backlight_parse_dt()
356 data->max_brightness = num_levels - 1; in pwm_backlight_parse_dt()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c1085 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib()
1087 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib()
1089 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib()
1091 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib()
1093 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib()
1095 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib()
1097 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib()
1110 clks.clocks_in_khz[clks.num_levels>>1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib()
1113 clks.clocks_in_khz[clks.num_levels-1] * memory_type_multiplier, in bw_calcs_data_update_from_pplib()
1121 eng_clks.data[eng_clks.num_levels-1].clocks_in_khz, 1000); in bw_calcs_data_update_from_pplib()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c928 &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-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr.c86 …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()
163 unsigned int num_levels; in dcn3_init_clocks() local
186 &num_levels); in dcn3_init_clocks()
191 &num_levels); in dcn3_init_clocks()
196 &num_levels); in dcn3_init_clocks()
202 &num_levels); in dcn3_init_clocks()
207 &num_levels); in dcn3_init_clocks()
[all …]
/Linux-v5.15/drivers/gpu/drm/radeon/
Dsumo_dpm.c347 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 …]
Dtrinity_dpm.c802 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 …]
Dr100_track.h44 unsigned num_levels; member
/Linux-v5.15/arch/nds32/kernel/
Dcacheinfo.c32 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.15/drivers/gpu/drm/amd/display/dc/
Ddm_services_types.h98 uint32_t num_levels; member
108 uint32_t num_levels; member
118 uint32_t num_levels; member
/Linux-v5.15/arch/arm64/kernel/
Dcacheinfo.c76 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.15/drivers/gpu/drm/amd/include/
Ddm_pp_interface.h175 uint32_t num_levels; member
185 uint32_t num_levels; member
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_resource.c1292 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib()
1294 clks.clocks_in_khz[clks.num_levels/8], 1000); in bw_calcs_data_update_from_pplib()
1296 clks.clocks_in_khz[clks.num_levels*2/8], 1000); in bw_calcs_data_update_from_pplib()
1298 clks.clocks_in_khz[clks.num_levels*3/8], 1000); in bw_calcs_data_update_from_pplib()
1300 clks.clocks_in_khz[clks.num_levels*4/8], 1000); in bw_calcs_data_update_from_pplib()
1302 clks.clocks_in_khz[clks.num_levels*5/8], 1000); in bw_calcs_data_update_from_pplib()
1304 clks.clocks_in_khz[clks.num_levels*6/8], 1000); in bw_calcs_data_update_from_pplib()
1315 clks.clocks_in_khz[clks.num_levels-1], 1000); in bw_calcs_data_update_from_pplib()
1317 clks.clocks_in_khz[clks.num_levels>>1], 1000); in bw_calcs_data_update_from_pplib()
1330 clks.clocks_in_khz[clks.num_levels>>1] * MEMORY_TYPE_MULTIPLIER_CZ, in bw_calcs_data_update_from_pplib()
[all …]
/Linux-v5.15/fs/verity/
Dopen.c95 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()
Denable.c61 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.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c76 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.15/arch/s390/kernel/
Dcache.c147 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.15/drivers/gpu/drm/amd/pm/swsmu/smu13/
Daldebaran_ppt.c545 clocks->num_levels = count; in aldebaran_get_clk_table()
764 display_levels = clocks.num_levels; in aldebaran_print_clk_levels()
774 display_levels = clocks.num_levels + 1; in aldebaran_print_clk_levels()
783 if (display_levels == clocks.num_levels) { in aldebaran_print_clk_levels()
784 for (i = 0; i < clocks.num_levels; i++) in aldebaran_print_clk_levels()
787 (clocks.num_levels == 1) ? in aldebaran_print_clk_levels()
818 for (i = 0; i < clocks.num_levels; i++) in aldebaran_print_clk_levels()
821 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels()
841 for (i = 0; i < clocks.num_levels; i++) in aldebaran_print_clk_levels()
844 (clocks.num_levels == 1) ? "*" : in aldebaran_print_clk_levels()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c52 .num_levels = num_levels_val,\
147 int num_levels; member
1092 if (ft_attr->level >= fs_prio->num_levels) { in __mlx5_create_flow_table()
2271 int num_levels, in _fs_create_prio() argument
2283 fs_prio->num_levels = num_levels; in _fs_create_prio()
2292 int num_levels) in fs_create_prio_chained() argument
2294 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO_CHAINS); in fs_create_prio_chained()
2298 unsigned int prio, int num_levels) in fs_create_prio() argument
2300 return _fs_create_prio(ns, prio, num_levels, FS_TYPE_PRIO); in fs_create_prio()
2336 fs_prio = fs_create_prio(ns, prio++, prio_metadata->num_levels); in create_leaf_prios()
[all …]
/Linux-v5.15/include/linux/
Dcacheinfo.h77 unsigned int num_levels; member
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu10_hwmgr.c1193 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-v5.15/drivers/gpu/drm/i915/display/
Dintel_display_debugfs.c1611 int num_levels; in wm_latency_show() local
1614 num_levels = 3; in wm_latency_show()
1616 num_levels = 1; in wm_latency_show()
1618 num_levels = 3; in wm_latency_show()
1620 num_levels = ilk_wm_max_level(dev_priv) + 1; in wm_latency_show()
1624 for (level = 0; level < num_levels; level++) { in wm_latency_show()
1728 int num_levels; in wm_latency_write() local
1734 num_levels = 3; in wm_latency_write()
1736 num_levels = 1; in wm_latency_write()
1738 num_levels = 3; in wm_latency_write()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calcs.c1472 if (clks->num_levels == 0) in verify_clock_values()
1475 for (i = 0; i < clks->num_levels; i++) in verify_clock_values()
1500 ASSERT(fclks.num_levels); in dcn_bw_update_from_pplib()
1503 vmid0p72_idx = fclks.num_levels - in dcn_bw_update_from_pplib()
1504 (fclks.num_levels > 2 ? 3 : (fclks.num_levels > 1 ? 2 : 1)); in dcn_bw_update_from_pplib()
1505 vnom0p8_idx = fclks.num_levels - (fclks.num_levels > 1 ? 2 : 1); in dcn_bw_update_from_pplib()
1506 vmax0p9_idx = fclks.num_levels - 1; in dcn_bw_update_from_pplib()
1535 if (res && dcfclks.num_levels >= 3) { in dcn_bw_update_from_pplib()
1537 dc->dcn_soc->dcfclkv_mid0p72 = dcfclks.data[dcfclks.num_levels - 3].clocks_in_khz / 1000.0; in dcn_bw_update_from_pplib()
1538 dc->dcn_soc->dcfclkv_nom0p8 = dcfclks.data[dcfclks.num_levels - 2].clocks_in_khz / 1000.0; in dcn_bw_update_from_pplib()
[all …]

123