Lines Matching refs:sysc

36 	struct regmap *sysc;  member
101 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_enable() local
103 return regmap_update_bits(sysc, SYSC_REG_CLKCFG1, in mt7621_gate_enable()
110 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_disable() local
112 regmap_update_bits(sysc, SYSC_REG_CLKCFG1, clk_gate->bit_idx, 0); in mt7621_gate_disable()
118 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_is_enabled() local
121 if (regmap_read(sysc, SYSC_REG_CLKCFG1, &val)) in mt7621_gate_is_enabled()
234 struct regmap *sysc = clk->priv->sysc; in mt7621_xtal_recalc_rate() local
237 regmap_read(sysc, SYSC_REG_SYSTEM_CONFIG0, &val); in mt7621_xtal_recalc_rate()
253 struct regmap *sysc = clk->priv->sysc; in mt7621_cpu_recalc_rate() local
259 regmap_read(sysc, SYSC_REG_CLKCFG0, &clkcfg); in mt7621_cpu_recalc_rate()
262 regmap_read(sysc, SYSC_REG_CUR_CLK_STS, &curclk); in mt7621_cpu_recalc_rate()
355 priv->sysc = syscon_node_to_regmap(node); in mt7621_clk_init()
356 if (IS_ERR(priv->sysc)) { in mt7621_clk_init()
406 struct regmap *sysc; member
418 struct regmap *sysc = data->sysc; in mt7621_assert_device() local
420 return regmap_update_bits(sysc, SYSC_REG_RESET_CTRL, BIT(id), BIT(id)); in mt7621_assert_device()
427 struct regmap *sysc = data->sysc; in mt7621_deassert_device() local
429 return regmap_update_bits(sysc, SYSC_REG_RESET_CTRL, BIT(id), 0); in mt7621_deassert_device()
461 static int mt7621_reset_init(struct device *dev, struct regmap *sysc) in mt7621_reset_init() argument
469 rst_data->sysc = sysc; in mt7621_reset_init()
492 priv->sysc = syscon_node_to_regmap(np); in mt7621_clk_probe()
493 if (IS_ERR(priv->sysc)) { in mt7621_clk_probe()
494 ret = PTR_ERR(priv->sysc); in mt7621_clk_probe()
506 ret = mt7621_reset_init(dev, priv->sysc); in mt7621_clk_probe()