Home
last modified time | relevance | path

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

123

/linux/drivers/dma/
A Dof-dma.c37 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
41 dma_spec->np); in of_dma_find_controller()
238 dma_spec)) in of_dma_match_channel()
254 struct of_phandle_args dma_spec; in of_dma_request_slave_channel() local
285 &dma_spec)) in of_dma_request_slave_channel()
289 ofdma = of_dma_find_controller(&dma_spec); in of_dma_request_slave_channel()
300 of_node_put(dma_spec.np); in of_dma_request_slave_channel()
324 int count = dma_spec->args_count; in of_dma_simple_xlate()
334 &dma_spec->args[0], dma_spec->np); in of_dma_simple_xlate()
357 if (!dev || dma_spec->args_count != 1) in of_dma_xlate_by_chan_id()
[all …]
A Dacpi-dma.c311 struct acpi_dma_spec *dma_spec) in acpi_dma_update_dma_spec() argument
314 dma_spec->dev = adma->dev; in acpi_dma_update_dma_spec()
322 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec()
329 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec()
335 struct acpi_dma_spec dma_spec; member
353 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
374 struct acpi_dma_spec *dma_spec = &pdata.dma_spec; in acpi_dma_request_slave_chan_by_index() local
386 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index()
387 dma_spec->slave_id = -1; in acpi_dma_request_slave_chan_by_index()
396 if (dma_spec->slave_id < 0 || dma_spec->chan_id < 0) in acpi_dma_request_slave_chan_by_index()
[all …]
A Dlpc18xx-dmamux.c59 if (dma_spec->args_count != 3) { in lpc18xx_dmamux_reserve()
64 mux = dma_spec->args[0]; in lpc18xx_dmamux_reserve()
67 dma_spec->args[0]); in lpc18xx_dmamux_reserve()
71 if (dma_spec->args[1] > LPC18XX_DMAMUX_MAX_VAL) { in lpc18xx_dmamux_reserve()
73 dma_spec->args[1]); in lpc18xx_dmamux_reserve()
78 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 0); in lpc18xx_dmamux_reserve()
79 if (!dma_spec->np) { in lpc18xx_dmamux_reserve()
89 of_node_put(dma_spec->np); in lpc18xx_dmamux_reserve()
94 dmamux->muxes[mux].value = dma_spec->args[1]; in lpc18xx_dmamux_reserve()
101 dma_spec->args[1] = dma_spec->args[2]; in lpc18xx_dmamux_reserve()
[all …]
A Dstm32-dmamux.c94 if (dma_spec->args_count != 3) { in stm32_dmamux_route_allocate()
99 if (dma_spec->args[0] > dmamux->dmamux_requests) { in stm32_dmamux_route_allocate()
101 dma_spec->args[0]); in stm32_dmamux_route_allocate()
131 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", i - 1); in stm32_dmamux_route_allocate()
132 if (!dma_spec->np) { in stm32_dmamux_route_allocate()
147 mux->request = dma_spec->args[0]; in stm32_dmamux_route_allocate()
150 dma_spec->args[3] = dma_spec->args[2]; in stm32_dmamux_route_allocate()
151 dma_spec->args[2] = dma_spec->args[1]; in stm32_dmamux_route_allocate()
152 dma_spec->args[1] = 0; in stm32_dmamux_route_allocate()
153 dma_spec->args[0] = mux->chan_id - min; in stm32_dmamux_route_allocate()
[all …]
A Dst_fdma.c166 static struct dma_chan *st_fdma_of_xlate(struct of_phandle_args *dma_spec, in st_fdma_of_xlate() argument
174 if (dma_spec->args_count < 1) in st_fdma_of_xlate()
177 if (fdev->dma_device.dev->of_node != dma_spec->np) in st_fdma_of_xlate()
192 fchan->cfg.of_node = dma_spec->np; in st_fdma_of_xlate()
193 fchan->cfg.req_line = dma_spec->args[0]; in st_fdma_of_xlate()
197 if (dma_spec->args_count > 1) in st_fdma_of_xlate()
198 fchan->cfg.req_ctrl = dma_spec->args[1] in st_fdma_of_xlate()
201 if (dma_spec->args_count > 2) in st_fdma_of_xlate()
202 fchan->cfg.type = dma_spec->args[2]; in st_fdma_of_xlate()
A Dfsl-edma.c104 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument
113 if (dma_spec->args_count != 2) in fsl_edma_xlate()
120 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate()
125 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
A Dimg-mdc-dma.c808 static struct dma_chan *mdc_of_xlate(struct of_phandle_args *dma_spec, in mdc_of_xlate() argument
814 if (dma_spec->args_count != 3) in mdc_of_xlate()
820 if (!(dma_spec->args[1] & BIT(mchan->chan_nr))) in mdc_of_xlate()
823 mchan->periph = dma_spec->args[0]; in mdc_of_xlate()
824 mchan->thread = dma_spec->args[2]; in mdc_of_xlate()
A Dat_hdmac.c1658 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
1668 if (dma_spec->args_count != 2) in at_dma_xlate()
1671 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate()
1689 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate()
1697 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate()
1718 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate()
1719 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate()
1724 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
A Dmilbeaut-hdmac.c403 milbeaut_hdmac_xlate(struct of_phandle_args *dma_spec, struct of_dma *of_dma) in milbeaut_hdmac_xlate() argument
410 if (dma_spec->args_count != 1) in milbeaut_hdmac_xlate()
419 mc->slave_id = dma_spec->args[0]; in milbeaut_hdmac_xlate()
A Dmoxart-dma.c156 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()
A Duniphier-xdmac.c465 static struct dma_chan *of_dma_uniphier_xlate(struct of_phandle_args *dma_spec, in of_dma_uniphier_xlate() argument
469 int chan_id = dma_spec->args[0]; in of_dma_uniphier_xlate()
475 xdev->channels[chan_id].req_factor = dma_spec->args[1]; in of_dma_uniphier_xlate()
A Dstm32-dma.c1273 static struct dma_chan *stm32_dma_of_xlate(struct of_phandle_args *dma_spec, in stm32_dma_of_xlate() argument
1282 if (dma_spec->args_count < 4) { in stm32_dma_of_xlate()
1287 cfg.channel_id = dma_spec->args[0]; in stm32_dma_of_xlate()
1288 cfg.request_line = dma_spec->args[1]; in stm32_dma_of_xlate()
1289 cfg.stream_config = dma_spec->args[2]; in stm32_dma_of_xlate()
1290 cfg.features = dma_spec->args[3]; in stm32_dma_of_xlate()
A Dstm32-mdma.c1487 static struct dma_chan *stm32_mdma_of_xlate(struct of_phandle_args *dma_spec, in stm32_mdma_of_xlate() argument
1495 if (dma_spec->args_count < 5) { in stm32_mdma_of_xlate()
1500 config.request = dma_spec->args[0]; in stm32_mdma_of_xlate()
1501 config.priority_level = dma_spec->args[1]; in stm32_mdma_of_xlate()
1502 config.transfer_config = dma_spec->args[2]; in stm32_mdma_of_xlate()
1503 config.mask_addr = dma_spec->args[3]; in stm32_mdma_of_xlate()
1504 config.mask_data = dma_spec->args[4]; in stm32_mdma_of_xlate()
A Dmmp_tdma.c611 static struct dma_chan *mmp_tdma_xlate(struct of_phandle_args *dma_spec, in mmp_tdma_xlate() argument
618 if (dma_spec->args_count != 1) in mmp_tdma_xlate()
621 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
A Ddma-jz4780.c796 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument
803 if (dma_spec->args_count != 2) in jz4780_of_dma_xlate()
806 data.transfer_type = dma_spec->args[0]; in jz4780_of_dma_xlate()
807 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
/linux/drivers/dma/ti/
A Ddma-crossbar.c83 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate()
88 dma_spec->args[2]); in ti_am335x_xbar_route_allocate()
94 dma_spec->args[0]); in ti_am335x_xbar_route_allocate()
100 if (!dma_spec->np) { in ti_am335x_xbar_route_allocate()
107 of_node_put(dma_spec->np); in ti_am335x_xbar_route_allocate()
112 map->mux_val = (u8)dma_spec->args[2]; in ti_am335x_xbar_route_allocate()
114 dma_spec->args[2] = 0; in ti_am335x_xbar_route_allocate()
115 dma_spec->args_count = 2; in ti_am335x_xbar_route_allocate()
247 dma_spec->args[0]); in ti_dra7_xbar_route_allocate()
253 if (!dma_spec->np) { in ti_dra7_xbar_route_allocate()
[all …]
A Dk3-psil.c71 struct of_phandle_args dma_spec; in psil_set_new_ep_config() local
83 index, &dma_spec)) in psil_set_new_ep_config()
86 thread_id = dma_spec.args[0]; in psil_set_new_ep_config()
92 of_node_put(dma_spec.np); in psil_set_new_ep_config()
98 of_node_put(dma_spec.np); in psil_set_new_ep_config()
A Dk3-udma-glue.c117 struct of_phandle_args dma_spec; in of_k3_udma_glue_parse_chn() local
130 &dma_spec)) in of_k3_udma_glue_parse_chn()
133 ret = of_k3_udma_glue_parse(dma_spec.np, common); in of_k3_udma_glue_parse_chn()
137 thread_id = dma_spec.args[0]; in of_k3_udma_glue_parse_chn()
138 if (dma_spec.args_count == 2) { in of_k3_udma_glue_parse_chn()
139 if (dma_spec.args[1] > 2 && !xudma_is_pktdma(common->udmax)) { in of_k3_udma_glue_parse_chn()
141 dma_spec.args[1]); in of_k3_udma_glue_parse_chn()
145 if (dma_spec.args[1] > 15 && xudma_is_pktdma(common->udmax)) { in of_k3_udma_glue_parse_chn()
147 dma_spec.args[1]); in of_k3_udma_glue_parse_chn()
152 common->atype_asel = dma_spec.args[1]; in of_k3_udma_glue_parse_chn()
[all …]
/linux/drivers/dma/dw/
A Dof.c16 static struct dma_chan *dw_dma_of_xlate(struct of_phandle_args *dma_spec, in dw_dma_of_xlate() argument
25 if (dma_spec->args_count < 3 || dma_spec->args_count > 4) in dw_dma_of_xlate()
28 slave.src_id = dma_spec->args[0]; in dw_dma_of_xlate()
29 slave.dst_id = dma_spec->args[0]; in dw_dma_of_xlate()
30 slave.m_master = dma_spec->args[1]; in dw_dma_of_xlate()
31 slave.p_master = dma_spec->args[2]; in dw_dma_of_xlate()
32 if (dma_spec->args_count >= 4) in dw_dma_of_xlate()
33 slave.channels = dma_spec->args[3]; in dw_dma_of_xlate()
A Dacpi.c11 struct acpi_dma_spec *dma_spec = param; in dw_dma_acpi_filter() local
13 .dma_dev = dma_spec->dev, in dw_dma_acpi_filter()
14 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter()
15 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
/linux/include/linux/
A Dof_dma.h49 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
A Dacpi_dma.h75 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
/linux/drivers/mmc/host/
A Dmmci_qcom_dml.c101 struct of_phandle_args dma_spec; in of_get_dml_pipe_index() local
109 &dma_spec)) in of_get_dml_pipe_index()
112 if (dma_spec.args_count) in of_get_dml_pipe_index()
113 return dma_spec.args[0]; in of_get_dml_pipe_index()
/linux/drivers/dma/sh/
A Dusb-dmac.c639 struct of_phandle_args *dma_spec = arg; in usb_dmac_chan_filter() local
642 if (uchan->index != dma_spec->args[0]) in usb_dmac_chan_filter()
648 static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, in usb_dmac_of_xlate() argument
654 if (dma_spec->args_count != 1) in usb_dmac_of_xlate()
661 chan = __dma_request_channel(&mask, usb_dmac_chan_filter, dma_spec, in usb_dmac_of_xlate()
A Drz-dmac.c708 struct of_phandle_args *dma_spec = arg; in rz_dmac_chan_filter() local
711 channel->mid_rid = dma_spec->args[0] & MID_RID_MASK; in rz_dmac_chan_filter()
712 ch_cfg = (dma_spec->args[0] & CHCFG_MASK) >> 10; in rz_dmac_chan_filter()
719 static struct dma_chan *rz_dmac_of_xlate(struct of_phandle_args *dma_spec, in rz_dmac_of_xlate() argument
724 if (dma_spec->args_count != 1) in rz_dmac_of_xlate()
731 return dma_request_channel(mask, rz_dmac_chan_filter, dma_spec); in rz_dmac_of_xlate()

Completed in 67 milliseconds

123