Lines Matching refs:dma_ctrlr
878 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local
892 dma_ctrlr = list_entry(dma_pos, in vme_dma_request()
894 if (!dma_ctrlr) { in vme_dma_request()
900 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
901 if (((dma_ctrlr->route_attr & route) == route) && in vme_dma_request()
902 (dma_ctrlr->locked == 0)) { in vme_dma_request()
904 dma_ctrlr->locked = 1; in vme_dma_request()
905 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
906 allocated_ctrlr = dma_ctrlr; in vme_dma_request()
909 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
927 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
928 dma_ctrlr->locked = 0; in vme_dma_request()
929 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()