Searched refs:zx_audio_div (Results 1 – 1 of 1) sorted by relevance
/drivers/clk/zte/ |
D | clk.c | 395 struct clk_zx_audio_divider *zx_audio_div = to_clk_zx_audio_div(hw); in zx_audio_div_recalc_rate() local 398 reg_frac = readl_relaxed(zx_audio_div->reg_base); in zx_audio_div_recalc_rate() 399 reg_int = readl_relaxed(zx_audio_div->reg_base + 0x4); in zx_audio_div_recalc_rate() 401 return audio_calc_rate(zx_audio_div, reg_frac, reg_int, parent_rate); in zx_audio_div_recalc_rate() 407 struct clk_zx_audio_divider *zx_audio_div = to_clk_zx_audio_div(hw); in zx_audio_div_round_rate() local 410 audio_calc_reg(zx_audio_div, &divt, rate, *prate); in zx_audio_div_round_rate() 412 return audio_calc_rate(zx_audio_div, divt.frac_reg, divt.int_reg, *prate); in zx_audio_div_round_rate() 418 struct clk_zx_audio_divider *zx_audio_div = to_clk_zx_audio_div(hw); in zx_audio_div_set_rate() local 422 audio_calc_reg(zx_audio_div, &divt, rate, parent_rate); in zx_audio_div_set_rate() 426 writel_relaxed(divt.frac_reg, zx_audio_div->reg_base); in zx_audio_div_set_rate() [all …]
|