Home
last modified time | relevance | path

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

/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
170 if (of_dma_match_channel(np, name, i, &dma_spec)) in of_dma_request_slave_channel()
174 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
177 chan = ofdma->of_dma_xlate(&dma_spec, ofdma); in of_dma_request_slave_channel()
185 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 …]
Dat_hdmac.c1251 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
1261 if (dma_spec->args_count != 2) in at_dma_xlate()
1264 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate()
1278 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate()
1286 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate()
1304 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate()
1305 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate()
1310 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
Dmmp_tdma.c574 struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument
581 if (dma_spec->args_count != 1) in mmp_tdma_xlate()
585 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
Dmoxart-dma.c155 struct of_phandle_args *dma_spec; member
351 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate() argument
363 ch->line_reqno = dma_spec->args[0]; in moxart_of_xlate()
Dnbpfaxi.c1087 static struct dma_chan *nbpf_of_xlate(struct of_phandle_args *dma_spec, in nbpf_of_xlate() argument
1094 if (dma_spec->args_count != 2) in nbpf_of_xlate()
1102 dma_spec->np->name); in nbpf_of_xlate()
1106 chan->terminal = dma_spec->args[0]; in nbpf_of_xlate()
1107 chan->flags = dma_spec->args[1]; in nbpf_of_xlate()
Dimx-sdma.c1435 static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec, in sdma_xlate() argument
1442 if (dma_spec->args_count != 3) in sdma_xlate()
1445 data.dma_request = dma_spec->args[0]; in sdma_xlate()
1446 data.peripheral_type = dma_spec->args[1]; in sdma_xlate()
1447 data.priority = dma_spec->args[2]; in sdma_xlate()
Dmxs-dma.c767 static struct dma_chan *mxs_dma_xlate(struct of_phandle_args *dma_spec, in mxs_dma_xlate() argument
774 if (dma_spec->args_count != 1) in mxs_dma_xlate()
778 param.chan_id = dma_spec->args[0]; in mxs_dma_xlate()
Dfsl-edma.c723 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument
730 if (dma_spec->args_count != 2) in fsl_edma_xlate()
737 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate()
742 dma_spec->args[1], true); in fsl_edma_xlate()
Dqcom_bam_dma.c893 static struct dma_chan *bam_dma_xlate(struct of_phandle_args *dma_spec, in bam_dma_xlate() argument
900 if (dma_spec->args_count != 1) in bam_dma_xlate()
903 request = dma_spec->args[0]; in bam_dma_xlate()
Dcppi41.c890 static struct dma_chan *cppi41_dma_xlate(struct of_phandle_args *dma_spec, in cppi41_dma_xlate() argument
893 int count = dma_spec->args_count; in cppi41_dma_xlate()
903 &dma_spec->args[0]); in cppi41_dma_xlate()
Dimx-dma.c1039 static struct dma_chan *imxdma_xlate(struct of_phandle_args *dma_spec, in imxdma_xlate() argument
1042 int count = dma_spec->args_count; in imxdma_xlate()
1051 fdata.request = dma_spec->args[0]; in imxdma_xlate()
Dk3dma.c649 static struct dma_chan *k3_of_dma_simple_xlate(struct of_phandle_args *dma_spec, in k3_of_dma_simple_xlate() argument
653 unsigned int request = dma_spec->args[0]; in k3_of_dma_simple_xlate()
Dsirf-dma.c663 static struct dma_chan *of_dma_sirfsoc_xlate(struct of_phandle_args *dma_spec, in of_dma_sirfsoc_xlate() argument
667 unsigned int request = dma_spec->args[0]; in of_dma_sirfsoc_xlate()
Dsun6i-dma.c810 static struct dma_chan *sun6i_dma_of_xlate(struct of_phandle_args *dma_spec, in sun6i_dma_of_xlate() argument
816 u8 port = dma_spec->args[0]; in sun6i_dma_of_xlate()
Dmmp_pdma.c977 static struct dma_chan *mmp_pdma_dma_xlate(struct of_phandle_args *dma_spec, in mmp_pdma_dma_xlate() argument
987 to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0]; in mmp_pdma_dma_xlate()
Dtegra20-apb-dma.c1247 static struct dma_chan *tegra_dma_of_xlate(struct of_phandle_args *dma_spec, in tegra_dma_of_xlate() argument
1259 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate()
Dpl330.c2021 static struct dma_chan *of_dma_pl330_xlate(struct of_phandle_args *dma_spec, in of_dma_pl330_xlate() argument
2024 int count = dma_spec->args_count; in of_dma_pl330_xlate()
2034 chan_id = dma_spec->args[0]; in of_dma_pl330_xlate()
Dste_dma40.c2358 static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, in d40_xlate() argument
2370 cfg.dev_type = dma_spec->args[0]; in d40_xlate()
2371 flags = dma_spec->args[2]; in d40_xlate()
2390 cfg.phy_channel = dma_spec->args[1]; in d40_xlate()
Dcoh901318.c1792 static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec, in coh901318_xlate() argument
1797 .ch_nr = dma_spec->args[0], in coh901318_xlate()
/drivers/dma/dw/
Dplatform.c30 static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec, in dw_dma_of_xlate() argument
39 if (dma_spec->args_count != 3) in dw_dma_of_xlate()
42 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate()
43 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate()
44 slave.src_master = dma_spec->args[1]; in dw_dma_of_xlate()
45 slave.dst_master = dma_spec->args[2]; in dw_dma_of_xlate()
63 struct acpi_dma_spec *dma_spec = param; in dw_dma_acpi_filter() local
65 .dma_dev = dma_spec->dev, in dw_dma_acpi_filter()
66 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter()
67 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
/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()
/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()
Drcar-audmapp.c267 static struct dma_chan *audmapp_of_xlate(struct of_phandle_args *dma_spec, in audmapp_of_xlate() argument
272 u32 chcr = dma_spec->args[0]; in audmapp_of_xlate()
274 if (dma_spec->args_count != 1) in audmapp_of_xlate()
/drivers/dma/xilinx/
Dxilinx_vdma.c1231 static struct dma_chan *of_dma_xilinx_xlate(struct of_phandle_args *dma_spec, in of_dma_xilinx_xlate() argument
1235 int chan_id = dma_spec->args[0]; in of_dma_xilinx_xlate()