Lines Matching refs:cg
31 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_disable() local
33 return ccu_gate_helper_disable(&cg->common, cg->enable); in ccu_gate_disable()
57 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_enable() local
59 return ccu_gate_helper_enable(&cg->common, cg->enable); in ccu_gate_enable()
73 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_is_enabled() local
75 return ccu_gate_helper_is_enabled(&cg->common, cg->enable); in ccu_gate_is_enabled()
81 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_recalc_rate() local
84 if (cg->common.features & CCU_FEATURE_ALL_PREDIV) in ccu_gate_recalc_rate()
85 rate /= cg->common.prediv; in ccu_gate_recalc_rate()
93 struct ccu_gate *cg = hw_to_ccu_gate(hw); in ccu_gate_round_rate() local
96 if (cg->common.features & CCU_FEATURE_ALL_PREDIV) in ccu_gate_round_rate()
97 div = cg->common.prediv; in ccu_gate_round_rate()
102 if (cg->common.features & CCU_FEATURE_ALL_PREDIV) in ccu_gate_round_rate()