Lines Matching refs:od_table

1237 static inline bool navi10_od_feature_is_supported(struct smu_11_0_overdrive_table *od_table, enum SMU_11_0_ODFEATURE_CAP cap)
1239 return od_table->cap[cap];
1242 static void navi10_od_setting_get_range(struct smu_11_0_overdrive_table *od_table,
1247 *min = od_table->min[setting];
1249 *max = od_table->max[setting];
1267 OverDriveTable_t *od_table =
1354 if (!smu->od_enabled || !od_table || !od_settings)
1359 od_table->GfxclkFmin, od_table->GfxclkFmax);
1362 if (!smu->od_enabled || !od_table || !od_settings)
1366 *offset += sysfs_emit_at(buf, *offset, "OD_MCLK:\n1: %uMHz\n", od_table->UclkFmax);
1369 if (!smu->od_enabled || !od_table || !od_settings)
1377 curve_settings = &od_table->GfxclkFreq1;
1380 curve_settings = &od_table->GfxclkFreq2;
1383 curve_settings = &od_table->GfxclkFreq3;
1394 if (!smu->od_enabled || !od_table || !od_settings)
1474 OverDriveTable_t *od_table =
1553 if (!smu->od_enabled || !od_table || !od_settings)
1559 od_table->GfxclkFmin, od_table->GfxclkFmax);
1562 if (!smu->od_enabled || !od_table || !od_settings)
1567 size += sysfs_emit_at(buf, size, "1: %uMHz\n", od_table->UclkFmax);
1570 if (!smu->od_enabled || !od_table || !od_settings)
1578 curve_settings = &od_table->GfxclkFreq1;
1581 curve_settings = &od_table->GfxclkFreq2;
1584 curve_settings = &od_table->GfxclkFreq3;
1595 if (!smu->od_enabled || !od_table || !od_settings)
2424 OverDriveTable_t *od_table)
2426 dev_dbg(smu->adev->dev, "OD: Gfxclk: (%d, %d)\n", od_table->GfxclkFmin, od_table->GfxclkFmax);
2427 dev_dbg(smu->adev->dev, "OD: Gfx1: (%d, %d)\n", od_table->GfxclkFreq1, od_table->GfxclkVolt1);
2428 dev_dbg(smu->adev->dev, "OD: Gfx2: (%d, %d)\n", od_table->GfxclkFreq2, od_table->GfxclkVolt2);
2429 dev_dbg(smu->adev->dev, "OD: Gfx3: (%d, %d)\n", od_table->GfxclkFreq3, od_table->GfxclkVolt3);
2430 dev_dbg(smu->adev->dev, "OD: UclkFmax: %d\n", od_table->UclkFmax);
2431 dev_dbg(smu->adev->dev, "OD: OverDrivePct: %d\n", od_table->OverDrivePct);
2435 struct smu_11_0_overdrive_table *od_table,
2439 if (value < od_table->min[setting]) {
2440 dev_warn(smu->adev->dev, "OD setting (%d, %d) is less than the minimum allowed (%d)\n", setting, value, od_table->min[setting]);
2443 if (value > od_table->max[setting]) {
2444 dev_warn(smu->adev->dev, "OD setting (%d, %d) is greater than the maximum allowed (%d)\n", setting, value, od_table->max[setting]);
2517 OverDriveTable_t *od_table =
2565 memcpy(od_table, boot_od_table, sizeof(OverDriveTable_t));
2576 OverDriveTable_t *od_table;
2580 od_table = (OverDriveTable_t *)table_context->overdrive_table;
2612 freq_ptr = &od_table->GfxclkFmin;
2613 if (input[i + 1] > od_table->GfxclkFmax) {
2616 od_table->GfxclkFmin);
2622 freq_ptr = &od_table->GfxclkFmax;
2623 if (input[i + 1] < od_table->GfxclkFmin) {
2626 od_table->GfxclkFmax);
2658 od_table->UclkFmax = input[1];
2668 if (memcmp(od_table, table_context->user_overdrive_table, sizeof(OverDriveTable_t))) {
2669 navi10_dump_od_table(smu, od_table);
2670 ret = smu_cmn_update_table(smu, SMU_TABLE_OVERDRIVE, 0, (void *)od_table, true);
2675 memcpy(table_context->user_overdrive_table, od_table, sizeof(OverDriveTable_t));
2693 if (!od_table) {
2702 freq_ptr = &od_table->GfxclkFreq1;
2703 voltage_ptr = &od_table->GfxclkVolt1;
2708 freq_ptr = &od_table->GfxclkFreq2;
2709 voltage_ptr = &od_table->GfxclkVolt2;
2714 freq_ptr = &od_table->GfxclkFreq3;
2715 voltage_ptr = &od_table->GfxclkVolt3;
2735 od_table->GfxclkVolt1 = 0;
2736 od_table->GfxclkVolt2 = 0;
2737 od_table->GfxclkVolt3 = 0;
2739 navi10_dump_od_table(smu, od_table);