Lines Matching refs:clk_dep_table
568 const ATOM_Vega10_SOCCLK_Dependency_Table *clk_dep_table) in get_socclk_voltage_dependency_table() argument
573 PP_ASSERT_WITH_CODE(clk_dep_table->ucNumEntries, in get_socclk_voltage_dependency_table()
576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table()
581 clk_table->count = (uint32_t)clk_dep_table->ucNumEntries; in get_socclk_voltage_dependency_table()
583 for (i = 0; i < clk_dep_table->ucNumEntries; i++) { in get_socclk_voltage_dependency_table()
585 clk_dep_table->entries[i].ucVddInd; in get_socclk_voltage_dependency_table()
587 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_socclk_voltage_dependency_table()
633 const ATOM_Vega10_GFXCLK_Dependency_Table *clk_dep_table) in get_gfxclk_voltage_dependency_table() argument
640 PP_ASSERT_WITH_CODE((clk_dep_table->ucNumEntries != 0), in get_gfxclk_voltage_dependency_table()
643 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_gfxclk_voltage_dependency_table()
648 clk_table->count = clk_dep_table->ucNumEntries; in get_gfxclk_voltage_dependency_table()
650 if (clk_dep_table->ucRevId == 0) { in get_gfxclk_voltage_dependency_table()
653 clk_dep_table->entries[i].ucVddInd; in get_gfxclk_voltage_dependency_table()
655 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_gfxclk_voltage_dependency_table()
657 (((le16_to_cpu(clk_dep_table->entries[i].usCKSVOffsetandDisable) & 0x8000) in get_gfxclk_voltage_dependency_table()
660 le16_to_cpu(clk_dep_table->entries[i].usCKSVOffsetandDisable) & 0x7F; in get_gfxclk_voltage_dependency_table()
662 le16_to_cpu(clk_dep_table->entries[i].usAVFSOffset); in get_gfxclk_voltage_dependency_table()
664 } else if (clk_dep_table->ucRevId == 1) { in get_gfxclk_voltage_dependency_table()
665 patom_record_v2 = (ATOM_Vega10_GFXCLK_Dependency_Record_V2 *)clk_dep_table->entries; in get_gfxclk_voltage_dependency_table()
696 const ATOM_Vega10_PIXCLK_Dependency_Table *clk_dep_table) in get_pix_clk_voltage_dependency_table() argument
702 PP_ASSERT_WITH_CODE((clk_dep_table->ucNumEntries != 0), in get_pix_clk_voltage_dependency_table()
705 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_pix_clk_voltage_dependency_table()
710 clk_table->count = clk_dep_table->ucNumEntries; in get_pix_clk_voltage_dependency_table()
714 clk_dep_table->entries[i].ucVddInd; in get_pix_clk_voltage_dependency_table()
716 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_pix_clk_voltage_dependency_table()
728 const ATOM_Vega10_DCEFCLK_Dependency_Table *clk_dep_table) in get_dcefclk_voltage_dependency_table() argument
738 PP_ASSERT_WITH_CODE((clk_dep_table->ucNumEntries != 0), in get_dcefclk_voltage_dependency_table()
751 clk_dep_table->entries[clk_dep_table->ucNumEntries - 1].ulClk < 90000) in get_dcefclk_voltage_dependency_table()
752 num_entries = clk_dep_table->ucNumEntries + 1 > NUM_DSPCLK_LEVELS ? in get_dcefclk_voltage_dependency_table()
753 NUM_DSPCLK_LEVELS : clk_dep_table->ucNumEntries + 1; in get_dcefclk_voltage_dependency_table()
755 num_entries = clk_dep_table->ucNumEntries; in get_dcefclk_voltage_dependency_table()
765 for (i = 0; i < clk_dep_table->ucNumEntries; i++) { in get_dcefclk_voltage_dependency_table()
767 clk_dep_table->entries[i].ucVddInd; in get_dcefclk_voltage_dependency_table()
769 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_dcefclk_voltage_dependency_table()
773 clk_table->entries[i].vddInd = clk_dep_table->entries[i-1].ucVddInd; in get_dcefclk_voltage_dependency_table()