Lines Matching refs:ccu
16 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_assert() local
17 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_assert()
21 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_assert()
23 reg = readl(ccu->base + map->reg); in ccu_reset_assert()
24 writel(reg & ~map->bit, ccu->base + map->reg); in ccu_reset_assert()
26 spin_unlock_irqrestore(ccu->lock, flags); in ccu_reset_assert()
34 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_deassert() local
35 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_deassert()
39 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_deassert()
41 reg = readl(ccu->base + map->reg); in ccu_reset_deassert()
42 writel(reg | map->bit, ccu->base + map->reg); in ccu_reset_deassert()
44 spin_unlock_irqrestore(ccu->lock, flags); in ccu_reset_deassert()
62 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_status() local
63 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_status()
69 return !(map->bit & readl(ccu->base + map->reg)); in ccu_reset_status()