Home
last modified time | relevance | path

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

/drivers/vme/
Dvme.c874 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()
[all …]
/drivers/vme/bridges/
Dvme_ca91cx42.c1605 struct vme_dma_resource *dma_ctrlr; in ca91cx42_probe() local
1722 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in ca91cx42_probe()
1723 if (!dma_ctrlr) { in ca91cx42_probe()
1727 dma_ctrlr->parent = ca91cx42_bridge; in ca91cx42_probe()
1728 mutex_init(&dma_ctrlr->mtx); in ca91cx42_probe()
1729 dma_ctrlr->locked = 0; in ca91cx42_probe()
1730 dma_ctrlr->number = i; in ca91cx42_probe()
1731 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in ca91cx42_probe()
1733 INIT_LIST_HEAD(&dma_ctrlr->pending); in ca91cx42_probe()
1734 INIT_LIST_HEAD(&dma_ctrlr->running); in ca91cx42_probe()
[all …]
Dvme_tsi148.c2284 struct vme_dma_resource *dma_ctrlr; in tsi148_probe() local
2427 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in tsi148_probe()
2428 if (!dma_ctrlr) { in tsi148_probe()
2432 dma_ctrlr->parent = tsi148_bridge; in tsi148_probe()
2433 mutex_init(&dma_ctrlr->mtx); in tsi148_probe()
2434 dma_ctrlr->locked = 0; in tsi148_probe()
2435 dma_ctrlr->number = i; in tsi148_probe()
2436 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in tsi148_probe()
2440 INIT_LIST_HEAD(&dma_ctrlr->pending); in tsi148_probe()
2441 INIT_LIST_HEAD(&dma_ctrlr->running); in tsi148_probe()
[all …]