Home
last modified time | relevance | path

Searched refs:pll_info (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/drivers/clk/ingenic/
Dcgu.c85 const struct ingenic_cgu_pll_info *pll_info; in ingenic_pll_recalc_rate() local
91 pll_info = &clk_info->pll; in ingenic_pll_recalc_rate()
93 ctl = readl(cgu->base + pll_info->reg); in ingenic_pll_recalc_rate()
95 m = (ctl >> pll_info->m_shift) & GENMASK(pll_info->m_bits - 1, 0); in ingenic_pll_recalc_rate()
96 m += pll_info->m_offset; in ingenic_pll_recalc_rate()
97 n = (ctl >> pll_info->n_shift) & GENMASK(pll_info->n_bits - 1, 0); in ingenic_pll_recalc_rate()
98 n += pll_info->n_offset; in ingenic_pll_recalc_rate()
100 if (pll_info->od_bits > 0) { in ingenic_pll_recalc_rate()
101 od_enc = ctl >> pll_info->od_shift; in ingenic_pll_recalc_rate()
102 od_enc &= GENMASK(pll_info->od_bits - 1, 0); in ingenic_pll_recalc_rate()
[all …]
Dcgu.h63 void (*calc_m_n_od)(const struct ingenic_cgu_pll_info *pll_info,
66 void (*set_rate_hook)(const struct ingenic_cgu_pll_info *pll_info,
Dx1000-cgu.c173 x1000_i2spll_calc_m_n_od(const struct ingenic_cgu_pll_info *pll_info, in x1000_i2spll_calc_m_n_od() argument
177 const unsigned long m_max = GENMASK(pll_info->m_bits - 1, 0); in x1000_i2spll_calc_m_n_od()
178 const unsigned long n_max = GENMASK(pll_info->n_bits - 1, 0); in x1000_i2spll_calc_m_n_od()
193 x1000_i2spll_set_rate_hook(const struct ingenic_cgu_pll_info *pll_info, in x1000_i2spll_set_rate_hook() argument
Djz4760-cgu.c57 jz4760_cgu_calc_m_n_od(const struct ingenic_cgu_pll_info *pll_info, in jz4760_cgu_calc_m_n_od() argument
61 unsigned int m, n, od, m_max = (1 << pll_info->m_bits) - 1; in jz4760_cgu_calc_m_n_od()
67 n = clamp_val(n, 2, 1 << pll_info->n_bits); in jz4760_cgu_calc_m_n_od()
/linux-6.6.21/drivers/clk/baikal-t1/
Dclk-ccu-pll.c45 #define CCU_PLL_NUM ARRAY_SIZE(pll_info)
65 static const struct ccu_pll_info pll_info[] = { variable
92 if (pll_info[idx].id == clk_id) in ccu_pll_find_desc()
153 const struct ccu_pll_info *info = &pll_info[idx]; in ccu_pll_clk_register()
186 if (!!(pll_info[idx].features & CCU_PLL_BASIC) ^ defer) in ccu_pll_clk_register()
201 if (!!(pll_info[idx].features & CCU_PLL_BASIC) ^ defer) in ccu_pll_clk_unregister()
/linux-6.6.21/drivers/clk/visconti/
Dpll-tmpv770x.c53 static const struct visconti_pll_info pll_info[] __initconst = { variable
82 visconti_register_plls(ctx, pll_info, ARRAY_SIZE(pll_info), &tmpv770x_pll_lock); in tmpv770x_setup_plls()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce/
Ddce_audio.c766 const struct audio_pll_info *pll_info, in get_azalia_clock_info_dp() argument
781 pll_info->dp_dto_source_clock_in_khz * 10; in get_azalia_clock_info_dp()
788 const struct audio_pll_info *pll_info) in dce_aud_wall_dto_setup() argument
824 src_sel = pll_info->dto_source - DTO_SOURCE_ID0; in dce_aud_wall_dto_setup()
846 pll_info, in dce_aud_wall_dto_setup()
880 const struct audio_pll_info *pll_info) in dce60_aud_wall_dto_setup() argument
916 src_sel = pll_info->dto_source - DTO_SOURCE_ID0; in dce60_aud_wall_dto_setup()
938 pll_info, in dce60_aud_wall_dto_setup()
Ddce_clock_source.c1485 calc_pll_cs->ref_freq_khz = fw_info->pll_info.crystal_frequency; in calc_pll_max_vco_construct()
1487 fw_info->pll_info.min_output_pxl_clk_pll_frequency; in calc_pll_max_vco_construct()
1489 fw_info->pll_info.max_output_pxl_clk_pll_frequency; in calc_pll_max_vco_construct()
1496 fw_info->pll_info.max_input_pxl_clk_pll_frequency; in calc_pll_max_vco_construct()
1503 fw_info->pll_info.min_input_pxl_clk_pll_frequency; in calc_pll_max_vco_construct()
1612 clk_src->ref_freq_khz = clk_src->bios->fw_info.pll_info.crystal_frequency; in dce110_clk_src_construct()
Ddce_audio.h178 const struct audio_pll_info *pll_info);
Ddce_i2c_hw.c626 dce_i2c_hw->reference_frequency = (ctx->dc_bios->fw_info.pll_info.crystal_frequency) >> 1; in dce_i2c_hw_construct()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_combios.c732 uint16_t pll_info; in radeon_combios_get_clock_info() local
740 pll_info = combios_get_table_offset(dev, COMBIOS_PLL_INFO_TABLE); in radeon_combios_get_clock_info()
741 if (pll_info) { in radeon_combios_get_clock_info()
742 rev = RBIOS8(pll_info); in radeon_combios_get_clock_info()
745 p1pll->reference_freq = RBIOS16(pll_info + 0xe); in radeon_combios_get_clock_info()
746 p1pll->reference_div = RBIOS16(pll_info + 0x10); in radeon_combios_get_clock_info()
747 p1pll->pll_out_min = RBIOS32(pll_info + 0x12); in radeon_combios_get_clock_info()
748 p1pll->pll_out_max = RBIOS32(pll_info + 0x16); in radeon_combios_get_clock_info()
753 p1pll->pll_in_min = RBIOS32(pll_info + 0x36); in radeon_combios_get_clock_info()
754 p1pll->pll_in_max = RBIOS32(pll_info + 0x3a); in radeon_combios_get_clock_info()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/inc/hw/
Daudio.h51 const struct audio_pll_info *pll_info);
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/bios/
Dbios_parser.c439 info->pll_info.crystal_frequency = in get_firmware_info_v1_4()
441 info->pll_info.min_input_pxl_clk_pll_frequency = in get_firmware_info_v1_4()
443 info->pll_info.max_input_pxl_clk_pll_frequency = in get_firmware_info_v1_4()
445 info->pll_info.min_output_pxl_clk_pll_frequency = in get_firmware_info_v1_4()
447 info->pll_info.max_output_pxl_clk_pll_frequency = in get_firmware_info_v1_4()
490 info->pll_info.crystal_frequency = in get_firmware_info_v2_1()
492 info->pll_info.min_input_pxl_clk_pll_frequency = in get_firmware_info_v2_1()
494 info->pll_info.max_input_pxl_clk_pll_frequency = in get_firmware_info_v2_1()
496 info->pll_info.min_output_pxl_clk_pll_frequency = in get_firmware_info_v2_1()
498 info->pll_info.max_output_pxl_clk_pll_frequency = in get_firmware_info_v2_1()
[all …]
Dbios_parser2.c1808 info->pll_info.crystal_frequency = dce_info->dce_refclk_10khz * 10; in get_firmware_info_v3_1()
1811 if (info->pll_info.crystal_frequency == 0) in get_firmware_info_v3_1()
1812 info->pll_info.crystal_frequency = 27000; in get_firmware_info_v3_1()
1885 info->pll_info.crystal_frequency = dce_info->dce_refclk_10khz * 10; in get_firmware_info_v3_2()
1887 if (info->pll_info.crystal_frequency == 0) { in get_firmware_info_v3_2()
1889 info->pll_info.crystal_frequency = 27000; in get_firmware_info_v3_2()
1891 info->pll_info.crystal_frequency = 100000; in get_firmware_info_v3_2()
1958 info->pll_info.crystal_frequency = dce_info_v4_5->dce_refclk_10khz * 10; in get_firmware_info_v3_4()
1974 info->pll_info.crystal_frequency = dce_info_v4_4->dce_refclk_10khz * 10; in get_firmware_info_v3_4()
1991 info->pll_info.crystal_frequency = dce_info_v4_1->dce_refclk_10khz * 10; in get_firmware_info_v3_4()
/linux-6.6.21/drivers/gpu/drm/amd/display/include/
Daudio_types.h99 struct audio_pll_info pll_info; member
Dgrph_object_ctrl_defs.h159 struct pll_info { struct
165 } pll_info; member
/linux-6.6.21/drivers/video/fbdev/aty/
Datyfb.h49 struct pll_info { struct
140 struct pll_info pll_limits;
Dradeonfb.h138 struct pll_info { struct
342 struct pll_info pll;
/linux-6.6.21/drivers/gpu/drm/renesas/rcar-du/
Drcar_lvds.c132 struct pll_info { struct
142 unsigned long target, struct pll_info *pll, in rcar_lvds_d3_e3_pll_calc() argument
275 struct pll_info pll = { .diff = (unsigned long)-1 }; in rcar_lvds_pll_setup_d3_e3()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c1353 audio_output->pll_info.dp_dto_source_clock_in_khz = in build_audio_output()
1358 audio_output->pll_info.feed_back_divider = in build_audio_output()
1361 audio_output->pll_info.dto_source = in build_audio_output()
1366 audio_output->pll_info.ss_enabled = true; in build_audio_output()
1368 audio_output->pll_info.ss_percentage = in build_audio_output()
2194 &audio_output.pll_info); in dce110_setup_audio_dto()
2200 &audio_output.pll_info); in dce110_setup_audio_dto()
2228 &audio_output.pll_info); in dce110_setup_audio_dto()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_hwseq.c133 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency; in dcn31_init_hw()
138 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency, in dcn31_init_hw()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn201/
Ddcn201_hwseq.c238 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency; in dcn201_init_hw()
242 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency, in dcn201_init_hw()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hwseq.c471 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency; in dcn30_init_hw()
476 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency, in dcn30_init_hw()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_hwseq.c799 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency; in dcn32_init_hw()
803 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency, in dcn32_init_hw()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c1511 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency; in dcn10_init_hw()
1516 dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency, in dcn10_init_hw()

12