Home
last modified time | relevance | path

Searched +full:data +full:- +full:mapping (Results 1 – 25 of 1096) sorted by relevance

12345678910>>...44

/Linux-v5.15/drivers/gpu/drm/tegra/
Duapi.c1 // SPDX-License-Identifier: GPL-2.0-only
17 struct tegra_drm_mapping *mapping = in tegra_drm_mapping_release() local
20 if (mapping->sgt) in tegra_drm_mapping_release()
21 dma_unmap_sgtable(mapping->dev, mapping->sgt, mapping->direction, in tegra_drm_mapping_release()
24 host1x_bo_unpin(mapping->dev, mapping->bo, mapping->sgt); in tegra_drm_mapping_release()
25 host1x_bo_put(mapping->bo); in tegra_drm_mapping_release()
27 kfree(mapping); in tegra_drm_mapping_release()
30 void tegra_drm_mapping_put(struct tegra_drm_mapping *mapping) in tegra_drm_mapping_put() argument
32 kref_put(&mapping->ref, tegra_drm_mapping_release); in tegra_drm_mapping_put()
37 struct tegra_drm_mapping *mapping; in tegra_drm_channel_context_close() local
[all …]
Dsubmit.c1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <linux/dma-fence-array.h>
5 #include <linux/dma-mapping.h>
27 dev_err_ratelimited(context->client->base.dev, \
29 current->comm, ##__VA_ARGS__)
46 kref_get(&bo->ref); in gather_bo_get()
55 dma_free_attrs(bo->dev, bo->gather_data_words * 4, bo->gather_data, bo->gather_data_dma, in gather_bo_release()
64 kref_put(&bo->ref, gather_bo_release); in gather_bo_put()
76 return ERR_PTR(-ENOMEM); in gather_bo_pin()
78 err = dma_get_sgtable(bo->dev, sgt, bo->gather_data, bo->gather_data_dma, in gather_bo_pin()
[all …]
/Linux-v5.15/drivers/media/usb/uvc/
Duvc_ctrl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * uvc_ctrl.c -- USB Video Class driver - Controls
5 * Copyright (C) 2005-2010
20 #include <media/v4l2-ctrls.h>
32 /* ------------------------------------------------------------------------
373 static s32 uvc_ctrl_get_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_get_zoom() argument
374 u8 query, const u8 *data) in uvc_ctrl_get_zoom() argument
376 s8 zoom = (s8)data[0]; in uvc_ctrl_get_zoom()
380 return (zoom == 0) ? 0 : (zoom > 0 ? data[2] : -data[2]); in uvc_ctrl_get_zoom()
387 return data[2]; in uvc_ctrl_get_zoom()
[all …]
/Linux-v5.15/include/linux/
Dpagemap.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 static inline bool mapping_empty(struct address_space *mapping) in mapping_empty() argument
23 return xa_empty(&mapping->i_pages); in mapping_empty()
27 * Bits in mapping->flags.
41 * mapping_set_error - record a writeback error in the address_space
42 * @mapping: the mapping in which an error should be set
43 * @error: the error to set in the mapping
51 * mapping_set_error to record the error in the mapping so that it can be
54 static inline void mapping_set_error(struct address_space *mapping, int error) in mapping_set_error() argument
60 __filemap_set_wb_err(mapping, error); in mapping_set_error()
[all …]
Diomap.h1 /* SPDX-License-Identifier: GPL-2.0 */
31 #define IOMAP_INLINE 4 /* data inline in the inode */
37 * zeroing for areas that no data is copied to.
40 * written data and requires fdatasync to commit them to persistent storage.
51 * buffer heads for this mapping.
77 #define IOMAP_NULL_ADDR -1ULL /* addr is not valid */
82 u64 addr; /* disk offset of mapping, bytes */
83 loff_t offset; /* file offset of mapping, bytes */
84 u64 length; /* length of mapping, bytes */
85 u16 type; /* type of mapping */
[all …]
/Linux-v5.15/include/linux/spi/
Dspi-mem.h1 /* SPDX-License-Identifier: GPL-2.0+ */
59 * enum spi_mem_data_dir - describes the direction of a SPI memory data
61 * @SPI_MEM_NO_DATA: no data transferred
62 * @SPI_MEM_DATA_IN: data coming from the SPI memory
63 * @SPI_MEM_DATA_OUT: data sent to the SPI memory
72 * struct spi_mem_op - describes a SPI memory operation
74 * sent MSB-first.
90 * @data.buswidth: number of IO lanes used to send/receive the data
91 * @data.dtr: whether the data should be sent in DTR mode or not
92 * @data.dir: direction of the transfer
[all …]
/Linux-v5.15/drivers/net/wwan/iosm/
Diosm_ipc_pcie.h1 /* SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
34 * enum ipc_pcie_sleep_state - Enum type to different sleep state transitions
44 * struct iosm_pcie - IPC_PCIE struct.
53 * @imem: Pointer to imem data struct
80 * struct ipc_skb_cb - Struct definition of the socket buffer which is mapped to
82 * @mapping: Store physical or IOVA mapped address of skb virtual add.
88 dma_addr_t mapping; member
95 * enum ipc_ul_usr_op - Control operation to execute the right action on
109 * ipc_pcie_addr_map - Maps the kernel's virtual address to either IOVA
[all …]
/Linux-v5.15/drivers/net/xen-netback/
Dhash.c46 memcpy(new->tag, tag, len); in xenvif_add_hash()
47 new->len = len; in xenvif_add_hash()
48 new->val = val; in xenvif_add_hash()
50 spin_lock_irqsave(&vif->hash.cache.lock, flags); in xenvif_add_hash()
54 list_for_each_entry_rcu(entry, &vif->hash.cache.list, link, in xenvif_add_hash()
55 lockdep_is_held(&vif->hash.cache.lock)) { in xenvif_add_hash()
57 if (entry->len == len && in xenvif_add_hash()
58 memcmp(entry->tag, tag, len) == 0) in xenvif_add_hash()
60 if (!oldest || entry->seq < oldest->seq) in xenvif_add_hash()
65 new->seq = atomic_inc_return(&vif->hash.cache.seq); in xenvif_add_hash()
[all …]
/Linux-v5.15/mm/
Dfilemap.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1994-1999 Linus Torvalds
28 #include <linux/error-injection.h>
31 #include <linux/backing-dev.h>
65 * finished 'unifying' the page and buffer cache and SMP-threaded the
66 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com>
68 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de>
74 * ->i_mmap_rwsem (truncate_pagecache)
75 * ->private_lock (__free_pte->__set_page_dirty_buffers)
76 * ->swap_lock (exclusive_swap_page, others)
[all …]
Dcleancache.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright (C) 2009-2010 Oracle Corp. All rights reserved.
38 switch (sb->cleancache_poolid) { in cleancache_register_ops_sb()
54 return -EBUSY; in cleancache_register_ops()
59 * handle such a scenario, here we call ->init_fs or ->init_shared_fs in cleancache_register_ops()
61 * shared filesystems, we temporarily initialize sb->cleancache_poolid in cleancache_register_ops()
74 * ->kill_sb in cleancache_register_ops()
77 * ->mount yet, it waits until it is finished in cleancache_register_ops()
79 * c) cleancache_init_fs is called from ->mount and in cleancache_register_ops()
80 * cleancache_invalidate_fs is called from ->kill_sb in cleancache_register_ops()
[all …]
/Linux-v5.15/Documentation/admin-guide/device-mapper/
Ddm-zoned.rst2 dm-zoned
5 The dm-zoned device mapper target exposes a zoned block device (ZBC and
7 pattern constraints. In effect, it implements a drive-managed zoned
10 host-managed zoned block devices and can mitigate the potential
11 device-side performance degradation due to excessive random writes on
12 host-aware zoned block devices.
21 http://www.t13.org/Documents/UploadedDocuments/docs2015/di537r05-Zoned_Device_ATA_Command_Set_ZAC.p…
23 The dm-zoned implementation is simple and minimizes system overhead (CPU
25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk
29 dm-zoned target devices are formatted and checked using the dmzadm
[all …]
/Linux-v5.15/arch/arm/mm/
Dflush.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2002 Russell King
48 : "r" (to), "r" (to + PAGE_SIZE - 1), "r" (zero) in flush_pfn_alias()
55 unsigned long offset = vaddr & (PAGE_SIZE - 1); in flush_icache_alias()
94 if (vma->vm_flags & VM_EXEC) in flush_cache_range()
110 if (vma->vm_flags & VM_EXEC && icache_is_vivt_asid_tagged()) in flush_cache_page()
145 /* VIPT non-aliasing D-cache */ in __flush_ptrace_access()
163 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) in flush_ptrace_access()
165 if (vma->vm_flags & VM_EXEC) in flush_ptrace_access()
179 * Copy user data from/to a page which is mapped into a different
[all …]
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c1 /* Broadcom NetXtreme-C/E network driver.
3 * Copyright (c) 2016-2017 Broadcom Limited
25 dma_addr_t mapping, u32 len) in bnxt_xmit_bd() argument
32 prod = txr->tx_prod; in bnxt_xmit_bd()
33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd()
35 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd()
38 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_xmit_bd()
39 txbd->tx_bd_opaque = prod; in bnxt_xmit_bd()
40 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_xmit_bd()
43 txr->tx_prod = prod; in bnxt_xmit_bd()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/display/panel/
Dlvds.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
11 - Thierry Reding <thierry.reding@gmail.com>
14 LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple
15 incompatible data link layers have been used over time to transmit image data
19 [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February
27 FPD-Link and FlatLink brands.
30 - $ref: panel-common.yaml#
[all …]
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
30 dma_addr_t mapping; in qede_alloc_rx_buffer() local
31 struct page *data; in qede_alloc_rx_buffer() local
33 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer()
37 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer()
38 rxq->filled_buffers--; in qede_alloc_rx_buffer()
42 data = alloc_pages(GFP_ATOMIC, 0); in qede_alloc_rx_buffer()
43 if (unlikely(!data)) in qede_alloc_rx_buffer()
[all …]
/Linux-v5.15/Documentation/core-api/
Ddma-api-howto.rst2 Dynamic DMA mapping Guide
10 with example pseudo-code. For a concise description of the API, see
11 DMA-API.txt.
39 supports 64-bit addresses for main memory and PCI BARs, it may use an IOMMU
40 so devices only need to use 32-bit DMA addresses.
49 +-------+ +------+ +------+
52 C +-------+ --------> B +------+ ----------> +------+ A
53 | | mapping | | by host | |
54 +-----+ | | | | bridge | | +--------+
55 | | | | +------+ | | | |
[all …]
/Linux-v5.15/drivers/spi/
Dspi-mem.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/spi/spi-mem.h>
19 * spi_controller_dma_map_mem_op_data() - DMA-map the buffer attached to a
23 * @sgt: a pointer to a non-initialized sg_table that will be filled by this
26 * Some controllers might want to do DMA on the data buffer embedded in @op.
27 * This helper prepares everything for you and provides a ready-to-use
31 * op->data.buf.{in,out} is DMA-able before calling this function.
41 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
42 return -EINVAL; in spi_controller_dma_map_mem_op_data()
44 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_map_mem_op_data()
[all …]
/Linux-v5.15/fs/xfs/
Dxfs_aops.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * Copyright (c) 2016-2018 Christoph Hellwig.
34 * Fast and loose check if this write could update the on-disk inode size.
38 return ioend->io_offset + ioend->io_size > in xfs_ioend_is_append()
39 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append()
43 * Update on-disk file size now that data has been written to disk.
51 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize()
56 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_setfilesize()
70 ip->i_disk_size = isize; in xfs_setfilesize()
[all …]
/Linux-v5.15/fs/ecryptfs/
Dmmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * decryption of the file data as it passes between the lower
8 * Copyright (C) 1997-2003 Erez Zadok
9 * Copyright (C) 2001-2003 Stony Brook University
10 * Copyright (C) 2004-2007 International Business Machines Corp.
16 #include <linux/page-flags.h>
30 * Returns locked and up-to-date page (if ok), with increased
35 struct page *page = read_mapping_page(inode->i_mapping, index, NULL); in ecryptfs_get_locked_page()
44 * @wbc: Write-back control structure
46 * Returns zero on success; non-zero otherwise
[all …]
/Linux-v5.15/arch/mips/include/asm/
Dvdso.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
16 * struct mips_vdso_image - Details of a VDSO image.
17 * @data: Pointer to VDSO image data (page-aligned).
18 * @size: Size of the VDSO image data (page-aligned).
21 * @mapping: Special mapping structure.
23 * This structure contains details of a VDSO image, including the image data
25 * part of the VDSO build process, aside from the mapping page array, which is
29 void *data; member
35 struct vm_special_mapping mapping; member
39 * The following structures are auto-generated as part of the build for each
[all …]
/Linux-v5.15/fs/9p/
Dvfs_addr.c1 // SPDX-License-Identifier: GPL-2.0-only
32 * v9fs_fid_readpage - read an entire page in from 9P
33 * @data: Opaque pointer to the fid being read
37 static int v9fs_fid_readpage(void *data, struct page *page) in v9fs_fid_readpage() argument
39 struct p9_fid *fid = data; in v9fs_fid_readpage()
40 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
62 zero_user(page, retval, PAGE_SIZE - retval); in v9fs_fid_readpage()
75 * v9fs_vfs_readpage - read an entire page in from 9P
84 return v9fs_fid_readpage(filp->private_data, page); in v9fs_vfs_readpage()
88 * v9fs_vfs_readpages - read a set of pages from 9P
[all …]
/Linux-v5.15/include/linux/pinctrl/
Dmachine.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2011 ST-Ericsson SA
6 * Written on behalf of Linaro for ST-Ericsson
16 #include <linux/pinctrl/pinctrl-state.h>
27 * struct pinctrl_map_mux - mapping table content for MAP_TYPE_MUX_GROUP
39 * struct pinctrl_map_configs - mapping table content for MAP_TYPE_CONFIGS_*
54 * struct pinctrl_map - boards/machines shall provide this map for devices
55 * @dev_name: the name of the device using this specific mapping, the name
61 * @type: the type of mapping table entry
62 * @ctrl_dev_name: the name of the device controlling this specific mapping,
[all …]
/Linux-v5.15/arch/mips/kernel/
Dvdso.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <asm/mips-cps.h>
26 /* Kernel-provided data used by the VDSO. */
28 struct vdso_data *vdso_data = mips_vdso_data.data;
31 * Mapping for the VDSO data/GIC pages. The real pages are mapped manually, as
46 BUG_ON(!PAGE_ALIGNED(image->data)); in init_vdso_image()
47 BUG_ON(!PAGE_ALIGNED(image->size)); in init_vdso_image()
49 num_pages = image->size / PAGE_SIZE; in init_vdso_image()
51 data_pfn = __phys_to_pfn(__pa_symbol(image->data)); in init_vdso_image()
53 image->mapping.pages[i] = pfn_to_page(data_pfn + i); in init_vdso_image()
[all …]
/Linux-v5.15/net/netfilter/
Dnft_set_pipapo.h1 // SPDX-License-Identifier: GPL-2.0-only
8 /* Count of concatenated fields depends on count of 32-bit nftables registers */
25 #define NFT_PIPAPO_GROUPS_PER_BYTE(f) (BITS_PER_BYTE / (f)->bb)
32 * crossing page boundaries on most architectures (x86-64 and MIPS huge pages,
34 * keeps performance nice in case kvmalloc() gives us non-contiguous areas.
39 #define NFT_PIPAPO_LT_SIZE_LOW NFT_PIPAPO_LT_SIZE_THRESHOLD - \
44 (round_up((f)->groups / NFT_PIPAPO_GROUPS_PER_BYTE(f), sizeof(u32)))
46 (NFT_PIPAPO_GROUPS_PADDED_SIZE(f) - (f)->groups / \
52 /* Each n-bit range maps to up to n * 2 rules */
55 /* Use the rest of mapping table buckets for rule indices, but it makes no sense
[all …]
/Linux-v5.15/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c1 // SPDX-License-Identifier: GPL-2.0
26 static int panfrost_ioctl_get_param(struct drm_device *ddev, void *data, struct drm_file *file) in panfrost_ioctl_get_param() argument
28 struct drm_panfrost_get_param *param = data; in panfrost_ioctl_get_param()
29 struct panfrost_device *pfdev = ddev->dev_private; in panfrost_ioctl_get_param()
31 if (param->pad != 0) in panfrost_ioctl_get_param()
32 return -EINVAL; in panfrost_ioctl_get_param()
36 param->value = pfdev->features.member; \ in panfrost_ioctl_get_param()
41 param->value = pfdev->features.member[param->param - \ in panfrost_ioctl_get_param()
45 switch (param->param) { in panfrost_ioctl_get_param()
72 return -EINVAL; in panfrost_ioctl_get_param()
[all …]

12345678910>>...44