Lines Matching refs:gate
171 struct clk_gate *gate; in cpg_rcan_clk_register() local
181 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in cpg_rcan_clk_register()
182 if (!gate) { in cpg_rcan_clk_register()
187 gate->reg = cpg->reg + CPG_RCANCKCR; in cpg_rcan_clk_register()
188 gate->bit_idx = 8; in cpg_rcan_clk_register()
189 gate->flags = CLK_GATE_SET_TO_DISABLE; in cpg_rcan_clk_register()
190 gate->lock = &cpg->lock; in cpg_rcan_clk_register()
194 &gate->hw, &clk_gate_ops, 0); in cpg_rcan_clk_register()
196 kfree(gate); in cpg_rcan_clk_register()
214 struct clk_gate *gate; in cpg_adsp_clk_register() local
226 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in cpg_adsp_clk_register()
227 if (!gate) { in cpg_adsp_clk_register()
232 gate->reg = cpg->reg + CPG_ADSPCKCR; in cpg_adsp_clk_register()
233 gate->bit_idx = 8; in cpg_adsp_clk_register()
234 gate->flags = CLK_GATE_SET_TO_DISABLE; in cpg_adsp_clk_register()
235 gate->lock = &cpg->lock; in cpg_adsp_clk_register()
239 &gate->hw, &clk_gate_ops, 0); in cpg_adsp_clk_register()
241 kfree(gate); in cpg_adsp_clk_register()