Lines Matching refs:profile
1037 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local
1042 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information()
1046 if (!profile) in atomctrl_get_avfs_information()
1049 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information()
1050 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information()
1051 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information()
1052 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information()
1053 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information()
1054 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information()
1055 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information()
1056 param->ulGB_VDROOP_TABLE_CKSOFF_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a1); in atomctrl_get_avfs_information()
1057 param->ulGB_VDROOP_TABLE_CKSOFF_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a2); in atomctrl_get_avfs_information()
1058 param->ulGB_VDROOP_TABLE_CKSON_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a0); in atomctrl_get_avfs_information()
1059 param->ulGB_VDROOP_TABLE_CKSON_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a1); in atomctrl_get_avfs_information()
1060 param->ulGB_VDROOP_TABLE_CKSON_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a2); in atomctrl_get_avfs_information()
1061 param->ulAVFSGB_FUSE_TABLE_CKSOFF_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_m1); in atomctrl_get_avfs_information()
1062 param->usAVFSGB_FUSE_TABLE_CKSOFF_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSOFF_m2); in atomctrl_get_avfs_information()
1063 param->ulAVFSGB_FUSE_TABLE_CKSOFF_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_b); in atomctrl_get_avfs_information()
1064 param->ulAVFSGB_FUSE_TABLE_CKSON_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_m1); in atomctrl_get_avfs_information()
1065 param->usAVFSGB_FUSE_TABLE_CKSON_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSON_m2); in atomctrl_get_avfs_information()
1066 param->ulAVFSGB_FUSE_TABLE_CKSON_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_b); in atomctrl_get_avfs_information()
1067 param->usMaxVoltage_0_25mv = le16_to_cpu(profile->usMaxVoltage_0_25mv); in atomctrl_get_avfs_information()
1068 param->ucEnableGB_VDROOP_TABLE_CKSOFF = profile->ucEnableGB_VDROOP_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1069 param->ucEnableGB_VDROOP_TABLE_CKSON = profile->ucEnableGB_VDROOP_TABLE_CKSON; in atomctrl_get_avfs_information()
1070 param->ucEnableGB_FUSE_TABLE_CKSOFF = profile->ucEnableGB_FUSE_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1071 param->ucEnableGB_FUSE_TABLE_CKSON = profile->ucEnableGB_FUSE_TABLE_CKSON; in atomctrl_get_avfs_information()
1072 param->usPSM_Age_ComFactor = le16_to_cpu(profile->usPSM_Age_ComFactor); in atomctrl_get_avfs_information()
1073 param->ucEnableApplyAVFS_CKS_OFF_Voltage = profile->ucEnableApplyAVFS_CKS_OFF_Voltage; in atomctrl_get_avfs_information()
1127 ATOM_ASIC_PROFILING_INFO_V2_1 *profile; in atomctrl_get_leakage_vddc_base_on_leakage() local
1134 profile = (ATOM_ASIC_PROFILING_INFO_V2_1 *) in atomctrl_get_leakage_vddc_base_on_leakage()
1138 if (!profile) in atomctrl_get_leakage_vddc_base_on_leakage()
1141 if ((profile->asHeader.ucTableFormatRevision >= 2) && in atomctrl_get_leakage_vddc_base_on_leakage()
1142 (profile->asHeader.ucTableContentRevision >= 1) && in atomctrl_get_leakage_vddc_base_on_leakage()
1143 (profile->asHeader.usStructureSize >= sizeof(ATOM_ASIC_PROFILING_INFO_V2_1))) { in atomctrl_get_leakage_vddc_base_on_leakage()
1144 leakage_bin = (u16 *)((char *)profile + profile->usLeakageBinArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1145 vddc_id_buf = (u16 *)((char *)profile + profile->usElbVDDC_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1146 vddc_buf = (u16 *)((char *)profile + profile->usElbVDDC_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1147 if (profile->ucElbVDDC_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1148 for (i = 0; i < profile->ucElbVDDC_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1150 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1152 *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1161 vddci_id_buf = (u16 *)((char *)profile + profile->usElbVDDCI_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1162 vddci_buf = (u16 *)((char *)profile + profile->usElbVDDCI_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1163 if (profile->ucElbVDDCI_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1164 for (i = 0; i < profile->ucElbVDDCI_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1166 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1168 *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1184 void *profile; in atomctrl_get_voltage_range() local
1186 profile = smu_atom_get_data_table(hwmgr->adev, in atomctrl_get_voltage_range()
1190 if (profile) { in atomctrl_get_voltage_range()
1194 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMaxVddc) / 4; in atomctrl_get_voltage_range()
1195 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMinVddc) / 4; in atomctrl_get_voltage_range()
1200 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMaxVddc) / 100; in atomctrl_get_voltage_range()
1201 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMinVddc) / 100; in atomctrl_get_voltage_range()