Searched refs:dma_ctrlr (Results 1 – 3 of 3) sorted by relevance
865 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local879 dma_ctrlr = list_entry(dma_pos, in vme_dma_request()881 if (!dma_ctrlr) { in vme_dma_request()887 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()888 if (((dma_ctrlr->route_attr & route) == route) && in vme_dma_request()889 (dma_ctrlr->locked == 0)) { in vme_dma_request()891 dma_ctrlr->locked = 1; in vme_dma_request()892 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()893 allocated_ctrlr = dma_ctrlr; in vme_dma_request()896 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()[all …]
1606 struct vme_dma_resource *dma_ctrlr; in ca91cx42_probe() local1723 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in ca91cx42_probe()1724 if (!dma_ctrlr) { in ca91cx42_probe()1728 dma_ctrlr->parent = ca91cx42_bridge; in ca91cx42_probe()1729 mutex_init(&dma_ctrlr->mtx); in ca91cx42_probe()1730 dma_ctrlr->locked = 0; in ca91cx42_probe()1731 dma_ctrlr->number = i; in ca91cx42_probe()1732 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in ca91cx42_probe()1734 INIT_LIST_HEAD(&dma_ctrlr->pending); in ca91cx42_probe()1735 INIT_LIST_HEAD(&dma_ctrlr->running); in ca91cx42_probe()[all …]
2278 struct vme_dma_resource *dma_ctrlr; in tsi148_probe() local2421 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in tsi148_probe()2422 if (!dma_ctrlr) { in tsi148_probe()2426 dma_ctrlr->parent = tsi148_bridge; in tsi148_probe()2427 mutex_init(&dma_ctrlr->mtx); in tsi148_probe()2428 dma_ctrlr->locked = 0; in tsi148_probe()2429 dma_ctrlr->number = i; in tsi148_probe()2430 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in tsi148_probe()2434 INIT_LIST_HEAD(&dma_ctrlr->pending); in tsi148_probe()2435 INIT_LIST_HEAD(&dma_ctrlr->running); in tsi148_probe()[all …]