Lines Matching refs:gate
366 * @powergates_lock: mutex for power gate register access
2355 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2357 return tegra_pmc_readl(pmc, gate->offs) & BIT(gate->shift) ? 1 : 0;
2362 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2364 pmc_clk_set_state(gate->offs, gate->shift, 1);
2371 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2373 pmc_clk_set_state(gate->offs, gate->shift, 0);
2388 struct pmc_clk_gate *gate;
2390 gate = devm_kzalloc(pmc->dev, sizeof(*gate), GFP_KERNEL);
2391 if (!gate)
2400 gate->hw.init = &init;
2401 gate->offs = offset;
2402 gate->shift = shift;
2404 return clk_register(NULL, &gate->hw);