Searched refs:dma_ctrlr (Results 1 – 3 of 3) sorted by relevance
878 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local892 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()[all …]
1609 struct vme_dma_resource *dma_ctrlr; in ca91cx42_probe() local1726 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in ca91cx42_probe()1727 if (!dma_ctrlr) { in ca91cx42_probe()1731 dma_ctrlr->parent = ca91cx42_bridge; in ca91cx42_probe()1732 mutex_init(&dma_ctrlr->mtx); in ca91cx42_probe()1733 dma_ctrlr->locked = 0; in ca91cx42_probe()1734 dma_ctrlr->number = i; in ca91cx42_probe()1735 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in ca91cx42_probe()1737 INIT_LIST_HEAD(&dma_ctrlr->pending); in ca91cx42_probe()1738 INIT_LIST_HEAD(&dma_ctrlr->running); in ca91cx42_probe()[all …]
2288 struct vme_dma_resource *dma_ctrlr; in tsi148_probe() local2431 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in tsi148_probe()2432 if (!dma_ctrlr) { in tsi148_probe()2436 dma_ctrlr->parent = tsi148_bridge; in tsi148_probe()2437 mutex_init(&dma_ctrlr->mtx); in tsi148_probe()2438 dma_ctrlr->locked = 0; in tsi148_probe()2439 dma_ctrlr->number = i; in tsi148_probe()2440 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in tsi148_probe()2444 INIT_LIST_HEAD(&dma_ctrlr->pending); in tsi148_probe()2445 INIT_LIST_HEAD(&dma_ctrlr->running); in tsi148_probe()[all …]