Lines Matching refs:dma_spec
32 static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec) in of_dma_find_controller() argument
37 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
41 dma_spec->np); in of_dma_find_controller()
55 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate() argument
64 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate()
227 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument
238 dma_spec)) in of_dma_match_channel()
254 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local
285 &dma_spec)) in of_dma_request_slave_channel()
289 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
292 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
300 of_node_put(dma_spec.np); in of_dma_request_slave_channel()
321 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() argument
324 int count = dma_spec->args_count; in of_dma_simple_xlate()
334 &dma_spec->args[0], dma_spec->np); in of_dma_simple_xlate()
351 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id() argument
357 if (!dev || dma_spec->args_count != 1) in of_dma_xlate_by_chan_id()
361 if (chan->chan_id == dma_spec->args[0]) { in of_dma_xlate_by_chan_id()