Lines Matching refs:dma_ctrlr
708 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local
722 dma_ctrlr = list_entry(dma_pos, in vme_dma_request()
725 if (dma_ctrlr == NULL) { in vme_dma_request()
731 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
732 if (((dma_ctrlr->route_attr & route) == route) && in vme_dma_request()
733 (dma_ctrlr->locked == 0)) { in vme_dma_request()
735 dma_ctrlr->locked = 1; in vme_dma_request()
736 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
737 allocated_ctrlr = dma_ctrlr; in vme_dma_request()
740 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
759 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
760 dma_ctrlr->locked = 0; in vme_dma_request()
761 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()