Lines Matching refs:ofdma

34 	struct of_dma *ofdma;
36 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers)
37 if (ofdma->of_node == dma_spec->np)
38 return ofdma;
49 * @ofdma: pointer to DMA controller data (router information)
56 struct of_dma *ofdma)
65 route_data = ofdma->of_dma_route_allocate(&dma_spec_target, ofdma);
71 ofdma->dma_router->route_free(ofdma->dma_router->dev,
79 ofdma->dma_router->route_free(ofdma->dma_router->dev,
82 chan->router = ofdma->dma_router;
88 * Need to put the node back since the ofdma->of_dma_route_allocate
113 struct of_dma *ofdma;
120 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL);
121 if (!ofdma)
124 ofdma->of_node = np;
125 ofdma->of_dma_xlate = of_dma_xlate;
126 ofdma->of_dma_data = data;
130 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list);
145 struct of_dma *ofdma;
149 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers)
150 if (ofdma->of_node == np) {
151 list_del(&ofdma->of_dma_controllers);
152 kfree(ofdma);
180 struct of_dma *ofdma;
187 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL);
188 if (!ofdma)
191 ofdma->of_node = np;
192 ofdma->of_dma_xlate = of_dma_router_xlate;
193 ofdma->of_dma_route_allocate = of_dma_route_allocate;
194 ofdma->dma_router = dma_router;
198 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list);
245 struct of_dma *ofdma;
279 ofdma = of_dma_find_controller(&dma_spec);
281 if (ofdma) {
282 chan = ofdma->of_dma_xlate(&dma_spec, ofdma);
303 * @ofdma: pointer to DMA controller data
312 struct of_dma *ofdma)
315 struct of_dma_filter_info *info = ofdma->of_dma_data;
331 * @ofdma: pointer to DMA controller data
342 struct of_dma *ofdma)
344 struct dma_device *dev = ofdma->of_dma_data;