Lines Matching refs:trig
553 static bool __clk_trigger(struct ccu_data *ccu, struct bcm_clk_trig *trig) in __clk_trigger() argument
556 __ccu_write(ccu, trig->offset, 1 << trig->bit); in __clk_trigger()
558 return __ccu_wait_bit(ccu, trig->offset, trig->bit, false); in __clk_trigger()
592 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in __div_commit() argument
632 if (!__clk_trigger(ccu, trig)) in __div_commit()
648 struct bcm_clk_div *div, struct bcm_clk_trig *trig) in div_init() argument
652 return !__div_commit(ccu, gate, div, trig); in div_init()
656 struct bcm_clk_div *div, struct bcm_clk_trig *trig, in divider_write() argument
674 ret = __div_commit(ccu, gate, div, trig); in divider_write()
875 struct bcm_clk_sel *sel, struct bcm_clk_trig *trig) in __sel_commit() argument
916 if (!__clk_trigger(ccu, trig)) in __sel_commit()
932 struct bcm_clk_sel *sel, struct bcm_clk_trig *trig) in sel_init() argument
936 return !__sel_commit(ccu, gate, sel, trig); in sel_init()
945 struct bcm_clk_sel *sel, struct bcm_clk_trig *trig, in selector_write() argument
961 ret = __sel_commit(ccu, gate, sel, trig); in selector_write()
1088 struct bcm_clk_trig *trig; in kona_peri_clk_set_parent() local
1101 trig = trigger_exists(&data->pre_trig) ? &data->pre_trig in kona_peri_clk_set_parent()
1102 : &data->trig; in kona_peri_clk_set_parent()
1104 ret = selector_write(bcm_clk->ccu, &data->gate, sel, trig, index); in kona_peri_clk_set_parent()
1111 trig == &data->pre_trig ? "pre-" : "", in kona_peri_clk_set_parent()
1169 &data->trig, scaled_div); in kona_peri_clk_set_rate()
1199 struct bcm_clk_trig *trig; in __peri_clk_init() local
1216 if (!div_init(ccu, &peri->gate, &peri->div, &peri->trig)) { in __peri_clk_init()
1226 trig = trigger_exists(&peri->pre_trig) ? &peri->pre_trig in __peri_clk_init()
1227 : &peri->trig; in __peri_clk_init()
1229 if (!div_init(ccu, &peri->gate, &peri->pre_div, trig)) { in __peri_clk_init()
1235 if (!sel_init(ccu, &peri->gate, &peri->sel, trig)) { in __peri_clk_init()