Lines Matching full:flags

27 	unsigned long flags;  in lgm_clk_register_fixed()  local
30 spin_lock_irqsave(&ctx->lock, flags); in lgm_clk_register_fixed()
33 spin_unlock_irqrestore(&ctx->lock, flags); in lgm_clk_register_fixed()
38 list->flags, list->mux_flags); in lgm_clk_register_fixed()
44 unsigned long flags; in lgm_clk_mux_get_parent() local
47 spin_lock_irqsave(&mux->lock, flags); in lgm_clk_mux_get_parent()
48 if (mux->flags & MUX_CLK_SW) in lgm_clk_mux_get_parent()
53 spin_unlock_irqrestore(&mux->lock, flags); in lgm_clk_mux_get_parent()
54 return clk_mux_val_to_index(hw, NULL, mux->flags, val); in lgm_clk_mux_get_parent()
60 unsigned long flags; in lgm_clk_mux_set_parent() local
63 val = clk_mux_index_to_val(NULL, mux->flags, index); in lgm_clk_mux_set_parent()
64 spin_lock_irqsave(&mux->lock, flags); in lgm_clk_mux_set_parent()
65 if (mux->flags & MUX_CLK_SW) in lgm_clk_mux_set_parent()
70 spin_unlock_irqrestore(&mux->lock, flags); in lgm_clk_mux_set_parent()
80 return clk_mux_determine_rate_flags(hw, req, mux->flags); in lgm_clk_mux_determine_rate()
93 unsigned long flags, cflags = list->mux_flags; in lgm_clk_register_mux() local
109 init.flags = list->flags; in lgm_clk_register_mux()
118 mux->flags = cflags; in lgm_clk_register_mux()
127 spin_lock_irqsave(&mux->lock, flags); in lgm_clk_register_mux()
129 spin_unlock_irqrestore(&mux->lock, flags); in lgm_clk_register_mux()
139 unsigned long flags; in lgm_clk_divider_recalc_rate() local
142 spin_lock_irqsave(&divider->lock, flags); in lgm_clk_divider_recalc_rate()
145 spin_unlock_irqrestore(&divider->lock, flags); in lgm_clk_divider_recalc_rate()
148 divider->flags, divider->width); in lgm_clk_divider_recalc_rate()
158 divider->width, divider->flags); in lgm_clk_divider_round_rate()
166 unsigned long flags; in lgm_clk_divider_set_rate() local
170 divider->width, divider->flags); in lgm_clk_divider_set_rate()
174 spin_lock_irqsave(&divider->lock, flags); in lgm_clk_divider_set_rate()
177 spin_unlock_irqrestore(&divider->lock, flags); in lgm_clk_divider_set_rate()
185 unsigned long flags; in lgm_clk_divider_enable_disable() local
187 spin_lock_irqsave(&div->lock, flags); in lgm_clk_divider_enable_disable()
190 spin_unlock_irqrestore(&div->lock, flags); in lgm_clk_divider_enable_disable()
216 unsigned long flags, cflags = list->div_flags; in lgm_clk_register_divider() local
234 init.flags = list->flags; in lgm_clk_register_divider()
245 div->flags = cflags; in lgm_clk_register_divider()
255 spin_lock_irqsave(&div->lock, flags); in lgm_clk_register_divider()
257 spin_unlock_irqrestore(&div->lock, flags); in lgm_clk_register_divider()
267 unsigned long flags; in lgm_clk_register_fixed_factor() local
271 list->parent_data[0].name, list->flags, in lgm_clk_register_fixed_factor()
277 spin_lock_irqsave(&ctx->lock, flags); in lgm_clk_register_fixed_factor()
280 spin_unlock_irqrestore(&ctx->lock, flags); in lgm_clk_register_fixed_factor()
289 unsigned long flags; in lgm_clk_gate_enable() local
292 spin_lock_irqsave(&gate->lock, flags); in lgm_clk_gate_enable()
295 spin_unlock_irqrestore(&gate->lock, flags); in lgm_clk_gate_enable()
303 unsigned long flags; in lgm_clk_gate_disable() local
306 spin_lock_irqsave(&gate->lock, flags); in lgm_clk_gate_disable()
309 spin_unlock_irqrestore(&gate->lock, flags); in lgm_clk_gate_disable()
316 unsigned long flags; in lgm_clk_gate_is_enabled() local
318 spin_lock_irqsave(&gate->lock, flags); in lgm_clk_gate_is_enabled()
321 spin_unlock_irqrestore(&gate->lock, flags); in lgm_clk_gate_is_enabled()
336 unsigned long flags, cflags = list->gate_flags; in lgm_clk_register_gate() local
352 init.flags = list->flags; in lgm_clk_register_gate()
360 gate->flags = cflags; in lgm_clk_register_gate()
369 spin_lock_irqsave(&gate->lock, flags); in lgm_clk_register_gate()
371 spin_unlock_irqrestore(&gate->lock, flags); in lgm_clk_register_gate()
446 unsigned long flags; in lgm_clk_ddiv_enable() local
448 spin_lock_irqsave(&ddiv->lock, flags); in lgm_clk_ddiv_enable()
451 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_enable()
458 unsigned long flags; in lgm_clk_ddiv_disable() local
460 spin_lock_irqsave(&ddiv->lock, flags); in lgm_clk_ddiv_disable()
463 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_disable()
500 unsigned long flags; in lgm_clk_ddiv_set_rate() local
504 spin_lock_irqsave(&ddiv->lock, flags); in lgm_clk_ddiv_set_rate()
511 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_set_rate()
516 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_set_rate()
525 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_set_rate()
536 unsigned long flags; in lgm_clk_ddiv_round_rate() local
542 spin_lock_irqsave(&ddiv->lock, flags); in lgm_clk_ddiv_round_rate()
547 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_round_rate()
561 spin_lock_irqsave(&ddiv->lock, flags); in lgm_clk_ddiv_round_rate()
566 spin_unlock_irqrestore(&ddiv->lock, flags); in lgm_clk_ddiv_round_rate()
598 init.flags = list->flags; in lgm_clk_register_ddiv()
613 ddiv->flags = list->div_flags; in lgm_clk_register_ddiv()