Searched refs:clk_info (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/clk/ingenic/ |
H A D | cgu.c | 91 pll_info = &clk_info->pll; in ingenic_pll_recalc_rate() 388 mask <<= clk_info->mux.shift; in ingenic_clk_set_parent() 481 clk_info->div.div << clk_info->div.bits); in ingenic_clk_calc_div() 489 div *= clk_info->div.div; in ingenic_clk_calc_div() 505 div = clk_info->fixdiv.div; in ingenic_clk_determine_rate() 542 if (clk_info->div.div_table) in ingenic_clk_set_rate() 590 if (clk_info->gate.delay_us) in ingenic_clk_enable() 671 if (!clk_info->type) { in ingenic_register_clock() 673 clk_info->name); in ingenic_register_clock() 691 caps = clk_info->type; in ingenic_register_clock() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A 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() 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() 54 return PTR_ERR(clk_info->vcodec_clk); in mtk_vcodec_init_enc_clk() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A 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() 49 return PTR_ERR(clk_info->vcodec_clk); in mtk_vcodec_init_dec_clk() [all …]
|
/openbmc/linux/drivers/clk/ |
H A 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()
|
/openbmc/u-boot/arch/x86/cpu/baytrail/ |
H A D | cpu.c | 123 msr_t clk_info = msr_read(MSR_BSEL_CR_OVERCLOCK_CONTROL); in bus_freq() local 124 switch (clk_info.lo & 0x3) { in bus_freq()
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_cmn_drv.h | 66 struct mtk_vcodec_clk_info *clk_info; member
|
/openbmc/linux/drivers/gpu/drm/ast/ |
H A 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()
|