Lines Matching refs:csn

58 	struct cpg_simple_notifier *csn =  in cpg_simple_notifier_call()  local
63 csn->saved = readl(csn->reg); in cpg_simple_notifier_call()
67 writel(csn->saved, csn->reg); in cpg_simple_notifier_call()
74 struct cpg_simple_notifier *csn) in cpg_simple_notifier_register() argument
76 csn->nb.notifier_call = cpg_simple_notifier_call; in cpg_simple_notifier_register()
77 raw_notifier_chain_register(notifiers, &csn->nb); in cpg_simple_notifier_register()
244 struct cpg_simple_notifier csn; member
288 cpg_reg_modify(clock->csn.reg, CPG_SD_STP_MASK, in cpg_sd_clock_enable()
299 cpg_reg_modify(clock->csn.reg, 0, CPG_SD_STP_MASK); in cpg_sd_clock_disable()
306 return !(readl(clock->csn.reg) & CPG_SD_STP_MASK); in cpg_sd_clock_is_enabled()
363 cpg_reg_modify(clock->csn.reg, CPG_SD_STP_MASK | CPG_SD_FC_MASK, in cpg_sd_clock_set_rate()
404 clock->csn.reg = base + offset; in cpg_sd_clk_register()
414 val = readl(clock->csn.reg) & ~CPG_SD_FC_MASK; in cpg_sd_clk_register()
416 writel(val, clock->csn.reg); in cpg_sd_clk_register()
422 cpg_simple_notifier_register(notifiers, &clock->csn); in cpg_sd_clk_register()
437 struct cpg_simple_notifier csn; member
469 rpc->csn.reg = base + CPG_RPCCKCR; in cpg_rpc_clk_register()
480 cpg_simple_notifier_register(notifiers, &rpc->csn); in cpg_rpc_clk_register()
621 struct cpg_simple_notifier *csn; in rcar_gen3_cpg_clk_register() local
623 csn = kzalloc(sizeof(*csn), GFP_KERNEL); in rcar_gen3_cpg_clk_register()
624 if (!csn) in rcar_gen3_cpg_clk_register()
627 csn->reg = base + CPG_RCKCR; in rcar_gen3_cpg_clk_register()
633 value = readl(csn->reg) & 0x3f; in rcar_gen3_cpg_clk_register()
640 writel(value, csn->reg); in rcar_gen3_cpg_clk_register()
641 cpg_simple_notifier_register(notifiers, csn); in rcar_gen3_cpg_clk_register()