Lines Matching refs:dma_spec
84 static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, in stm32_dmamux_route_allocate() argument
94 if (dma_spec->args_count != 3) { in stm32_dmamux_route_allocate()
99 if (dma_spec->args[0] > dmamux->dmamux_requests) { in stm32_dmamux_route_allocate()
101 dma_spec->args[0]); in stm32_dmamux_route_allocate()
131 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", i - 1); in stm32_dmamux_route_allocate()
132 if (!dma_spec->np) { in stm32_dmamux_route_allocate()
147 mux->request = dma_spec->args[0]; in stm32_dmamux_route_allocate()
150 dma_spec->args[3] = dma_spec->args[2] | mux->chan_id << 16; in stm32_dmamux_route_allocate()
151 dma_spec->args[2] = dma_spec->args[1]; in stm32_dmamux_route_allocate()
152 dma_spec->args[1] = 0; in stm32_dmamux_route_allocate()
153 dma_spec->args[0] = mux->chan_id - min; in stm32_dmamux_route_allocate()
154 dma_spec->args_count = 4; in stm32_dmamux_route_allocate()