Lines Matching defs:ccu

128 static inline u32 __ccu_read(struct ccu_data *ccu, u32 reg_offset)  in __ccu_read()
135 __ccu_write(struct ccu_data *ccu, u32 reg_offset, u32 reg_val) in __ccu_write()
140 static inline unsigned long ccu_lock(struct ccu_data *ccu) in ccu_lock()
148 static inline void ccu_unlock(struct ccu_data *ccu, unsigned long flags) in ccu_unlock()
157 static inline void __ccu_write_enable(struct ccu_data *ccu) in __ccu_write_enable()
168 static inline void __ccu_write_disable(struct ccu_data *ccu) in __ccu_write_disable()
189 __ccu_wait_bit(struct ccu_data *ccu, u32 reg_offset, u32 bit, bool want) in __ccu_wait_bit()
212 static bool __ccu_policy_engine_start(struct ccu_data *ccu, bool sync) in __ccu_policy_engine_start()
266 static bool __ccu_policy_engine_stop(struct ccu_data *ccu) in __ccu_policy_engine_stop()
308 static bool policy_init(struct ccu_data *ccu, struct bcm_clk_policy *policy) in policy_init()
356 __is_clk_gate_enabled(struct ccu_data *ccu, struct bcm_clk_gate *gate) in __is_clk_gate_enabled()
373 is_clk_gate_enabled(struct ccu_data *ccu, struct bcm_clk_gate *gate) in is_clk_gate_enabled()
394 __gate_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate) in __gate_commit()
445 static bool gate_init(struct ccu_data *ccu, struct bcm_clk_gate *gate) in gate_init()
459 __clk_gate(struct ccu_data *ccu, struct bcm_clk_gate *gate, bool enable) in __clk_gate()
484 static int clk_gate(struct ccu_data *ccu, const char *name, in clk_gate()
525 static bool hyst_init(struct ccu_data *ccu, struct bcm_clk_hyst *hyst) in hyst_init()
551 static bool __clk_trigger(struct ccu_data *ccu, struct bcm_clk_trig *trig) in __clk_trigger()
562 static u64 divider_read_scaled(struct ccu_data *ccu, struct bcm_clk_div *div) in divider_read_scaled()
589 static int __div_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate, in __div_commit()
645 static bool div_init(struct ccu_data *ccu, struct bcm_clk_gate *gate, in div_init()
653 static int divider_write(struct ccu_data *ccu, struct bcm_clk_gate *gate, in divider_write()
691 static unsigned long clk_recalc_rate(struct ccu_data *ccu, in clk_recalc_rate()
746 static long round_rate(struct ccu_data *ccu, struct bcm_clk_div *div, in round_rate()
838 static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel) in selector_read_index()
872 __sel_commit(struct ccu_data *ccu, struct bcm_clk_gate *gate, in __sel_commit()
929 static bool sel_init(struct ccu_data *ccu, struct bcm_clk_gate *gate, in sel_init()
942 static int selector_write(struct ccu_data *ccu, struct bcm_clk_gate *gate, in selector_write()
1187 struct ccu_data *ccu = bcm_clk->ccu; in __peri_clk_init() local
1247 bool __init kona_ccu_init(struct ccu_data *ccu) in kona_ccu_init()