Home
last modified time | relevance | path

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

/linux/drivers/staging/vme_user/
H A Dvme.c821 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local
834 list_for_each_entry(dma_ctrlr, &bridge->dma_resources, list) { in vme_dma_request()
835 if (!dma_ctrlr) { in vme_dma_request()
842 mutex_lock(&dma_ctrlr->mtx); in vme_dma_request()
843 if (((dma_ctrlr->route_attr & route) == route) && in vme_dma_request()
844 (dma_ctrlr->locked == 0)) { in vme_dma_request()
845 dma_ctrlr->locked = 1; in vme_dma_request()
846 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
847 allocated_ctrlr = dma_ctrlr; in vme_dma_request()
850 mutex_unlock(&dma_ctrlr->mtx); in vme_dma_request()
[all …]
H A Dvme_tsi148.c2252 struct vme_dma_resource *dma_ctrlr; in tsi148_probe() local
2401 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in tsi148_probe()
2402 if (!dma_ctrlr) { in tsi148_probe()
2406 dma_ctrlr->parent = tsi148_bridge; in tsi148_probe()
2407 mutex_init(&dma_ctrlr->mtx); in tsi148_probe()
2408 dma_ctrlr->locked = 0; in tsi148_probe()
2409 dma_ctrlr->number = i; in tsi148_probe()
2410 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in tsi148_probe()
2414 INIT_LIST_HEAD(&dma_ctrlr->pending); in tsi148_probe()
2415 INIT_LIST_HEAD(&dma_ctrlr->running); in tsi148_probe()
[all …]