Lines Matching refs:dma_ctrlr
874 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local
888 dma_ctrlr = list_entry(dma_pos, in vme_dma_request()
890 if (!dma_ctrlr) { in vme_dma_request()
896 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
897 if (((dma_ctrlr->route_attr & route) == route) && in vme_dma_request()
898 (dma_ctrlr->locked == 0)) { in vme_dma_request()
900 dma_ctrlr->locked = 1; in vme_dma_request()
901 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
902 allocated_ctrlr = dma_ctrlr; in vme_dma_request()
905 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
923 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
924 dma_ctrlr->locked = 0; in vme_dma_request()
925 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()