/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | intel,ldma.yaml | 31 "#dma-cells": 38 dma-channels: 42 dma-channel-mask: 58 intel,dma-poll-cnt: 64 intel,dma-byte-en: 71 intel,dma-drb: 76 intel,dma-dburst-wr: 94 #dma-cells = <3>; 103 intel,dma-byte-en; 104 intel,dma-drb; [all …]
|
H A D | mediatek,uart-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml# 17 - $ref: dma-controller.yaml# 24 - mediatek,mt2712-uart-dma 30 - mediatek,mt6577-uart-dma 49 "#dma-cells": 54 dma-requests: 59 mediatek,dma-33bits: 73 - dma-requests 116 dma-requests = <12>; 119 mediatek,dma-33bits; [all …]
|
H A D | k3dma.txt | 3 See dma.txt first 7 - "hisilicon,k3-dma-1.0" 11 - #dma-cells: see dma.txt, should be 1, para number 12 - dma-channels: physical channels supported 20 dma0: dma@fcd02000 { 21 compatible = "hisilicon,k3-dma-1.0"; 23 #dma-cells = <1>; 24 dma-channels = <16>; 25 dma-requests = <27>; 38 dma-names = "rx", "tx"; [all …]
|
H A D | dma-router.yaml | 4 $id: http://devicetree.org/schemas/dma/dma-router.yaml# 13 - $ref: dma-common.yaml# 23 pattern: "^dma-router(@.*)?$" 25 dma-masters: 33 dma-requests: 38 - "#dma-cells" 39 - dma-masters 48 #dma-cells = <1>; 49 dma-requests = <205>; 50 ti,dma-safe-map = <0>; [all …]
|
H A D | ingenic,dma.yaml | 4 $id: http://devicetree.org/schemas/dma/ingenic,dma.yaml# 13 - $ref: dma-controller.yaml# 19 - ingenic,jz4740-dma 20 - ingenic,jz4725b-dma 21 - ingenic,jz4755-dma 22 - ingenic,jz4760-dma 30 - ingenic,x1000-dma 31 - ingenic,x1830-dma 47 "#dma-cells": 87 dma: dma-controller@13420000 { [all …]
|
H A D | lpc1850-dmamux.txt | 6 - #dma-cells: Should be set to <3>. 7 * 1st cell contain the master dma request signal 19 dmac: dma@40002000 { 26 #dma-cells = <2>; 27 dma-channels = <8>; 28 dma-requests = <16>; 37 dmamux: dma-mux { 39 #dma-cells = <3>; 40 dma-requests = <64>; 41 dma-masters = <&dmac>; [all …]
|
H A D | dma-controller.yaml | 4 $id: http://devicetree.org/schemas/dma/dma-controller.yaml# 13 - $ref: dma-common.yaml# 18 pattern: "^dma-controller(@.*)?$" 24 dma: dma-controller@48000000 { 31 #dma-cells = <1>; 32 dma-channels = <32>; 33 dma-requests = <127>; 34 dma-channel-mask = <0xfffe>;
|
H A D | moxa,moxart-dma.txt | 3 See dma.txt first 7 - compatible : Must be "moxa,moxart-dma" 11 - #dma-cells : Should be 1, a single cell holding a line request number 15 dma: dma@90500000 { 16 compatible = "moxa,moxart-dma"; 19 #dma-cells = <1>; 26 described in the dma.txt file, using a two-cell specifier for each channel: 34 Use specific request line passing from dma 42 dmas = <&dma 5>, 43 <&dma 5>; [all …]
|
H A D | renesas,nbpfaxi.txt | 17 - #dma-cells: must be 2: the first integer is a terminal number, to which this 35 You can use dma-channels and dma-requests as described in dma.txt, although they 40 dma: dma-controller@48000000 { 51 #dma-cells = <2>; 52 dma-channels = <8>; 53 dma-requests = <8>; 60 dmas and dma-names are required, as described in dma.txt. 64 #include <dt-bindings/dma/nbpfaxi.h> 67 dmas = <&dma 0 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL) 68 &dma 1 (NBPF_SLAVE_RQ_HIGH | NBPF_SLAVE_RQ_LEVEL)>; [all …]
|
H A D | brcm,bcm2835-dma.yaml | 4 $id: http://devicetree.org/schemas/dma/brcm,bcm2835-dma.yaml# 19 - $ref: dma-controller.yaml# 23 const: brcm,bcm2835-dma 39 '#dma-cells': 43 brcm,dma-channel-mask: 56 - "#dma-cells" 57 - brcm,dma-channel-mask 61 dma-controller@7e007000 { 62 compatible = "brcm,bcm2835-dma"; 97 "dma-shared-all"; [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ti_am335x_adc.c | 217 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_dma_rx_complete() local 221 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete() 233 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_start_dma() local 252 dma->conf.src_maxburst = dma->fifo_thresh + 1; in tiadc_start_dma() 253 dmaengine_slave_config(dma->chan, &dma->conf); in tiadc_start_dma() 255 desc = dmaengine_prep_dma_cyclic(dma->chan, dma->addr, in tiadc_start_dma() 301 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_buffer_postenable() local 333 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_buffer_predisable() local 530 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_request_dma() local 690 struct tiadc_dma *dma = &adc_dev->dma; in tiadc_remove() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/serial/ |
H A D | mrvl,pxa-ssp.txt | 27 dmas = <&dma 13 28 &dma 14>; 29 dma-names = "rx", "tx"; 38 dmas = <&dma 15 39 &dma 16>; 40 dma-names = "rx", "tx"; 49 dmas = <&dma 66 50 &dma 67>; 51 dma-names = "rx", "tx"; 60 dmas = <&dma 2 [all …]
|
/openbmc/linux/sound/soc/sh/rcar/ |
H A D | dma.c | 43 } dma; member 55 #define rsnd_dma_to_dmaen(dma) (&(dma)->dma.en) argument 56 #define rsnd_dma_to_dmapp(dma) (&(dma)->dma.pp) argument 148 dma->mod_from, in rsnd_dmaen_prepare() 149 dma->mod_to); in rsnd_dmaen_prepare() 490 rsnd_dmapp_write(dma, dma->src_addr, PDMASAR); in rsnd_dmapp_start() 491 rsnd_dmapp_write(dma, dma->dst_addr, PDMADAR); in rsnd_dmapp_start() 512 dmapp->dmapp_id, &dma->src_addr, &dma->dst_addr, dmapp->chcr); in rsnd_dmapp_attach() 863 dma = devm_kzalloc(dev, sizeof(*dma), GFP_KERNEL); in rsnd_dma_alloc() 864 if (!dma) in rsnd_dma_alloc() [all …]
|
/openbmc/linux/sound/pci/cs5535audio/ |
H A D | cs5535audio_pm.c | 53 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend() local 54 if (dma && dma->substream) in snd_cs5535audio_suspend() 55 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend() 86 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_resume() local 87 if (dma && dma->substream) { in snd_cs5535audio_resume() 88 dma->substream->ops->prepare(dma->substream); in snd_cs5535audio_resume() 89 dma->ops->setup_prd(cs5535au, dma->saved_prd); in snd_cs5535audio_resume()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | samsung_tty.c | 287 struct s3c24xx_uart_dma *dma = ourport->dma; in s3c24xx_serial_stop_tx() local 311 dma->tx_transfer_addr, dma->tx_size, in s3c24xx_serial_stop_tx() 344 dma->tx_transfer_addr, dma->tx_size, in s3c24xx_serial_tx_dma_complete() 448 dma->tx_transfer_addr, dma->tx_size, in s3c24xx_serial_start_tx_dma() 452 dma->tx_transfer_addr, dma->tx_size, in s3c24xx_serial_start_tx_dma() 461 dma->tx_bytes_requested = dma->tx_size; in s3c24xx_serial_start_tx_dma() 562 if (dma && dma->rx_chan) { in s3c24xx_serial_stop_rx() 654 dma->rx_bytes_requested = dma->rx_size; in s3c64xx_start_rx_dma() 1051 struct s3c24xx_uart_dma *dma = p->dma; in s3c24xx_serial_request_dma() local 1111 dma->rx_addr = dma_map_single(dma->rx_chan->device->dev, dma->rx_buf, in s3c24xx_serial_request_dma() [all …]
|
H A D | msm_serial.c | 268 dma_unmap_single(dev, dma->phys, mapped, dma->dir); in msm_stop_dma() 281 memset(dma, 0, sizeof(*dma)); in msm_release_dma() 290 memset(dma, 0, sizeof(*dma)); in msm_release_dma() 338 memset(dma, 0, sizeof(*dma)); in msm_request_tx_dma() 391 memset(dma, 0, sizeof(*dma)); in msm_request_rx_dma() 455 dma_unmap_single(port->dev, dma->phys, dma->count, dma->dir); in msm_complete_tx_dma() 498 dma->desc = dmaengine_prep_slave_single(dma->chan, dma->phys, in msm_handle_tx_dma() 510 dma->cookie = dmaengine_submit(dma->desc); in msm_handle_tx_dma() 618 dma->phys = dma_map_single(uart->dev, dma->virt, in msm_start_rx_dma() 624 dma->desc = dmaengine_prep_slave_single(dma->chan, dma->phys, in msm_start_rx_dma() [all …]
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_mtk.c | 94 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete() local 107 dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in mtk8250_dma_rx_complete() 136 struct uart_8250_dma *dma = up->dma; in mtk8250_rx_dma() local 157 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_enable() local 164 dma->rxconf.src_port_window_size = dma->rx_size; in mtk8250_dma_enable() 165 dma->rxconf.src_addr = dma->rx_addr; in mtk8250_dma_enable() 168 dma->txconf.dst_addr = dma->tx_addr; in mtk8250_dma_enable() 179 if (dmaengine_slave_config(dma->rxchan, &dma->rxconf) != 0) in mtk8250_dma_enable() 181 if (dmaengine_slave_config(dma->txchan, &dma->txconf) != 0) in mtk8250_dma_enable() 217 if (up->dma) in mtk8250_shutdown() [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/mm/ |
H A D | balance.rst | 30 也就是说,内核应该尝试从直接映射池中满足对直接映射页的请求,而不是回退到dma池中, 31 这样就可以保持dma池为dma请求(不管是不是原子的)所填充。类似的争论也适用于高内存 32 和直接映射的页面。相反,如果有很多空闲的dma页,最好是通过从dma池中分配一个来满足 35 在2.2中,只有当空闲页总数低于总内存的1/64时,才会启动内存平衡/页面回收。如果dma 36 和常规内存的比例合适,即使dma区完全空了,也很可能不会进行平衡。2.2已经在不同内存 51 请注意,如果普通区的大小与dma区相比是巨大的,那么在决定是否平衡普通区的时候,考虑 52 空闲的dma页就变得不那么重要了。那么第一个解决方案就变得更有吸引力。 80 2. 实现一个类似于replace_with_highmem()的replace_with_regular(),以保留dma页面。
|
/openbmc/linux/sound/pci/ |
H A D | atiixp.c | 359 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 362 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 664 readl(chip->remap_addr + dma->ops->dt_cur), dma->buf_addr); in snd_atiixp_pcm_pointer() 673 if (! dma->substream || ! dma->running) in snd_atiixp_xrun_dma() 684 if (! dma->substream || ! dma->running) in snd_atiixp_update_dma() 721 if (dma->running && dma->suspended && in snd_atiixp_pcm_trigger() 733 if (dma->running && dma->suspended) in snd_atiixp_pcm_trigger() 1027 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_open() 1061 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_close() 1490 if (dma->substream && dma->suspended) { in snd_atiixp_resume() [all …]
|
H A D | atiixp_modem.c | 326 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 329 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 613 readl(chip->remap_addr + dma->ops->dt_cur), dma->buf_addr); in snd_atiixp_pcm_pointer() 623 if (! dma->substream || ! dma->running) in snd_atiixp_xrun_dma() 635 if (! dma->substream || ! dma->running) in snd_atiixp_update_dma() 670 dma->running = 1; in snd_atiixp_pcm_trigger() 851 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_open() 854 if (dma->opened) in snd_atiixp_pcm_open() 872 dma->opened = 1; in snd_atiixp_pcm_open() 882 if (snd_BUG_ON(!dma->ops || !dma->ops->enable_dma)) in snd_atiixp_pcm_close() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-at91-master.c | 134 struct at91_twi_dma *dma = &dev->dma; in at91_twi_dma_cleanup() local 145 if (dma->buf_mapped) { in at91_twi_dma_cleanup() 197 struct at91_twi_dma *dma = &dev->dma; in at91_twi_write_data_dma() local 213 dma->buf_mapped = true; in at91_twi_write_data_dma() 336 struct at91_twi_dma *dma = &dev->dma; in at91_twi_read_data_dma() local 750 struct at91_twi_dma *dma = &dev->dma; in at91_twi_configure_dma() local 783 dma->chan_tx = NULL; in at91_twi_configure_dma() 790 dma->chan_rx = NULL; in at91_twi_configure_dma() 814 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); in at91_twi_configure_dma() 821 if (dma->chan_rx) in at91_twi_configure_dma() [all …]
|
/openbmc/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge-core.c | 126 struct ddb_dma *dma = io->dma; in ddb_set_dma_table() local 137 dma->bufval = ((dma->div & 0x0f) << 16) | in ddb_set_dma_table() 201 oredi->dma, iredo->dma); in ddb_unredirect() 286 dma->vbuf[i], dma->pbuf[i]); in dma_free() 626 output->dma->pbuf[output->dma->cbuf], in ddb_output_write() 682 input->dma->pbuf[input->dma->cbuf], in ddb_input_read() 2133 dma = input->dma; in input_write_dvb() 2155 dma->cbuf = (dma->cbuf + 1) % dma2->num; in input_write_dvb() 2190 struct ddb_dma *dma = input->dma; in input_handler() local 2217 struct ddb_dma *dma = output->dma; in output_handler() local [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | Makefile | 9 obj-$(CONFIG_DMA_ACPI) += acpi-dma.o 10 obj-$(CONFIG_DMA_OF) += of-dma.o 23 obj-$(CONFIG_AXI_DMAC) += dma-axi-dmac.o 26 obj-$(CONFIG_DMA_JZ4780) += dma-jz4780.o 27 obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o 28 obj-$(CONFIG_DMA_SUN4I) += sun4i-dma.o 29 obj-$(CONFIG_DMA_SUN6I) += sun6i-dma.o 44 obj-$(CONFIG_IMX_DMA) += imx-dma.o 59 obj-$(CONFIG_MXS_DMA) += mxs-dma.o 61 obj-$(CONFIG_OWL_DMA) += owl-dma.o [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_sw_fence_work.c | 13 dma_fence_signal(&f->dma); in fence_complete() 23 dma_fence_put(&f->dma); in fence_work() 34 dma_fence_set_error(&f->dma, fence->error); in fence_notify() 36 if (!f->dma.error) { in fence_notify() 37 dma_fence_get(&f->dma); in fence_notify() 38 if (test_bit(DMA_FENCE_WORK_IMM, &f->dma.flags)) in fence_notify() 48 dma_fence_put(&f->dma); in fence_notify() 62 struct dma_fence_work *f = container_of(fence, typeof(*f), dma); in get_timeline_name() 73 BUILD_BUG_ON(offsetof(typeof(*f), dma)); in fence_release() 74 dma_fence_free(&f->dma); in fence_release() [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | buffer.c | 119 dma_addr_t *dma in hcd_buffer_alloc() argument 133 *dma = ~(dma_addr_t) 0; in hcd_buffer_alloc() 148 dma_addr_t dma in hcd_buffer_free() argument 169 dma_pool_free(hcd->pool[i], addr, dma); in hcd_buffer_free() 173 dma_free_coherent(hcd->self.sysdev, size, addr, dma); in hcd_buffer_free() 177 size_t size, gfp_t mem_flags, dma_addr_t *dma) in hcd_buffer_alloc_pages() argument 184 size, dma, PAGE_SIZE); in hcd_buffer_alloc_pages() 188 *dma = DMA_MAPPING_ERROR; in hcd_buffer_alloc_pages() 194 size, dma, mem_flags); in hcd_buffer_alloc_pages() 198 size_t size, void *addr, dma_addr_t dma) in hcd_buffer_free_pages() argument [all …]
|