/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 | 20 #include <dma-uclass.h> 21 #include <linux/dma-mapping.h> 33 static int dma_of_xlate_default(struct dma *dma, argument 36 debug("%s(dma=%p)\n", __func__, dma); 44 dma->id = args->args[0]; 46 dma->id = 0; 51 int dma_get_by_index(struct udevice *dev, int index, struct dma *dma) argument 94 dma_get_by_name(struct udevice *dev, const char *name, struct dma *dma) argument 111 dma_request(struct udevice *dev, struct dma *dma) argument 125 dma_free(struct dma *dma) argument 137 dma_enable(struct dma *dma) argument 149 dma_disable(struct dma *dma) argument 161 dma_prepare_rcv_buf(struct dma *dma, void *dst, size_t size) argument 173 dma_receive(struct dma *dma, void **dst, void *metadata) argument 185 dma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 197 dma_get_cfg(struct dma *dma, u32 cfg_id, void **cfg_data) argument 263 UCLASS_DRIVER(dma) = { variable [all...] |
H A D | sandbox-dma-test.c | 14 #include <dma-uclass.h> 49 static int sandbox_dma_of_xlate(struct dma *dma, argument 52 struct sandbox_dma_dev *ud = dev_get_priv(dma->dev); 55 debug("%s(dma id=%u)\n", __func__, args->args[0]); 60 dma->id = args->args[0]; 62 uc = &ud->channels[dma->id]; 64 if (dma->id == 1) 66 else if (dma->id == 2) 70 debug("%s(dma i 75 sandbox_dma_request(struct dma *dma) argument 93 sandbox_dma_rfree(struct dma *dma) argument 113 sandbox_dma_enable(struct dma *dma) argument 133 sandbox_dma_disable(struct dma *dma) argument 153 sandbox_dma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 186 sandbox_dma_receive(struct dma *dma, void **dst, void *metadata) argument 221 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 | 63 volatile fsl_dma_t *dma = &dma_base->dma[0]; local 68 status = in_dma32(&dma->sr); 72 out_dma32(&dma->mr, in_dma32(&dma->mr) & ~FSL_DMA_MR_CS); 83 volatile fsl_dma_t *dma = &dma_base->dma[0]; local 85 out_dma32(&dma->satr, FSL_DMA_SATR_SREAD_SNOOP); 86 out_dma32(&dma->datr, FSL_DMA_DATR_DWRITE_SNOOP); 87 out_dma32(&dma 93 volatile fsl_dma_t *dma = &dma_base->dma[0]; local [all...] |
H A D | xilinx_dpdma.c | 8 #include <dma.h> 9 #include <dma-uclass.h>
|
H A D | bcm6348-iudma.c | 5 * Derived from linux/drivers/dma/bcm63xx-iudma.c: 21 #include <dma-uclass.h> 168 /* try to stop dma channel */ 183 /* reset dma channel */ 189 static int bcm6348_iudma_disable(struct dma *dma) argument 191 struct bcm6348_iudma_priv *priv = dev_get_priv(dma->dev); 192 struct bcm6348_chan_priv *ch_priv = priv->ch_priv[dma->id]; 194 /* stop dma channel */ 195 bcm6348_iudma_chan_stop(priv, dma 213 bcm6348_iudma_enable(struct dma *dma) argument 284 bcm6348_iudma_request(struct dma *dma) argument 325 bcm6348_iudma_receive(struct dma *dma, void **dst, void *metadata) argument 373 bcm6348_iudma_send(struct dma *dma, void *src, size_t len, void *metadata) argument 425 bcm6348_iudma_free_rcv_buf(struct dma *dma, void *dst, size_t size) argument 478 bcm6348_iudma_add_rcv_buf(struct dma *dma, void *dst, size_t size) argument 507 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 | 37 struct eth_dma *dma = &(eth->dma); local 49 dma->disable_dma(dma, MAC_DMA_RX); 50 dma->disable_dma(dma, MAC_DMA_TX); 75 struct eth_dma *dma = &(((struct eth_info *)(dev->priv))->dma); local 83 rc = dma->tx_packet(dma, bu 106 struct eth_dma *dma = &(((struct eth_info *)(dev->priv))->dma); local 153 struct eth_dma *dma = &(eth->dma); local 192 struct eth_dma *dma = &(eth->dma); local [all...] |
H A D | bcm-sf2-eth-gmac.c | 39 static int gmac_disable_dma(struct eth_dma *dma, int dir); 40 static int gmac_enable_dma(struct eth_dma *dma, int dir); 99 static void dma_tx_dump(struct eth_dma *dma) argument 116 descp = (dma64dd_t *)(dma->tx_desc_aligned) + i; 125 bufp = (uint8_t *)(dma->tx_buf + i * TX_BUF_SIZE_ALIGNED); 131 static void dma_rx_dump(struct eth_dma *dma) argument 148 descp = (dma64dd_t *)(dma->rx_desc_aligned) + i; 156 bufp = dma->rx_buf + i * RX_BUF_SIZE_ALIGNED; 163 static int dma_tx_init(struct eth_dma *dma) argument 173 memset((void *)(dma 215 dma_rx_init(struct eth_dma *dma) argument 268 dma_init(struct eth_dma *dma) argument 296 dma_deinit(struct eth_dma *dma) argument 316 gmac_tx_packet(struct eth_dma *dma, void *packet, int length) argument 376 gmac_check_tx_done(struct eth_dma *dma) argument 399 gmac_check_rx_done(struct eth_dma *dma, uint8_t *buf) argument 484 gmac_disable_dma(struct eth_dma *dma, int dir) argument 529 gmac_enable_dma(struct eth_dma *dma, int dir) argument 778 struct eth_dma *dma = &(eth->dma); local 903 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 | 39 struct qfw_dma dma = { local 50 dma.control |= cpu_to_be32(FW_CFG_DMA_SELECT | (entry << 16)); 53 entry, size, address, be32_to_cpu(dma.control)); 57 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> 44 * to break when dma is enabled ... is something wrongly 53 * + both pio and dma behave in with network and g_zero tests 60 * + both pio and dma behave in with network and g_zero tests 61 * + dma is slow in typical case (short_not_ok is clear) 73 * + DaVinci, basically works with cppi dma 74 * + OMAP 2430, ditto with mentor dma 75 * + TUSB 6010, platform-specific dma in the works 84 /* Maps the buffer to dma */ 90 struct dma_controller *dma local 499 struct dma_channel *dma; local 918 struct dma_channel *dma; local 1301 dma_addr_t dma; member in struct:free_record [all...] |
H A D | musb_host.c | 22 #include <linux/dma-mapping.h> 287 hw_ep->tx_channel ? "dma" : "pio"); 376 struct dma_controller *dma = musb->dma_controller; local 381 dma->channel_release(ep->rx_channel); 387 dma->channel_release(ep->tx_channel); 433 * ignore dma (various models), 620 static bool musb_tx_dma_program(struct dma_controller *dma, argument 669 if (!dma->channel_program(channel, pkt_size, mode, 671 dma->channel_release(channel); 1105 /* Service a Tx-Available or dma completio 1119 struct dma_channel *dma; local 1392 struct dma_channel *dma; local 1448 struct dma_channel *dma; local 2139 struct dma_channel *dma; local [all...] |
/u-boot/test/dm/ |
H A D | dma.c | 12 #include <dma.h> 19 struct dma dma_m2m; 25 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev)); 42 struct dma dma_tx, dma_rx; 50 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev)); 84 struct dma dma_tx, dma_rx; 92 ut_assertok(uclass_get_device_by_name(UCLASS_DMA, "dma", &dev));
|