Lines Matching refs:p2m_dev
59 struct solo_p2m_dev *p2m_dev; in solo_p2m_dma_desc() local
69 p2m_dev = &solo_dev->p2m_dev[p2m_id]; in solo_p2m_dma_desc()
71 if (mutex_lock_interruptible(&p2m_dev->mutex)) in solo_p2m_dma_desc()
74 reinit_completion(&p2m_dev->completion); in solo_p2m_dma_desc()
75 p2m_dev->error = 0; in solo_p2m_dma_desc()
79 p2m_dev->desc_count = p2m_dev->desc_idx = 0; in solo_p2m_dma_desc()
88 p2m_dev->desc_count = desc_cnt; in solo_p2m_dma_desc()
89 p2m_dev->desc_idx = 1; in solo_p2m_dma_desc()
90 p2m_dev->descs = desc; in solo_p2m_dma_desc()
102 timeout = wait_for_completion_timeout(&p2m_dev->completion, in solo_p2m_dma_desc()
105 if (WARN_ON_ONCE(p2m_dev->error)) in solo_p2m_dma_desc()
119 mutex_unlock(&p2m_dev->mutex); in solo_p2m_dma_desc()
160 struct solo_p2m_dev *p2m_dev = &solo_dev->p2m_dev[id]; in solo_p2m_isr() local
163 if (p2m_dev->desc_count <= p2m_dev->desc_idx) { in solo_p2m_isr()
164 complete(&p2m_dev->completion); in solo_p2m_isr()
169 p2m_dev->desc_idx++; in solo_p2m_isr()
170 desc = &p2m_dev->descs[p2m_dev->desc_idx]; in solo_p2m_isr()
182 struct solo_p2m_dev *p2m_dev; in solo_p2m_error_isr() local
189 p2m_dev = &solo_dev->p2m_dev[i]; in solo_p2m_error_isr()
190 p2m_dev->error = 1; in solo_p2m_error_isr()
192 complete(&p2m_dev->completion); in solo_p2m_error_isr()
252 struct solo_p2m_dev *p2m_dev; in solo_p2m_init() local
256 p2m_dev = &solo_dev->p2m_dev[i]; in solo_p2m_init()
258 mutex_init(&p2m_dev->mutex); in solo_p2m_init()
259 init_completion(&p2m_dev->completion); in solo_p2m_init()