Lines Matching refs:dma_spec
25 * @dma_spec: pointer to DMA specifier as found in the device tree
32 static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec)
37 if (ofdma->of_node == dma_spec->np)
41 dma_spec->np);
48 * @dma_spec: pointer to DMA specifier as found in the device tree
51 * The function creates new dma_spec to be passed to the router driver's
52 * of_dma_route_allocate() function to prepare a dma_spec which will be used
55 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec,
64 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target));
89 * has taken it for generating the new, translated dma_spec
165 * modify the dma_spec for the DMA controller to
210 * @dma_spec: pointer to DMA specifier as found in the device tree
217 int index, struct of_phandle_args *dma_spec)
228 dma_spec))
244 struct of_phandle_args dma_spec;
275 &dma_spec))
279 ofdma = of_dma_find_controller(&dma_spec);
282 chan = ofdma->of_dma_xlate(&dma_spec, ofdma);
290 of_node_put(dma_spec.np);
302 * @dma_spec: pointer to DMA specifier as found in the device tree
311 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
314 int count = dma_spec->args_count;
324 &dma_spec->args[0], dma_spec->np);
330 * @dma_spec: pointer to DMA specifier as found in the device tree
341 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
347 if (!dev || dma_spec->args_count != 1)
351 if (chan->chan_id == dma_spec->args[0]) {