Lines Matching refs:ccu
20 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_assert() local
21 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_assert()
25 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_assert()
27 reg = readl(ccu->base + map->reg); in ccu_reset_assert()
28 writel(reg & ~map->bit, ccu->base + map->reg); in ccu_reset_assert()
30 spin_unlock_irqrestore(ccu->lock, flags); in ccu_reset_assert()
38 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_deassert() local
39 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_deassert()
43 spin_lock_irqsave(ccu->lock, flags); in ccu_reset_deassert()
45 reg = readl(ccu->base + map->reg); in ccu_reset_deassert()
46 writel(reg | map->bit, ccu->base + map->reg); in ccu_reset_deassert()
48 spin_unlock_irqrestore(ccu->lock, flags); in ccu_reset_deassert()
66 struct ccu_reset *ccu = rcdev_to_ccu_reset(rcdev); in ccu_reset_status() local
67 const struct ccu_reset_map *map = &ccu->reset_map[id]; in ccu_reset_status()
73 return !(map->bit & readl(ccu->base + map->reg)); in ccu_reset_status()