Lines Matching refs:profile
1454 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local
1459 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information()
1463 if (!profile) in atomctrl_get_avfs_information()
1466 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information()
1467 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information()
1468 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information()
1469 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information()
1470 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information()
1471 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information()
1472 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information()
1473 param->ulGB_VDROOP_TABLE_CKSOFF_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a1); in atomctrl_get_avfs_information()
1474 param->ulGB_VDROOP_TABLE_CKSOFF_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a2); in atomctrl_get_avfs_information()
1475 param->ulGB_VDROOP_TABLE_CKSON_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a0); in atomctrl_get_avfs_information()
1476 param->ulGB_VDROOP_TABLE_CKSON_a1 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a1); in atomctrl_get_avfs_information()
1477 param->ulGB_VDROOP_TABLE_CKSON_a2 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSON_a2); in atomctrl_get_avfs_information()
1478 param->ulAVFSGB_FUSE_TABLE_CKSOFF_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_m1); in atomctrl_get_avfs_information()
1479 param->usAVFSGB_FUSE_TABLE_CKSOFF_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSOFF_m2); in atomctrl_get_avfs_information()
1480 param->ulAVFSGB_FUSE_TABLE_CKSOFF_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSOFF_b); in atomctrl_get_avfs_information()
1481 param->ulAVFSGB_FUSE_TABLE_CKSON_m1 = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_m1); in atomctrl_get_avfs_information()
1482 param->usAVFSGB_FUSE_TABLE_CKSON_m2 = le16_to_cpu(profile->usAVFSGB_FUSE_TABLE_CKSON_m2); in atomctrl_get_avfs_information()
1483 param->ulAVFSGB_FUSE_TABLE_CKSON_b = le32_to_cpu(profile->ulAVFSGB_FUSE_TABLE_CKSON_b); in atomctrl_get_avfs_information()
1484 param->usMaxVoltage_0_25mv = le16_to_cpu(profile->usMaxVoltage_0_25mv); in atomctrl_get_avfs_information()
1485 param->ucEnableGB_VDROOP_TABLE_CKSOFF = profile->ucEnableGB_VDROOP_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1486 param->ucEnableGB_VDROOP_TABLE_CKSON = profile->ucEnableGB_VDROOP_TABLE_CKSON; in atomctrl_get_avfs_information()
1487 param->ucEnableGB_FUSE_TABLE_CKSOFF = profile->ucEnableGB_FUSE_TABLE_CKSOFF; in atomctrl_get_avfs_information()
1488 param->ucEnableGB_FUSE_TABLE_CKSON = profile->ucEnableGB_FUSE_TABLE_CKSON; in atomctrl_get_avfs_information()
1489 param->usPSM_Age_ComFactor = le16_to_cpu(profile->usPSM_Age_ComFactor); in atomctrl_get_avfs_information()
1490 param->ucEnableApplyAVFS_CKS_OFF_Voltage = profile->ucEnableApplyAVFS_CKS_OFF_Voltage; in atomctrl_get_avfs_information()
1544 ATOM_ASIC_PROFILING_INFO_V2_1 *profile; in atomctrl_get_leakage_vddc_base_on_leakage() local
1551 profile = (ATOM_ASIC_PROFILING_INFO_V2_1 *) in atomctrl_get_leakage_vddc_base_on_leakage()
1555 if (!profile) in atomctrl_get_leakage_vddc_base_on_leakage()
1558 if ((profile->asHeader.ucTableFormatRevision >= 2) && in atomctrl_get_leakage_vddc_base_on_leakage()
1559 (profile->asHeader.ucTableContentRevision >= 1) && in atomctrl_get_leakage_vddc_base_on_leakage()
1560 (profile->asHeader.usStructureSize >= sizeof(ATOM_ASIC_PROFILING_INFO_V2_1))) { in atomctrl_get_leakage_vddc_base_on_leakage()
1561 leakage_bin = (u16 *)((char *)profile + profile->usLeakageBinArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1562 vddc_id_buf = (u16 *)((char *)profile + profile->usElbVDDC_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1563 vddc_buf = (u16 *)((char *)profile + profile->usElbVDDC_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1564 if (profile->ucElbVDDC_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1565 for (i = 0; i < profile->ucElbVDDC_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1567 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1569 *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1578 vddci_id_buf = (u16 *)((char *)profile + profile->usElbVDDCI_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1579 vddci_buf = (u16 *)((char *)profile + profile->usElbVDDCI_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage()
1580 if (profile->ucElbVDDCI_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage()
1581 for (i = 0; i < profile->ucElbVDDCI_Num; i++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1583 for (j = 0; j < profile->ucLeakageBinNum; j++) { in atomctrl_get_leakage_vddc_base_on_leakage()
1585 *vddci = vddci_buf[j * profile->ucElbVDDCI_Num + i]; in atomctrl_get_leakage_vddc_base_on_leakage()
1601 void *profile; in atomctrl_get_voltage_range() local
1603 profile = smu_atom_get_data_table(hwmgr->adev, in atomctrl_get_voltage_range()
1607 if (profile) { in atomctrl_get_voltage_range()
1611 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMaxVddc) / 4; in atomctrl_get_voltage_range()
1612 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_3 *)profile)->ulMinVddc) / 4; in atomctrl_get_voltage_range()
1617 *max_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMaxVddc) / 100; in atomctrl_get_voltage_range()
1618 *min_vddc = le32_to_cpu(((ATOM_ASIC_PROFILING_INFO_V3_6 *)profile)->ulMinVddc) / 100; in atomctrl_get_voltage_range()