Lines Matching refs:cf
14 struct ccu_frac_internal *cf) in ccu_frac_helper_is_enabled() argument
19 return !(readl(common->base + common->reg) & cf->enable); in ccu_frac_helper_is_enabled()
24 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument
34 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable()
40 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() argument
50 writel(reg | cf->enable, common->base + common->reg); in ccu_frac_helper_disable()
56 struct ccu_frac_internal *cf, in ccu_frac_helper_has_rate() argument
62 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate()
67 struct ccu_frac_internal *cf) in ccu_frac_helper_read_rate() argument
77 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate()
82 clk_hw_get_name(&common->hw), reg, cf->select); in ccu_frac_helper_read_rate()
84 return (reg & cf->select) ? cf->rates[1] : cf->rates[0]; in ccu_frac_helper_read_rate()
89 struct ccu_frac_internal *cf, in ccu_frac_helper_set_rate() argument
98 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate()
100 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate()
101 sel = cf->select; in ccu_frac_helper_set_rate()
107 reg &= ~cf->select; in ccu_frac_helper_set_rate()