Lines Matching full:entries
319 (ATOM_Vega10_GFXCLK_Dependency_Record_V2 *)gfxclk_dep_table->entries; in init_over_drive_limits()
353 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
361 mm_dependency_record = &mm_dependency_table->entries[i]; in get_mm_clock_voltage_table()
362 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table()
363 mm_table->entries[i].samclock = in get_mm_clock_voltage_table()
365 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table()
366 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table()
367 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table()
576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table()
584 clk_table->entries[i].vddInd = in get_socclk_voltage_dependency_table()
585 clk_dep_table->entries[i].ucVddInd; in get_socclk_voltage_dependency_table()
586 clk_table->entries[i].clk = in get_socclk_voltage_dependency_table()
587 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_socclk_voltage_dependency_table()
606 mclk_table = kzalloc(struct_size(mclk_table, entries, mclk_dep_table->ucNumEntries), in get_mclk_voltage_dependency_table()
614 mclk_table->entries[i].vddInd = in get_mclk_voltage_dependency_table()
615 mclk_dep_table->entries[i].ucVddInd; in get_mclk_voltage_dependency_table()
616 mclk_table->entries[i].vddciInd = in get_mclk_voltage_dependency_table()
617 mclk_dep_table->entries[i].ucVddciInd; in get_mclk_voltage_dependency_table()
618 mclk_table->entries[i].mvddInd = in get_mclk_voltage_dependency_table()
619 mclk_dep_table->entries[i].ucVddMemInd; in get_mclk_voltage_dependency_table()
620 mclk_table->entries[i].clk = in get_mclk_voltage_dependency_table()
621 le32_to_cpu(mclk_dep_table->entries[i].ulMemClk); in get_mclk_voltage_dependency_table()
643 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_gfxclk_voltage_dependency_table()
652 clk_table->entries[i].vddInd = in get_gfxclk_voltage_dependency_table()
653 clk_dep_table->entries[i].ucVddInd; in get_gfxclk_voltage_dependency_table()
654 clk_table->entries[i].clk = in get_gfxclk_voltage_dependency_table()
655 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_gfxclk_voltage_dependency_table()
656 clk_table->entries[i].cks_enable = in get_gfxclk_voltage_dependency_table()
657 (((le16_to_cpu(clk_dep_table->entries[i].usCKSVOffsetandDisable) & 0x8000) in get_gfxclk_voltage_dependency_table()
659 clk_table->entries[i].cks_voffset = in get_gfxclk_voltage_dependency_table()
660 le16_to_cpu(clk_dep_table->entries[i].usCKSVOffsetandDisable) & 0x7F; in get_gfxclk_voltage_dependency_table()
661 clk_table->entries[i].sclk_offset = in get_gfxclk_voltage_dependency_table()
662 le16_to_cpu(clk_dep_table->entries[i].usAVFSOffset); 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()
667 clk_table->entries[i].vddInd = in get_gfxclk_voltage_dependency_table()
669 clk_table->entries[i].clk = in get_gfxclk_voltage_dependency_table()
671 clk_table->entries[i].cks_enable = in get_gfxclk_voltage_dependency_table()
674 clk_table->entries[i].cks_voffset = in get_gfxclk_voltage_dependency_table()
676 clk_table->entries[i].sclk_offset = in get_gfxclk_voltage_dependency_table()
705 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_pix_clk_voltage_dependency_table()
713 clk_table->entries[i].vddInd = in get_pix_clk_voltage_dependency_table()
714 clk_dep_table->entries[i].ucVddInd; in get_pix_clk_voltage_dependency_table()
715 clk_table->entries[i].clk = in get_pix_clk_voltage_dependency_table()
716 le32_to_cpu(clk_dep_table->entries[i].ulClk); in get_pix_clk_voltage_dependency_table()
751 clk_dep_table->entries[clk_dep_table->ucNumEntries - 1].ulClk < 90000) in get_dcefclk_voltage_dependency_table()
758 clk_table = kzalloc(struct_size(clk_table, entries, num_entries), in get_dcefclk_voltage_dependency_table()
766 clk_table->entries[i].vddInd = in get_dcefclk_voltage_dependency_table()
767 clk_dep_table->entries[i].ucVddInd; in get_dcefclk_voltage_dependency_table()
768 clk_table->entries[i].clk = 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()
774 clk_table->entries[i].clk = 90000; in get_dcefclk_voltage_dependency_table()
797 pcie_table = kzalloc(struct_size(pcie_table, entries, atom_pcie_table->ucNumEntries), in get_pcie_table()
806 pr_info("Number of Pcie Entries exceed the number of" in get_pcie_table()
808 " Disregarding the excess entries...\n"); in get_pcie_table()
813 pcie_table->entries[i].gen_speed = in get_pcie_table()
814 atom_pcie_table->entries[i].ucPCIEGenSpeed; in get_pcie_table()
815 pcie_table->entries[i].lane_width = in get_pcie_table()
816 atom_pcie_table->entries[i].ucPCIELaneWidth; in get_pcie_table()
817 pcie_table->entries[i].pcie_sclk = in get_pcie_table()
818 atom_pcie_table->entries[i].ulLCLK; in get_pcie_table()
834 /* currently we always take entries[0] parameters */ in get_hard_limits()
835 limits->sclk = le32_to_cpu(limit_table->entries[0].ulSOCCLKLimit); in get_hard_limits()
836 limits->mclk = le32_to_cpu(limit_table->entries[0].ulMCLKLimit); in get_hard_limits()
837 limits->gfxclk = le32_to_cpu(limit_table->entries[0].ulGFXCLKLimit); in get_hard_limits()
838 limits->vddc = le16_to_cpu(limit_table->entries[0].usVddcLimit); in get_hard_limits()
839 limits->vddci = le16_to_cpu(limit_table->entries[0].usVddciLimit); in get_hard_limits()
840 limits->vddmem = le16_to_cpu(limit_table->entries[0].usVddMemLimit); in get_hard_limits()
864 table->values[i] = (uint32_t)clk_volt_pp_table->entries[i].clk; in get_valid_clk()
1044 table = kzalloc(struct_size(table, entries, max_levels), GFP_KERNEL); in get_vddc_lookup_table()
1051 table->entries[i].us_vdd = in get_vddc_lookup_table()
1052 le16_to_cpu(vddc_lookup_pp_tables->entries[i].usVdd); in get_vddc_lookup_table()