Lines Matching refs:ofdma

34 	struct of_dma *ofdma;  in of_dma_find_controller()  local
36 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_find_controller()
37 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
38 return ofdma; in of_dma_find_controller()
56 struct of_dma *ofdma) in of_dma_router_xlate() argument
65 route_data = ofdma->of_dma_route_allocate(&dma_spec_target, ofdma); in of_dma_router_xlate()
71 ofdma->dma_router->route_free(ofdma->dma_router->dev, in of_dma_router_xlate()
79 ofdma->dma_router->route_free(ofdma->dma_router->dev, in of_dma_router_xlate()
82 chan->router = ofdma->dma_router; in of_dma_router_xlate()
113 struct of_dma *ofdma; in of_dma_controller_register() local
120 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_controller_register()
121 if (!ofdma) in of_dma_controller_register()
124 ofdma->of_node = np; in of_dma_controller_register()
125 ofdma->of_dma_xlate = of_dma_xlate; in of_dma_controller_register()
126 ofdma->of_dma_data = data; in of_dma_controller_register()
130 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_controller_register()
145 struct of_dma *ofdma; in of_dma_controller_free() local
149 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_controller_free()
150 if (ofdma->of_node == np) { in of_dma_controller_free()
151 list_del(&ofdma->of_dma_controllers); in of_dma_controller_free()
152 kfree(ofdma); in of_dma_controller_free()
180 struct of_dma *ofdma; in of_dma_router_register() local
187 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_router_register()
188 if (!ofdma) in of_dma_router_register()
191 ofdma->of_node = np; in of_dma_router_register()
192 ofdma->of_dma_xlate = of_dma_router_xlate; in of_dma_router_register()
193 ofdma->of_dma_route_allocate = of_dma_route_allocate; in of_dma_router_register()
194 ofdma->dma_router = dma_router; in of_dma_router_register()
198 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_router_register()
245 struct of_dma *ofdma; in of_dma_request_slave_channel() local
279 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
281 if (ofdma) { in of_dma_request_slave_channel()
282 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
312 struct of_dma *ofdma) in of_dma_simple_xlate() argument
315 struct of_dma_filter_info *info = ofdma->of_dma_data; in of_dma_simple_xlate()
342 struct of_dma *ofdma) in of_dma_xlate_by_chan_id() argument
344 struct dma_device *dev = ofdma->of_dma_data; in of_dma_xlate_by_chan_id()