Home
last modified time | relevance | path

Searched refs:clk_info (Results 1 – 7 of 7) sorted by relevance

/drivers/clk/ingenic/
Dcgu.c83 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_recalc_rate() local
90 BUG_ON(clk_info->type != CGU_CLK_PLL); in ingenic_pll_recalc_rate()
91 pll_info = &clk_info->pll; in ingenic_pll_recalc_rate()
122 ingenic_pll_calc(const struct ingenic_cgu_clk_info *clk_info, in ingenic_pll_calc() argument
129 pll_info = &clk_info->pll; in ingenic_pll_calc()
137 n = min_t(unsigned, n, 1 << clk_info->pll.n_bits); in ingenic_pll_calc()
141 m = min_t(unsigned, m, 1 << clk_info->pll.m_bits); in ingenic_pll_calc()
160 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_round_rate() local
162 return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); in ingenic_pll_round_rate()
181 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_set_rate() local
[all …]
/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec_pm.c22 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_dec_pm() local
47 dec_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_dec_pm()
48 dec_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_dec_pm()
50 if (!dec_clk->clk_info) { in mtk_vcodec_init_dec_pm()
61 clk_info = &dec_clk->clk_info[i]; in mtk_vcodec_init_dec_pm()
63 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_dec_pm()
68 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_dec_pm()
69 clk_info->clk_name); in mtk_vcodec_init_dec_pm()
70 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_dec_pm()
72 clk_info->clk_name); in mtk_vcodec_init_dec_pm()
[all …]
Dmtk_vcodec_enc_pm.c22 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_enc_pm() local
69 enc_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_enc_pm()
70 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_pm()
72 if (!enc_clk->clk_info) { in mtk_vcodec_init_enc_pm()
83 clk_info = &enc_clk->clk_info[i]; in mtk_vcodec_init_enc_pm()
85 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_enc_pm()
90 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_enc_pm()
91 clk_info->clk_name); in mtk_vcodec_init_enc_pm()
92 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_enc_pm()
94 clk_info->clk_name); in mtk_vcodec_init_enc_pm()
[all …]
Dmtk_vcodec_drv.h183 struct mtk_vcodec_clk_info *clk_info; member
/drivers/clk/
Dclk-max77686.c45 const struct max77686_hw_clk_info *clk_info; member
106 return regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg, in max77686_clk_prepare()
107 max77686->clk_info->clk_enable_mask, in max77686_clk_prepare()
108 max77686->clk_info->clk_enable_mask); in max77686_clk_prepare()
115 regmap_update_bits(max77686->regmap, max77686->clk_info->clk_reg, in max77686_clk_unprepare()
116 max77686->clk_info->clk_enable_mask, in max77686_clk_unprepare()
117 ~max77686->clk_info->clk_enable_mask); in max77686_clk_unprepare()
126 ret = regmap_read(max77686->regmap, max77686->clk_info->clk_reg, &val); in max77686_clk_is_prepared()
131 return val & max77686->clk_info->clk_enable_mask; in max77686_clk_is_prepared()
218 max_clk_data->clk_info = &hw_clks[i]; in max77686_clk_probe()
/drivers/gpu/drm/ast/
Dast_mode.c430 const struct ast_vbios_dclk_info *clk_info; in ast_set_dclk_reg() local
433 clk_info = &dclk_table_ast2500[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
435 clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
437 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc0, 0x00, clk_info->param1); in ast_set_dclk_reg()
438 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc1, 0x00, clk_info->param2); in ast_set_dclk_reg()
440 (clk_info->param3 & 0xc0) | in ast_set_dclk_reg()
441 ((clk_info->param3 & 0x3) << 4)); in ast_set_dclk_reg()
/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c1375 struct smu_clock_info *clk_info, in smu_get_clock_info() argument
1381 if (!clk_info) in smu_get_clock_info()
1388 clk_info->min_mem_clk = level.memory_clock; in smu_get_clock_info()
1389 clk_info->min_eng_clk = level.core_clock; in smu_get_clock_info()
1390 clk_info->min_bus_bandwidth = level.non_local_mem_freq * level.non_local_mem_width; in smu_get_clock_info()
1396 clk_info->min_mem_clk = level.memory_clock; in smu_get_clock_info()
1397 clk_info->min_eng_clk = level.core_clock; in smu_get_clock_info()
1398 clk_info->min_bus_bandwidth = level.non_local_mem_freq * level.non_local_mem_width; in smu_get_clock_info()