/Linux-v4.19/drivers/dma/ |
D | of-dma.c | 33 static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec) in of_dma_find_controller() argument 38 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller() 42 dma_spec->np); in of_dma_find_controller() 56 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate() argument 65 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate() 213 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument 224 dma_spec)) in of_dma_match_channel() 240 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local 271 &dma_spec)) in of_dma_request_slave_channel() 275 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel() [all …]
|
D | acpi-dma.c | 292 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec() argument 295 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec() 302 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec() 303 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec() 310 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec() 316 struct acpi_dma_spec dma_spec; member 334 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma() 335 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma() 355 struct acpi_dma_spec *dma_spec = &pdata.dma_spec; in acpi_dma_request_slave_chan_by_index() local 374 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index() [all …]
|
D | lpc18xx-dmamux.c | 55 static void *lpc18xx_dmamux_reserve(struct of_phandle_args *dma_spec, in lpc18xx_dmamux_reserve() argument 63 if (dma_spec->args_count != 3) { in lpc18xx_dmamux_reserve() 68 mux = dma_spec->args[0]; in lpc18xx_dmamux_reserve() 71 dma_spec->args[0]); in lpc18xx_dmamux_reserve() 75 if (dma_spec->args[1] > LPC18XX_DMAMUX_MAX_VAL) { in lpc18xx_dmamux_reserve() 77 dma_spec->args[1]); in lpc18xx_dmamux_reserve() 82 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in lpc18xx_dmamux_reserve() 83 if (!dma_spec->np) { in lpc18xx_dmamux_reserve() 93 of_node_put(dma_spec->np); in lpc18xx_dmamux_reserve() 98 dmamux->muxes[mux].value = dma_spec->args[1]; in lpc18xx_dmamux_reserve() [all …]
|
D | stm32-dmamux.c | 93 static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, in stm32_dmamux_route_allocate() argument 103 if (dma_spec->args_count != 3) { in stm32_dmamux_route_allocate() 108 if (dma_spec->args[0] > dmamux->dmamux_requests) { in stm32_dmamux_route_allocate() 110 dma_spec->args[0]); in stm32_dmamux_route_allocate() 140 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", i - 1); in stm32_dmamux_route_allocate() 141 if (!dma_spec->np) { in stm32_dmamux_route_allocate() 159 mux->request = dma_spec->args[0]; in stm32_dmamux_route_allocate() 162 dma_spec->args[3] = dma_spec->args[2]; in stm32_dmamux_route_allocate() 163 dma_spec->args[2] = dma_spec->args[1]; in stm32_dmamux_route_allocate() 164 dma_spec->args[1] = 0; in stm32_dmamux_route_allocate() [all …]
|
D | st_fdma.c | 169 static struct dma_chan *st_fdma_of_xlate(struct of_phandle_args *dma_spec, in st_fdma_of_xlate() argument 177 if (dma_spec->args_count < 1) in st_fdma_of_xlate() 180 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate() 195 fchan->cfg.of_node = dma_spec->np; in st_fdma_of_xlate() 196 fchan->cfg.req_line = dma_spec->args[0]; in st_fdma_of_xlate() 200 if (dma_spec->args_count > 1) in st_fdma_of_xlate() 201 fchan->cfg.req_ctrl = dma_spec->args[1] in st_fdma_of_xlate() 204 if (dma_spec->args_count > 2) in st_fdma_of_xlate() 205 fchan->cfg.type = dma_spec->args[2]; in st_fdma_of_xlate()
|
D | img-mdc-dma.c | 811 static struct dma_chan *mdc_of_xlate(struct of_phandle_args *dma_spec, in mdc_of_xlate() argument 817 if (dma_spec->args_count != 3) in mdc_of_xlate() 823 if (!(dma_spec->args[1] & BIT(mchan->chan_nr))) in mdc_of_xlate() 826 mchan->periph = dma_spec->args[0]; in mdc_of_xlate() 827 mchan->thread = dma_spec->args[2]; in mdc_of_xlate()
|
D | dma-jz4780.c | 716 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument 723 if (dma_spec->args_count != 2) in jz4780_of_dma_xlate() 727 data.transfer_type = dma_spec->args[0]; in jz4780_of_dma_xlate() 728 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
|
D | at_hdmac.c | 1660 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument 1670 if (dma_spec->args_count != 2) in at_dma_xlate() 1673 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate() 1687 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate() 1695 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate() 1713 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate() 1714 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate() 1719 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
|
D | mmp_tdma.c | 593 static struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument 600 if (dma_spec->args_count != 1) in mmp_tdma_xlate() 604 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
|
D | moxart-dma.c | 156 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()
|
D | stm32-dma.c | 1175 static struct dma_chan *stm32_dma_of_xlate(struct of_phandle_args *dma_spec, in stm32_dma_of_xlate() argument 1184 if (dma_spec->args_count < 4) { in stm32_dma_of_xlate() 1189 cfg.channel_id = dma_spec->args[0]; in stm32_dma_of_xlate() 1190 cfg.request_line = dma_spec->args[1]; in stm32_dma_of_xlate() 1191 cfg.stream_config = dma_spec->args[2]; in stm32_dma_of_xlate() 1192 cfg.features = dma_spec->args[3]; in stm32_dma_of_xlate()
|
D | tegra210-adma.c | 607 static struct dma_chan *tegra_dma_of_xlate(struct of_phandle_args *dma_spec, in tegra_dma_of_xlate() argument 615 if (dma_spec->args_count != 1) in tegra_dma_of_xlate() 618 sreq_index = dma_spec->args[0]; in tegra_dma_of_xlate()
|
D | stm32-mdma.c | 1493 static struct dma_chan *stm32_mdma_of_xlate(struct of_phandle_args *dma_spec, in stm32_mdma_of_xlate() argument 1501 if (dma_spec->args_count < 5) { in stm32_mdma_of_xlate() 1506 config.request = dma_spec->args[0]; in stm32_mdma_of_xlate() 1507 config.priority_level = dma_spec->args[1]; in stm32_mdma_of_xlate() 1508 config.transfer_config = dma_spec->args[2]; in stm32_mdma_of_xlate() 1509 config.mask_addr = dma_spec->args[3]; in stm32_mdma_of_xlate() 1510 config.mask_data = dma_spec->args[4]; in stm32_mdma_of_xlate()
|
D | mxs-dma.c | 745 static struct dma_chan *mxs_dma_xlate(struct of_phandle_args *dma_spec, in mxs_dma_xlate() argument 752 if (dma_spec->args_count != 1) in mxs_dma_xlate() 756 param.chan_id = dma_spec->args[0]; in mxs_dma_xlate()
|
D | nbpfaxi.c | 1084 static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec, in nbpf_of_xlate() argument 1091 if (dma_spec->args_count != 2) in nbpf_of_xlate() 1099 dma_spec->np->name); in nbpf_of_xlate() 1103 chan->terminal = dma_spec->args[0]; in nbpf_of_xlate() 1104 chan->flags = dma_spec->args[1]; in nbpf_of_xlate()
|
D | fsl-edma.c | 752 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument 760 if (dma_spec->args_count != 2) in fsl_edma_xlate() 767 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate() 772 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
|
/Linux-v4.19/drivers/dma/ti/ |
D | dma-crossbar.c | 80 static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, in ti_am335x_xbar_route_allocate() argument 87 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate() 90 if (dma_spec->args[2] >= xbar->xbar_events) { in ti_am335x_xbar_route_allocate() 92 dma_spec->args[2]); in ti_am335x_xbar_route_allocate() 96 if (dma_spec->args[0] >= xbar->dma_requests) { in ti_am335x_xbar_route_allocate() 98 dma_spec->args[0]); in ti_am335x_xbar_route_allocate() 103 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in ti_am335x_xbar_route_allocate() 104 if (!dma_spec->np) { in ti_am335x_xbar_route_allocate() 111 of_node_put(dma_spec->np); in ti_am335x_xbar_route_allocate() 115 map->dma_line = (u16)dma_spec->args[0]; in ti_am335x_xbar_route_allocate() [all …]
|
D | edma.c | 2137 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument 2145 if (!ecc || dma_spec->args_count < 1) in of_edma_xlate() 2150 if (echan->ch_num == dma_spec->args[0]) { in of_edma_xlate() 2159 if (echan->ecc->legacy_mode && dma_spec->args_count == 1) in of_edma_xlate() 2162 if (!echan->ecc->legacy_mode && dma_spec->args_count == 2 && in of_edma_xlate() 2163 dma_spec->args[1] < echan->ecc->num_tc) { in of_edma_xlate() 2164 echan->tc = &echan->ecc->tc_list[dma_spec->args[1]]; in of_edma_xlate() 2181 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument
|
/Linux-v4.19/drivers/dma/dw/ |
D | platform.c | 31 static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec, in dw_dma_of_xlate() argument 40 if (dma_spec->args_count != 3) in dw_dma_of_xlate() 43 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate() 44 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate() 45 slave.m_master = dma_spec->args[1]; in dw_dma_of_xlate() 46 slave.p_master = dma_spec->args[2]; in dw_dma_of_xlate() 64 struct acpi_dma_spec *dma_spec = param; in dw_dma_acpi_filter() local 66 .dma_dev = dma_spec->dev, in dw_dma_acpi_filter() 67 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter() 68 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
|
/Linux-v4.19/drivers/dma/sh/ |
D | shdma-of.c | 22 static struct dma_chan *shdma_of_xlate(struct of_phandle_args *dma_spec, in shdma_of_xlate() argument 25 u32 id = dma_spec->args[0]; in shdma_of_xlate() 29 if (dma_spec->args_count != 1) in shdma_of_xlate()
|
D | usb-dmac.c | 640 struct of_phandle_args *dma_spec = arg; in usb_dmac_chan_filter() local 642 if (dma_spec->np != chan->device->dev->of_node) in usb_dmac_chan_filter() 646 if (uchan->index != dma_spec->args[0]) in usb_dmac_chan_filter() 652 static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, in usb_dmac_of_xlate() argument 658 if (dma_spec->args_count != 1) in usb_dmac_of_xlate() 665 chan = dma_request_channel(mask, usb_dmac_chan_filter, dma_spec); in usb_dmac_of_xlate()
|
D | rcar-dmac.c | 1625 struct of_phandle_args *dma_spec = arg; in rcar_dmac_chan_filter() local 1635 dma_spec->np != chan->device->dev->of_node) in rcar_dmac_chan_filter() 1638 return !test_and_set_bit(dma_spec->args[0], dmac->modules); in rcar_dmac_chan_filter() 1641 static struct dma_chan *rcar_dmac_of_xlate(struct of_phandle_args *dma_spec, in rcar_dmac_of_xlate() argument 1648 if (dma_spec->args_count != 1) in rcar_dmac_of_xlate() 1655 chan = dma_request_channel(mask, rcar_dmac_chan_filter, dma_spec); in rcar_dmac_of_xlate() 1660 rchan->mid_rid = dma_spec->args[0]; in rcar_dmac_of_xlate()
|
/Linux-v4.19/include/linux/ |
D | of_dma.h | 49 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
|
D | acpi_dma.h | 78 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
|
/Linux-v4.19/drivers/mmc/host/ |
D | mmci_qcom_dml.c | 104 struct of_phandle_args dma_spec; in of_get_dml_pipe_index() local 112 &dma_spec)) in of_get_dml_pipe_index() 115 if (dma_spec.args_count) in of_get_dml_pipe_index() 116 return dma_spec.args[0]; in of_get_dml_pipe_index()
|