Searched refs:dma_ctrlr (Results 1 – 2 of 2) sorted by relevance
821 struct vme_dma_resource *dma_ctrlr = NULL; in vme_dma_request() local834 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 …]
2251 struct vme_dma_resource *dma_ctrlr; in tsi148_probe() 2400 dma_ctrlr = kmalloc(sizeof(*dma_ctrlr), GFP_KERNEL); in tsi148_probe() 2401 if (!dma_ctrlr) { in tsi148_probe() 2405 dma_ctrlr->parent = tsi148_bridge; in tsi148_probe() 2406 mutex_init(&dma_ctrlr->mtx); in tsi148_probe() 2407 dma_ctrlr->locked = 0; in tsi148_probe() 2408 dma_ctrlr->number = i; in tsi148_probe() 2409 dma_ctrlr->route_attr = VME_DMA_VME_TO_MEM | in tsi148_probe() 2413 INIT_LIST_HEAD(&dma_ctrlr in tsi148_probe() 2252 struct vme_dma_resource *dma_ctrlr; tsi148_probe() local 2542 struct vme_dma_resource *dma_ctrlr; tsi148_remove() local [all...]