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()
65 struct of_dma *ofdma; in of_dma_controller_register() local
72 ofdma = kzalloc(sizeof(*ofdma), GFP_KERNEL); in of_dma_controller_register()
73 if (!ofdma) in of_dma_controller_register()
76 ofdma->of_node = np; in of_dma_controller_register()
77 ofdma->of_dma_xlate = of_dma_xlate; in of_dma_controller_register()
78 ofdma->of_dma_data = data; in of_dma_controller_register()
82 list_add_tail(&ofdma->of_dma_controllers, &of_dma_list); in of_dma_controller_register()
97 struct of_dma *ofdma; in of_dma_controller_free() local
101 list_for_each_entry(ofdma, &of_dma_list, of_dma_controllers) in of_dma_controller_free()
102 if (ofdma->of_node == np) { in of_dma_controller_free()
103 list_del(&ofdma->of_dma_controllers); in of_dma_controller_free()
104 kfree(ofdma); in of_dma_controller_free()
152 struct of_dma *ofdma; in of_dma_request_slave_channel() local
178 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
180 if (ofdma) { in of_dma_request_slave_channel()
181 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
211 struct of_dma *ofdma) in of_dma_simple_xlate() argument
214 struct of_dma_filter_info *info = ofdma->of_dma_data; in of_dma_simple_xlate()
241 struct of_dma *ofdma) in of_dma_xlate_by_chan_id() argument
243 struct dma_device *dev = ofdma->of_dma_data; in of_dma_xlate_by_chan_id()