Lines Matching defs:dma_spec
25 * @dma_spec: pointer to DMA specifier as found in the device tree
32 static struct of_dma *of_dma_find_controller(const 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));
99 * has taken it for generating the new, translated dma_spec
175 * modify the dma_spec for the DMA controller to
220 * @dma_spec: pointer to DMA specifier as found in the device tree
227 int index, struct of_phandle_args *dma_spec)
238 dma_spec))
254 struct of_phandle_args dma_spec;
285 &dma_spec))
289 ofdma = of_dma_find_controller(&dma_spec);
292 chan = ofdma->of_dma_xlate(&dma_spec, ofdma);
300 of_node_put(dma_spec.np);
312 * @dma_spec: pointer to DMA specifier as found in the device tree
321 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
324 int count = dma_spec->args_count;
334 &dma_spec->args[0], dma_spec->np);
340 * @dma_spec: pointer to DMA specifier as found in the device tree
351 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
357 if (!dev || dma_spec->args_count != 1)
361 if (chan->chan_id == dma_spec->args[0]) {