Searched refs:dma_ctrlr (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/vme/
H A Dvme.c708 struct vme_dma_resource *dma_ctrlr = NULL; vme_dma_request() local
722 dma_ctrlr = list_entry(dma_pos, vme_dma_request()
725 if (dma_ctrlr == NULL) { vme_dma_request()
731 mutex_lock(&dma_ctrlr->mtx); vme_dma_request()
732 if (((dma_ctrlr->route_attr & route) == route) && vme_dma_request()
733 (dma_ctrlr->locked == 0)) { vme_dma_request()
735 dma_ctrlr->locked = 1; vme_dma_request()
736 mutex_unlock(&dma_ctrlr->mtx); vme_dma_request()
737 allocated_ctrlr = dma_ctrlr; vme_dma_request()
740 mutex_unlock(&dma_ctrlr->mtx); vme_dma_request()
759 mutex_lock(&dma_ctrlr->mtx); vme_dma_request()
760 dma_ctrlr->locked = 0; vme_dma_request()
761 mutex_unlock(&dma_ctrlr->mtx); vme_dma_request()
/linux-4.4.14/drivers/vme/bridges/
H A Dvme_ca91cx42.c1616 struct vme_dma_resource *dma_ctrlr; ca91cx42_probe() local
1747 dma_ctrlr = kmalloc(sizeof(struct vme_dma_resource), ca91cx42_probe()
1749 if (dma_ctrlr == NULL) { ca91cx42_probe()
1755 dma_ctrlr->parent = ca91cx42_bridge; ca91cx42_probe()
1756 mutex_init(&dma_ctrlr->mtx); ca91cx42_probe()
1757 dma_ctrlr->locked = 0; ca91cx42_probe()
1758 dma_ctrlr->number = i; ca91cx42_probe()
1759 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | ca91cx42_probe()
1761 INIT_LIST_HEAD(&dma_ctrlr->pending); ca91cx42_probe()
1762 INIT_LIST_HEAD(&dma_ctrlr->running); ca91cx42_probe()
1763 list_add_tail(&dma_ctrlr->list, ca91cx42_probe()
1837 dma_ctrlr = list_entry(pos, struct vme_dma_resource, list); ca91cx42_probe()
1839 kfree(dma_ctrlr); ca91cx42_probe()
1879 struct vme_dma_resource *dma_ctrlr; ca91cx42_remove() local
1921 dma_ctrlr = list_entry(pos, struct vme_dma_resource, list); ca91cx42_remove()
1923 kfree(dma_ctrlr); ca91cx42_remove()
H A Dvme_tsi148.c2291 struct vme_dma_resource *dma_ctrlr; tsi148_probe() local
2447 dma_ctrlr = kmalloc(sizeof(struct vme_dma_resource), tsi148_probe()
2449 if (dma_ctrlr == NULL) { tsi148_probe()
2455 dma_ctrlr->parent = tsi148_bridge; tsi148_probe()
2456 mutex_init(&dma_ctrlr->mtx); tsi148_probe()
2457 dma_ctrlr->locked = 0; tsi148_probe()
2458 dma_ctrlr->number = i; tsi148_probe()
2459 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | tsi148_probe()
2463 INIT_LIST_HEAD(&dma_ctrlr->pending); tsi148_probe()
2464 INIT_LIST_HEAD(&dma_ctrlr->running); tsi148_probe()
2465 list_add_tail(&dma_ctrlr->list, tsi148_probe()
2553 dma_ctrlr = list_entry(pos, struct vme_dma_resource, list); tsi148_probe()
2555 kfree(dma_ctrlr); tsi148_probe()
2596 struct vme_dma_resource *dma_ctrlr; tsi148_remove() local
2653 dma_ctrlr = list_entry(pos, struct vme_dma_resource, list); tsi148_remove()
2655 kfree(dma_ctrlr); tsi148_remove()

Completed in 221 milliseconds