Home
last modified time | relevance | path

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

12345678910>>...37

/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 …]
H A Dlpc1850-dmamux.txt1 NXP LPC18xx/43xx DMA MUX (DMA request router)
4 - compatible: "nxp,lpc1850-dmamux"
5 - reg: Memory map for accessing module
6 - #dma-cells: Should be set to <3>.
7 * 1st cell contain the master dma request signal
8 * 2nd cell contain the mux value (0-3) for the peripheral
11 - dma-requests: Number of DMA requests for the mux
12 - dma-masters: phandle pointing to the DMA controller
14 The DMA controller node need to have the following poroperties:
15 - dma-requests: Number of DMA requests the controller can handle
[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 address
31 * @seg_id_buf_dma: seg id dma address
32 * @wrap_y_dma: wrap y dma address
33 * @wrap_c_dma: wrap y dma address
34 * @cur_y_fb_dma: current plane Y frame buffer dma address
[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_multi_if.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <media/v4l2-h264.h>
10 #include <media/v4l2-mem2mem.h>
11 #include <media/videobuf2-dma-contig.h>
21 * enum vdec_h264_core_dec_err_type - core decode error type
32 * struct vdec_h264_slice_lat_dec_param - parameters for decode current frame
51 * struct vdec_h264_slice_info - decode information
56 * @bs_buf_addr: bitstream buffer dma address
57 * @y_fb_dma: Y frame buffer dma address
58 * @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 - decode information
31 * @realloc_mv_buf : flag to notify driver to re-allocate mv buffer
33 * @bs_dma : Input bit-stream buffer dma address
34 * @y_fb_dma : Y frame buffer dma address
35 * @c_fb_dma : C frame buffer dma address
[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>
26 #include <linux/dma-mapping.h>
55 struct rproc_mem_entry *mem);
57 struct rproc_mem_entry *mem);
98 return -ENOSYS; in rproc_iommu_fault()
104 struct device *dev = rproc->dev.parent; in rproc_enable_iommu()
107 if (!rproc->has_iommu) { in rproc_enable_iommu()
112 domain = iommu_domain_alloc(dev->bus); in rproc_enable_iommu()
[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>
20 * spi_controller_dma_map_mem_op_data() - DMA-map the buffer attached to a
24 * @sgt: a pointer to a non-initialized sg_table that will be filled by this
27 * Some controllers might want to do DMA on the data buffer embedded in @op.
28 * This helper prepares everything for you and provides a ready-to-use
32 * op->data.buf.{in,out} is DMA-able before calling this function.
42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
43 return -EINVAL; in spi_controller_dma_map_mem_op_data()
45 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_map_mem_op_data()
[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/drivers/media/platform/renesas/vsp1/
H A Dvsp1_dl.c1 // SPDX-License-Identifier: GPL-2.0+
3 * vsp1_dl.c -- R-Car VSP1 Display List
11 #include <linux/dma-mapping.h>
41 * struct vsp1_dl_ext_header - Extended display list header
43 * @pre_ext_dl_num_cmd: number of pre-extended command bodies to parse
45 * @pre_ext_dl_plist: start address of pre-extended display list bodies
46 * @post_ext_dl_num_cmd: number of post-extended command bodies to parse
47 * @post_ext_dl_plist: start address of post-extended display list bodies
54 * expecting 32-bit accesses. The flags are appropriate to the whole
79 * struct vsp1_pre_ext_dl_body - Pre Extended Display List Body
[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/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/scsi/
H A Dsun3_scsi.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Sun3 DMA routines added by Sam Creasey (sammy@sammy.net)
39 /* minimum number of bytes to do dma on */
46 #define NCR5380_read(reg) in_8(hostdata->io + (reg))
47 #define NCR5380_write(reg, value) out_8(hostdata->io + (reg), value)
61 /* dma regs start at regbase + 8, directly after the NCR regs */
67 unsigned short udc_data; /* udc dma data reg (obio only) */
68 unsigned short udc_addr; /* uda dma addr reg (obio only) */
70 * holds extra byte on odd dma reads
80 /* ucd chip specific regs - live in dvma space */
[all …]
/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/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_util.c1 // SPDX-License-Identifier: GPL-2.0
37 struct mtk_vcodec_dec_dev *dev = ctx->dev; in mtk_vcodec_write_vdecsys()
39 if (dev->vdecsys_regmap) in mtk_vcodec_write_vdecsys()
40 return regmap_write(dev->vdecsys_regmap, reg, val); in mtk_vcodec_write_vdecsys()
42 writel(val, dev->reg_base[VDEC_SYS] + reg); in mtk_vcodec_write_vdecsys()
48 int mtk_vcodec_mem_alloc(void *priv, struct mtk_vcodec_mem *mem) in mtk_vcodec_mem_alloc() argument
57 plat_dev = enc_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
58 id = enc_ctx->id; in mtk_vcodec_mem_alloc()
62 plat_dev = dec_ctx->dev->plat_dev; in mtk_vcodec_mem_alloc()
63 id = dec_ctx->id; in mtk_vcodec_mem_alloc()
[all …]

12345678910>>...37