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()
84 chan->router = ofdma->dma_router; in of_dma_router_xlate()
123 struct of_dma *ofdma; in of_dma_controller_register() local
130 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_controller_register()
131 if (!ofdma) in of_dma_controller_register()
134 ofdma->of_node = np; in of_dma_controller_register()
135 ofdma->of_dma_xlate = of_dma_xlate; in of_dma_controller_register()
136 ofdma->of_dma_data = data; in of_dma_controller_register()
140 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_controller_register()
155 struct of_dma *ofdma; in of_dma_controller_free() local
159 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_controller_free()
160 if (ofdma->of_node == np) { in of_dma_controller_free()
161 list_del(&ofdma->of_dma_controllers); in of_dma_controller_free()
162 kfree(ofdma); in of_dma_controller_free()
190 struct of_dma *ofdma; in of_dma_router_register() local
197 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_router_register()
198 if (!ofdma) in of_dma_router_register()
201 ofdma->of_node = np; in of_dma_router_register()
202 ofdma->of_dma_xlate = of_dma_router_xlate; in of_dma_router_register()
203 ofdma->of_dma_route_allocate = of_dma_route_allocate; in of_dma_router_register()
204 ofdma->dma_router = dma_router; in of_dma_router_register()
208 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_router_register()
255 struct of_dma *ofdma; in of_dma_request_slave_channel() local
289 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
291 if (ofdma) { in of_dma_request_slave_channel()
292 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
322 struct of_dma *ofdma) in of_dma_simple_xlate() argument
325 struct of_dma_filter_info *info = ofdma->of_dma_data; in of_dma_simple_xlate()
352 struct of_dma *ofdma) in of_dma_xlate_by_chan_id() argument
354 struct dma_device *dev = ofdma->of_dma_data; in of_dma_xlate_by_chan_id()