Lines Matching full:dma

3  * Device tree helpers for DMA request / controller
24 * of_dma_find_controller - Get a DMA controller in DT DMA helpers list
25 * @dma_spec: pointer to DMA specifier as found in the device tree
27 * Finds a DMA controller with matching device node and number for dma cells
28 * in a list of registered DMA controllers. If a match is found a valid pointer
29 * to the DMA data stored is returned. A NULL pointer is returned if no match is
40 pr_debug("%s: can't find DMA controller %pOF\n", __func__, in of_dma_find_controller()
48 * @dma_spec: pointer to DMA specifier as found in the device tree
49 * @ofdma: pointer to DMA controller data (router information)
53 * to request channel from the real DMA controller.
63 /* translate the request for the real DMA controller */ in of_dma_router_xlate()
106 * of_dma_controller_register - Register a DMA controller to DT DMA helpers
107 * @np: device node of DMA controller
148 * of_dma_controller_free - Remove a DMA controller from DT DMA helpers list
149 * @np: device node of DMA controller
171 * of_dma_router_register - Register a DMA router to DT DMA helpers as a
173 * @np: device node of DMA router
175 * modify the dma_spec for the DMA controller to
216 * of_dma_match_channel - Check if a DMA specifier matches name
217 * @np: device node to look for DMA channels
219 * @index: index of DMA specifier in list of DMA specifiers
220 * @dma_spec: pointer to DMA specifier as found in the device tree
222 * Check if the DMA specifier pointed to by the index in a list of DMA
224 * a valid pointer to the DMA specifier is found. Otherwise returns -ENODEV.
231 if (of_property_read_string_index(np, "dma-names", index, &s)) in of_dma_match_channel()
237 if (of_parse_phandle_with_args(np, "dmas", "#dma-cells", index, in of_dma_match_channel()
245 * of_dma_request_slave_channel - Get the DMA slave channel
246 * @np: device node to get DMA request from
249 * Returns pointer to appropriate DMA channel on success or an error pointer.
270 count = of_property_count_strings(np, "dma-names"); in of_dma_request_slave_channel()
272 pr_err("%s: dma-names property of node '%pOF' missing or empty\n", in of_dma_request_slave_channel()
311 * of_dma_simple_xlate - Simple DMA engine translation function
312 * @dma_spec: pointer to DMA specifier as found in the device tree
313 * @ofdma: pointer to DMA controller data
316 * filter_param when calling the DMA engine dma_request_channel() function.
317 * Note that this translation function requires that #dma-cells is equal to 1
318 * and the argument of the dma specifier is the 32-bit filter_param. Returns
319 * pointer to appropriate dma channel on success or NULL on error.
339 * of_dma_xlate_by_chan_id - Translate dt property to DMA channel by channel id
340 * @dma_spec: pointer to DMA specifier as found in the device tree
341 * @ofdma: pointer to DMA controller data
343 * This function can be used as the of xlate callback for DMA driver which wants
345 * the #dma-cells property of the DMA controller dt node needs to be set to 1.
349 * Returns pointer to appropriate dma channel on success or NULL on error.