Home
last modified time | relevance | path

Searched refs:power_info (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dr600_dpm.c803 union power_info { union
848 union power_info *power_info; in r600_get_platform_caps() local
856 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_get_platform_caps()
858 rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in r600_get_platform_caps()
859 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps()
860 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps()
876 union power_info *power_info; in r600_parse_extended_power_table() local
887 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_parse_extended_power_table()
890 if (le16_to_cpu(power_info->pplib.usTableSize) >= in r600_parse_extended_power_table()
892 if (power_info->pplib3.usFanTableOffset) { in r600_parse_extended_power_table()
[all …]
Drs780_dpm.c697 union power_info { union
797 union power_info *power_info; in rs780_parse_power_table() local
806 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rs780_parse_power_table()
808 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in rs780_parse_power_table()
814 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rs780_parse_power_table()
817 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rs780_parse_power_table()
818 i * power_info->pplib.ucStateEntrySize); in rs780_parse_power_table()
821 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rs780_parse_power_table()
823 power_info->pplib.ucNonClockSize)); in rs780_parse_power_table()
824 if (power_info->pplib.ucStateEntrySize - 1) { in rs780_parse_power_table()
[all …]
Dradeon_atombios.c2020 union power_info { union
2090 union power_info *power_info; in radeon_atombios_parse_power_table_1_3() local
2098 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in radeon_atombios_parse_power_table_1_3()
2101 if ((power_info->info.ucOverdriveThermalController > 0) && in radeon_atombios_parse_power_table_1_3()
2102 (power_info->info.ucOverdriveThermalController < ARRAY_SIZE(thermal_controller_names))) { in radeon_atombios_parse_power_table_1_3()
2104 thermal_controller_names[power_info->info.ucOverdriveThermalController], in radeon_atombios_parse_power_table_1_3()
2105 power_info->info.ucOverdriveControllerAddress >> 1); in radeon_atombios_parse_power_table_1_3()
2106 i2c_bus = radeon_lookup_i2c_gpio(rdev, power_info->info.ucOverdriveI2cLine); in radeon_atombios_parse_power_table_1_3()
2110 const char *name = thermal_controller_names[power_info->info. in radeon_atombios_parse_power_table_1_3()
2112 info.addr = power_info->info.ucOverdriveControllerAddress >> 1; in radeon_atombios_parse_power_table_1_3()
[all …]
Drv6xx_dpm.c1773 union power_info { union
1879 union power_info *power_info; in rv6xx_parse_power_table() local
1888 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rv6xx_parse_power_table()
1890 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in rv6xx_parse_power_table()
1896 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rv6xx_parse_power_table()
1899 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rv6xx_parse_power_table()
1900 i * power_info->pplib.ucStateEntrySize); in rv6xx_parse_power_table()
1903 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rv6xx_parse_power_table()
1905 power_info->pplib.ucNonClockSize)); in rv6xx_parse_power_table()
1906 if (power_info->pplib.ucStateEntrySize - 1) { in rv6xx_parse_power_table()
[all …]
Drv770_dpm.c2122 union power_info { union
2273 union power_info *power_info; in rv7xx_parse_power_table() local
2282 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rv7xx_parse_power_table()
2284 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in rv7xx_parse_power_table()
2290 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rv7xx_parse_power_table()
2293 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rv7xx_parse_power_table()
2294 i * power_info->pplib.ucStateEntrySize); in rv7xx_parse_power_table()
2297 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rv7xx_parse_power_table()
2299 power_info->pplib.ucNonClockSize)); in rv7xx_parse_power_table()
2300 if (power_info->pplib.ucStateEntrySize - 1) { in rv7xx_parse_power_table()
[all …]
Dtrinity_dpm.c1659 union power_info { union
1739 union power_info *power_info; in trinity_parse_power_table() local
1749 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table()
1753 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in trinity_parse_power_table()
1756 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in trinity_parse_power_table()
1759 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in trinity_parse_power_table()
Dni_dpm.c3871 union power_info { union
3990 union power_info *power_info; in ni_parse_power_table() local
3999 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ni_parse_power_table()
4001 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in ni_parse_power_table()
4007 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in ni_parse_power_table()
4010 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in ni_parse_power_table()
4011 i * power_info->pplib.ucStateEntrySize); in ni_parse_power_table()
4014 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in ni_parse_power_table()
4016 power_info->pplib.ucNonClockSize)); in ni_parse_power_table()
4017 if (power_info->pplib.ucStateEntrySize - 1) { in ni_parse_power_table()
[all …]
Dsumo_dpm.c1371 union power_info { union
1462 union power_info *power_info; in sumo_parse_power_table() local
1472 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in sumo_parse_power_table()
1476 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in sumo_parse_power_table()
1479 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in sumo_parse_power_table()
1482 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in sumo_parse_power_table()
Dkv_dpm.c2553 union power_info { union
2642 union power_info *power_info; in kv_parse_power_table() local
2652 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table()
2656 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table()
2659 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table()
2662 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
Dci_dpm.c5413 union power_info { union
5538 union power_info *power_info; in ci_parse_power_table() local
5548 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ci_parse_power_table()
5552 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in ci_parse_power_table()
5555 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in ci_parse_power_table()
5558 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in ci_parse_power_table()
Dsi_dpm.c6666 union power_info { union
6800 union power_info *power_info; in si_parse_power_table() local
6810 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table()
6814 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table()
6817 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table()
6820 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c214 union power_info { union
259 union power_info *power_info; in amdgpu_get_platform_caps() local
267 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps()
269 adev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in amdgpu_get_platform_caps()
270 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in amdgpu_get_platform_caps()
271 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in amdgpu_get_platform_caps()
289 union power_info *power_info; in amdgpu_parse_extended_power_table() local
300 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table()
303 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table()
305 if (power_info->pplib3.usFanTableOffset) { in amdgpu_parse_extended_power_table()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D3945.c1349 ch_info->power_info[rate_idx].power_table_idx - (power - in il3945_hw_reg_set_scan_power()
1351 power_info in il3945_hw_reg_set_scan_power()
1416 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power()
1427 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power()
1461 struct il3945_channel_power_info *power_info; in il3945_hw_reg_set_new_power() local
1471 power_info = ch_info->power_info; in il3945_hw_reg_set_new_power()
1474 for (i = RATE_6M_IDX_TBL; i <= RATE_54M_IDX_TBL; i++, ++power_info) { in il3945_hw_reg_set_new_power()
1479 if (power == power_info->requested_power) in il3945_hw_reg_set_new_power()
1484 delta_idx = (power - power_info->requested_power) * 2; in il3945_hw_reg_set_new_power()
1485 power_info->base_power_idx -= delta_idx; in il3945_hw_reg_set_new_power()
[all …]
Dcommon.h496 struct il3945_channel_power_info power_info[IL4965_MAX_RATE]; member
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dprocess.c559 pal_power_mgmt_info_u_t power_info[8]; in cpu_halt() local
563 if (ia64_pal_halt_info(power_info) != 0) in cpu_halt()
567 min_power = power_info[0].pal_power_mgmt_info_s.power_consumption; in cpu_halt()
569 if (power_info[i].pal_power_mgmt_info_s.im in cpu_halt()
570 && power_info[i].pal_power_mgmt_info_s.power_consumption < min_power) { in cpu_halt()
571 min_power = power_info[i].pal_power_mgmt_info_s.power_consumption; in cpu_halt()
Dpalinfo.c183 static int power_info(struct seq_file *m) in power_info() function
816 { "power_info", power_info, },
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/
Dkv_dpm.c2610 union power_info { union
2699 union power_info *power_info; in kv_parse_power_table() local
2709 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table()
2715 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table()
2718 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table()
2721 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
Dsi_dpm.c74 union power_info { union
7223 union power_info *power_info; in si_parse_power_table() local
7233 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table()
7239 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table()
7242 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table()
7245 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()