/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | legacy_dpm.c | 148 union power_info { union 162 union power_info *power_info; in amdgpu_get_platform_caps() local 170 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_get_platform_caps() 223 union power_info *power_info; in amdgpu_parse_extended_power_table() local 234 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in amdgpu_parse_extended_power_table() 237 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table() 239 if (power_info->pplib3.usFanTableOffset) { in amdgpu_parse_extended_power_table() 267 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table() 354 if (le16_to_cpu(power_info->pplib.usTableSize) >= in amdgpu_parse_extended_power_table() 368 if (power_info->pplib5.usCACLeakageTableOffset) { in amdgpu_parse_extended_power_table() [all …]
|
H A D | kv_dpm.c | 2614 union power_info { union 2703 union power_info *power_info; in kv_parse_power_table() local 2713 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table() 2719 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table() 2722 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table() 2725 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
|
H A D | si_dpm.c | 76 union power_info { union 7266 union power_info *power_info; in si_parse_power_table() local 7276 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table() 7282 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table() 7285 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table() 7288 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()
|
/linux/drivers/gpu/drm/radeon/ |
H A 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() 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() 918 if (le16_to_cpu(power_info->pplib.usTableSize) >= in r600_parse_extended_power_table() 1016 if (le16_to_cpu(power_info->pplib.usTableSize) >= in r600_parse_extended_power_table() 1030 if (power_info->pplib5.usCACLeakageTableOffset) { in r600_parse_extended_power_table() [all …]
|
H A 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() 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() 822 power_info->pplib.ucNonClockSize)); in rs780_parse_power_table() 823 if (power_info->pplib.ucStateEntrySize - 1) { in rs780_parse_power_table() 828 power_info->pplib.ucClockInfoSize)); in rs780_parse_power_table() 837 power_info->pplib.ucNonClockSize); in rs780_parse_power_table() [all …]
|
H A D | radeon_atombios.c | 2018 union power_info { union 2088 union power_info *power_info; in radeon_atombios_parse_power_table_1_3() local 2096 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in radeon_atombios_parse_power_table_1_3() 2581 union power_info *power_info; in radeon_atombios_parse_power_table_4_5() local 2589 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in radeon_atombios_parse_power_table_4_5() 2592 if (power_info->pplib.ucNumStates == 0) in radeon_atombios_parse_power_table_4_5() 2605 i * power_info->pplib.ucStateEntrySize); in radeon_atombios_parse_power_table_4_5() 2610 power_info->pplib.ucNonClockSize)); in radeon_atombios_parse_power_table_4_5() 2624 power_info->pplib.ucClockInfoSize)); in radeon_atombios_parse_power_table_4_5() 2674 union power_info *power_info; in radeon_atombios_parse_power_table_6() local [all …]
|
H A D | rv6xx_dpm.c | 1773 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() 1905 power_info->pplib.ucNonClockSize)); in rv6xx_parse_power_table() 1906 if (power_info->pplib.ucStateEntrySize - 1) { in rv6xx_parse_power_table() 1921 (idx[j] * power_info->pplib.ucClockInfoSize)); in rv6xx_parse_power_table() [all …]
|
H A D | rv770_dpm.c | 2124 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() 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() 2301 power_info->pplib.ucNonClockSize)); in rv7xx_parse_power_table() 2302 if (power_info->pplib.ucStateEntrySize - 1) { in rv7xx_parse_power_table() 2312 power_info->pplib.ucNonClockSize); in rv7xx_parse_power_table() 2318 (idx[j] * power_info->pplib.ucClockInfoSize)); in rv7xx_parse_power_table() [all …]
|
H A D | trinity_dpm.c | 1611 union power_info { union 1691 union power_info *power_info; in trinity_parse_power_table() local 1701 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in trinity_parse_power_table() 1705 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in trinity_parse_power_table() 1708 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in trinity_parse_power_table() 1711 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in trinity_parse_power_table()
|
H A 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() 4009 for (i = 0; i < power_info->pplib.ucNumStates; i++) { in ni_parse_power_table() 4012 le16_to_cpu(power_info->pplib.usStateArrayOffset) + in ni_parse_power_table() 4013 i * power_info->pplib.ucStateEntrySize); in ni_parse_power_table() 4018 power_info->pplib.ucNonClockSize)); in ni_parse_power_table() 4019 if (power_info->pplib.ucStateEntrySize - 1) { in ni_parse_power_table() 4029 power_info->pplib.ucNonClockSize); in ni_parse_power_table() 4035 (idx[j] * power_info->pplib.ucClockInfoSize)); in ni_parse_power_table() [all …]
|
H A D | sumo_dpm.c | 1369 union power_info { union 1460 union power_info *power_info; in sumo_parse_power_table() local 1470 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in sumo_parse_power_table() 1474 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in sumo_parse_power_table() 1477 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in sumo_parse_power_table() 1480 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in sumo_parse_power_table()
|
H A D | kv_dpm.c | 2349 union power_info { union 2438 union power_info *power_info; in kv_parse_power_table() local 2448 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in kv_parse_power_table() 2452 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in kv_parse_power_table() 2455 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in kv_parse_power_table() 2458 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in kv_parse_power_table()
|
H A D | si_dpm.c | 6620 union power_info { union 6754 union power_info *power_info; in si_parse_power_table() local 6764 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in si_parse_power_table() 6768 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in si_parse_power_table() 6771 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in si_parse_power_table() 6774 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in si_parse_power_table()
|
H A D | ci_dpm.c | 5384 union power_info { union 5509 union power_info *power_info; in ci_parse_power_table() local 5520 power_info = (union power_info *)(mode_info->atom_context->bios + data_offset); in ci_parse_power_table() 5524 le16_to_cpu(power_info->pplib.usStateArrayOffset)); in ci_parse_power_table() 5527 le16_to_cpu(power_info->pplib.usClockInfoArrayOffset)); in ci_parse_power_table() 5530 le16_to_cpu(power_info->pplib.usNonClockInfoArrayOffset)); in ci_parse_power_table()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945.c | 1351 power_info in il3945_hw_reg_set_scan_power() 1471 power_info = ch_info->power_info; in il3945_hw_reg_set_new_power() 1479 if (power == power_info->requested_power) in il3945_hw_reg_set_new_power() 1485 power_info->base_power_idx -= delta_idx; in il3945_hw_reg_set_new_power() 1488 power_info->requested_power = power; in il3945_hw_reg_set_new_power() 1502 power_info->requested_power = power; in il3945_hw_reg_set_new_power() 1503 power_info->base_power_idx = in il3945_hw_reg_set_new_power() 1504 ch_info->power_info[RATE_12M_IDX_TBL]. in il3945_hw_reg_set_new_power() 1506 ++power_info; in il3945_hw_reg_set_new_power() 1593 ch_info->power_info[rate_idx].tpc = in il3945_hw_reg_comp_txpower_temp() [all …]
|
H A D | common.h | 496 struct il3945_channel_power_info power_info[IL4965_MAX_RATE]; member
|
/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 508 static int power_info(struct hl_fpriv *hpriv, struct hl_info_args *args) in power_info() function 512 struct hl_power_info power_info = {0}; in power_info() local 519 rc = hl_fw_cpucp_power_get(hdev, &power_info.power); in power_info() 523 return copy_to_user(out, &power_info, in power_info() 524 min((size_t) max_size, sizeof(power_info))) ? -EFAULT : 0; in power_info() 1121 return power_info(hpriv, args); in _hl_info_ioctl()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-ufs | 1228 What: /sys/bus/platform/drivers/ufshcd/*/power_info/lane 1229 What: /sys/bus/platform/devices/*.ufs/power_info/lane 1237 What: /sys/bus/platform/drivers/ufshcd/*/power_info/mode 1238 What: /sys/bus/platform/devices/*.ufs/power_info/mode 1245 What: /sys/bus/platform/drivers/ufshcd/*/power_info/rate 1246 What: /sys/bus/platform/devices/*.ufs/power_info/rate 1253 What: /sys/bus/platform/drivers/ufshcd/*/power_info/gear 1254 What: /sys/bus/platform/devices/*.ufs/power_info/gear 1261 What: /sys/bus/platform/drivers/ufshcd/*/power_info/dev_pm 1262 What: /sys/bus/platform/devices/*.ufs/power_info/dev_pm [all …]
|