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()
217 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument
228 dma_spec)) in of_dma_match_channel()
244 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local
275 &dma_spec)) in of_dma_request_slave_channel()
279 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
282 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
290 of_node_put(dma_spec.np); in of_dma_request_slave_channel()
311 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() argument
314 int count = dma_spec->args_count; in of_dma_simple_xlate()
324 &dma_spec->args[0], dma_spec->np); in of_dma_simple_xlate()
341 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id() argument
347 if (!dev || dma_spec->args_count != 1) in of_dma_xlate_by_chan_id()
351 if (chan->chan_id == dma_spec->args[0]) { in of_dma_xlate_by_chan_id()