Home
last modified time | relevance | path

Searched +full:dma +full:- +full:mem (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dmem.c23 #include "mem.h"
35 struct page **mem; member
38 dma_addr_t *dma; member
45 return nvkm_mem(memory)->target; in nvkm_mem_target()
57 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_addr() local
58 if (mem->pages == 1 && mem->mem) in nvkm_mem_addr()
59 return mem->dma[0]; in nvkm_mem_addr()
66 return nvkm_mem(memory)->pages << PAGE_SHIFT; in nvkm_mem_size()
73 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_dma() local
75 .memory = &mem->memory, in nvkm_mem_map_dma()
[all …]
/linux/kernel/dma/
H A Dcoherent.c1 // SPDX-License-Identifier: GPL-2.0
3 * Coherent per-device memory handling.
10 #include <linux/dma-direct.h>
11 #include <linux/dma-map-ops.h>
25 if (dev && dev->dma_mem) in dev_get_coherent_memory()
26 return dev->dma_mem; in dev_get_coherent_memory()
31 struct dma_coherent_mem * mem) in dma_get_device_base() argument
33 if (mem->use_dev_dma_pfn_offset) in dma_get_device_base()
34 return phys_to_dma(dev, PFN_PHYS(mem->pfn_base)); in dma_get_device_base()
35 return mem->device_base; in dma_get_device_base()
[all …]
H A Dswiotlb.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Dynamic DMA mapping support.
6 * I/O TLBs (aka DMA address translation hardware).
9 * Copyright (C) 2000, 2003 Hewlett-Packard Co
10 * David Mosberger-Tang <davidm@hpl.hp.com>
12 * 03/05/07 davidm Switch from PCI-DMA to generic device DMA API.
14 * unnecessary i-cache flushing.
27 #include <linux/dma-direct.h>
28 #include <linux/dma-map-ops.h>
33 #include <linux/iommu-helper.h>
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_common.c1 // SPDX-License-Identifier: GPL-2.0-only
14 * hinic_cpu_to_be32 - convert data to big endian 32 bit format
20 u32 *mem = data; in hinic_cpu_to_be32() local
26 *mem = cpu_to_be32(*mem); in hinic_cpu_to_be32()
27 mem++; in hinic_cpu_to_be32()
32 * hinic_be32_to_cpu - convert data from big endian 32 bit format
38 u32 *mem = data; in hinic_be32_to_cpu() local
44 *mem = be32_to_cpu(*mem); in hinic_be32_to_cpu()
45 mem++; in hinic_be32_to_cpu()
50 * hinic_set_sge - set dma area in scatter gather entry
[all …]
/linux/Documentation/devicetree/bindings/dma/
H A Drenesas,nbpfaxi.txt1 * Renesas "Type-AXI" NBPFAXI* DMA controllers
3 * DMA controller
7 - compatible: must be one of
17 - #dma-cells: must be 2: the first integer is a terminal number, to which this
26 - max-burst-mem-read: limit burst size for memory reads
29 - max-burst-mem-write: limit burst size for memory writes
32 If both max-burst-mem-read and max-burst-mem-write are set, DMA_MEM_TO_MEM
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>;
[all …]
H A Darm-pl08x.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/dma/arm-pl08x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM PrimeCells PL080 and PL081 and derivatives DMA controller
10 - Vinod Koul <vkoul@kernel.org>
13 - $ref: /schemas/arm/primecell.yaml#
14 - $ref: dma-controller.yaml#
22 - arm,pl080
23 - arm,pl081
[all …]
/linux/drivers/pnp/
H A Dsupport.c1 // SPDX-License-Identifier: GPL-2.0
3 * support.c - standard functions for the use of pnp protocol drivers
6 * Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
16 * pnp_is_active - Determines if a device is active based on its current
24 * only clears out auto-assigned resources. in pnp_is_active()
28 pnp_irq(dev, 0) == -1 && pnp_dma(dev, 0) == -1) in pnp_is_active()
44 * According to the specs, the first three characters are five-bit in pnp_eisa_id_to_string()
45 * compressed ASCII, and the left-over high order bit should be zero. in pnp_eisa_id_to_string()
51 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; in pnp_eisa_id_to_string()
52 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; in pnp_eisa_id_to_string()
[all …]
H A Dresource.c1 // SPDX-License-Identifier: GPL-2.0
3 * resource.c - Contains functions for registering and analyzing resource information
7 * Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
17 #include <asm/dma.h>
27 static int pnp_reserve_irq[16] = {[0 ... 15] = -1 }; /* reserve (don't use) some IRQ */
28 static int pnp_reserve_dma[8] = {[0 ... 7] = -1 }; /* reserve (don't use) some DMA */
29 static int pnp_reserve_io[16] = {[0 ... 15] = -1 }; /* reserve (don't use) some I/O region */
30 static int pnp_reserve_mem[16] = {[0 ... 15] = -1 }; /* reserve (don't use) some memory region */
45 option->flags = option_flags; in pnp_build_option()
46 option->type = type; in pnp_build_option()
[all …]
H A Dinterface.c1 // SPDX-License-Identifier: GPL-2.0
3 * interface.c - contains everything related to the user interface
7 * Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
42 if (buffer->stop || buffer->error) in pnp_printf()
45 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf()
47 if (buffer->size + res >= buffer->len) { in pnp_printf()
48 buffer->stop = 1; in pnp_printf()
51 buffer->curr += res; in pnp_printf()
52 buffer->size += res; in pnp_printf()
59 pnp_printf(buffer, "%sport %#llx-%#llx, align %#llx, size %#llx, " in pnp_print_port()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp8_req_if.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <media/v4l2-mem2mem.h>
9 #include <media/videobuf2-dma-contig.h>
10 #include <uapi/linux/v4l2-controls.h>
28 * struct vdec_vp8_slice_info - decode misc information
30 * @vld_wrapper_dma: vld wrapper dma addres
148 struct mtk_vcodec_mem *mem; vdec_vp8_slice_alloc_working_buf() local
191 struct mtk_vcodec_mem *mem; vdec_vp8_slice_free_working_buf() local
[all...]
H A Dvdec_h264_if.c1 // SPDX-License-Identifier: GPL-2.0
35 * struct h264_fb - h264 decode frame buffer information
37 * @y_fb_dma : dma address of Y frame buffer (luma)
38 * @c_fb_dma : dma address of C frame buffer (chroma)
51 * struct h264_ring_fb_list - ring frame buffer list
67 * struct vdec_h264_dec_info - decode information
70 * @realloc_mv_buf : flag to notify driver to re-allocate mv buffer
72 * @bs_dma : Input bit-stream buffer dma address
73 * @y_fb_dma : Y frame buffer dma address
74 * @c_fb_dma : C frame buffer dma address
[all …]
H A Dvdec_h264_req_if.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <media/v4l2-mem2mem.h>
6 #include <media/v4l2-h264.h>
7 #include <media/videobuf2-dma-contig.h>
17 * struct mtk_h264_dec_slice_param - parameters for decode current frame
28 * struct vdec_h264_dec_info - decod
174 struct mtk_vcodec_mem *mem = &inst->pred_buf; free_prediction_buf() local
186 struct mtk_vcodec_mem *mem = NULL; alloc_mv_buf() local
209 struct mtk_vcodec_mem *mem; free_mv_buf() local
[all...]
/linux/drivers/remoteproc/
H A Drcar_rproc.c1 // SPDX-License-Identifier: GPL-2.0
14 #include <linux/soc/renesas/rcar-rst.h>
23 struct rproc_mem_entry *mem) in rcar_rproc_mem_alloc() argument
25 struct device *dev = &rproc->dev; in rcar_rproc_mem_alloc()
28 dev_dbg(dev, "map memory: %pa+%zx\n", &mem->dma, mem->len); in rcar_rproc_mem_alloc()
29 va = ioremap_wc(mem->dma, mem->len); in rcar_rproc_mem_alloc()
32 &mem->dma, mem->len); in rcar_rproc_mem_alloc()
33 return -ENOMEM; in rcar_rproc_mem_alloc()
37 mem->va = va; in rcar_rproc_mem_alloc()
43 struct rproc_mem_entry *mem) in rcar_rproc_mem_release() argument
[all …]
H A Dremoteproc_core.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Ohad Ben-Cohen <ohad@wizery.com>
12 * Suman Anna <s-anna@ti.com>
22 #include <linux/dma-mapping.h>
51 struct rproc_mem_entry *mem);
53 struct rproc_mem_entry *mem);
94 return -ENOSYS; in rproc_iommu_fault()
100 struct device *dev = rproc->dev.parent; in rproc_enable_iommu()
103 if (!rproc->has_iommu) { in rproc_enable_iommu()
122 rproc->domain = domain; in rproc_enable_iommu()
[all …]
H A Dremoteproc_virtio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Remote processor messaging transport (OMAP platform-specific bits)
8 * Ohad Ben-Cohen <ohad@wizery.com>
12 #include <linux/dma-direct.h>
13 #include <linux/dma-map-ops.h>
14 #include <linux/dma-mapping.h>
31 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r; in copy_dma_range_map()
37 for (r = map; r->size; r++) in copy_dma_range_map()
43 return -ENOMEM; in copy_dma_range_map()
44 to->dma_range_map = new_map; in copy_dma_range_map()
[all …]
/linux/arch/mips/include/asm/sgi/
H A Dmc.h22 #define SGIMC_CCTRL0_EPERRMEM 0x00000040 /* Main mem parity error enable */
32 #define SGIMC_CCTRL0_WRESETPMEM 0x00010000 /* Perform warm reset, preserves mem */
33 #define SGIMC_CCTRL0_LENDIAN 0x00020000 /* Put MC in little-endian mode */
34 #define SGIMC_CCTRL0_WRESETDMEM 0x00040000 /* Warm reset, destroys mem contents */
35 #define SGIMC_CCTRL0_CMEMBADPAR 0x02000000 /* Generate bad perr from cpu to mem */
36 #define SGIMC_CCTRL0_R4KNOCHKPARR 0x04000000 /* Don't chk parity on mem data reads */
64 #define SGIMC_EEPROM_SDATAO 0x00000008 /* Serial EEPROM data-out */
65 #define SGIMC_EEPROM_SDATAI 0x00000010 /* Serial EEPROM data-in */
75 #define SGIMC_GIOPAR_HPC64 0x00000001 /* HPC talks to GIO using 64-bits */
76 #define SGIMC_GIOPAR_GFX64 0x00000002 /* GFX talks to GIO using 64-bits */
[all …]
/linux/drivers/spi/
H A Dspi-mem.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/spi/spi-mem.h>
16 #include <trace/events/spi-mem.h>
23 * spi_controller_dma_map_mem_op_data() - DMA-ma
104 spi_check_buswidth_req(struct spi_mem * mem,u8 buswidth,bool tx) spi_check_buswidth_req() argument
142 spi_mem_check_buswidth(struct spi_mem * mem,const struct spi_mem_op * op) spi_mem_check_buswidth() argument
164 spi_mem_default_supports_op(struct spi_mem * mem,const struct spi_mem_op * op) spi_mem_default_supports_op() argument
240 spi_mem_internal_supports_op(struct spi_mem * mem,const struct spi_mem_op * op) spi_mem_internal_supports_op() argument
266 spi_mem_supports_op(struct spi_mem * mem,const struct spi_mem_op * op) spi_mem_supports_op() argument
278 spi_mem_access_start(struct spi_mem * mem) spi_mem_access_start() argument
305 spi_mem_access_end(struct spi_mem * mem) spi_mem_access_end() argument
371 spi_mem_exec_op(struct spi_mem * mem,const struct spi_mem_op * op) spi_mem_exec_op() argument
515 spi_mem_get_name(struct spi_mem * mem) spi_mem_get_name() argument
536 spi_mem_adjust_op_size(struct spi_mem * mem,struct spi_mem_op * op) spi_mem_adjust_op_size() argument
572 spi_mem_adjust_op_freq(struct spi_mem * mem,struct spi_mem_op * op) spi_mem_adjust_op_freq() argument
598 spi_mem_calc_op_duration(struct spi_mem * mem,struct spi_mem_op * op) spi_mem_calc_op_duration() argument
685 spi_mem_dirmap_create(struct spi_mem * mem,const struct spi_mem_dirmap_info * info) spi_mem_dirmap_create() argument
764 devm_spi_mem_dirmap_create(struct device * dev,struct spi_mem * mem,const struct spi_mem_dirmap_info * info) devm_spi_mem_dirmap_create() argument
910 spi_mem_read_status(struct spi_mem * mem,const struct spi_mem_op * op,u16 * status) spi_mem_read_status() argument
945 spi_mem_poll_status(struct spi_mem * mem,const struct spi_mem_op * op,u16 mask,u16 match,unsigned long initial_delay_us,unsigned long polling_delay_us,u16 timeout_ms) spi_mem_poll_status() argument
999 struct spi_mem *mem; spi_mem_probe() local
1023 struct spi_mem *mem = spi_get_drvdata(spi); spi_mem_remove() local
1032 struct spi_mem *mem = spi_get_drvdata(spi); spi_mem_shutdown() local
[all...]
/linux/Documentation/devicetree/bindings/gpu/host1x/
H A Dnvidia,tegra210-nvenc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpu/host1x/nvidia,tegra210-nvenc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
15 - Thierry Reding <treding@gmail.com>
16 - Mikko Perttunen <mperttunen@nvidia.com>
20 pattern: "^nvenc@[0-9a-f]*$"
24 - nvidia,tegra210-nvenc
25 - nvidia,tegra186-nvenc
26 - nvidia,tegra194-nvenc
[all …]
/linux/Documentation/devicetree/bindings/display/tegra/
H A Dnvidia,tegra186-display.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra186-display.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
15 pattern: "^display-hub@[0-9a-f]+$"
19 - nvidia,tegra186-display
20 - nvidia,tegra194-display
22 '#address-cells':
[all …]
/linux/drivers/tty/serial/
H A Dcpm_uart.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 #define IS_SMC(pinfo) (pinfo->flags & FLAG_SMC)
86 u32 mem = (u32)pinfo->mem_addr; in cpu2cpm_addr() local
88 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr()
89 offset = val - mem; in cpu2cpm_addr()
90 return pinfo->dma_addr + offset; in cpu2cpm_addr()
102 u32 dma = (u32)pinfo->dma_addr; in cpm2cpu_addr() local
104 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
105 offset = val - dma; in cpm2cpu_addr()
106 return pinfo->mem_addr + offset; in cpm2cpu_addr()
/linux/drivers/pnp/pnpacpi/
H A Drsparser.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * pnpacpi -- PnP ACPI driver
7 * Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
40 dev_err(&dev->dev, "can't encode invalid IRQ mode %#x\n", in decode_irq_flags()
76 dev_err(&dev->dev, "invalid DMA type %d\n", type); in dma_flags()
91 dev_err(&dev->dev, "invalid DMA transfer type %d\n", transfer); in dma_flags()
103 if (!(r->flags & IORESOURCE_DISABLED)) in pnpacpi_add_irqresource()
104 pcibios_penalize_isa_irq(r->start, 1); in pnpacpi_add_irqresource()
112 * marked as "consumer-only," but old versions of Windows and Linux ignore
113 * the producer/consumer flag, so HP invented a vendor-defined resource to
[all …]
/linux/drivers/pci/
H A Dp2pdma.c1 // SPDX-License-Identifier: GPL-2.0
3 * PCI Peer 2 Peer DMA support.
5 * Copyright (c) 2016-2018, Logan Gunthorpe
6 * Copyright (c) 2016-2017, Microsemi Corporation
11 #define pr_fmt(fmt) "pci-p2pdma: " fmt
13 #include <linux/dma-map-ops.h>
14 #include <linux/pci-p2pdma.h>
19 #include <linux/percpu-refcount.h>
28 struct p2pdma_provider mem[PCI_STD_NUM_BARS]; member
33 struct p2pdma_provider *mem; member
[all …]
/linux/sound/soc/renesas/rcar/
H A Ddma.c1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car Audio DMAC support
42 } dma; member
52 #define rsnd_priv_to_dmac(p) ((struct rsnd_dma_ctrl *)(p)->dma)
54 #define rsnd_dma_to_dmaen(dma) (&(dma)->dma.en) argument
55 #define rsnd_dma_to_dmapp(dma) (&(dma)->dma.pp) argument
59 .name = "mem",
62 static struct rsnd_mod mem = { variable
86 return snd_dmaengine_pcm_trigger(io->substream, SNDRV_PCM_TRIGGER_STOP); in rsnd_dmaen_stop()
93 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_cleanup() local
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c1 // SPDX-License-Identifier: MIT
3 * Copyright 2014-2018 Advanced Micro Devices, Inc.
23 #include <linux/dma-buf.h>
73 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1]
78 struct kgd_mem *mem) in kfd_mem_is_attached() argument
82 list_for_each_entry(entry, &mem->attachments, list) in kfd_mem_is_attached()
83 if (entry->bo_va->base.vm == avm) in kfd_mem_is_attached()
90 * reuse_dmamap() - Check whether adev can share the original
104 return (adev->ram_is_direct_mapped && bo_adev->ram_is_direct_mapped) || in reuse_dmamap()
105 (adev->dev->iommu_group == bo_adev->dev->iommu_group); in reuse_dmamap()
[all …]
/linux/drivers/dma/
H A Dtegra186-gpc-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * DMA driver for NVIDIA Tegra GPC DMA controller.
5 * Copyright (c) 2014-2022, NVIDIA CORPORATION. All rights reserved.
10 #include <linux/dma-mapping.h>
21 #include <dt-bindings/memory/tegra186-mc.h>
22 #include "virt-dma.h"
118 (GENMASK((fls(bs) - 2), 0) << TEGRA_GPCDMA_MMIOSEQ_BURST_SHIFT)
129 /* DMA byte count status */
157 * If any burst is in flight and DMA paused then this is the time to complete
158 * on-flight burst and update DMA status register.
[all …]

12345678910>>...29