Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_pp_smu.c122 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()
226 dc_clks->num_levels = pp_clks->count; in pp_to_dc_clock_levels()
247 pp_clks->num_levels, in pp_to_dc_clock_levels_with_latency()
252 clk_level_info->num_levels = pp_clks->num_levels; in pp_to_dc_clock_levels_with_latency()
274 pp_clks->num_levels, in pp_to_dc_clock_levels_with_voltage()
279 clk_level_info->num_levels = pp_clks->num_levels; in pp_to_dc_clock_levels_with_voltage()
339 dc_clks->num_levels, i); in dm_pp_get_clock_levels_by_type()
[all …]
/linux-6.3-rc2/drivers/video/backlight/
A 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()
A Dpwm_bl.c235 unsigned int num_levels; in pwm_backlight_parse_dt() local
264 num_levels = length / sizeof(u32); in pwm_backlight_parse_dt()
267 if (num_levels > 0) { in pwm_backlight_parse_dt()
268 data->levels = devm_kcalloc(dev, num_levels, in pwm_backlight_parse_dt()
275 num_levels); in pwm_backlight_parse_dt()
300 unsigned int num_input_levels = num_levels; in pwm_backlight_parse_dt()
316 num_levels = (num_input_levels - 1) * num_steps + 1; in pwm_backlight_parse_dt()
318 num_levels); in pwm_backlight_parse_dt()
324 table = devm_kcalloc(dev, num_levels, sizeof(*table), in pwm_backlight_parse_dt()
357 data->max_brightness = num_levels - 1; in pwm_backlight_parse_dt()
/linux-6.3-rc2/drivers/firmware/arm_scmi/
A Dvoltage.c96 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-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
A Ddcn30_clk_mgr.c88 *num_levels = 2; in dcn3_init_single_clock()
92 *num_levels = ret & 0xFF; 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()
161 &num_levels); in dcn3_init_clocks()
419 &num_levels); in dcn3_get_memclk_states_from_smu()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce112/
A Ddce112_resource.c1084 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()
1174 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz; in bw_calcs_data_update_from_pplib()
1188 mem_clks.data[mem_clks.num_levels>>1].clocks_in_khz; in bw_calcs_data_update_from_pplib()
1194 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz; in bw_calcs_data_update_from_pplib()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce120/
A 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()
961 &mem_clks) || mem_clks.num_levels == 0) { in bw_calcs_data_update_from_pplib()
963 mem_clks.num_levels = 3; in bw_calcs_data_update_from_pplib()
967 for (i = 0; i < eng_clks.num_levels; i++) { in bw_calcs_data_update_from_pplib()
1007 mem_clks.data[mem_clks.num_levels>>1].clocks_in_khz - 1; in bw_calcs_data_update_from_pplib()
1011 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz; in bw_calcs_data_update_from_pplib()
1025 mem_clks.data[mem_clks.num_levels>>1].clocks_in_khz; in bw_calcs_data_update_from_pplib()
1031 eng_clks.data[eng_clks.num_levels*3/8].clocks_in_khz; in bw_calcs_data_update_from_pplib()
[all …]
/linux-6.3-rc2/fs/verity/
A Denable.c70 const int num_levels = params->num_levels; in build_merkle_tree() local
93 for (level = -1; level < num_levels; level++) { in build_merkle_tree()
100 buffers[num_levels].data = root_hash; in build_merkle_tree()
127 for (level = 0; level < num_levels; level++) { in build_merkle_tree()
154 for (level = 0; level < num_levels; level++) { in build_merkle_tree()
169 if (WARN_ON(buffers[num_levels].filled != params->digest_size)) { in build_merkle_tree()
175 for (level = -1; level < num_levels; level++) in build_merkle_tree()
A Dopen.c111 if (params->num_levels >= FS_VERITY_MAX_LEVELS) { in fsverity_init_merkle_tree_params()
118 blocks_in_level[params->num_levels++] = blocks; in fsverity_init_merkle_tree_params()
123 for (level = (int)params->num_levels - 1; level >= 0; level--) { in fsverity_init_merkle_tree_params()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
A Ddcn32_clk_mgr.c126 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
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()
711 unsigned int num_levels; in dcn32_get_memclk_states_from_smu() local
734 clk_mgr_base->bw_params->clk_table.num_entries = num_levels ? num_levels : 1; in dcn32_get_memclk_states_from_smu()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/radeon/
A Dsumo_dpm.c354 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()
1111 for (i = 0; i < ps->num_levels; i++) { in sumo_apply_state_adjust_rules()
1144 else if (i == ps->num_levels - 1) in sumo_apply_state_adjust_rules()
1397 ps->num_levels = 1; in sumo_patch_boot_state()
1444 ps->num_levels = index + 1; in sumo_parse_pplib_clock_info()
1736 pi->current_ps.num_levels = 1; in sumo_construct_boot_and_acpi_state()
1803 for (i = 0; i < ps->num_levels; i++) { in sumo_dpm_print_power_state()
1927 if (ps->num_levels <= 1) in sumo_dpm_force_performance_level()
1948 for (i = 1; i < ps->num_levels; i++) { in sumo_dpm_force_performance_level()
[all …]
A Dtrinity_dpm.c1165 if (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()
1284 ps->num_levels = 1; in trinity_patch_boot_state()
1309 pi->current_ps.num_levels = 1; in trinity_construct_boot_state()
1390 if (ps == NULL || ps->num_levels <= 1) in trinity_calculate_display_wm()
1392 else if (ps->num_levels == 2) { in trinity_calculate_display_wm()
1518 for (i = 0; i < ps->num_levels; i++) { in trinity_apply_state_adjust_rules()
1677 ps->num_levels = index + 1; in trinity_parse_pplib_clock_info()
1976 for (i = 0; i < ps->num_levels; i++) { in trinity_dpm_print_power_state()
1996 if (current_index >= ps->num_levels) { in trinity_dpm_debugfs_print_current_performance_level()
[all …]
A Dr100_track.h44 unsigned num_levels; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/
A Ddm_services_types.h98 uint32_t num_levels; member
108 uint32_t num_levels; member
118 uint32_t num_levels; member
/linux-6.3-rc2/arch/arm64/kernel/
A Dcacheinfo.c75 this_cpu_ci->num_levels = level; in init_cache_level()
87 for (idx = 0, level = 1; level <= this_cpu_ci->num_levels && in populate_cache_leaves()
/linux-6.3-rc2/drivers/gpu/drm/amd/include/
A Ddm_pp_interface.h175 uint32_t num_levels; member
185 uint32_t num_levels; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_resource.c1291 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-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
A 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-6.3-rc2/arch/s390/kernel/
A Dcache.c142 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-6.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_display_debugfs.c1289 int num_levels; in wm_latency_show() local
1292 num_levels = 3; in wm_latency_show()
1294 num_levels = 1; in wm_latency_show()
1296 num_levels = 3; in wm_latency_show()
1298 num_levels = ilk_wm_max_level(dev_priv) + 1; in wm_latency_show()
1405 int num_levels; in wm_latency_write() local
1411 num_levels = 3; in wm_latency_write()
1413 num_levels = 1; in wm_latency_write()
1415 num_levels = 3; in wm_latency_write()
1430 if (ret != num_levels) in wm_latency_write()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dsmu10_hwmgr.c1203 clocks->num_levels = 0; in smu10_get_clock_by_type_with_latency()
1206 clocks->data[clocks->num_levels].clocks_in_khz = in smu10_get_clock_by_type_with_latency()
1208 clocks->data[clocks->num_levels].latency_in_us = latency_required ? in smu10_get_clock_by_type_with_latency()
1212 clocks->num_levels++; in smu10_get_clock_by_type_with_latency()
1257 clocks->num_levels = 0; in smu10_get_clock_by_type_with_voltage()
1260 clocks->data[clocks->num_levels].clocks_in_khz = pclk_vol_table->entries[i].clk * 10; in smu10_get_clock_by_type_with_voltage()
1261 clocks->data[clocks->num_levels].voltage_in_mv = pclk_vol_table->entries[i].vol; in smu10_get_clock_by_type_with_voltage()
1262 clocks->num_levels++; in smu10_get_clock_by_type_with_voltage()
/linux-6.3-rc2/include/linux/
A Dcacheinfo.h76 unsigned int num_levels; member
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/swsmu/smu13/
A Daldebaran_ppt.c560 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-6.3-rc2/arch/loongarch/kernel/
A Dcacheinfo.c17 this_cpu_ci->num_levels = in init_cache_level()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_core.c52 .num_levels = num_levels_val,\
160 int num_levels; member
1179 if (ft_attr->level >= fs_prio->num_levels) { in __mlx5_create_flow_table()
2460 int num_levels, in _fs_create_prio() argument
2472 fs_prio->num_levels = num_levels; in _fs_create_prio()
2481 int num_levels) in fs_create_prio_chained() argument
2487 unsigned int prio, int num_levels) in fs_create_prio() argument
2664 acc_level += prio->num_levels; in set_prio_attrs_in_ns()
2686 if (!prio->num_levels) in set_prio_attrs_in_prio()
2687 prio->num_levels = acc_level_ns - prio->start_level; in set_prio_attrs_in_prio()
[all …]

Completed in 69 milliseconds

123