Lines Matching refs:ofdma
35 struct of_dma *ofdma; in of_dma_find_controller() local
37 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_find_controller()
38 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
39 return ofdma; in of_dma_find_controller()
57 struct of_dma *ofdma) in of_dma_router_xlate() argument
66 route_data = ofdma->of_dma_route_allocate(&dma_spec_target, ofdma); in of_dma_router_xlate()
76 chan->router = ofdma->dma_router; in of_dma_router_xlate()
79 ofdma->dma_router->route_free(ofdma->dma_router->dev, in of_dma_router_xlate()
109 struct of_dma *ofdma; in of_dma_controller_register() local
116 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_controller_register()
117 if (!ofdma) in of_dma_controller_register()
120 ofdma->of_node = np; in of_dma_controller_register()
121 ofdma->of_dma_xlate = of_dma_xlate; in of_dma_controller_register()
122 ofdma->of_dma_data = data; in of_dma_controller_register()
126 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_controller_register()
141 struct of_dma *ofdma; in of_dma_controller_free() local
145 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_controller_free()
146 if (ofdma->of_node == np) { in of_dma_controller_free()
147 list_del(&ofdma->of_dma_controllers); in of_dma_controller_free()
148 kfree(ofdma); in of_dma_controller_free()
176 struct of_dma *ofdma; in of_dma_router_register() local
183 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_router_register()
184 if (!ofdma) in of_dma_router_register()
187 ofdma->of_node = np; in of_dma_router_register()
188 ofdma->of_dma_xlate = of_dma_router_xlate; in of_dma_router_register()
189 ofdma->of_dma_route_allocate = of_dma_route_allocate; in of_dma_router_register()
190 ofdma->dma_router = dma_router; in of_dma_router_register()
194 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_router_register()
241 struct of_dma *ofdma; in of_dma_request_slave_channel() local
267 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
269 if (ofdma) { in of_dma_request_slave_channel()
270 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
300 struct of_dma *ofdma) in of_dma_simple_xlate() argument
303 struct of_dma_filter_info *info = ofdma->of_dma_data; in of_dma_simple_xlate()
330 struct of_dma *ofdma) in of_dma_xlate_by_chan_id() argument
332 struct dma_device *dev = ofdma->of_dma_data; in of_dma_xlate_by_chan_id()