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,
84 chan->router = ofdma->dma_router;
98 * Need to put the node back since the ofdma->of_dma_route_allocate
123 struct of_dma *ofdma;
130 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL);
131 if (!ofdma)
134 ofdma->of_node = np;
135 ofdma->of_dma_xlate = of_dma_xlate;
136 ofdma->of_dma_data = data;
140 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list);
155 struct of_dma *ofdma;
159 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers)
160 if (ofdma->of_node == np) {
161 list_del(&ofdma->of_dma_controllers);
162 kfree(ofdma);
190 struct of_dma *ofdma;
197 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL);
198 if (!ofdma)
201 ofdma->of_node = np;
202 ofdma->of_dma_xlate = of_dma_router_xlate;
203 ofdma->of_dma_route_allocate = of_dma_route_allocate;
204 ofdma->dma_router = dma_router;
208 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list);
255 struct of_dma *ofdma;
289 ofdma = of_dma_find_controller(&dma_spec);
291 if (ofdma) {
292 chan = ofdma->of_dma_xlate(&dma_spec, ofdma);
313 * @ofdma: pointer to DMA controller data
322 struct of_dma *ofdma)
325 struct of_dma_filter_info *info = ofdma->of_dma_data;
341 * @ofdma: pointer to DMA controller data
352 struct of_dma *ofdma)
354 struct dma_device *dev = ofdma->of_dma_data;