Lines Matching refs:rgate
918 struct stm32_rgate *rgate = to_rgclk(gate); in rgclk_enable() local
930 bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy_idx)); in rgclk_enable()
962 struct stm32_rgate *rgate; in clk_register_rgate() local
967 rgate = kzalloc(sizeof(*rgate), GFP_KERNEL); in clk_register_rgate()
968 if (!rgate) in clk_register_rgate()
977 rgate->bit_rdy_idx = bit_rdy_idx; in clk_register_rgate()
979 rgate->gate.lock = lock; in clk_register_rgate()
980 rgate->gate.reg = reg; in clk_register_rgate()
981 rgate->gate.bit_idx = bit_idx; in clk_register_rgate()
982 rgate->gate.hw.init = &init; in clk_register_rgate()
984 hw = &rgate->gate.hw; in clk_register_rgate()
987 kfree(rgate); in clk_register_rgate()