Home
last modified time | relevance | path

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

12345678910>>...13

/u-boot/drivers/dma/
A Ddma-uclass.c30 static int dma_of_xlate_default(struct dma *dma, in dma_of_xlate_default() argument
43 dma->id = 0; in dma_of_xlate_default()
57 assert(dma); in dma_get_by_index()
58 dma->dev = NULL; in dma_get_by_index()
108 int dma_request(struct udevice *dev, struct dma *dma) in dma_request() argument
114 dma->dev = dev; in dma_request()
122 int dma_free(struct dma *dma) in dma_free() argument
134 int dma_enable(struct dma *dma) in dma_enable() argument
146 int dma_disable(struct dma *dma) in dma_disable() argument
170 int dma_receive(struct dma *dma, void **dst, void *metadata) in dma_receive() argument
[all …]
A Dsandbox-dma-test.c49 static int sandbox_dma_of_xlate(struct dma *dma, in sandbox_dma_of_xlate() argument
60 dma->id = args->args[0]; in sandbox_dma_of_xlate()
64 if (dma->id == 1) in sandbox_dma_of_xlate()
66 else if (dma->id == 2) in sandbox_dma_of_xlate()
75 static int sandbox_dma_request(struct dma *dma) in sandbox_dma_request() argument
93 static int sandbox_dma_rfree(struct dma *dma) in sandbox_dma_rfree() argument
113 static int sandbox_dma_enable(struct dma *dma) in sandbox_dma_enable() argument
133 static int sandbox_dma_disable(struct dma *dma) in sandbox_dma_disable() argument
153 static int sandbox_dma_send(struct dma *dma, in sandbox_dma_send() argument
186 static int sandbox_dma_receive(struct dma *dma, void **dst, void *metadata) in sandbox_dma_receive() argument
[all …]
A Dlpc32xx_dma.c74 writel(0, &dma->config); in lpc32xx_dma_get_channel()
75 writel(0, &dma->sync); in lpc32xx_dma_get_channel()
78 writel(0xFF, &dma->int_tc_clear); in lpc32xx_dma_get_channel()
79 writel(0xFF, &dma->raw_tc_stat); in lpc32xx_dma_get_channel()
80 writel(0xFF, &dma->int_err_clear); in lpc32xx_dma_get_channel()
81 writel(0xFF, &dma->raw_err_stat); in lpc32xx_dma_get_channel()
84 writel(DMAC_CTRL_ENABLE, &dma->config); in lpc32xx_dma_get_channel()
104 writel(BIT_MASK(channel), &dma->int_tc_clear); in lpc32xx_dma_start_xfer()
105 writel(BIT_MASK(channel), &dma->int_err_clear); in lpc32xx_dma_start_xfer()
128 reg = readl(&dma->raw_tc_stat); in lpc32xx_dma_wait_status()
[all …]
A Dfsl_dma.c64 volatile fsl_dma_t *dma = &dma_base->dma[0]; in dma_check() local
69 status = in_dma32(&dma->sr); in dma_check()
73 out_dma32(&dma->mr, in_dma32(&dma->mr) & ~FSL_DMA_MR_CS); in dma_check()
84 volatile fsl_dma_t *dma = &dma_base->dma[0]; in dma_init() local
86 out_dma32(&dma->satr, FSL_DMA_SATR_SREAD_SNOOP); in dma_init()
94 volatile fsl_dma_t *dma = &dma_base->dma[0]; in dmacpy() local
101 out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF)); in dmacpy()
103 out_dma32(&dma->satr, in dmacpy()
105 out_dma32(&dma->datr, in dmacpy()
108 out_dma32(&dma->bcr, xfer_size); in dmacpy()
[all …]
A Dbcm6348-iudma.c189 static int bcm6348_iudma_disable(struct dma *dma) in bcm6348_iudma_disable() argument
213 static int bcm6348_iudma_enable(struct dma *dma) in bcm6348_iudma_enable() argument
284 static int bcm6348_iudma_request(struct dma *dma) in bcm6348_iudma_request() argument
290 if (dma->id >= priv->n_channels) in bcm6348_iudma_request()
295 if (!priv->ch_priv[dma->id]) in bcm6348_iudma_request()
297 ch_priv = priv->ch_priv[dma->id]; in bcm6348_iudma_request()
325 static int bcm6348_iudma_receive(struct dma *dma, void **dst, void *metadata) in bcm6348_iudma_receive() argument
373 static int bcm6348_iudma_send(struct dma *dma, void *src, size_t len, in bcm6348_iudma_send() argument
425 static int bcm6348_iudma_free_rcv_buf(struct dma *dma, void *dst, size_t size) in bcm6348_iudma_free_rcv_buf() argument
478 static int bcm6348_iudma_add_rcv_buf(struct dma *dma, void *dst, size_t size) in bcm6348_iudma_add_rcv_buf() argument
[all …]
/u-boot/include/
A Ddma.h159 struct dma { struct
184 int dma_get_by_index(struct udevice *dev, int index, struct dma *dma);
204 struct dma *dma) in dma_get_by_index() argument
210 struct dma *dma) in dma_get_by_name() argument
230 int dma_request(struct udevice *dev, struct dma *dma);
239 int dma_free(struct dma *dma);
248 int dma_enable(struct dma *dma);
257 int dma_disable(struct dma *dma);
271 int dma_prepare_rcv_buf(struct dma *dma, void *dst, size_t size);
283 int dma_receive(struct dma *dma, void **dst, void *metadata);
[all …]
A Ddma-uclass.h44 int (*of_xlate)(struct dma *dma,
59 int (*request)(struct dma *dma);
68 int (*rfree)(struct dma *dma);
75 int (*enable)(struct dma *dma);
82 int (*disable)(struct dma *dma);
91 int (*prepare_rcv_buf)(struct dma *dma, void *dst, size_t size);
100 int (*receive)(struct dma *dma, void **dst, void *metadata);
110 int (*send)(struct dma *dma, void *src, size_t len, void *metadata);
121 int (*get_cfg)(struct dma *dma, u32 cfg_id, void **data);
/u-boot/arch/powerpc/dts/
A Delo3-dma-0.dtsi8 dma0: dma@100300 {
11 compatible = "fsl,elo3-dma";
15 dma-channel@0 {
16 compatible = "fsl,eloplus-dma-channel";
20 dma-channel@80 {
25 dma-channel@100 {
30 dma-channel@180 {
35 dma-channel@300 {
40 dma-channel@380 {
45 dma-channel@400 {
[all …]
A Delo3-dma-1.dtsi8 dma1: dma@101300 {
11 compatible = "fsl,elo3-dma";
15 dma-channel@0 {
16 compatible = "fsl,eloplus-dma-channel";
20 dma-channel@80 {
25 dma-channel@100 {
30 dma-channel@180 {
35 dma-channel@300 {
40 dma-channel@380 {
45 dma-channel@400 {
[all …]
A Dkm8321.dtsi64 dma@82a8 {
67 compatible = "fsl,mpc8321-dma", "fsl,elo-dma";
73 dma-channel@0 {
74 compatible = "fsl,mpc8321-dma-channel",
75 "fsl,elo-dma-channel";
80 dma-channel@80 {
82 "fsl,elo-dma-channel";
87 dma-channel@100 {
89 "fsl,elo-dma-channel";
94 dma-channel@180 {
[all …]
/u-boot/drivers/net/
A Dbcm-sf2-eth-gmac.c196 bufp = dma->tx_buf; in dma_tx_init()
249 bufp = dma->rx_buf; in dma_rx_init()
285 dma_tx_init(dma); in dma_init()
286 dma_rx_init(dma); in dma_init()
303 free(dma->tx_buf); in dma_deinit()
304 dma->tx_buf = NULL; in dma_deinit()
308 free(dma->rx_buf); in dma_deinit()
309 dma->rx_buf = NULL; in dma_deinit()
778 struct eth_dma *dma = &(eth->dma); in gmac_mac_init() local
896 dma_deinit(dma); in gmac_mac_init()
[all …]
A Dbcm-sf2-eth.c37 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_init() local
49 dma->disable_dma(dma, MAC_DMA_RX); in bcm_sf2_eth_init()
50 dma->disable_dma(dma, MAC_DMA_TX); in bcm_sf2_eth_init()
83 rc = dma->tx_packet(dma, buf, length); in bcm_sf2_eth_send()
89 while (!(dma->check_tx_done(dma))) { in bcm_sf2_eth_send()
153 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_open() local
161 dma->enable_dma(dma, MAC_DMA_RX); in bcm_sf2_eth_open()
162 dma->enable_dma(dma, MAC_DMA_TX); in bcm_sf2_eth_open()
192 struct eth_dma *dma = &(eth->dma); in bcm_sf2_eth_close() local
195 dma->disable_dma(dma, MAC_DMA_RX); in bcm_sf2_eth_close()
[all …]
A Dbcm-sf2-eth.h37 int (*tx_packet)(struct eth_dma *dma, void *packet, int length);
38 bool (*check_tx_done)(struct eth_dma *dma);
40 int (*check_rx_done)(struct eth_dma *dma, uint8_t *buf);
42 int (*enable_dma)(struct eth_dma *dma, int dir);
43 int (*disable_dma)(struct eth_dma *dma, int dir);
47 struct eth_dma dma; member
/u-boot/doc/device-tree-bindings/net/
A Dfsl,mcf-dma-fec.txt4 - compatible: should be "fsl,mcf-dma-fec"
6 - rx-task: dma channel
7 - tx-task: dma channel
8 - rx-priority: dma channel
9 - tx-priority: dma channel
10 - rx-init: dma channel
11 - tx-init: dma channel
23 compatible = "fsl,mcf-dma-fec";
/u-boot/arch/arm/dts/
A Dk3-j721e-som-p0.dtsi30 compatible = "shared-dma-pool";
36 compatible = "shared-dma-pool";
42 compatible = "shared-dma-pool";
48 compatible = "shared-dma-pool";
54 compatible = "shared-dma-pool";
60 compatible = "shared-dma-pool";
66 compatible = "shared-dma-pool";
72 compatible = "shared-dma-pool";
78 compatible = "shared-dma-pool";
84 compatible = "shared-dma-pool";
[all …]
A Dste-dbx5x0.dtsi526 dma: dma-controller@801C0000 { label
532 #dma-cells = <3>;
751 dma-names = "rx", "tx";
767 dma-names = "rx", "tx";
784 dma-names = "rx", "tx";
801 dma-names = "rx", "tx";
818 dma-names = "rx", "tx";
835 dma-names = "rx", "tx";
848 dma-names = "rx", "tx";
1011 dma-names = "tx";
[all …]
A Dr8a774b1.dtsi737 #dma-cells = <1>;
738 dma-channels = <2>;
751 #dma-cells = <1>;
752 dma-channels = <2>;
798 #dma-cells = <1>;
840 #dma-cells = <1>;
882 #dma-cells = <1>;
1636 dma-names = "tx";
1640 dma-names = "tx";
1997 #dma-cells = <1>;
[all …]
A Dr8a77965.dtsi689 #dma-cells = <1>;
690 dma-channels = <2>;
703 #dma-cells = <1>;
704 dma-channels = <2>;
750 #dma-cells = <1>;
792 #dma-cells = <1>;
834 #dma-cells = <1>;
1594 dma-names = "tx";
1598 dma-names = "tx";
1966 #dma-cells = <1>;
[all …]
A Dr8a77960.dtsi834 #dma-cells = <1>;
835 dma-channels = <2>;
848 #dma-cells = <1>;
849 dma-channels = <2>;
895 #dma-cells = <1>;
937 #dma-cells = <1>;
979 #dma-cells = <1>;
1878 dma-names = "tx";
1882 dma-names = "tx";
2239 #dma-cells = <1>;
[all …]
A Dzynqmp.dtsi390 * These dma channels, Users should ensure that these dma
729 /* dma-coherent; */
973 dma-channels = <6>;
974 #dma-cells = <1>;
975 dma-video0channel {
978 dma-video1channel {
981 dma-video2channel {
987 dma-audio0channel {
990 dma-audio1channel {
1035 dma-names = "tx";
[all …]
/u-boot/arch/mips/dts/
A Dbrcm,bcm6338.dtsi7 #include <dt-bindings/dma/bcm6338-dma.h>
135 iudma: dma-controller@fffe2400 {
140 reg-names = "dma",
141 "dma-channels",
142 "dma-sram";
143 #dma-cells = <1>;
144 dma-channels = <6>;
157 dma-names = "rx",
A Dbrcm,bcm6348.dtsi7 #include <dt-bindings/dma/bcm6348-dma.h>
171 dma-names = "rx",
184 dma-names = "rx",
190 iudma: dma-controller@fffe7000 {
195 reg-names = "dma",
196 "dma-channels",
197 "dma-sram";
198 #dma-cells = <1>;
199 dma-channels = <4>;
/u-boot/drivers/usb/musb-new/
A Dmusb_gadget.c101 if (dma->is_compatible) in map_dma_buffer()
102 compatible = dma->is_compatible(musb_ep->dma, in map_dma_buffer()
119 request->request.dma, in map_dma_buffer()
142 request->request.dma, in unmap_dma_buffer()
150 request->request.dma, in unmap_dma_buffer()
251 ep->dma = NULL; in nuke()
508 dma = is_dma_capable() ? musb_ep->dma : NULL; in musb_g_tx()
790 request->dma in rxstate()
839 request->dma in rxstate()
935 dma = is_dma_capable() ? musb_ep->dma : NULL; in musb_g_rx()
[all …]
A Dmusb_host.c1120 struct dma_channel *dma; in musb_host_tx() local
1135 dma ? ", dma" : ""); in musb_host_tx()
1263 if (dma) in musb_host_tx()
1393 struct dma_channel *dma; in musb_bulk_rx_nak_timeout() local
1416 dma->actual_len = 0L; in musb_bulk_rx_nak_timeout()
1476 dma ? dma->actual_len : 0); in musb_host_rx()
1644 if (dma) { in musb_host_rx()
1747 dma, qh->maxpacket, in musb_host_rx()
1753 dma = NULL; in musb_host_rx()
1763 if (!dma) { in musb_host_rx()
[all …]
/u-boot/drivers/dma/ti/
A Dk3-udma.c1521 static int udma_request(struct dma *dma) in udma_request() argument
1530 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_request()
1563 static int udma_rfree(struct dma *dma) in udma_rfree() argument
1569 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_rfree()
1583 static int udma_enable(struct dma *dma) in udma_enable() argument
1590 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_enable()
1600 static int udma_disable(struct dma *dma) in udma_disable() argument
1607 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_disable()
1635 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_send()
1691 dev_err(dma->dev, "invalid dma ch_id %lu\n", dma->id); in udma_receive()
[all …]

Completed in 71 milliseconds

12345678910>>...13