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);
33 return ccu_gate_helper_disable(&cg->common, cg->enable);
36 int ccu_gate_helper_enable(struct ccu_common *common, u32 gate)
44 spin_lock_irqsave(common->lock, flags);
46 reg = readl(common->base + common->reg);
47 writel(reg | gate, common->base + common->reg);
49 spin_unlock_irqrestore(common->lock, flags);
59 return ccu_gate_helper_enable(&cg->common, cg->enable);
62 int ccu_gate_helper_is_enabled(struct ccu_common *common, u32 gate)
67 return readl(common->base + common->reg) & gate;
75 return ccu_gate_helper_is_enabled(&cg->common, cg->enable);
84 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)
85 rate /= cg->common.prediv;
96 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)
97 div = cg->common.prediv;
102 if (cg->common.features & CCU_FEATURE_ALL_PREDIV)