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