Home
last modified time | relevance | path

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

123

/Linux-v5.15/drivers/dma/
Dof-dma.c32 static struct of_dma *of_dma_find_controller(struct of_phandle_args *dma_spec) in of_dma_find_controller() argument
37 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
41 dma_spec->np); in of_dma_find_controller()
55 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate() argument
64 memcpy(&dma_spec_target, dma_spec, sizeof(dma_spec_target)); in of_dma_router_xlate()
227 int index, struct of_phandle_args *dma_spec) in of_dma_match_channel() argument
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()
[all …]
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()
321 if (dma_spec->slave_id < adma->base_request_line || 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()
354 pdata->dma_spec.slave_id = dma->request_lines; 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()
[all …]
Dlpc18xx-dmamux.c51 static void *lpc18xx_dmamux_reserve(struct of_phandle_args *dma_spec, in lpc18xx_dmamux_reserve() argument
59 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()
[all …]
Dstm32-dmamux.c84 static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, in stm32_dmamux_route_allocate() argument
94 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()
[all …]
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()
Dfsl-edma.c103 static struct dma_chan *fsl_edma_xlate(struct of_phandle_args *dma_spec, in fsl_edma_xlate() argument
112 if (dma_spec->args_count != 2) in fsl_edma_xlate()
119 if ((chan->chan_id / chans_per_mux) == dma_spec->args[0]) { in fsl_edma_xlate()
124 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate()
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()
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()
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()
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
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()
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()
Dstm32-dma.c1261 static struct dma_chan *stm32_dma_of_xlate(struct of_phandle_args *dma_spec, in stm32_dma_of_xlate() argument
1270 if (dma_spec->args_count < 4) { in stm32_dma_of_xlate()
1275 cfg.channel_id = dma_spec->args[0]; in stm32_dma_of_xlate()
1276 cfg.request_line = dma_spec->args[1]; in stm32_dma_of_xlate()
1277 cfg.stream_config = dma_spec->args[2]; in stm32_dma_of_xlate()
1278 cfg.features = dma_spec->args[3]; in stm32_dma_of_xlate()
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()
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-v5.15/drivers/dma/ti/
Ddma-crossbar.c76 static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, in ti_am335x_xbar_route_allocate() argument
83 if (dma_spec->args_count != 3) in ti_am335x_xbar_route_allocate()
86 if (dma_spec->args[2] >= xbar->xbar_events) { in ti_am335x_xbar_route_allocate()
88 dma_spec->args[2]); in ti_am335x_xbar_route_allocate()
92 if (dma_spec->args[0] >= xbar->dma_requests) { in ti_am335x_xbar_route_allocate()
94 dma_spec->args[0]); in ti_am335x_xbar_route_allocate()
99 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", 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()
111 map->dma_line = (u16)dma_spec->args[0]; in ti_am335x_xbar_route_allocate()
[all …]
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()
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-v5.15/drivers/dma/dw/
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()
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-v5.15/include/linux/
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
Dacpi_dma.h75 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
/Linux-v5.15/drivers/mmc/host/
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-v5.15/drivers/dma/sh/
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()
Drz-dmac.c707 struct of_phandle_args *dma_spec = arg; in rz_dmac_chan_filter() local
710 channel->mid_rid = dma_spec->args[0] & MID_RID_MASK; in rz_dmac_chan_filter()
711 ch_cfg = (dma_spec->args[0] & CHCFG_MASK) >> 10; in rz_dmac_chan_filter()
718 static struct dma_chan *rz_dmac_of_xlate(struct of_phandle_args *dma_spec, in rz_dmac_of_xlate() argument
723 if (dma_spec->args_count != 1) in rz_dmac_of_xlate()
730 return dma_request_channel(mask, rz_dmac_chan_filter, dma_spec); in rz_dmac_of_xlate()

123