Home
last modified time | relevance | path

Searched refs:rclk (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/drivers/clk/qcom/
Dclk-regmap.c24 struct clk_regmap *rclk = to_clk_regmap(hw); in clk_is_enabled_regmap() local
28 ret = regmap_read(rclk->regmap, rclk->enable_reg, &val); in clk_is_enabled_regmap()
32 if (rclk->enable_is_inverted) in clk_is_enabled_regmap()
33 return (val & rclk->enable_mask) == 0; in clk_is_enabled_regmap()
35 return (val & rclk->enable_mask) != 0; in clk_is_enabled_regmap()
50 struct clk_regmap *rclk = to_clk_regmap(hw); in clk_enable_regmap() local
53 if (rclk->enable_is_inverted) in clk_enable_regmap()
56 val = rclk->enable_mask; in clk_enable_regmap()
58 return regmap_update_bits(rclk->regmap, rclk->enable_reg, in clk_enable_regmap()
59 rclk->enable_mask, val); in clk_enable_regmap()
[all …]
Dclk-regmap.h32 int devm_clk_register_regmap(struct device *dev, struct clk_regmap *rclk);
/linux-4.19.296/drivers/slimbus/
Dqcom-ctrl.c116 struct clk *rclk; member
283 clk_prepare_enable(ctrl->rclk); in qcom_clk_pause_wakeup()
507 ctrl->rclk = devm_clk_get(&pdev->dev, "core"); in qcom_slim_probe()
508 if (IS_ERR(ctrl->rclk)) in qcom_slim_probe()
509 return PTR_ERR(ctrl->rclk); in qcom_slim_probe()
511 ret = clk_set_rate(ctrl->rclk, SLIM_ROOT_FREQ); in qcom_slim_probe()
576 ret = clk_prepare_enable(ctrl->rclk); in qcom_slim_probe()
631 clk_disable_unprepare(ctrl->rclk); in qcom_slim_probe()
668 clk_disable_unprepare(ctrl->rclk); in qcom_slim_runtime_suspend()