/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_dpm.c | 242 union power_info { union 287 union power_info *power_info; in amdgpu_get_platform_caps() local 295 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps() 297 adev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in amdgpu_get_platform_caps() 298 adev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in amdgpu_get_platform_caps() 299 adev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in amdgpu_get_platform_caps() 317 union power_info *power_info; in amdgpu_parse_extended_power_table() local 328 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table() 331 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table() 333 if (power_info->pplib3.usFanTableOffset) { in amdgpu_parse_extended_power_table() [all …]
|
D | cz_dpm.c | 286 union power_info { union 309 union power_info *power_info; in cz_parse_power_table() local 319 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in cz_parse_power_table() 323 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in cz_parse_power_table() 326 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in cz_parse_power_table() 329 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in cz_parse_power_table() 339 le32_to_cpu(power_info->pplib.ulPlatformCaps); in cz_parse_power_table() 341 le16_to_cpu(power_info->pplib.usBackbiasTime); in cz_parse_power_table() 343 le16_to_cpu(power_info->pplib.usVoltageTime); in cz_parse_power_table()
|
D | kv_dpm.c | 2649 union power_info { union 2738 union power_info *power_info; in kv_parse_power_table() local 2748 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table() 2754 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table() 2757 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table() 2760 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
|
D | ci_dpm.c | 5545 union power_info { union 5670 union power_info *power_info; in ci_parse_power_table() local 5680 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ci_parse_power_table() 5686 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in ci_parse_power_table() 5689 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in ci_parse_power_table() 5692 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in ci_parse_power_table()
|
/drivers/gpu/drm/radeon/ |
D | r600_dpm.c | 801 union power_info { union 846 union power_info *power_info; in r600_get_platform_caps() local 854 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_get_platform_caps() 856 rdev->pm.dpm.platform_caps = le32_to_cpu(power_info->pplib.ulPlatformCaps); in r600_get_platform_caps() 857 rdev->pm.dpm.backbias_response_time = le16_to_cpu(power_info->pplib.usBackbiasTime); in r600_get_platform_caps() 858 rdev->pm.dpm.voltage_response_time = le16_to_cpu(power_info->pplib.usVoltageTime); in r600_get_platform_caps() 874 union power_info *power_info; in r600_parse_extended_power_table() local 885 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in r600_parse_extended_power_table() 888 if (le16_to_cpu(power_info->pplib.usTableSize) >= in r600_parse_extended_power_table() 890 if (power_info->pplib3.usFanTableOffset) { in r600_parse_extended_power_table() [all …]
|
D | rs780_dpm.c | 696 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() 808 power_info->pplib.ucNumStates, GFP_KERNEL); in rs780_parse_power_table() 812 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in rs780_parse_power_table() 815 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in rs780_parse_power_table() 816 i * power_info->pplib.ucStateEntrySize); in rs780_parse_power_table() 819 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in rs780_parse_power_table() 821 power_info->pplib.ucNonClockSize)); in rs780_parse_power_table() 822 if (power_info->pplib.ucStateEntrySize - 1) { in rs780_parse_power_table() [all …]
|
D | radeon_atombios.c | 2026 union power_info { union 2096 union power_info *power_info; in radeon_atombios_parse_power_table_1_3() local 2104 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in radeon_atombios_parse_power_table_1_3() 2107 if ((power_info->info.ucOverdriveThermalController > 0) && in radeon_atombios_parse_power_table_1_3() 2108 (power_info->info.ucOverdriveThermalController < ARRAY_SIZE(thermal_controller_names))) { in radeon_atombios_parse_power_table_1_3() 2110 thermal_controller_names[power_info->info.ucOverdriveThermalController], in radeon_atombios_parse_power_table_1_3() 2111 power_info->info.ucOverdriveControllerAddress >> 1); in radeon_atombios_parse_power_table_1_3() 2112 i2c_bus = radeon_lookup_i2c_gpio(rdev, power_info->info.ucOverdriveI2cLine); in radeon_atombios_parse_power_table_1_3() 2116 const char *name = thermal_controller_names[power_info->info. in radeon_atombios_parse_power_table_1_3() 2118 info.addr = power_info->info.ucOverdriveControllerAddress >> 1; in radeon_atombios_parse_power_table_1_3() [all …]
|
D | rv6xx_dpm.c | 1774 union power_info { union 1880 union power_info *power_info; in rv6xx_parse_power_table() local 1889 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rv6xx_parse_power_table() 1892 power_info->pplib.ucNumStates, GFP_KERNEL); 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 …]
|
D | rv770_dpm.c | 2123 union power_info { union 2274 union power_info *power_info; in rv7xx_parse_power_table() local 2283 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in rv7xx_parse_power_table() 2286 power_info->pplib.ucNumStates, GFP_KERNEL); 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 …]
|
D | trinity_dpm.c | 1658 union power_info { union 1738 union power_info *power_info; in trinity_parse_power_table() local 1748 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table() 1752 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in trinity_parse_power_table() 1755 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in trinity_parse_power_table() 1758 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in trinity_parse_power_table()
|
D | ni_dpm.c | 3873 union power_info { union 3992 union power_info *power_info; in ni_parse_power_table() local 4001 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ni_parse_power_table() 4004 power_info->pplib.ucNumStates, GFP_KERNEL); in ni_parse_power_table() 4008 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in ni_parse_power_table() 4011 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in ni_parse_power_table() 4012 i * power_info->pplib.ucStateEntrySize); in ni_parse_power_table() 4015 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset) + in ni_parse_power_table() 4017 power_info->pplib.ucNonClockSize)); in ni_parse_power_table() 4018 if (power_info->pplib.ucStateEntrySize - 1) { in ni_parse_power_table() [all …]
|
D | sumo_dpm.c | 1372 union power_info { union 1463 union power_info *power_info; in sumo_parse_power_table() local 1473 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in sumo_parse_power_table() 1477 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in sumo_parse_power_table() 1480 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in sumo_parse_power_table() 1483 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in sumo_parse_power_table()
|
D | kv_dpm.c | 2552 union power_info { union 2641 union power_info *power_info; in kv_parse_power_table() local 2651 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table() 2655 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table() 2658 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table() 2661 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
|
D | si_dpm.c | 6732 union power_info { union 6866 union power_info *power_info; in si_parse_power_table() local 6876 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table() 6880 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table() 6883 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table() 6886 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()
|
D | ci_dpm.c | 5399 union power_info { union 5524 union power_info *power_info; in ci_parse_power_table() local 5534 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ci_parse_power_table() 5538 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in ci_parse_power_table() 5541 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in ci_parse_power_table() 5544 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in ci_parse_power_table()
|
/drivers/net/wireless/iwlegacy/ |
D | 3945.c | 1364 ch_info->power_info[rate_idx].power_table_idx - (power - in il3945_hw_reg_set_scan_power() 1366 power_info in il3945_hw_reg_set_scan_power() 1431 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1442 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1476 struct il3945_channel_power_info *power_info; in il3945_hw_reg_set_new_power() local 1486 power_info = ch_info->power_info; in il3945_hw_reg_set_new_power() 1489 for (i = RATE_6M_IDX_TBL; i <= RATE_54M_IDX_TBL; i++, ++power_info) { in il3945_hw_reg_set_new_power() 1494 if (power == power_info->requested_power) in il3945_hw_reg_set_new_power() 1499 delta_idx = (power - power_info->requested_power) * 2; in il3945_hw_reg_set_new_power() 1500 power_info->base_power_idx -= delta_idx; in il3945_hw_reg_set_new_power() [all …]
|
D | common.h | 510 struct il3945_channel_power_info power_info[IL4965_MAX_RATE]; member
|