/linux-4.1.27/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->full_name); in of_dma_find_controller() 124 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument 135 dma_spec)) in of_dma_match_channel() 151 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local 174 if (of_dma_match_channel(np, name, i, &dma_spec)) in of_dma_request_slave_channel() 178 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel() 181 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel() 189 of_node_put(dma_spec.np); in of_dma_request_slave_channel() [all …]
|
D | acpi-dma.c | 290 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec() argument 293 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec() 300 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec() 301 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec() 308 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec() 314 struct acpi_dma_spec dma_spec; member 332 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma() 333 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma() 353 struct acpi_dma_spec *dma_spec = &pdata.dma_spec; in acpi_dma_request_slave_chan_by_index() local 371 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index() [all …]
|
D | dma-jz4780.c | 688 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument 695 if (dma_spec->args_count != 2) in jz4780_of_dma_xlate() 698 data.transfer_type = dma_spec->args[0]; in jz4780_of_dma_xlate() 699 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
|
D | img-mdc-dma.c | 773 static struct dma_chan *mdc_of_xlate(struct of_phandle_args *dma_spec, in mdc_of_xlate() argument 779 if (dma_spec->args_count != 3) in mdc_of_xlate() 785 if (!(dma_spec->args[1] & BIT(mchan->chan_nr))) in mdc_of_xlate() 788 mchan->periph = dma_spec->args[0]; in mdc_of_xlate() 789 mchan->thread = dma_spec->args[2]; in mdc_of_xlate()
|
D | at_hdmac.c | 1465 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument 1475 if (dma_spec->args_count != 2) in at_dma_xlate() 1478 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate() 1492 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate() 1500 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate() 1518 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate() 1519 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate() 1524 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
|
D | moxart-dma.c | 155 struct of_phandle_args *dma_spec; member 331 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate() argument 343 ch->line_reqno = dma_spec->args[0]; in moxart_of_xlate()
|
D | mmp_tdma.c | 597 struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument 604 if (dma_spec->args_count != 1) in mmp_tdma_xlate() 608 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
|
D | nbpfaxi.c | 1072 static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec, in nbpf_of_xlate() argument 1079 if (dma_spec->args_count != 2) in nbpf_of_xlate() 1087 dma_spec->np->name); in nbpf_of_xlate() 1091 chan->terminal = dma_spec->args[0]; in nbpf_of_xlate() 1092 chan->flags = dma_spec->args[1]; in nbpf_of_xlate()
|
D | mxs-dma.c | 752 static struct dma_chan *mxs_dma_xlate(struct of_phandle_args *dma_spec, in mxs_dma_xlate() argument 759 if (dma_spec->args_count != 1) in mxs_dma_xlate() 763 param.chan_id = dma_spec->args[0]; in mxs_dma_xlate()
|
D | imx-sdma.c | 1434 static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec, in sdma_xlate() argument 1441 if (dma_spec->args_count != 3) in sdma_xlate() 1444 data.dma_request = dma_spec->args[0]; in sdma_xlate() 1445 data.peripheral_type = dma_spec->args[1]; in sdma_xlate() 1446 data.priority = dma_spec->args[2]; in sdma_xlate()
|
D | fsl-edma.c | 733 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument 740 if (dma_spec->args_count != 2) in fsl_edma_xlate() 747 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate() 752 dma_spec->args[1], true); in fsl_edma_xlate()
|
D | at_xdmac.c | 469 static struct dma_chan *at_xdmac_xlate(struct of_phandle_args *dma_spec, in at_xdmac_xlate() argument 477 if (dma_spec->args_count != 1) { in at_xdmac_xlate() 489 atchan->memif = AT91_XDMAC_DT_GET_MEM_IF(dma_spec->args[0]); in at_xdmac_xlate() 490 atchan->perif = AT91_XDMAC_DT_GET_PER_IF(dma_spec->args[0]); in at_xdmac_xlate() 491 atchan->perid = AT91_XDMAC_DT_GET_PERID(dma_spec->args[0]); in at_xdmac_xlate()
|
D | qcom_bam_dma.c | 1000 static struct dma_chan *bam_dma_xlate(struct of_phandle_args *dma_spec, in bam_dma_xlate() argument 1007 if (dma_spec->args_count != 1) in bam_dma_xlate() 1010 request = dma_spec->args[0]; in bam_dma_xlate()
|
D | cppi41.c | 867 static struct dma_chan *cppi41_dma_xlate(struct of_phandle_args *dma_spec, in cppi41_dma_xlate() argument 870 int count = dma_spec->args_count; in cppi41_dma_xlate() 880 &dma_spec->args[0]); in cppi41_dma_xlate()
|
D | imx-dma.c | 1032 static struct dma_chan *imxdma_xlate(struct of_phandle_args *dma_spec, in imxdma_xlate() argument 1035 int count = dma_spec->args_count; in imxdma_xlate() 1044 fdata.request = dma_spec->args[0]; in imxdma_xlate()
|
D | sirf-dma.c | 631 static struct dma_chan *of_dma_sirfsoc_xlate(struct of_phandle_args *dma_spec, in of_dma_sirfsoc_xlate() argument 635 unsigned int request = dma_spec->args[0]; in of_dma_sirfsoc_xlate()
|
D | k3dma.c | 658 static struct dma_chan *k3_of_dma_simple_xlate(struct of_phandle_args *dma_spec, in k3_of_dma_simple_xlate() argument 662 unsigned int request = dma_spec->args[0]; in k3_of_dma_simple_xlate()
|
D | mmp_pdma.c | 982 static struct dma_chan *mmp_pdma_dma_xlate(struct of_phandle_args *dma_spec, in mmp_pdma_dma_xlate() argument 992 to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0]; in mmp_pdma_dma_xlate()
|
D | sun6i-dma.c | 812 static struct dma_chan *sun6i_dma_of_xlate(struct of_phandle_args *dma_spec, in sun6i_dma_of_xlate() argument 818 u8 port = dma_spec->args[0]; in sun6i_dma_of_xlate()
|
D | tegra20-apb-dma.c | 1229 static struct dma_chan *tegra_dma_of_xlate(struct of_phandle_args *dma_spec, in tegra_dma_of_xlate() argument 1241 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate()
|
D | pl330.c | 2054 static struct dma_chan *of_dma_pl330_xlate(struct of_phandle_args *dma_spec, in of_dma_pl330_xlate() argument 2057 int count = dma_spec->args_count; in of_dma_pl330_xlate() 2067 chan_id = dma_spec->args[0]; in of_dma_pl330_xlate()
|
D | ste_dma40.c | 2370 static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, in d40_xlate() argument 2382 cfg.dev_type = dma_spec->args[0]; in d40_xlate() 2383 flags = dma_spec->args[2]; in d40_xlate() 2402 cfg.phy_channel = dma_spec->args[1]; in d40_xlate()
|
D | coh901318.c | 1794 static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec, in coh901318_xlate() argument 1799 .ch_nr = dma_spec->args[0], in coh901318_xlate()
|
/linux-4.1.27/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.src_master = dma_spec->args[1]; in dw_dma_of_xlate() 46 slave.dst_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-4.1.27/arch/arm/plat-pxa/ |
D | ssp.c | 133 struct of_phandle_args dma_spec; in pxa_ssp_probe() local 145 0, &dma_spec); in pxa_ssp_probe() 151 ssp->drcmr_rx = dma_spec.args[0]; in pxa_ssp_probe() 152 of_node_put(dma_spec.np); in pxa_ssp_probe() 156 1, &dma_spec); in pxa_ssp_probe() 161 ssp->drcmr_tx = dma_spec.args[0]; in pxa_ssp_probe() 162 of_node_put(dma_spec.np); in pxa_ssp_probe()
|
/linux-4.1.27/include/linux/ |
D | of_dma.h | 42 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, 44 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, 65 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-4.1.27/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 | 637 struct of_phandle_args *dma_spec = arg; in usb_dmac_chan_filter() local 639 if (dma_spec->np != chan->device->dev->of_node) in usb_dmac_chan_filter() 643 if (uchan->index != dma_spec->args[0]) in usb_dmac_chan_filter() 649 static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, in usb_dmac_of_xlate() argument 656 if (dma_spec->args_count != 1) in usb_dmac_of_xlate() 663 chan = dma_request_channel(mask, usb_dmac_chan_filter, dma_spec); in usb_dmac_of_xlate()
|
D | rcar-dmac.c | 1430 struct of_phandle_args *dma_spec = arg; in rcar_dmac_chan_filter() local 1440 dma_spec->np != chan->device->dev->of_node) in rcar_dmac_chan_filter() 1443 return !test_and_set_bit(dma_spec->args[0], dmac->modules); in rcar_dmac_chan_filter() 1446 static struct dma_chan *rcar_dmac_of_xlate(struct of_phandle_args *dma_spec, in rcar_dmac_of_xlate() argument 1453 if (dma_spec->args_count != 1) in rcar_dmac_of_xlate() 1460 chan = dma_request_channel(mask, rcar_dmac_chan_filter, dma_spec); in rcar_dmac_of_xlate() 1465 rchan->mid_rid = dma_spec->args[0]; in rcar_dmac_of_xlate()
|
/linux-4.1.27/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()
|
/linux-4.1.27/arch/arm/common/ |
D | edma.c | 573 struct of_phandle_args dma_spec; in prepare_unused_channel_list() local 582 &dma_spec)) in prepare_unused_channel_list() 585 if (!of_match_node(edma_of_ids, dma_spec.np)) { in prepare_unused_channel_list() 586 of_node_put(dma_spec.np); in prepare_unused_channel_list() 590 clear_bit(EDMA_CHAN_SLOT(dma_spec.args[0]), in prepare_unused_channel_list() 592 of_node_put(dma_spec.np); in prepare_unused_channel_list()
|
/linux-4.1.27/sound/soc/davinci/ |
D | davinci-mcasp.c | 1456 struct of_phandle_args dma_spec; in davinci_mcasp_set_pdata_from_of() local 1512 &dma_spec); in davinci_mcasp_set_pdata_from_of() 1516 pdata->tx_dma_channel = dma_spec.args[0]; in davinci_mcasp_set_pdata_from_of() 1525 &dma_spec); in davinci_mcasp_set_pdata_from_of() 1529 pdata->rx_dma_channel = dma_spec.args[0]; in davinci_mcasp_set_pdata_from_of()
|
/linux-4.1.27/Documentation/acpi/ |
D | enumeration.txt | 91 static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec, 102 static struct dma_chan *xlate_func(struct acpi_dma_spec *dma_spec,
|
/linux-4.1.27/drivers/dma/xilinx/ |
D | xilinx_vdma.c | 1219 static struct dma_chan *of_dma_xilinx_xlate(struct of_phandle_args *dma_spec, in of_dma_xilinx_xlate() argument 1223 int chan_id = dma_spec->args[0]; in of_dma_xilinx_xlate()
|