Lines Matching refs:hpi
2 * c67x00-ll-hpi.c: Cypress C67X00 USB Low level interface using HPI
78 return __raw_readw(dev->hpi.base + reg * dev->hpi.regstep);
83 __raw_writew(value, dev->hpi.base + reg * dev->hpi.regstep);
97 spin_lock_irqsave(&dev->hpi.lock, flags);
99 spin_unlock_irqrestore(&dev->hpi.lock, flags);
114 spin_lock_irqsave(&dev->hpi.lock, flags);
116 spin_unlock_irqrestore(&dev->hpi.lock, flags);
128 spin_lock_irqsave(&dev->hpi.lock, flags);
134 spin_unlock_irqrestore(&dev->hpi.lock, flags);
146 spin_lock_irqsave(&dev->hpi.lock, flags);
151 spin_unlock_irqrestore(&dev->hpi.lock, flags);
159 spin_lock_irqsave(&dev->hpi.lock, flags);
162 spin_unlock_irqrestore(&dev->hpi.lock, flags);
170 spin_lock_irqsave(&dev->hpi.lock, flags);
173 spin_unlock_irqrestore(&dev->hpi.lock, flags);
181 spin_lock_irqsave(&dev->hpi.lock, flags);
183 spin_unlock_irqrestore(&dev->hpi.lock, flags);
192 spin_lock_irqsave(&dev->hpi.lock, flags);
194 spin_unlock_irqrestore(&dev->hpi.lock, flags);
204 spin_lock_irqsave(&dev->hpi.lock, flags);
206 spin_unlock_irqrestore(&dev->hpi.lock, flags);
244 res = wait_for_completion_timeout(&dev->hpi.lcp.msg_received, 5 * HZ);
289 mutex_lock(&dev->hpi.lcp.mutex);
295 mutex_unlock(&dev->hpi.lcp.mutex);
305 mutex_lock(&dev->hpi.lcp.mutex);
307 mutex_unlock(&dev->hpi.lcp.mutex);
382 dev->hpi.lcp.last_msg = hpi_recv_mbox(dev);
383 complete(&dev->hpi.lcp.msg_received);
392 mutex_lock(&dev->hpi.lcp.mutex);
395 mutex_unlock(&dev->hpi.lcp.mutex);
475 mutex_init(&dev->hpi.lcp.mutex);
476 init_completion(&dev->hpi.lcp.msg_received);