Home
last modified time | relevance | path

Searched refs:clock_table (Results 1 – 22 of 22) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/
Ddcn314_clk_mgr.c569 const DpmClocks314_t *clock_table) in dcn314_clk_mgr_helper_populate_bw_params() argument
577 for (i = 0; i < clock_table->NumDfPstatesEnabled; i++) { in dcn314_clk_mgr_helper_populate_bw_params()
578 if (is_valid_clock_value(clock_table->DfPstateTable[i].FClk) && in dcn314_clk_mgr_helper_populate_bw_params()
579 clock_table->DfPstateTable[i].FClk > max_fclk) { in dcn314_clk_mgr_helper_populate_bw_params()
580 max_fclk = clock_table->DfPstateTable[i].FClk; in dcn314_clk_mgr_helper_populate_bw_params()
589 if (clock_table->NumDispClkLevelsEnabled <= NUM_DISPCLK_DPM_LEVELS && in dcn314_clk_mgr_helper_populate_bw_params()
590 clock_table->NumDispClkLevelsEnabled <= NUM_DPPCLK_DPM_LEVELS) { in dcn314_clk_mgr_helper_populate_bw_params()
591 max_dispclk = find_max_clk_value(clock_table->DispClocks, clock_table->NumDispClkLevelsEnabled); in dcn314_clk_mgr_helper_populate_bw_params()
592 max_dppclk = find_max_clk_value(clock_table->DppClocks, clock_table->NumDispClkLevelsEnabled); in dcn314_clk_mgr_helper_populate_bw_params()
599 for (i = 0; i < clock_table->NumDcfClkLevelsEnabled; i++) { in dcn314_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/
Ddcn315_clk_mgr.c474 const DpmClocks_315_t *clock_table) in dcn315_clk_mgr_helper_populate_bw_params() argument
478 uint32_t max_pstate = clock_table->NumDfPstatesEnabled - 1; in dcn315_clk_mgr_helper_populate_bw_params()
482 for (i = 0; i < clock_table->NumDcfClkLevelsEnabled; i++) { in dcn315_clk_mgr_helper_populate_bw_params()
486 for (j = clock_table->NumDfPstatesEnabled - 2; j >= 0; j--) { in dcn315_clk_mgr_helper_populate_bw_params()
487 if (clock_table->DfPstateTable[j].Voltage <= clock_table->SocVoltage[i]) in dcn315_clk_mgr_helper_populate_bw_params()
491 if (i == clock_table->NumDcfClkLevelsEnabled - 1) in dcn315_clk_mgr_helper_populate_bw_params()
496 if (bw_params->clk_table.entries[j].dcfclk_mhz <= clock_table->DcfClocks[i]) in dcn315_clk_mgr_helper_populate_bw_params()
503 bw_params->clk_table.entries[i].fclk_mhz = clock_table->DfPstateTable[max_pstate].FClk; in dcn315_clk_mgr_helper_populate_bw_params()
504 bw_params->clk_table.entries[i].memclk_mhz = clock_table->DfPstateTable[max_pstate].MemClk; in dcn315_clk_mgr_helper_populate_bw_params()
505 bw_params->clk_table.entries[i].voltage = clock_table->SocVoltage[i]; in dcn315_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/
Ddcn316_clk_mgr.c450 const DpmClocks_316_t *clock_table, in find_clk_for_voltage() argument
459 if (clock_table->SocVoltage[i] == voltage) { in find_clk_for_voltage()
461 } else if (clock_table->SocVoltage[i] >= max_voltage && in find_clk_for_voltage()
462 clock_table->SocVoltage[i] < voltage) { in find_clk_for_voltage()
463 max_voltage = clock_table->SocVoltage[i]; in find_clk_for_voltage()
475 const DpmClocks_316_t *clock_table) in dcn316_clk_mgr_helper_populate_bw_params() argument
488 if (clock_table->DfPstateTable[i].FClk != 0) { in dcn316_clk_mgr_helper_populate_bw_params()
503 if (clock_table->NumDispClkLevelsEnabled <= NUM_DISPCLK_DPM_LEVELS && in dcn316_clk_mgr_helper_populate_bw_params()
504 clock_table->NumDispClkLevelsEnabled <= NUM_DPPCLK_DPM_LEVELS) { in dcn316_clk_mgr_helper_populate_bw_params()
505 max_dispclk = find_max_clk_value(clock_table->DispClocks, clock_table->NumDispClkLevelsEnabled); in dcn316_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
Ddcn31_clk_mgr.c533 const DpmClocks_t *clock_table, in find_clk_for_voltage() argument
542 if (clock_table->SocVoltage[i] == voltage) { in find_clk_for_voltage()
544 } else if (clock_table->SocVoltage[i] >= max_voltage && in find_clk_for_voltage()
545 clock_table->SocVoltage[i] < voltage) { in find_clk_for_voltage()
546 max_voltage = clock_table->SocVoltage[i]; in find_clk_for_voltage()
557 const DpmClocks_t *clock_table) in dcn31_clk_mgr_helper_populate_bw_params() argument
570 if (clock_table->DfPstateTable[i].FClk != 0) { in dcn31_clk_mgr_helper_populate_bw_params()
585 if (clock_table->NumDispClkLevelsEnabled <= NUM_DISPCLK_DPM_LEVELS && in dcn31_clk_mgr_helper_populate_bw_params()
586 clock_table->NumDispClkLevelsEnabled <= NUM_DPPCLK_DPM_LEVELS) { in dcn31_clk_mgr_helper_populate_bw_params()
587 max_dispclk = find_max_clk_value(clock_table->DispClocks, clock_table->NumDispClkLevelsEnabled); in dcn31_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr.c613 static unsigned int find_socclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage) in find_socclk_for_voltage() argument
618 if (clock_table->SocClocks[i].Vol == voltage) in find_socclk_for_voltage()
619 return clock_table->SocClocks[i].Freq; in find_socclk_for_voltage()
626 static unsigned int find_dcfclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage) in find_dcfclk_for_voltage() argument
631 if (clock_table->DcfClocks[i].Vol == voltage) in find_dcfclk_for_voltage()
632 return clock_table->DcfClocks[i].Freq; in find_dcfclk_for_voltage()
639 …populate_bw_params(struct clk_bw_params *bw_params, struct dpm_clocks *clock_table, struct integra… in rn_clk_mgr_helper_populate_bw_params() argument
650 if (clock_table->FClocks[i].Freq != 0 && clock_table->FClocks[i].Vol != 0) { in rn_clk_mgr_helper_populate_bw_params()
665 bw_params->clk_table.entries[i].fclk_mhz = clock_table->FClocks[j].Freq; in rn_clk_mgr_helper_populate_bw_params()
666 bw_params->clk_table.entries[i].memclk_mhz = clock_table->MemClocks[j].Freq; in rn_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
Dvg_clk_mgr.c543 static unsigned int find_dcfclk_for_voltage(const struct vg_dpm_clocks *clock_table, in find_dcfclk_for_voltage() argument
549 if (clock_table->SocVoltage[i] == voltage) in find_dcfclk_for_voltage()
550 return clock_table->DcfClocks[i]; in find_dcfclk_for_voltage()
560 const struct vg_dpm_clocks *clock_table) in vg_clk_mgr_helper_populate_bw_params() argument
572 if (clock_table->DfPstateTable[i].fclk != 0) { in vg_clk_mgr_helper_populate_bw_params()
587 bw_params->clk_table.entries[i].fclk_mhz = clock_table->DfPstateTable[j].fclk; in vg_clk_mgr_helper_populate_bw_params()
588 bw_params->clk_table.entries[i].memclk_mhz = clock_table->DfPstateTable[j].memclk; in vg_clk_mgr_helper_populate_bw_params()
589 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[j].voltage; in vg_clk_mgr_helper_populate_bw_params()
590 …bw_params->clk_table.entries[i].dcfclk_mhz = find_dcfclk_for_voltage(clock_table, clock_table->DfP… in vg_clk_mgr_helper_populate_bw_params()
592 bw_params->clk_table.entries[i].fclk_mhz = clock_table->DfPstateTable[j].fclk; in vg_clk_mgr_helper_populate_bw_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu8_hwmgr.c437 struct SMU8_Fusion_ClkTable *clock_table; in smu8_upload_pptable_to_smu() local
462 clock_table = (struct SMU8_Fusion_ClkTable *)table; in smu8_upload_pptable_to_smu()
479 clock_table->SclkBreakdownTable.ClkLevel[i].GnbVid = in smu8_upload_pptable_to_smu()
481 clock_table->SclkBreakdownTable.ClkLevel[i].Frequency = in smu8_upload_pptable_to_smu()
485 clock_table->SclkBreakdownTable.ClkLevel[i].Frequency, in smu8_upload_pptable_to_smu()
488 clock_table->SclkBreakdownTable.ClkLevel[i].DfsDid = in smu8_upload_pptable_to_smu()
492 clock_table->SclkBreakdownTable.ClkLevel[i].GfxVid = in smu8_upload_pptable_to_smu()
496 clock_table->AclkBreakdownTable.ClkLevel[i].GfxVid = in smu8_upload_pptable_to_smu()
498 clock_table->AclkBreakdownTable.ClkLevel[i].Frequency = in smu8_upload_pptable_to_smu()
502 clock_table->AclkBreakdownTable.ClkLevel[i].Frequency, in smu8_upload_pptable_to_smu()
[all …]
Dsmu10_hwmgr.c499 DpmClocks_t *table = &(smu10_data->clock_table); in smu10_populate_clock_table()
511 &smu10_data->clock_table.DcefClocks[0]); in smu10_populate_clock_table()
514 &smu10_data->clock_table.SocClocks[0]); in smu10_populate_clock_table()
517 &smu10_data->clock_table.FClocks[0]); in smu10_populate_clock_table()
520 &smu10_data->clock_table.MemClocks[0]); in smu10_populate_clock_table()
643 if (min_mclk < data->clock_table.FClocks[0].Freq) in smu10_dpm_force_dpm_level()
644 min_mclk = data->clock_table.FClocks[0].Freq; in smu10_dpm_force_dpm_level()
Dprocesspptables.c410 struct phm_clock_array *clock_table; in get_valid_clk() local
412 clock_table = kzalloc(struct_size(clock_table, values, table->count), GFP_KERNEL); in get_valid_clk()
413 if (!clock_table) in get_valid_clk()
416 clock_table->count = (unsigned long)table->count; in get_valid_clk()
418 for (i = 0; i < clock_table->count; i++) in get_valid_clk()
419 clock_table->values[i] = (unsigned long)table->entries[i].clk; in get_valid_clk()
421 *ptable = clock_table; in get_valid_clk()
Dsmu10_hwmgr.h297 DpmClocks_t clock_table; member
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c756 static int renoir_get_dpm_clock_table(struct smu_context *smu, struct dpm_clocks *clock_table) in renoir_get_dpm_clock_table() argument
761 if (!clock_table || !table) in renoir_get_dpm_clock_table()
765 clock_table->DcfClocks[i].Freq = table->DcfClocks[i].Freq; in renoir_get_dpm_clock_table()
766 clock_table->DcfClocks[i].Vol = table->DcfClocks[i].Vol; in renoir_get_dpm_clock_table()
770 clock_table->SocClocks[i].Freq = table->SocClocks[i].Freq; in renoir_get_dpm_clock_table()
771 clock_table->SocClocks[i].Vol = table->SocClocks[i].Vol; in renoir_get_dpm_clock_table()
775 clock_table->FClocks[i].Freq = table->FClocks[i].Freq; in renoir_get_dpm_clock_table()
776 clock_table->FClocks[i].Vol = table->FClocks[i].Vol; in renoir_get_dpm_clock_table()
780 clock_table->MemClocks[i].Freq = table->MemClocks[i].Freq; in renoir_get_dpm_clock_table()
781 clock_table->MemClocks[i].Vol = table->MemClocks[i].Vol; in renoir_get_dpm_clock_table()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/
Ddm_pp_smu.h283 struct dpm_clocks *clock_table);
303 struct dpm_clocks *clock_table);
/linux-6.6.21/drivers/tty/serial/8250/
D8250_fintek.c288 static u8 clock_table[] = { F81866_UART_CLK_1_8432MHZ, in fintek_8250_set_termios() local
329 clock_table[i]); in fintek_8250_set_termios()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dvangogh_ppt.c2209 static int vangogh_get_dpm_clock_table(struct smu_context *smu, struct dpm_clocks *clock_table) in vangogh_get_dpm_clock_table() argument
2214 if (!clock_table || !table) in vangogh_get_dpm_clock_table()
2218 clock_table->SocClocks[i].Freq = table->SocClocks[i]; in vangogh_get_dpm_clock_table()
2219 clock_table->SocClocks[i].Vol = table->SocVoltage[i]; in vangogh_get_dpm_clock_table()
2223 clock_table->FClocks[i].Freq = table->DfPstateTable[i].fclk; in vangogh_get_dpm_clock_table()
2224 clock_table->FClocks[i].Vol = table->DfPstateTable[i].voltage; in vangogh_get_dpm_clock_table()
2228 clock_table->MemClocks[i].Freq = table->DfPstateTable[i].memclk; in vangogh_get_dpm_clock_table()
2229 clock_table->MemClocks[i].Vol = table->DfPstateTable[i].voltage; in vangogh_get_dpm_clock_table()
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_pp_smu.c727 struct pp_smu *pp, struct dpm_clocks *clock_table) in pp_rn_get_dpm_clock_table() argument
733 ret = amdgpu_dpm_get_dpm_clock_table(adev, clock_table); in pp_rn_get_dpm_clock_table()
/linux-6.6.21/drivers/usb/serial/
Df81232.c128 static u8 const clock_table[] = { F81232_CLK_1_846_MHZ, F81232_CLK_14_77_MHZ, variable
520 F81232_CLK_MASK, clock_table[idx]); in f81232_set_baudrate()
Df81534.c190 static u8 const clock_table[] = { F81534_CLK_1_846_MHZ, F81534_CLK_14_77_MHZ, variable
586 port_priv->shadow_clk |= clock_table[idx]; in f81534_set_port_config()
/linux-6.6.21/drivers/gpu/drm/amd/pm/inc/
Damdgpu_dpm.h563 struct dpm_clocks *clock_table);
/linux-6.6.21/drivers/gpu/drm/amd/include/
Dkgd_pp_interface.h421 struct dpm_clocks *clock_table);
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/inc/
Damdgpu_smu.h873 int (*get_dpm_clock_table)(struct smu_context *smu, struct dpm_clocks *clock_table);
/linux-6.6.21/drivers/gpu/drm/amd/pm/
Damdgpu_dpm.c1792 struct dpm_clocks *clock_table) in amdgpu_dpm_get_dpm_clock_table() argument
1802 clock_table); in amdgpu_dpm_get_dpm_clock_table()
/linux-6.6.21/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c3026 struct dpm_clocks *clock_table) in smu_get_dpm_clock_table() argument
3035 ret = smu->ppt_funcs->get_dpm_clock_table(smu, clock_table); in smu_get_dpm_clock_table()