Lines Matching refs:rgate
922 struct stm32_rgate *rgate = to_rgclk(gate); in rgclk_enable() local
934 bit_status = !(readl(gate->reg) & BIT(rgate->bit_rdy_idx)); in rgclk_enable()
966 struct stm32_rgate *rgate; in clk_register_rgate() local
971 rgate = kzalloc(sizeof(*rgate), GFP_KERNEL); in clk_register_rgate()
972 if (!rgate) in clk_register_rgate()
981 rgate->bit_rdy_idx = bit_rdy_idx; in clk_register_rgate()
983 rgate->gate.lock = lock; in clk_register_rgate()
984 rgate->gate.reg = reg; in clk_register_rgate()
985 rgate->gate.bit_idx = bit_idx; in clk_register_rgate()
986 rgate->gate.hw.init = &init; in clk_register_rgate()
988 hw = &rgate->gate.hw; in clk_register_rgate()
991 kfree(rgate); in clk_register_rgate()