Home
last modified time | relevance | path

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

/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.c696 union power_info { union
796 union power_info *power_info; in rs780_parse_power_table() local
805 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rs780_parse_power_table()
807 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in rs780_parse_power_table()
813 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rs780_parse_power_table()
816 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rs780_parse_power_table()
817 i * power_info->pplib.ucStateEntrySize); in rs780_parse_power_table()
820 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rs780_parse_power_table()
822 power_info->pplib.ucNonClockSize)); in rs780_parse_power_table()
823 if (power_info->pplib.ucStateEntrySize - 1) { in rs780_parse_power_table()
[all …]
Dradeon_atombios.c2014 union power_info { union
2084 union power_info *power_info; in radeon_atombios_parse_power_table_1_3() local
2092 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in radeon_atombios_parse_power_table_1_3()
2095 if ((power_info->info.ucOverdriveThermalController > 0) && in radeon_atombios_parse_power_table_1_3()
2096 (power_info->info.ucOverdriveThermalController < ARRAY_SIZE(thermal_controller_names))) { in radeon_atombios_parse_power_table_1_3()
2098 thermal_controller_names[power_info->info.ucOverdriveThermalController], in radeon_atombios_parse_power_table_1_3()
2099 power_info->info.ucOverdriveControllerAddress >> 1); in radeon_atombios_parse_power_table_1_3()
2100 i2c_bus = radeon_lookup_i2c_gpio(rdev, power_info->info.ucOverdriveI2cLine); in radeon_atombios_parse_power_table_1_3()
2104 const char *name = thermal_controller_names[power_info->info. in radeon_atombios_parse_power_table_1_3()
2106 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.c2124 union power_info { union
2275 union power_info *power_info; in rv7xx_parse_power_table() local
2284 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rv7xx_parse_power_table()
2286 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in rv7xx_parse_power_table()
2292 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rv7xx_parse_power_table()
2295 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rv7xx_parse_power_table()
2296 i * power_info->pplib.ucStateEntrySize); in rv7xx_parse_power_table()
2299 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rv7xx_parse_power_table()
2301 power_info->pplib.ucNonClockSize)); in rv7xx_parse_power_table()
2302 if (power_info->pplib.ucStateEntrySize - 1) { in rv7xx_parse_power_table()
[all …]
Dtrinity_dpm.c1615 union power_info { union
1695 union power_info *power_info; in trinity_parse_power_table() local
1705 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table()
1709 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in trinity_parse_power_table()
1712 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in trinity_parse_power_table()
1715 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in trinity_parse_power_table()
Dni_dpm.c3876 union power_info { union
3995 union power_info *power_info; in ni_parse_power_table() local
4004 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ni_parse_power_table()
4006 rdev->pm.dpm.ps = kcalloc(power_info->pplib.ucNumStates, in ni_parse_power_table()
4012 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in ni_parse_power_table()
4015 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in ni_parse_power_table()
4016 i * power_info->pplib.ucStateEntrySize); in ni_parse_power_table()
4019 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in ni_parse_power_table()
4021 power_info->pplib.ucNonClockSize)); in ni_parse_power_table()
4022 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.c2350 union power_info { union
2439 union power_info *power_info; in kv_parse_power_table() local
2449 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table()
2453 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table()
2456 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table()
2459 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
Dsi_dpm.c6664 union power_info { union
6798 union power_info *power_info; in si_parse_power_table() local
6808 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table()
6812 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table()
6815 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table()
6818 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()
Dci_dpm.c5392 union power_info { union
5517 union power_info *power_info; in ci_parse_power_table() local
5528 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ci_parse_power_table()
5532 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in ci_parse_power_table()
5535 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in ci_parse_power_table()
5538 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in ci_parse_power_table()
/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 …]
/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
/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c446 static int power_info(struct hl_fpriv *hpriv, struct hl_info_args *args) in power_info() function
450 struct hl_power_info power_info = {0}; in power_info() local
457 rc = hl_fw_cpucp_power_get(hdev, &power_info.power); in power_info()
461 return copy_to_user(out, &power_info, in power_info()
462 min((size_t) max_size, sizeof(power_info))) ? -EFAULT : 0; in power_info()
564 return power_info(hpriv, args); in _hl_info_ioctl()
/drivers/gpu/drm/amd/pm/powerplay/
Dkv_dpm.c2608 union power_info { union
2697 union power_info *power_info; in kv_parse_power_table() local
2707 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table()
2713 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table()
2716 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table()
2719 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
Dsi_dpm.c74 union power_info { union
7220 union power_info *power_info; in si_parse_power_table() local
7230 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table()
7236 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table()
7239 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table()
7242 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()