Lines Matching full:hpi

3  * c67x00-ll-hpi.c: Cypress C67X00 USB Low level interface using HPI
49 * HPI implementation
54 * the HPI interface, it is not true for the serial interfaces.
57 /* HPI registers */
64 * According to CY7C67300 specification (tables 140 and 141) HPI read and
73 return __raw_readw(dev->hpi.base + reg * dev->hpi.regstep); in hpi_read_reg()
79 __raw_writew(value, dev->hpi.base + reg * dev->hpi.regstep); in hpi_write_reg()
93 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_read_word()
95 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_read_word()
110 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_write_word()
112 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_write_word()
124 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_write_words_le16()
130 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_write_words_le16()
142 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_read_words_le16()
147 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_read_words_le16()
155 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_set_bits()
158 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_set_bits()
166 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_clear_bits()
169 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_clear_bits()
177 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_recv_mbox()
179 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_recv_mbox()
188 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_send_mbox()
190 spin_unlock_irqrestore(&dev->hpi.lock, flags); in hpi_send_mbox()
200 spin_lock_irqsave(&dev->hpi.lock, flags); in c67x00_ll_hpi_status()
202 spin_unlock_irqrestore(&dev->hpi.lock, flags); in c67x00_ll_hpi_status()
240 res = wait_for_completion_timeout(&dev->hpi.lcp.msg_received, 5 * HZ); in ll_recv_msg()
285 mutex_lock(&dev->hpi.lcp.mutex); in c67x00_comm_exec_int()
291 mutex_unlock(&dev->hpi.lcp.mutex); in c67x00_comm_exec_int()
301 mutex_lock(&dev->hpi.lcp.mutex); in c67x00_ll_set_husb_eot()
303 mutex_unlock(&dev->hpi.lcp.mutex); in c67x00_ll_set_husb_eot()
378 dev->hpi.lcp.last_msg = hpi_recv_mbox(dev); in c67x00_ll_irq()
379 complete(&dev->hpi.lcp.msg_received); in c67x00_ll_irq()
388 mutex_lock(&dev->hpi.lcp.mutex); in c67x00_ll_reset()
391 mutex_unlock(&dev->hpi.lcp.mutex); in c67x00_ll_reset()
471 mutex_init(&dev->hpi.lcp.mutex); in c67x00_ll_init()
472 init_completion(&dev->hpi.lcp.msg_received); in c67x00_ll_init()