Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/dma/
Dof-dma.c33 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 …]
Dacpi-dma.c290 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 …]
Ddma-jz4780.c688 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()
Dimg-mdc-dma.c773 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()
Dat_hdmac.c1465 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
Dmoxart-dma.c155 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()
Dmmp_tdma.c597 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()
Dnbpfaxi.c1072 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()
Dmxs-dma.c752 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()
Dimx-sdma.c1434 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()
Dfsl-edma.c733 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()
Dat_xdmac.c469 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()
Dqcom_bam_dma.c1000 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()
Dcppi41.c867 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()
Dimx-dma.c1032 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()
Dsirf-dma.c631 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()
Dk3dma.c658 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()
Dmmp_pdma.c982 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()
Dsun6i-dma.c812 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()
Dtegra20-apb-dma.c1229 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()
Dpl330.c2054 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()
Dste_dma40.c2370 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()
Dcoh901318.c1794 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/
Dplatform.c31 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/
Dssp.c133 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/
Dof_dma.h42 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
Dacpi_dma.h78 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
/linux-4.1.27/drivers/dma/sh/
Dshdma-of.c22 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()
Dusb-dmac.c637 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()
Drcar-dmac.c1430 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/
Dmmci_qcom_dml.c104 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/
Dedma.c573 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/
Ddavinci-mcasp.c1456 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/
Denumeration.txt91 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/
Dxilinx_vdma.c1219 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()