Lines Matching refs:gate
413 * @powergates_lock: mutex for power gate register access
2680 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2682 return tegra_pmc_readl(pmc, gate->offs) & BIT(gate->shift) ? 1 : 0;
2687 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2689 pmc_clk_set_state(gate->offs, gate->shift, 1);
2696 struct pmc_clk_gate *gate = to_pmc_clk_gate(hw);
2698 pmc_clk_set_state(gate->offs, gate->shift, 0);
2713 struct pmc_clk_gate *gate;
2715 gate = devm_kzalloc(pmc->dev, sizeof(*gate), GFP_KERNEL);
2716 if (!gate)
2725 gate->hw.init = &init;
2726 gate->offs = offset;
2727 gate->shift = shift;
2729 return clk_register(NULL, &gate->hw);