Lines Matching refs:profile
1390 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local
1395 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information()
1399 if (!profile) in atomctrl_get_avfs_information()
1402 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information()
1403 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information()
1404 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information()
1405 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information()
1406 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information()
1407 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information()
1408 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information()
1409 param->ulGB_VDROOP_TABLE_CKSOFF_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a1); in atomctrl_get_avfs_information()
1410 param->ulGB_VDROOP_TABLE_CKSOFF_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a2); in atomctrl_get_avfs_information()
1411 param->ulGB_VDROOP_TABLE_CKSON_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a0); in atomctrl_get_avfs_information()
1412 param->ulGB_VDROOP_TABLE_CKSON_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a1); in atomctrl_get_avfs_information()
1413 param->ulGB_VDROOP_TABLE_CKSON_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a2); in atomctrl_get_avfs_information()
1414 param->ulAVFSGB_FUSE_TABLE_CKSOFF_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_m1); in atomctrl_get_avfs_information()
1415 param->usAVFSGB_FUSE_TABLE_CKSOFF_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSOFF_m2); in atomctrl_get_avfs_information()
1416 param->ulAVFSGB_FUSE_TABLE_CKSOFF_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_b); in atomctrl_get_avfs_information()
1417 param->ulAVFSGB_FUSE_TABLE_CKSON_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_m1); in atomctrl_get_avfs_information()
1418 param->usAVFSGB_FUSE_TABLE_CKSON_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSON_m2); in atomctrl_get_avfs_information()
1419 param->ulAVFSGB_FUSE_TABLE_CKSON_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_b); in atomctrl_get_avfs_information()
1420 param->usMaxVoltage_0_25mv = le16_to_cpu(profile->usMaxVoltage_0_25mv); in atomctrl_get_avfs_information()
1421 param->ucEnableGB_VDROOP_TABLE_CKSOFF = profile->ucEnableGB_VDROOP_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1422 param->ucEnableGB_VDROOP_TABLE_CKSON = profile->ucEnableGB_VDROOP_TABLE_CKSON; in atomctrl_get_avfs_information()
1423 param->ucEnableGB_FUSE_TABLE_CKSOFF = profile->ucEnableGB_FUSE_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1424 param->ucEnableGB_FUSE_TABLE_CKSON = profile->ucEnableGB_FUSE_TABLE_CKSON; in atomctrl_get_avfs_information()
1425 param->usPSM_Age_ComFactor = le16_to_cpu(profile->usPSM_Age_ComFactor); in atomctrl_get_avfs_information()
1426 param->ucEnableApplyAVFS_CKS_OFF_Voltage = profile->ucEnableApplyAVFS_CKS_OFF_Voltage; in atomctrl_get_avfs_information()
1480 ATOM_ASIC_PROFILING_INFO_V2_1 *profile; in atomctrl_get_leakage_vddc_base_on_leakage() local
1487 profile = (ATOM_ASIC_PROFILING_INFO_V2_1 *) in atomctrl_get_leakage_vddc_base_on_leakage()
1491 if (!profile) in atomctrl_get_leakage_vddc_base_on_leakage()
1494 if ((profile->asHeader.ucTableFormatRevision >= 2) && in atomctrl_get_leakage_vddc_base_on_leakage()
1495 (profile->asHeader.ucTableContentRevision >= 1) && in atomctrl_get_leakage_vddc_base_on_leakage()
1496 (profile->asHeader.usStructureSize >= sizeof(ATOM_ASIC_PROFILING_INFO_V2_1))) { in atomctrl_get_leakage_vddc_base_on_leakage()
1497 leakage_bin = (u16 *)((char *)profile + profile->usLeakageBinArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1498 vddc_id_buf = (u16 *)((char *)profile + profile->usElbVDDC_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1499 vddc_buf = (u16 *)((char *)profile + profile->usElbVDDC_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1500 if (profile->ucElbVDDC_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1501 for (i = 0; i < profile->ucElbVDDC_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1503 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1505 *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1514 vddci_id_buf = (u16 *)((char *)profile + profile->usElbVDDCI_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1515 vddci_buf = (u16 *)((char *)profile + profile->usElbVDDCI_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1516 if (profile->ucElbVDDCI_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1517 for (i = 0; i < profile->ucElbVDDCI_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1519 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1521 *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1537 void *profile; in atomctrl_get_voltage_range() local
1539 profile = smu_atom_get_data_table(hwmgr->adev, in atomctrl_get_voltage_range()
1543 if (profile) { in atomctrl_get_voltage_range()
1547 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMaxVddc) / 4; in atomctrl_get_voltage_range()
1548 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMinVddc) / 4; in atomctrl_get_voltage_range()
1553 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMaxVddc) / 100; in atomctrl_get_voltage_range()
1554 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMinVddc) / 100; in atomctrl_get_voltage_range()