Lines Matching refs:gate
30 struct visconti_clk_gate *gate = to_visconti_clk_gate(hw);
31 u32 clk = BIT(gate->ck_idx);
34 regmap_read(gate->regmap, gate->ckon_offset, &val);
40 struct visconti_clk_gate *gate = to_visconti_clk_gate(hw);
41 u32 clk = BIT(gate->ck_idx);
44 spin_lock_irqsave(gate->lock, flags);
47 spin_unlock_irqrestore(gate->lock, flags);
51 regmap_update_bits(gate->regmap, gate->ckoff_offset, clk, clk);
52 spin_unlock_irqrestore(gate->lock, flags);
57 struct visconti_clk_gate *gate = to_visconti_clk_gate(hw);
58 u32 clk = BIT(gate->ck_idx);
61 spin_lock_irqsave(gate->lock, flags);
62 regmap_update_bits(gate->regmap, gate->ckon_offset, clk, clk);
63 spin_unlock_irqrestore(gate->lock, flags);
84 struct visconti_clk_gate *gate;
96 gate = devm_kzalloc(dev, sizeof(*gate), GFP_KERNEL);
97 if (!gate)
106 gate->regmap = regmap;
107 gate->ckon_offset = clks->ckon_offset;
108 gate->ckoff_offset = clks->ckoff_offset;
109 gate->ck_idx = clks->ck_idx;
110 gate->rson_offset = rson_offset;
111 gate->rsoff_offset = rsoff_offset;
112 gate->rs_idx = rs_idx;
113 gate->lock = lock;
114 gate->hw.init = &init;
116 hw = &gate->hw;