Lines Matching refs:gate

369  * have gate bits associated with them. Its combined hweight is 71.
514 struct clk_gate gate;
521 #define to_stm32f4_pll(_gate) container_of(_gate, struct stm32f4_pll, gate)
607 struct clk_gate *gate = to_clk_gate(hw);
608 struct stm32f4_pll *pll = to_stm32f4_pll(gate);
618 bit_status = !(readl(gate->reg) & BIT(pll->bit_rdy_idx));
633 struct clk_gate *gate = to_clk_gate(hw);
634 struct stm32f4_pll *pll = to_stm32f4_pll(gate);
645 struct clk_gate *gate = to_clk_gate(hw);
646 struct stm32f4_pll *pll = to_stm32f4_pll(gate);
662 struct clk_gate *gate = to_clk_gate(hw);
663 struct stm32f4_pll *pll = to_stm32f4_pll(gate);
809 pll->gate.lock = lock;
810 pll->gate.reg = base + STM32F4_RCC_CR;
811 pll->gate.bit_idx = vco->bit_idx;
812 pll->gate.hw.init = &init;
821 pll_hw = &pll->gate.hw;
885 #define to_rgclk(_rgate) container_of(_rgate, struct stm32_rgate, gate)
909 struct clk_gate gate;
917 struct clk_gate *gate = to_clk_gate(hw);
918 struct stm32_rgate *rgate = to_rgclk(gate);
930 bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy_idx));
979 rgate->gate.lock = lock;
980 rgate->gate.reg = reg;
981 rgate->gate.bit_idx = bit_idx;
982 rgate->gate.hw.init = &init;
984 hw = &rgate->gate.hw;
1058 struct clk_gate *gate;
1061 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
1062 if (!gate) {
1069 kfree(gate);
1074 gate->reg = reg;
1075 gate->bit_idx = bit_idx;
1076 gate->flags = 0;
1077 gate->lock = lock;
1087 &gate->hw, &cclk_gate_ops,
1091 kfree(gate);
1629 struct clk_gate *gate = NULL;
1635 gate = kzalloc(sizeof(*gate), GFP_KERNEL);
1636 if (!gate) {
1641 gate->reg = base + offset_gate;
1642 gate->bit_idx = bit_idx;
1643 gate->flags = 0;
1644 gate->lock = lock;
1645 gate_hw = &gate->hw;
1677 kfree(gate);