Home
last modified time | relevance | path

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

/linux-6.1.9/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()
147 ingenic_pll_calc(const struct ingenic_cgu_clk_info *clk_info, in ingenic_pll_calc() argument
151 const struct ingenic_cgu_pll_info *pll_info = &clk_info->pll; in ingenic_pll_calc()
175 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_round_rate() local
177 return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); in ingenic_pll_round_rate()
196 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_set_rate() local
197 const struct ingenic_cgu_pll_info *pll_info = &clk_info->pll; in ingenic_pll_set_rate()
203 rate = ingenic_pll_calc(clk_info, req_rate, parent_rate, in ingenic_pll_set_rate()
[all …]
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_enc_pm.c20 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_enc_clk() local
32 enc_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_enc_clk()
33 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_clk()
35 if (!enc_clk->clk_info) in mtk_vcodec_init_enc_clk()
43 clk_info = &enc_clk->clk_info[i]; in mtk_vcodec_init_enc_clk()
45 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_enc_clk()
50 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_enc_clk()
51 clk_info->clk_name); in mtk_vcodec_init_enc_clk()
52 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_enc_clk()
54 clk_info->clk_name); in mtk_vcodec_init_enc_clk()
[all …]
Dmtk_vcodec_dec_pm.c20 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_dec_clk() local
29 dec_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_dec_clk()
30 dec_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_dec_clk()
32 if (!dec_clk->clk_info) in mtk_vcodec_init_dec_clk()
40 clk_info = &dec_clk->clk_info[i]; in mtk_vcodec_init_dec_clk()
42 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_dec_clk()
47 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_dec_clk()
48 clk_info->clk_name); in mtk_vcodec_init_dec_clk()
49 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_dec_clk()
51 clk_info->clk_name); in mtk_vcodec_init_dec_clk()
[all …]
Dmtk_vcodec_drv.h200 struct mtk_vcodec_clk_info *clk_info; member
/linux-6.1.9/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()
/linux-6.1.9/drivers/gpu/drm/ast/
Dast_mode.c438 const struct ast_vbios_dclk_info *clk_info; in ast_set_dclk_reg() local
441 clk_info = &dclk_table_ast2500[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
443 clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg()
445 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc0, 0x00, clk_info->param1); in ast_set_dclk_reg()
446 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc1, 0x00, clk_info->param2); in ast_set_dclk_reg()
448 (clk_info->param3 & 0xc0) | in ast_set_dclk_reg()
449 ((clk_info->param3 & 0x3) << 4)); in ast_set_dclk_reg()