Home
last modified time | relevance | path

Searched refs:dma_spec (Results 1 – 25 of 48) sorted by relevance

12

/Linux-v5.4/drivers/dma/
Dof-dma.c30 static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec) in of_dma_find_controller() argument
35 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
39 dma_spec->np); in of_dma_find_controller()
53 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate() argument
62 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate()
210 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument
221 dma_spec)) in of_dma_match_channel()
237 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local
268 &dma_spec)) in of_dma_request_slave_channel()
272 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
[all …]
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->args[1]; in lpc18xx_dmamux_reserve()
[all …]
Dacpi-dma.c297 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec() argument
300 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
307 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
308 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
315 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
321 struct acpi_dma_spec dma_spec; member
339 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
340 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma()
360 struct acpi_dma_spec *dma_spec = &pdata.dma_spec; in acpi_dma_request_slave_chan_by_index() local
379 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index()
[all …]
Dstm32-dmamux.c82 static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, in stm32_dmamux_route_allocate() argument
92 if (dma_spec->args_count != 3) { in stm32_dmamux_route_allocate()
97 if (dma_spec->args[0] > dmamux->dmamux_requests) { in stm32_dmamux_route_allocate()
99 dma_spec->args[0]); in stm32_dmamux_route_allocate()
129 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", i - 1); in stm32_dmamux_route_allocate()
130 if (!dma_spec->np) { in stm32_dmamux_route_allocate()
145 mux->request = dma_spec->args[0]; in stm32_dmamux_route_allocate()
148 dma_spec->args[3] = dma_spec->args[2]; in stm32_dmamux_route_allocate()
149 dma_spec->args[2] = dma_spec->args[1]; in stm32_dmamux_route_allocate()
150 dma_spec->args[1] = 0; in stm32_dmamux_route_allocate()
[all …]
Dst_fdma.c165 static struct dma_chan *st_fdma_of_xlate(struct of_phandle_args *dma_spec, in st_fdma_of_xlate() argument
173 if (dma_spec->args_count < 1) in st_fdma_of_xlate()
176 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate()
191 fchan->cfg.of_node = dma_spec->np; in st_fdma_of_xlate()
192 fchan->cfg.req_line = dma_spec->args[0]; in st_fdma_of_xlate()
196 if (dma_spec->args_count > 1) in st_fdma_of_xlate()
197 fchan->cfg.req_ctrl = dma_spec->args[1] in st_fdma_of_xlate()
200 if (dma_spec->args_count > 2) in st_fdma_of_xlate()
201 fchan->cfg.type = dma_spec->args[2]; in st_fdma_of_xlate()
Dfsl-edma.c96 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument
105 if (dma_spec->args_count != 2) in fsl_edma_xlate()
112 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate()
117 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
Dimg-mdc-dma.c808 static struct dma_chan *mdc_of_xlate(struct of_phandle_args *dma_spec, in mdc_of_xlate() argument
814 if (dma_spec->args_count != 3) in mdc_of_xlate()
820 if (!(dma_spec->args[1] & BIT(mchan->chan_nr))) in mdc_of_xlate()
823 mchan->periph = dma_spec->args[0]; in mdc_of_xlate()
824 mchan->thread = dma_spec->args[2]; in mdc_of_xlate()
Dat_hdmac.c1656 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
1666 if (dma_spec->args_count != 2) in at_dma_xlate()
1669 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate()
1683 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate()
1691 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate()
1709 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate()
1710 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate()
1715 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
Dmmp_tdma.c598 static struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument
605 if (dma_spec->args_count != 1) in mmp_tdma_xlate()
608 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
Dmoxart-dma.c156 struct of_phandle_args *dma_spec; member
332 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate() argument
344 ch->line_reqno = dma_spec->args[0]; in moxart_of_xlate()
Dstm32-dma.c1227 static struct dma_chan *stm32_dma_of_xlate(struct of_phandle_args *dma_spec, in stm32_dma_of_xlate() argument
1236 if (dma_spec->args_count < 4) { in stm32_dma_of_xlate()
1241 cfg.channel_id = dma_spec->args[0]; in stm32_dma_of_xlate()
1242 cfg.request_line = dma_spec->args[1]; in stm32_dma_of_xlate()
1243 cfg.stream_config = dma_spec->args[2]; in stm32_dma_of_xlate()
1244 cfg.features = dma_spec->args[3]; in stm32_dma_of_xlate()
Ddma-jz4780.c795 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument
802 if (dma_spec->args_count != 2) in jz4780_of_dma_xlate()
805 data.transfer_type = dma_spec->args[0]; in jz4780_of_dma_xlate()
806 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
Dstm32-mdma.c1481 static struct dma_chan *stm32_mdma_of_xlate(struct of_phandle_args *dma_spec, in stm32_mdma_of_xlate() argument
1489 if (dma_spec->args_count < 5) { in stm32_mdma_of_xlate()
1494 config.request = dma_spec->args[0]; in stm32_mdma_of_xlate()
1495 config.priority_level = dma_spec->args[1]; in stm32_mdma_of_xlate()
1496 config.transfer_config = dma_spec->args[2]; in stm32_mdma_of_xlate()
1497 config.mask_addr = dma_spec->args[3]; in stm32_mdma_of_xlate()
1498 config.mask_data = dma_spec->args[4]; in stm32_mdma_of_xlate()
Dmxs-dma.c744 static struct dma_chan *mxs_dma_xlate(struct of_phandle_args *dma_spec, in mxs_dma_xlate() argument
751 if (dma_spec->args_count != 1) in mxs_dma_xlate()
754 param.chan_id = dma_spec->args[0]; in mxs_dma_xlate()
Dnbpfaxi.c1081 static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec, in nbpf_of_xlate() argument
1088 if (dma_spec->args_count != 2) in nbpf_of_xlate()
1096 dma_spec->np); in nbpf_of_xlate()
1100 chan->terminal = dma_spec->args[0]; in nbpf_of_xlate()
1101 chan->flags = dma_spec->args[1]; in nbpf_of_xlate()
/Linux-v5.4/drivers/dma/ti/
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->args[0]; in ti_am335x_xbar_route_allocate()
[all …]
Dedma.c2195 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument
2203 if (!ecc || dma_spec->args_count < 1) in of_edma_xlate()
2208 if (echan->ch_num == dma_spec->args[0]) { in of_edma_xlate()
2217 if (echan->ecc->legacy_mode && dma_spec->args_count == 1) in of_edma_xlate()
2220 if (!echan->ecc->legacy_mode && dma_spec->args_count == 2 && in of_edma_xlate()
2221 dma_spec->args[1] < echan->ecc->num_tc) { in of_edma_xlate()
2222 echan->tc = &echan->ecc->tc_list[dma_spec->args[1]]; in of_edma_xlate()
2239 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument
/Linux-v5.4/drivers/dma/dw/
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()
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) 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()
/Linux-v5.4/drivers/dma/sh/
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()
Dusb-dmac.c637 struct of_phandle_args *dma_spec = arg; in usb_dmac_chan_filter() local
640 if (uchan->index != dma_spec->args[0]) in usb_dmac_chan_filter()
646 static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, in usb_dmac_of_xlate() argument
652 if (dma_spec->args_count != 1) in usb_dmac_of_xlate()
659 chan = __dma_request_channel(&mask, usb_dmac_chan_filter, dma_spec, in usb_dmac_of_xlate()
Drcar-dmac.c1653 struct of_phandle_args *dma_spec = arg; in rcar_dmac_chan_filter() local
1665 return !test_and_set_bit(dma_spec->args[0], dmac->modules); in rcar_dmac_chan_filter()
1668 static struct dma_chan *rcar_dmac_of_xlate(struct of_phandle_args *dma_spec, in rcar_dmac_of_xlate() argument
1675 if (dma_spec->args_count != 1) in rcar_dmac_of_xlate()
1682 chan = __dma_request_channel(&mask, rcar_dmac_chan_filter, dma_spec, in rcar_dmac_of_xlate()
1688 rchan->mid_rid = dma_spec->args[0]; in rcar_dmac_of_xlate()
/Linux-v5.4/include/linux/
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
Dacpi_dma.h75 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
/Linux-v5.4/drivers/mmc/host/
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()

12