Searched refs:clk_info (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/clk/ingenic/ |
D | cgu.c | 83 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() 154 ingenic_pll_calc(const struct ingenic_cgu_clk_info *clk_info, in ingenic_pll_calc() argument 158 const struct ingenic_cgu_pll_info *pll_info = &clk_info->pll; in ingenic_pll_calc() 182 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_round_rate() local 184 return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); in ingenic_pll_round_rate() 206 const struct ingenic_cgu_clk_info *clk_info = to_clk_info(ingenic_clk); in ingenic_pll_set_rate() local 207 const struct ingenic_cgu_pll_info *pll_info = &clk_info->pll; in ingenic_pll_set_rate() 213 rate = ingenic_pll_calc(clk_info, req_rate, parent_rate, in ingenic_pll_set_rate() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc_pm.c | 19 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_enc_clk() local 31 enc_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_enc_clk() 32 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_clk() 34 if (!enc_clk->clk_info) in mtk_vcodec_init_enc_clk() 42 clk_info = &enc_clk->clk_info[i]; in mtk_vcodec_init_enc_clk() 44 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_enc_clk() 49 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_enc_clk() 50 clk_info->clk_name); in mtk_vcodec_init_enc_clk() 51 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_enc_clk() 53 clk_info->clk_name); in mtk_vcodec_init_enc_clk() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec_pm.c | 18 struct mtk_vcodec_clk_info *clk_info; in mtk_vcodec_init_dec_clk() local 27 dec_clk->clk_info = devm_kcalloc(&pdev->dev, in mtk_vcodec_init_dec_clk() 28 dec_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_dec_clk() 30 if (!dec_clk->clk_info) in mtk_vcodec_init_dec_clk() 38 clk_info = &dec_clk->clk_info[i]; in mtk_vcodec_init_dec_clk() 40 "clock-names", i, &clk_info->clk_name); in mtk_vcodec_init_dec_clk() 45 clk_info->vcodec_clk = devm_clk_get(&pdev->dev, in mtk_vcodec_init_dec_clk() 46 clk_info->clk_name); in mtk_vcodec_init_dec_clk() 47 if (IS_ERR(clk_info->vcodec_clk)) { in mtk_vcodec_init_dec_clk() 48 dev_err(&pdev->dev, "devm_clk_get (%d)%s fail", i, clk_info->clk_name); in mtk_vcodec_init_dec_clk() [all …]
|
/linux-6.6.21/drivers/clk/ |
D | clk-max77686.c | 45 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.6.21/drivers/media/platform/mediatek/vcodec/common/ |
D | mtk_vcodec_cmn_drv.h | 66 struct mtk_vcodec_clk_info *clk_info; member
|
/linux-6.6.21/drivers/gpu/drm/ast/ |
D | ast_mode.c | 467 const struct ast_vbios_dclk_info *clk_info; in ast_set_dclk_reg() local 470 clk_info = &dclk_table_ast2500[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg() 472 clk_info = &dclk_table[vbios_mode->enh_table->dclk_index]; in ast_set_dclk_reg() 474 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc0, 0x00, clk_info->param1); in ast_set_dclk_reg() 475 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xc1, 0x00, clk_info->param2); in ast_set_dclk_reg() 477 (clk_info->param3 & 0xc0) | in ast_set_dclk_reg() 478 ((clk_info->param3 & 0x3) << 4)); in ast_set_dclk_reg()
|