/u-boot/include/ |
H A D | dma-uclass.h | 12 /* See dma.h for background documentation. */ 14 #include <dma.h> 33 * default implementation, which assumes #dma-cells = <1>, and that 40 * @dma: The dma struct to hold the translation result. 41 * @args: The dma specifier values from device tree. 44 int (*of_xlate)(struct dma *dma, 54 * @dma: The DMA struct to request; this has been filled in by 59 int (*request)(struct dma *dm [all...] |
H A D | dma.h | 19 * enum dma_direction - dma transfer direction indicator 67 * - get/request dma channel 68 * struct dma dma_tx; 72 * - enable dma channel 76 * - dma transmit DMA_MEM_TO_DEV. 88 * - get/request dma channel 89 * struct dma dma_rx; 93 * - enable dma channel 97 * - dma receive DMA_DEV_TO_MEM. 107 * - get/request dma channe 159 struct dma { struct 203 dma_get_by_index(struct udevice *dev, int index, struct dma *dma) argument 209 dma_get_by_name(struct udevice *dev, const char *name, struct dma *dma) argument [all...] |
/u-boot/drivers/dma/ |
H A D | dma-uclass.c | 21 #include <dma-uclass.h> 22 #include <linux/dma-mapping.h> 34 static int dma_of_xlate_default(struct dma *dma, argument 37 debug("%s(dma=%p)\n", __func__, dma); 45 dma->id = args->args[0]; 47 dma->id = 0; 52 int dma_get_by_index(struct udevice *dev, int index, struct dma *dma) argument 95 dma_get_by_name(struct udevice *dev, const char *name, struct dma *dma) argument 112 dma_request(struct udevice *dev, struct dma *dma) argument 126 dma_free(struct dma *dma) argument 138 dma_enable(struct dma *dma) argument 150 dma_disable(struct dma *dma) argument 162 dma_prepare_rcv_buf(struct dma *dma, void *dst, size_t size) argument 174 dma_receive(struct dma *dma, void **dst, void *metadata) argument 186 dma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 198 dma_get_cfg(struct dma *dma, u32 cfg_id, void **cfg_data) argument 264 UCLASS_DRIVER(dma) = { variable [all...] |
H A D | sandbox-dma-test.c | 15 #include <dma-uclass.h> 50 static int sandbox_dma_of_xlate(struct dma *dma, argument 53 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); 56 debug("%s(dma id=%u)\n", __func__, args->args[0]); 61 dma->id = args->args[0]; 63 uc = &ud->channels[dma->id]; 65 if (dma->id == 1) 67 else if (dma->id == 2) 71 debug("%s(dma i 76 sandbox_dma_request(struct dma *dma) argument 94 sandbox_dma_rfree(struct dma *dma) argument 114 sandbox_dma_enable(struct dma *dma) argument 134 sandbox_dma_disable(struct dma *dma) argument 154 sandbox_dma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 187 sandbox_dma_receive(struct dma *dma, void **dst, void *metadata) argument 222 sandbox_dma_prepare_rcv_buf(struct dma *dma, void *dst, size_t size) argument [all...] |
H A D | lpc32xx_dma.c | 13 #include <asm/arch/dma.h> 59 static struct dma_reg *dma = (struct dma_reg *)DMA_BASE; variable in typeref:struct:dma_reg 75 writel(0, &dma->config); 76 writel(0, &dma->sync); 79 writel(0xFF, &dma->int_tc_clear); 80 writel(0xFF, &dma->raw_tc_stat); 81 writel(0xFF, &dma->int_err_clear); 82 writel(0xFF, &dma->raw_err_stat); 85 writel(DMAC_CTRL_ENABLE, &dma->config); 105 writel(BIT_MASK(channel), &dma [all...] |
H A D | fsl_dma.c | 64 volatile fsl_dma_t *dma = &dma_base->dma[0]; local 69 status = in_dma32(&dma->sr); 73 out_dma32(&dma->mr, in_dma32(&dma->mr) & ~FSL_DMA_MR_CS); 84 volatile fsl_dma_t *dma = &dma_base->dma[0]; local 86 out_dma32(&dma->satr, FSL_DMA_SATR_SREAD_SNOOP); 87 out_dma32(&dma->datr, FSL_DMA_DATR_DWRITE_SNOOP); 88 out_dma32(&dma 94 volatile fsl_dma_t *dma = &dma_base->dma[0]; local [all...] |
H A D | xilinx_dpdma.c | 9 #include <dma.h> 10 #include <dma-uclass.h>
|
H A D | bcm6348-iudma.c | 5 * Derived from linux/drivers/dma/bcm63xx-iudma.c: 22 #include <dma-uclass.h> 169 /* try to stop dma channel */ 184 /* reset dma channel */ 190 static int bcm6348_iudma_disable(struct dma *dma) argument 192 struct bcm6348_iudma_priv *priv = dev_get_priv(dma->dev); 193 struct bcm6348_chan_priv *ch_priv = priv->ch_priv[dma->id]; 195 /* stop dma channel */ 196 bcm6348_iudma_chan_stop(priv, dma 214 bcm6348_iudma_enable(struct dma *dma) argument 285 bcm6348_iudma_request(struct dma *dma) argument 326 bcm6348_iudma_receive(struct dma *dma, void **dst, void *metadata) argument 374 bcm6348_iudma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 426 bcm6348_iudma_free_rcv_buf(struct dma *dma, void *dst, size_t size) argument 479 bcm6348_iudma_add_rcv_buf(struct dma *dma, void *dst, size_t size) argument 508 bcm6348_iudma_prepare_rcv_buf(struct dma *dma, void *dst, size_t size) argument [all...] |
H A D | Makefile | 6 obj-$(CONFIG_DMA) += dma-uclass.o 11 obj-$(CONFIG_SANDBOX_DMA) += sandbox-dma-test.o
|
/u-boot/drivers/net/ |
H A D | bcm-sf2-eth.h | 37 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 in struct:eth_info
|
H A D | bcm-sf2-eth.c | 38 struct eth_dma *dma = &(eth->dma); local 50 dma->disable_dma(dma, MAC_DMA_RX); 51 dma->disable_dma(dma, MAC_DMA_TX); 76 struct eth_dma *dma = &(((struct eth_info *)(dev->priv))->dma); local 84 rc = dma->tx_packet(dma, bu 107 struct eth_dma *dma = &(((struct eth_info *)(dev->priv))->dma); local 154 struct eth_dma *dma = &(eth->dma); local 193 struct eth_dma *dma = &(eth->dma); local [all...] |
H A D | bcm-sf2-eth-gmac.c | 40 static int gmac_disable_dma(struct eth_dma *dma, int dir); 41 static int gmac_enable_dma(struct eth_dma *dma, int dir); 100 static void dma_tx_dump(struct eth_dma *dma) argument 117 descp = (dma64dd_t *)(dma->tx_desc_aligned) + i; 126 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); 132 static void dma_rx_dump(struct eth_dma *dma) argument 149 descp = (dma64dd_t *)(dma->rx_desc_aligned) + i; 157 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; 164 static int dma_tx_init(struct eth_dma *dma) argument 174 memset((void *)(dma 216 dma_rx_init(struct eth_dma *dma) argument 269 dma_init(struct eth_dma *dma) argument 297 dma_deinit(struct eth_dma *dma) argument 317 gmac_tx_packet(struct eth_dma *dma, void *packet, int length) argument 377 gmac_check_tx_done(struct eth_dma *dma) argument 400 gmac_check_rx_done(struct eth_dma *dma, uint8_t *buf) argument 485 gmac_disable_dma(struct eth_dma *dma, int dir) argument 530 gmac_enable_dma(struct eth_dma *dma, int dir) argument 779 struct eth_dma *dma = &(eth->dma); local 904 struct eth_dma *dma = &(eth->dma); local [all...] |
/u-boot/drivers/misc/ |
H A D | qfw_pio.c | 46 static void qfw_pio_read_entry_dma(struct udevice *dev, struct qfw_dma *dma) argument 49 outl(cpu_to_be32((uintptr_t)dma), FW_DMA_PORT_HIGH); 51 while (be32_to_cpu(dma->control) & ~FW_CFG_DMA_ERROR);
|
H A D | qfw_mmio.c | 29 u64 dma; member in struct:qfw_mmio 75 static void qfw_mmio_read_entry_dma(struct udevice *dev, struct qfw_dma *dma) argument 80 plat->mmio->dma = cpu_to_be64((uintptr_t)dma); 82 while (be32_to_cpu(dma->control) & ~FW_CFG_DMA_ERROR);
|
H A D | qfw_sandbox.c | 47 static void qfw_sandbox_read_entry_dma(struct udevice *dev, struct qfw_dma *dma) argument 50 u32 control = be32_to_cpu(dma->control); 51 void *address = (void *)(uintptr_t)be64_to_cpu(dma->address); 52 u32 length = be32_to_cpu(dma->length); 104 dma->control = 0;
|
H A D | qfw.c | 40 struct qfw_dma dma = { local 51 dma.control |= cpu_to_be32(FW_CFG_DMA_SELECT | (entry << 16)); 54 entry, size, address, be32_to_cpu(dma.control)); 58 ops->read_entry_dma(qdev->dev, &dma);
|
/u-boot/arch/riscv/include/asm/ |
H A D | dma-mapping.h | 15 #include <linux/dma-direction.h>
|
/u-boot/arch/x86/include/asm/ |
H A D | dma-mapping.h | 12 #include <linux/dma-direction.h>
|
/u-boot/arch/arm/mach-at91/include/mach/ |
H A D | atmel_usba_udc.h | 12 #define EP(nam, idx, maxpkt, maxbk, dma, isoc) \ 18 .can_dma = dma, \
|
/u-boot/include/linux/ |
H A D | dma-mapping.h | 6 #include <linux/dma-direction.h> 8 #include <asm/dma-mapping.h>
|
/u-boot/arch/arm/include/asm/ |
H A D | dma-mapping.h | 12 #include <linux/dma-direction.h>
|
/u-boot/drivers/net/ti/ |
H A D | icssg_prueth.h | 16 #include <dma-uclass.h> 56 struct dma dma_tx; 57 struct dma dma_rx; 58 struct dma dma_rx_mgm;
|
/u-boot/drivers/usb/musb-new/ |
H A D | musb_gadget.c | 22 #include <linux/dma-mapping.h> 45 * to break when dma is enabled ... is something wrongly 54 * + both pio and dma behave in with network and g_zero tests 61 * + both pio and dma behave in with network and g_zero tests 62 * + dma is slow in typical case (short_not_ok is clear) 74 * + DaVinci, basically works with cppi dma 75 * + OMAP 2430, ditto with mentor dma 76 * + TUSB 6010, platform-specific dma in the works 85 /* Maps the buffer to dma */ 91 struct dma_controller *dma local 500 struct dma_channel *dma; local 919 struct dma_channel *dma; local 1302 dma_addr_t dma; member in struct:free_record [all...] |
H A D | musb_host.c | 22 #include <linux/dma-mapping.h> 288 hw_ep->tx_channel ? "dma" : "pio"); 377 struct dma_controller *dma = musb->dma_controller; local 382 dma->channel_release(ep->rx_channel); 388 dma->channel_release(ep->tx_channel); 434 * ignore dma (various models), 621 static bool musb_tx_dma_program(struct dma_controller *dma, argument 670 if (!dma->channel_program(channel, pkt_size, mode, 672 dma->channel_release(channel); 1106 /* Service a Tx-Available or dma completio 1120 struct dma_channel *dma; local 1393 struct dma_channel *dma; local 1449 struct dma_channel *dma; local 2140 struct dma_channel *dma; local [all...] |
/u-boot/test/dm/ |
H A D | dma.c | 13 #include <dma.h> 20 struct dma dma_m2m; 26 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev)); 43 struct dma dma_tx, dma_rx; 51 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev)); 85 struct dma dma_tx, dma_rx; 93 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev));
|