Lines Matching defs:common
12 void ccu_gate_helper_disable(struct ccu_common *common, u32 gate)
20 spin_lock_irqsave(common->lock, flags);
22 reg = readl(common->base + common->reg);
23 writel(reg & ~gate, common->base + common->reg);
25 spin_unlock_irqrestore(common->lock, flags);
32 return ccu_gate_helper_disable(&cg->common, cg->enable);
35 int ccu_gate_helper_enable(struct ccu_common *common, u32 gate)
43 spin_lock_irqsave(common->lock, flags);
45 reg = readl(common->base + common->reg);
46 writel(reg | gate, common->base + common->reg);
48 spin_unlock_irqrestore(common->lock, flags);
57 return ccu_gate_helper_enable(&cg->common, cg->enable);
60 int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate)
65 return readl(common->base + common->reg) & gate;
72 return ccu_gate_helper_is_enabled(&cg->common, cg->enable);
81 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)
82 rate /= cg->common.prediv;
93 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)
94 div = cg->common.prediv;
99 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)