Home
last modified time | relevance | path

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

123

/linux-6.1.9/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] | mux->chan_id << 16; 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()
Ddma-jz4780.c806 static struct dma_chan *jz4780_of_dma_xlate(struct of_phandle_args *dma_spec, in jz4780_of_dma_xlate() argument
813 if (dma_spec->args_count == 2) { in jz4780_of_dma_xlate()
814 data.transfer_type_tx = dma_spec->args[0]; in jz4780_of_dma_xlate()
815 data.transfer_type_rx = dma_spec->args[0]; in jz4780_of_dma_xlate()
816 data.channel = dma_spec->args[1]; in jz4780_of_dma_xlate()
817 } else if (dma_spec->args_count == 3) { in jz4780_of_dma_xlate()
818 data.transfer_type_tx = dma_spec->args[0]; in jz4780_of_dma_xlate()
819 data.transfer_type_rx = dma_spec->args[1]; in jz4780_of_dma_xlate()
820 data.channel = dma_spec->args[2]; in jz4780_of_dma_xlate()
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()
Dmoxart-dma.c153 struct of_phandle_args *dma_spec; member
329 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate() argument
341 ch->line_reqno = dma_spec->args[0]; in moxart_of_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()
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.c1628 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
1638 if (dma_spec->args_count != 2) in at_dma_xlate()
1641 dmac_pdev = of_find_device_by_node(dma_spec->np); in at_dma_xlate()
1659 per_id = dma_spec->args[1] & AT91_DMA_CFG_PER_ID_MASK; in at_dma_xlate()
1667 switch (dma_spec->args[1] & AT91_DMA_CFG_FIFOCFG_MASK) { in at_dma_xlate()
1688 atchan->per_if = dma_spec->args[0] & 0xff; in at_dma_xlate()
1689 atchan->mem_if = (dma_spec->args[0] >> 16) & 0xff; in at_dma_xlate()
1694 static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec, in at_dma_xlate() argument
Duniphier-xdmac.c466 static struct dma_chan *of_dma_uniphier_xlate(struct of_phandle_args *dma_spec, in of_dma_uniphier_xlate() argument
470 int chan_id = dma_spec->args[0]; in of_dma_uniphier_xlate()
476 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()
/linux-6.1.9/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.c73 struct of_phandle_args dma_spec; in psil_set_new_ep_config() local
85 index, &dma_spec)) in psil_set_new_ep_config()
88 thread_id = dma_spec.args[0]; in psil_set_new_ep_config()
94 of_node_put(dma_spec.np); in psil_set_new_ep_config()
100 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-6.1.9/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()
Drzn1-dmamux.c39 static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec, in rzn1_dmamux_route_allocate() argument
49 if (dma_spec->args_count != RNZ1_DMAMUX_NCELLS) in rzn1_dmamux_route_allocate()
56 chan = dma_spec->args[0]; in rzn1_dmamux_route_allocate()
57 map->req_idx = dma_spec->args[4]; in rzn1_dmamux_route_allocate()
58 val = dma_spec->args[5]; in rzn1_dmamux_route_allocate()
59 dma_spec->args_count -= 2; in rzn1_dmamux_route_allocate()
75 dma_spec->np = of_parse_phandle(ofdma->of_node, "dma-masters", dmac_idx); in rzn1_dmamux_route_allocate()
76 if (!dma_spec->np) { in rzn1_dmamux_route_allocate()
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-6.1.9/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-6.1.9/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-6.1.9/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.c724 struct of_phandle_args *dma_spec = arg; in rz_dmac_chan_filter() local
727 channel->mid_rid = dma_spec->args[0] & MID_RID_MASK; in rz_dmac_chan_filter()
728 ch_cfg = (dma_spec->args[0] & CHCFG_MASK) >> 10; in rz_dmac_chan_filter()
735 static struct dma_chan *rz_dmac_of_xlate(struct of_phandle_args *dma_spec, in rz_dmac_of_xlate() argument
740 if (dma_spec->args_count != 1) in rz_dmac_of_xlate()
747 return dma_request_channel(mask, rz_dmac_chan_filter, dma_spec); in rz_dmac_of_xlate()
/linux-6.1.9/drivers/dma/qcom/
Dqcom_adm.c718 static struct dma_chan *adm_dma_xlate(struct of_phandle_args *dma_spec, in adm_dma_xlate() argument
725 if (!dev || dma_spec->args_count > 2) in adm_dma_xlate()
729 if (chan->chan_id == dma_spec->args[0]) { in adm_dma_xlate()
738 if (dma_spec->args_count == 2) in adm_dma_xlate()
739 achan->crci = dma_spec->args[1]; in adm_dma_xlate()

123