Home
last modified time | relevance | path

Searched refs:dma_spec (Results 1 - 25 of 107) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/dma/
H A Dof-dma.c25 * @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) 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()
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, in of_dma_router_xlate() argument
64 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate()
89 * has taken it for generating the new, translated dma_spec in of_dma_router_xlate()
216 of_dma_match_channel(struct device_node *np, const char *name, int index, struct of_phandle_args *dma_spec) of_dma_match_channel() argument
244 struct of_phandle_args dma_spec; of_dma_request_slave_channel() local
311 of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) of_dma_simple_xlate() argument
341 of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, struct of_dma *ofdma) of_dma_xlate_by_chan_id() argument
[all...]
H A Dlpc18xx-dmamux.c51 static void *lpc18xx_dmamux_reserve(struct of_phandle_args *dma_spec, in lpc18xx_dmamux_reserve() argument
59 if (dma_spec->args_count != 3) { in lpc18xx_dmamux_reserve()
64 mux = dma_spec->args[0]; in lpc18xx_dmamux_reserve()
67 dma_spec->args[0]); in lpc18xx_dmamux_reserve()
71 if (dma_spec->args[1] > LPC18XX_DMAMUX_MAX_VAL) { in lpc18xx_dmamux_reserve()
73 dma_spec->args[1]); in lpc18xx_dmamux_reserve()
78 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in lpc18xx_dmamux_reserve()
79 if (!dma_spec->np) { in lpc18xx_dmamux_reserve()
89 of_node_put(dma_spec->np); in lpc18xx_dmamux_reserve()
94 dmamux->muxes[mux].value = dma_spec in lpc18xx_dmamux_reserve()
[all...]
H A Dacpi-dma.c289 * @dma_spec: dma specifier to update
303 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec()
306 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
313 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
314 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
321 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
327 struct acpi_dma_spec dma_spec; member
345 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
346 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma()
366 struct acpi_dma_spec *dma_spec in acpi_dma_request_slave_chan_by_index() local
302 acpi_dma_update_dma_spec(struct acpi_dma *adma, struct acpi_dma_spec *dma_spec) acpi_dma_update_dma_spec() argument
463 acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) acpi_dma_simple_xlate() argument
[all...]
H A Dstm32-dmamux.c84 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]; in stm32_dmamux_route_allocate()
151 dma_spec in stm32_dmamux_route_allocate()
[all...]
H A Dst_fdma.c166 static struct dma_chan *st_fdma_of_xlate(struct of_phandle_args *dma_spec, in st_fdma_of_xlate() argument
174 if (dma_spec->args_count < 1) in st_fdma_of_xlate()
177 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate()
192 fchan->cfg.of_node = dma_spec->np; in st_fdma_of_xlate()
193 fchan->cfg.req_line = dma_spec->args[0]; in st_fdma_of_xlate()
197 if (dma_spec->args_count > 1) in st_fdma_of_xlate()
198 fchan->cfg.req_ctrl = dma_spec->args[1] in st_fdma_of_xlate()
201 if (dma_spec->args_count > 2) in st_fdma_of_xlate()
202 fchan->cfg.type = dma_spec->args[2]; in st_fdma_of_xlate()
/kernel/linux/linux-6.6/drivers/dma/
H A Dof-dma.c25 * @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) 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()
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, in of_dma_router_xlate() argument
64 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate()
99 * has taken it for generating the new, translated dma_spec in of_dma_router_xlate()
226 of_dma_match_channel(struct device_node *np, const char *name, int index, struct of_phandle_args *dma_spec) of_dma_match_channel() argument
254 struct of_phandle_args dma_spec; of_dma_request_slave_channel() local
321 of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) of_dma_simple_xlate() argument
351 of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, struct of_dma *ofdma) of_dma_xlate_by_chan_id() argument
[all...]
H A Dlpc18xx-dmamux.c53 static void *lpc18xx_dmamux_reserve(struct of_phandle_args *dma_spec, in lpc18xx_dmamux_reserve() argument
61 if (dma_spec->args_count != 3) { in lpc18xx_dmamux_reserve()
66 mux = dma_spec->args[0]; in lpc18xx_dmamux_reserve()
69 dma_spec->args[0]); in lpc18xx_dmamux_reserve()
73 if (dma_spec->args[1] > LPC18XX_DMAMUX_MAX_VAL) { in lpc18xx_dmamux_reserve()
75 dma_spec->args[1]); in lpc18xx_dmamux_reserve()
80 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in lpc18xx_dmamux_reserve()
81 if (!dma_spec->np) { in lpc18xx_dmamux_reserve()
91 of_node_put(dma_spec->np); in lpc18xx_dmamux_reserve()
96 dmamux->muxes[mux].value = dma_spec in lpc18xx_dmamux_reserve()
[all...]
H A Dacpi-dma.c297 * @dma_spec: dma specifier to update
311 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec()
314 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
321 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
322 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
329 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
335 struct acpi_dma_spec dma_spec; member
353 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
354 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma()
374 struct acpi_dma_spec *dma_spec in acpi_dma_request_slave_chan_by_index() local
310 acpi_dma_update_dma_spec(struct acpi_dma *adma, struct acpi_dma_spec *dma_spec) acpi_dma_update_dma_spec() argument
471 acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec, struct acpi_dma *adma) acpi_dma_simple_xlate() argument
[all...]
H A Dstm32-dmamux.c86 static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, in stm32_dmamux_route_allocate() argument
96 if (dma_spec->args_count != 3) { in stm32_dmamux_route_allocate()
101 if (dma_spec->args[0] > dmamux->dmamux_requests) { in stm32_dmamux_route_allocate()
103 dma_spec->args[0]); in stm32_dmamux_route_allocate()
133 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", i - 1); in stm32_dmamux_route_allocate()
134 if (!dma_spec->np) { in stm32_dmamux_route_allocate()
149 mux->request = dma_spec->args[0]; in stm32_dmamux_route_allocate()
152 dma_spec->args[3] = dma_spec->args[2] | mux->chan_id << 16; in stm32_dmamux_route_allocate()
153 dma_spec in stm32_dmamux_route_allocate()
[all...]
H A Dfsl-edma-main.c98 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument
107 if (dma_spec->args_count != 2) in fsl_edma_xlate()
114 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate()
119 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
131 static struct dma_chan *fsl_edma3_xlate(struct of_phandle_args *dma_spec, in fsl_edma3_xlate() argument
140 if (dma_spec->args_count != 3) in fsl_edma3_xlate()
155 fsl_chan->priority = dma_spec->args[1]; in fsl_edma3_xlate()
156 fsl_chan->is_rxchan = dma_spec->args[2] & FSL_EDMA_RX; in fsl_edma3_xlate()
157 fsl_chan->is_remote = dma_spec->args[2] & FSL_EDMA_REMOTE; in fsl_edma3_xlate()
158 fsl_chan->is_multi_fifo = dma_spec in fsl_edma3_xlate()
[all...]
H A Dst_fdma.c166 static struct dma_chan *st_fdma_of_xlate(struct of_phandle_args *dma_spec, in st_fdma_of_xlate() argument
174 if (dma_spec->args_count < 1) in st_fdma_of_xlate()
177 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate()
192 fchan->cfg.of_node = dma_spec->np; in st_fdma_of_xlate()
193 fchan->cfg.req_line = dma_spec->args[0]; in st_fdma_of_xlate()
197 if (dma_spec->args_count > 1) in st_fdma_of_xlate()
198 fchan->cfg.req_ctrl = dma_spec->args[1] in st_fdma_of_xlate()
201 if (dma_spec->args_count > 2) in st_fdma_of_xlate()
202 fchan->cfg.type = dma_spec->args[2]; in st_fdma_of_xlate()
/kernel/linux/linux-6.6/drivers/dma/dw/
H A Dof.c16 static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec, in dw_dma_of_xlate() argument
25 if (dma_spec->args_count < 3 || dma_spec->args_count > 4) in dw_dma_of_xlate()
28 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate()
29 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate()
30 slave.m_master = dma_spec->args[1]; in dw_dma_of_xlate()
31 slave.p_master = dma_spec->args[2]; in dw_dma_of_xlate()
32 if (dma_spec->args_count >= 4) in dw_dma_of_xlate()
33 slave.channels = dma_spec->args[3]; in dw_dma_of_xlate()
H A Drzn1-dmamux.c41 static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec, in rzn1_dmamux_route_allocate() argument
51 if (dma_spec->args_count != RNZ1_DMAMUX_NCELLS) in rzn1_dmamux_route_allocate()
58 chan = dma_spec->args[0]; in rzn1_dmamux_route_allocate()
59 map->req_idx = dma_spec->args[4]; in rzn1_dmamux_route_allocate()
60 val = dma_spec->args[5]; in rzn1_dmamux_route_allocate()
61 dma_spec->args_count -= 2; in rzn1_dmamux_route_allocate()
77 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", dmac_idx); in rzn1_dmamux_route_allocate()
78 if (!dma_spec->np) { in rzn1_dmamux_route_allocate()
H A Dacpi.c11 struct acpi_dma_spec *dma_spec = param; in dw_dma_acpi_filter() local
13 .dma_dev = dma_spec->dev, in dw_dma_acpi_filter()
14 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter()
15 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
/kernel/linux/linux-5.10/drivers/dma/ti/
H A Ddma-crossbar.c76 static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, in ti_am335x_xbar_route_allocate() argument
83 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate()
86 if (dma_spec->args[2] >= xbar->xbar_events) { in ti_am335x_xbar_route_allocate()
88 dma_spec->args[2]); in ti_am335x_xbar_route_allocate()
92 if (dma_spec->args[0] >= xbar->dma_requests) { in ti_am335x_xbar_route_allocate()
94 dma_spec->args[0]); in ti_am335x_xbar_route_allocate()
99 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in ti_am335x_xbar_route_allocate()
100 if (!dma_spec->np) { in ti_am335x_xbar_route_allocate()
107 of_node_put(dma_spec->np); in ti_am335x_xbar_route_allocate()
111 map->dma_line = (u16)dma_spec in ti_am335x_xbar_route_allocate()
238 ti_dra7_xbar_route_allocate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) ti_dra7_xbar_route_allocate() argument
[all...]
H A Dk3-psil.c70 struct of_phandle_args dma_spec; in psil_set_new_ep_config() local
82 index, &dma_spec)) in psil_set_new_ep_config()
85 thread_id = dma_spec.args[0]; in psil_set_new_ep_config()
91 of_node_put(dma_spec.np); in psil_set_new_ep_config()
97 of_node_put(dma_spec.np); in psil_set_new_ep_config()
/kernel/linux/linux-6.6/drivers/dma/ti/
H A Ddma-crossbar.c77 static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, in ti_am335x_xbar_route_allocate() argument
84 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate()
87 if (dma_spec->args[2] >= xbar->xbar_events) { in ti_am335x_xbar_route_allocate()
89 dma_spec->args[2]); in ti_am335x_xbar_route_allocate()
93 if (dma_spec->args[0] >= xbar->dma_requests) { in ti_am335x_xbar_route_allocate()
95 dma_spec->args[0]); in ti_am335x_xbar_route_allocate()
100 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in ti_am335x_xbar_route_allocate()
101 if (!dma_spec->np) { in ti_am335x_xbar_route_allocate()
108 of_node_put(dma_spec->np); in ti_am335x_xbar_route_allocate()
112 map->dma_line = (u16)dma_spec in ti_am335x_xbar_route_allocate()
239 ti_dra7_xbar_route_allocate(struct of_phandle_args *dma_spec, struct of_dma *ofdma) ti_dra7_xbar_route_allocate() argument
[all...]
H A Dk3-psil.c76 struct of_phandle_args dma_spec; in psil_set_new_ep_config() local
88 index, &dma_spec)) in psil_set_new_ep_config()
91 thread_id = dma_spec.args[0]; in psil_set_new_ep_config()
97 of_node_put(dma_spec.np); in psil_set_new_ep_config()
103 of_node_put(dma_spec.np); in psil_set_new_ep_config()
/kernel/linux/linux-5.10/drivers/dma/dw/
H A Dof.c16 static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec, in dw_dma_of_xlate() argument
25 if (dma_spec->args_count < 3 || dma_spec->args_count > 4) in dw_dma_of_xlate()
28 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate()
29 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate()
30 slave.m_master = dma_spec->args[1]; in dw_dma_of_xlate()
31 slave.p_master = dma_spec->args[2]; in dw_dma_of_xlate()
32 if (dma_spec->args_count >= 4) in dw_dma_of_xlate()
33 slave.channels = dma_spec->args[3]; in dw_dma_of_xlate()
H A Dacpi.c11 struct acpi_dma_spec *dma_spec = param; in dw_dma_acpi_filter() local
13 .dma_dev = dma_spec->dev, in dw_dma_acpi_filter()
14 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter()
15 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
/kernel/linux/linux-5.10/include/linux/
H A Dof_dma.h49 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
51 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
83 static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() argument
/kernel/linux/linux-6.6/include/linux/
H A Dof_dma.h49 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
51 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
83 static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() argument
/kernel/linux/linux-5.10/drivers/dma/sh/
H A Dshdma-of.c19 static struct dma_chan *shdma_of_xlate(struct of_phandle_args *dma_spec, in shdma_of_xlate() argument
22 u32 id = dma_spec->args[0]; in shdma_of_xlate()
26 if (dma_spec->args_count != 1) in shdma_of_xlate()
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dmmci_qcom_dml.c101 struct of_phandle_args dma_spec; in of_get_dml_pipe_index() local
109 &dma_spec)) in of_get_dml_pipe_index()
112 if (dma_spec.args_count) in of_get_dml_pipe_index()
113 return dma_spec.args[0]; in of_get_dml_pipe_index()
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dmmci_qcom_dml.c101 struct of_phandle_args dma_spec; in of_get_dml_pipe_index() local
109 &dma_spec)) in of_get_dml_pipe_index()
112 if (dma_spec.args_count) in of_get_dml_pipe_index()
113 return dma_spec.args[0]; in of_get_dml_pipe_index()

Completed in 11 milliseconds

12345