Home
last modified time | relevance | path

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

/linux-4.4.14/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()
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
263 if (of_dma_match_channel(np, name, i, &dma_spec)) in of_dma_request_slave_channel()
267 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
[all …]
Dacpi-dma.c289 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec() argument
292 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
299 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec()
300 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
307 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
313 struct acpi_dma_spec dma_spec; member
331 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
332 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma()
352 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 …]
Dlpc18xx-dmamux.c55 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 …]
Dti-dma-crossbar.c69 static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, in ti_am335x_xbar_route_allocate() argument
76 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate()
79 if (dma_spec->args[2] >= xbar->xbar_events) { in ti_am335x_xbar_route_allocate()
81 dma_spec->args[2]); in ti_am335x_xbar_route_allocate()
85 if (dma_spec->args[0] >= xbar->dma_requests) { in ti_am335x_xbar_route_allocate()
87 dma_spec->args[0]); in ti_am335x_xbar_route_allocate()
92 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in ti_am335x_xbar_route_allocate()
93 if (!dma_spec->np) { in ti_am335x_xbar_route_allocate()
100 of_node_put(dma_spec->np); in ti_am335x_xbar_route_allocate()
104 map->dma_line = (u16)dma_spec->args[0]; in ti_am335x_xbar_route_allocate()
[all …]
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()
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()
Ddma-jz4780.c705 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument
712 if (dma_spec->args_count != 2) in jz4780_of_dma_xlate()
716 data.transfer_type = dma_spec->args[0]; in jz4780_of_dma_xlate()
717 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
Dmmp_tdma.c596 struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument
603 if (dma_spec->args_count != 1) in mmp_tdma_xlate()
607 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
Dat_hdmac.c1798 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
1808 if (dma_spec->args_count != 2) in at_dma_xlate()
1811 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate()
1825 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate()
1833 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate()
1851 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate()
1852 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate()
1857 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
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()
Dedma.c2067 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument
2075 if (!ecc || dma_spec->args_count < 1) in of_edma_xlate()
2080 if (echan->ch_num == dma_spec->args[0]) { in of_edma_xlate()
2089 if (echan->ecc->legacy_mode && dma_spec->args_count == 1) in of_edma_xlate()
2092 if (!echan->ecc->legacy_mode && dma_spec->args_count == 2 && in of_edma_xlate()
2093 dma_spec->args[1] < echan->ecc->num_tc) { in of_edma_xlate()
2094 echan->tc = &echan->ecc->tc_list[dma_spec->args[1]]; in of_edma_xlate()
2111 static struct dma_chan *of_edma_xlate(struct of_phandle_args *dma_spec, in of_edma_xlate() argument
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()
Dimx-sdma.c1628 static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec, in sdma_xlate() argument
1635 if (dma_spec->args_count != 3) in sdma_xlate()
1638 data.dma_request = dma_spec->args[0]; in sdma_xlate()
1639 data.peripheral_type = dma_spec->args[1]; in sdma_xlate()
1640 data.priority = dma_spec->args[2]; in sdma_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()
Dsun4i-dma.c911 static struct dma_chan *sun4i_dma_of_xlate(struct of_phandle_args *dma_spec, in sun4i_dma_of_xlate() argument
917 u8 is_dedicated = dma_spec->args[0]; in sun4i_dma_of_xlate()
918 u8 endpoint = dma_spec->args[1]; in sun4i_dma_of_xlate()
Dat_xdmac.c512 static struct dma_chan *at_xdmac_xlate(struct of_phandle_args *dma_spec, in at_xdmac_xlate() argument
520 if (dma_spec->args_count != 1) { in at_xdmac_xlate()
532 atchan->memif = AT91_XDMAC_DT_GET_MEM_IF(dma_spec->args[0]); in at_xdmac_xlate()
533 atchan->perif = AT91_XDMAC_DT_GET_PER_IF(dma_spec->args[0]); in at_xdmac_xlate()
534 atchan->perid = AT91_XDMAC_DT_GET_PERID(dma_spec->args[0]); in at_xdmac_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()
Damba-pl08x.c2049 static struct dma_chan *pl08x_of_xlate(struct of_phandle_args *dma_spec, in pl08x_of_xlate() argument
2060 if (dma_spec->args_count != 2) in pl08x_of_xlate()
2063 dma_chan = pl08x_find_chan_id(pl08x, dma_spec->args[0]); in pl08x_of_xlate()
2074 data->periph_buses = dma_spec->args[1]; in pl08x_of_xlate()
2081 chan->signal = dma_spec->args[0]; in pl08x_of_xlate()
Dk3dma.c657 static struct dma_chan *k3_of_dma_simple_xlate(struct of_phandle_args *dma_spec, in k3_of_dma_simple_xlate() argument
661 unsigned int request = dma_spec->args[0]; in k3_of_dma_simple_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()
Dmmp_pdma.c981 static struct dma_chan *mmp_pdma_dma_xlate(struct of_phandle_args *dma_spec, in mmp_pdma_dma_xlate() argument
991 to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0]; in mmp_pdma_dma_xlate()
Dzx296702_dma.c734 static struct dma_chan *zx_of_dma_simple_xlate(struct of_phandle_args *dma_spec, in zx_of_dma_simple_xlate() argument
738 unsigned int request = dma_spec->args[0]; in zx_of_dma_simple_xlate()
Dpxa_dma.c1330 static struct dma_chan *pxad_dma_xlate(struct of_phandle_args *dma_spec, in pxad_dma_xlate() argument
1340 to_pxad_chan(chan)->drcmr = dma_spec->args[0]; in pxad_dma_xlate()
1341 to_pxad_chan(chan)->prio = dma_spec->args[1]; in pxad_dma_xlate()
Dsirf-dma.c831 static struct dma_chan *of_dma_sirfsoc_xlate(struct of_phandle_args *dma_spec, in of_dma_sirfsoc_xlate() argument
835 unsigned int request = dma_spec->args[0]; in of_dma_sirfsoc_xlate()
Dtegra20-apb-dma.c1240 static struct dma_chan *tegra_dma_of_xlate(struct of_phandle_args *dma_spec, in tegra_dma_of_xlate() argument
1252 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate()
Dpl330.c2057 static struct dma_chan *of_dma_pl330_xlate(struct of_phandle_args *dma_spec, in of_dma_pl330_xlate() argument
2060 int count = dma_spec->args_count; in of_dma_pl330_xlate()
2070 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.4.14/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.4.14/arch/arm/plat-pxa/
Dssp.c132 struct of_phandle_args dma_spec; in pxa_ssp_probe() local
144 0, &dma_spec); in pxa_ssp_probe()
150 ssp->drcmr_rx = dma_spec.args[0]; in pxa_ssp_probe()
151 of_node_put(dma_spec.np); in pxa_ssp_probe()
155 1, &dma_spec); in pxa_ssp_probe()
160 ssp->drcmr_tx = dma_spec.args[0]; in pxa_ssp_probe()
161 of_node_put(dma_spec.np); in pxa_ssp_probe()
/linux-4.4.14/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.c1435 struct of_phandle_args *dma_spec = arg; in rcar_dmac_chan_filter() local
1445 dma_spec->np != chan->device->dev->of_node) in rcar_dmac_chan_filter()
1448 return !test_and_set_bit(dma_spec->args[0], dmac->modules); in rcar_dmac_chan_filter()
1451 static struct dma_chan *rcar_dmac_of_xlate(struct of_phandle_args *dma_spec, in rcar_dmac_of_xlate() argument
1458 if (dma_spec->args_count != 1) in rcar_dmac_of_xlate()
1465 chan = dma_request_channel(mask, rcar_dmac_chan_filter, dma_spec); in rcar_dmac_of_xlate()
1470 rchan->mid_rid = dma_spec->args[0]; in rcar_dmac_of_xlate()
/linux-4.4.14/include/linux/
Dof_dma.h52 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
54 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
86 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.4.14/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.4.14/sound/soc/davinci/
Ddavinci-mcasp.c1553 struct of_phandle_args dma_spec; in davinci_mcasp_set_pdata_from_of() local
1609 &dma_spec); in davinci_mcasp_set_pdata_from_of()
1613 pdata->tx_dma_channel = dma_spec.args[0]; in davinci_mcasp_set_pdata_from_of()
1622 &dma_spec); in davinci_mcasp_set_pdata_from_of()
1626 pdata->rx_dma_channel = dma_spec.args[0]; in davinci_mcasp_set_pdata_from_of()
/linux-4.4.14/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()
/linux-4.4.14/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,