Lines Matching refs:clk_gpio
46 struct clk_gpio { struct
51 #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw) argument
55 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_enable()
64 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_disable()
71 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_is_enabled()
84 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_prepare()
93 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_unprepare()
100 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_is_prepared()
121 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_get_parent()
128 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_set_parent()
145 struct clk_gpio *clk_gpio; in clk_register_gpio() local
154 clk_gpio = devm_kzalloc(dev, sizeof(*clk_gpio), GFP_KERNEL); in clk_register_gpio()
155 if (!clk_gpio) in clk_register_gpio()
164 clk_gpio->gpiod = gpiod; in clk_register_gpio()
165 clk_gpio->hw.init = &init; in clk_register_gpio()
167 hw = &clk_gpio->hw; in clk_register_gpio()
261 struct clk_gpio clk_gpio; member
266 #define to_clk_gated_fixed(_clk_gpio) container_of(_clk_gpio, struct clk_gated_fixed, clk_gpio)
386 clk->clk_gpio.gpiod = devm_gpiod_get_optional(dev, "enable", in clk_gated_fixed_probe()
388 if (IS_ERR(clk->clk_gpio.gpiod)) in clk_gated_fixed_probe()
389 return dev_err_probe(dev, PTR_ERR(clk->clk_gpio.gpiod), in clk_gated_fixed_probe()
392 if (gpiod_cansleep(clk->clk_gpio.gpiod)) in clk_gated_fixed_probe()
397 clk->clk_gpio.hw.init = CLK_HW_INIT_NO_PARENT(clk_name, ops, 0); in clk_gated_fixed_probe()
400 ret = devm_clk_hw_register(dev, &clk->clk_gpio.hw); in clk_gated_fixed_probe()
406 &clk->clk_gpio.hw); in clk_gated_fixed_probe()