Lines Matching full:entries

193 	amdgpu_table->entries = kzalloc(size, GFP_KERNEL);  in amdgpu_parse_clk_voltage_dep_table()
194 if (!amdgpu_table->entries) in amdgpu_parse_clk_voltage_dep_table()
197 entry = &atom_table->entries[0]; in amdgpu_parse_clk_voltage_dep_table()
199 amdgpu_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in amdgpu_parse_clk_voltage_dep_table()
201 amdgpu_table->entries[i].v = le16_to_cpu(entry->usVoltage); in amdgpu_parse_clk_voltage_dep_table()
320 le16_to_cpu(clk_v->entries[0].usSclkLow) | in amdgpu_parse_extended_power_table()
321 (clk_v->entries[0].ucSclkHigh << 16); in amdgpu_parse_extended_power_table()
323 le16_to_cpu(clk_v->entries[0].usMclkLow) | in amdgpu_parse_extended_power_table()
324 (clk_v->entries[0].ucMclkHigh << 16); in amdgpu_parse_extended_power_table()
326 le16_to_cpu(clk_v->entries[0].usVddc); in amdgpu_parse_extended_power_table()
328 le16_to_cpu(clk_v->entries[0].usVddci); in amdgpu_parse_extended_power_table()
338 adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries = in amdgpu_parse_extended_power_table()
342 if (!adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries) { in amdgpu_parse_extended_power_table()
347 entry = &psl->entries[0]; in amdgpu_parse_extended_power_table()
349 adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries[i].sclk = in amdgpu_parse_extended_power_table()
351 adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries[i].mclk = in amdgpu_parse_extended_power_table()
353 adev->pm.dpm.dyn_state.phase_shedding_limits_table.entries[i].voltage = in amdgpu_parse_extended_power_table()
385 adev->pm.dpm.dyn_state.cac_leakage_table.entries = kzalloc(size, GFP_KERNEL); in amdgpu_parse_extended_power_table()
386 if (!adev->pm.dpm.dyn_state.cac_leakage_table.entries) { in amdgpu_parse_extended_power_table()
390 entry = &cac_table->entries[0]; in amdgpu_parse_extended_power_table()
393 adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc1 = in amdgpu_parse_extended_power_table()
395 adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc2 = in amdgpu_parse_extended_power_table()
397 adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc3 = in amdgpu_parse_extended_power_table()
400 adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].vddc = in amdgpu_parse_extended_power_table()
402 adev->pm.dpm.dyn_state.cac_leakage_table.entries[i].leakage = in amdgpu_parse_extended_power_table()
439 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries = in amdgpu_parse_extended_power_table()
441 if (!adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries) { in amdgpu_parse_extended_power_table()
447 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
448 state_entry = &states->entries[0]; in amdgpu_parse_extended_power_table()
451 ((u8 *)&array->entries[0] + in amdgpu_parse_extended_power_table()
453 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].evclk = in amdgpu_parse_extended_power_table()
455 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].ecclk = in amdgpu_parse_extended_power_table()
457 adev->pm.dpm.dyn_state.vce_clock_voltage_dependency_table.entries[i].v = in amdgpu_parse_extended_power_table()
467 ((u8 *)&array->entries[0] + in amdgpu_parse_extended_power_table()
494 adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries = in amdgpu_parse_extended_power_table()
496 if (!adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries) { in amdgpu_parse_extended_power_table()
502 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
505 ((u8 *)&array->entries[0] + in amdgpu_parse_extended_power_table()
507 adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries[i].vclk = in amdgpu_parse_extended_power_table()
509 adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries[i].dclk = in amdgpu_parse_extended_power_table()
511 adev->pm.dpm.dyn_state.uvd_clock_voltage_dependency_table.entries[i].v = in amdgpu_parse_extended_power_table()
526 adev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries = in amdgpu_parse_extended_power_table()
528 if (!adev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries) { in amdgpu_parse_extended_power_table()
534 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
536 adev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries[i].clk = in amdgpu_parse_extended_power_table()
538 adev->pm.dpm.dyn_state.samu_clock_voltage_dependency_table.entries[i].v = in amdgpu_parse_extended_power_table()
584 adev->pm.dpm.dyn_state.acp_clock_voltage_dependency_table.entries = in amdgpu_parse_extended_power_table()
586 if (!adev->pm.dpm.dyn_state.acp_clock_voltage_dependency_table.entries) { in amdgpu_parse_extended_power_table()
592 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
594 adev->pm.dpm.dyn_state.acp_clock_voltage_dependency_table.entries[i].clk = in amdgpu_parse_extended_power_table()
596 adev->pm.dpm.dyn_state.acp_clock_voltage_dependency_table.entries[i].v = in amdgpu_parse_extended_power_table()
649 kfree(adev->pm.dpm.dyn_state.vddgfx_dependency_on_sclk.entries); in amdgpu_parse_extended_power_table()
662 kfree(dyn_state->vddc_dependency_on_sclk.entries); in amdgpu_free_extended_power_table()
663 kfree(dyn_state->vddci_dependency_on_mclk.entries); in amdgpu_free_extended_power_table()
664 kfree(dyn_state->vddc_dependency_on_mclk.entries); in amdgpu_free_extended_power_table()
665 kfree(dyn_state->mvdd_dependency_on_mclk.entries); in amdgpu_free_extended_power_table()
666 kfree(dyn_state->cac_leakage_table.entries); in amdgpu_free_extended_power_table()
667 kfree(dyn_state->phase_shedding_limits_table.entries); in amdgpu_free_extended_power_table()
670 kfree(dyn_state->vce_clock_voltage_dependency_table.entries); in amdgpu_free_extended_power_table()
671 kfree(dyn_state->uvd_clock_voltage_dependency_table.entries); in amdgpu_free_extended_power_table()
672 kfree(dyn_state->samu_clock_voltage_dependency_table.entries); in amdgpu_free_extended_power_table()
673 kfree(dyn_state->acp_clock_voltage_dependency_table.entries); in amdgpu_free_extended_power_table()
674 kfree(dyn_state->vddgfx_dependency_on_sclk.entries); in amdgpu_free_extended_power_table()