Lines Matching refs:ip
11 #define l2_cache_write(reg, data) writel(data, ip->iomem + reg)
12 #define l2_cache_read(reg) readl(ip->iomem + reg)
14 static int lima_l2_cache_wait_idle(struct lima_ip *ip) in lima_l2_cache_wait_idle() argument
16 struct lima_device *dev = ip->dev; in lima_l2_cache_wait_idle()
20 err = readl_poll_timeout(ip->iomem + LIMA_L2_CACHE_STATUS, v, in lima_l2_cache_wait_idle()
30 int lima_l2_cache_flush(struct lima_ip *ip) in lima_l2_cache_flush() argument
34 spin_lock(&ip->data.lock); in lima_l2_cache_flush()
36 ret = lima_l2_cache_wait_idle(ip); in lima_l2_cache_flush()
37 spin_unlock(&ip->data.lock); in lima_l2_cache_flush()
41 static int lima_l2_cache_hw_init(struct lima_ip *ip) in lima_l2_cache_hw_init() argument
45 err = lima_l2_cache_flush(ip); in lima_l2_cache_hw_init()
57 int lima_l2_cache_resume(struct lima_ip *ip) in lima_l2_cache_resume() argument
59 return lima_l2_cache_hw_init(ip); in lima_l2_cache_resume()
62 void lima_l2_cache_suspend(struct lima_ip *ip) in lima_l2_cache_suspend() argument
67 int lima_l2_cache_init(struct lima_ip *ip) in lima_l2_cache_init() argument
71 struct lima_device *dev = ip->dev; in lima_l2_cache_init()
74 if (ip->id == lima_ip_l2_cache2) { in lima_l2_cache_init()
76 if (dev->ip[i].present) in lima_l2_cache_init()
83 spin_lock_init(&ip->data.lock); in lima_l2_cache_init()
92 return lima_l2_cache_hw_init(ip); in lima_l2_cache_init()
95 void lima_l2_cache_fini(struct lima_ip *ip) in lima_l2_cache_fini() argument