Lines Matching refs:p2m_dev
68 struct solo_p2m_dev *p2m_dev; in solo_p2m_dma_desc() local
81 p2m_dev = &solo_dev->p2m_dev[p2m_id]; in solo_p2m_dma_desc()
83 if (mutex_lock_interruptible(&p2m_dev->mutex)) in solo_p2m_dma_desc()
86 reinit_completion(&p2m_dev->completion); in solo_p2m_dma_desc()
87 p2m_dev->error = 0; in solo_p2m_dma_desc()
91 p2m_dev->desc_count = p2m_dev->desc_idx = 0; in solo_p2m_dma_desc()
100 p2m_dev->desc_count = desc_cnt; in solo_p2m_dma_desc()
101 p2m_dev->desc_idx = 1; in solo_p2m_dma_desc()
102 p2m_dev->descs = desc; in solo_p2m_dma_desc()
114 timeout = wait_for_completion_timeout(&p2m_dev->completion, in solo_p2m_dma_desc()
117 if (WARN_ON_ONCE(p2m_dev->error)) in solo_p2m_dma_desc()
131 mutex_unlock(&p2m_dev->mutex); in solo_p2m_dma_desc()
172 struct solo_p2m_dev *p2m_dev = &solo_dev->p2m_dev[id]; in solo_p2m_isr() local
175 if (p2m_dev->desc_count <= p2m_dev->desc_idx) { in solo_p2m_isr()
176 complete(&p2m_dev->completion); in solo_p2m_isr()
181 p2m_dev->desc_idx++; in solo_p2m_isr()
182 desc = &p2m_dev->descs[p2m_dev->desc_idx]; in solo_p2m_isr()
194 struct solo_p2m_dev *p2m_dev; in solo_p2m_error_isr() local
201 p2m_dev = &solo_dev->p2m_dev[i]; in solo_p2m_error_isr()
202 p2m_dev->error = 1; in solo_p2m_error_isr()
204 complete(&p2m_dev->completion); in solo_p2m_error_isr()
264 struct solo_p2m_dev *p2m_dev; in solo_p2m_init() local
268 p2m_dev = &solo_dev->p2m_dev[i]; in solo_p2m_init()
270 mutex_init(&p2m_dev->mutex); in solo_p2m_init()
271 init_completion(&p2m_dev->completion); in solo_p2m_init()