Home
last modified time | relevance | path

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

12345678910>>...42

/linux/drivers/gpu/drm/tegra/
H A Duapi.c1 // SPDX-License-Identifier: GPL-2.0-only
17 struct tegra_drm_mapping *mapping = in tegra_drm_mapping_release() local
20 host1x_bo_unpin(mapping->map); in tegra_drm_mapping_release()
21 host1x_bo_put(mapping->bo); in tegra_drm_mapping_release()
23 kfree(mapping); in tegra_drm_mapping_release()
26 void tegra_drm_mapping_put(struct tegra_drm_mapping *mapping) in tegra_drm_mapping_put() argument
28 kref_put(&mapping->ref, tegra_drm_mapping_release); in tegra_drm_mapping_put()
33 struct tegra_drm_mapping *mapping; in tegra_drm_channel_context_close() local
36 if (context->memory_context) in tegra_drm_channel_context_close()
37 host1x_memory_context_put(context->memory_context); in tegra_drm_channel_context_close()
[all …]
H A 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 kref_init(&map->ref); in gather_bo_pin()
[all …]
/linux/include/linux/
H A Dpagemap.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 unsigned long invalidate_mapping_pages(struct address_space *mapping,
26 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in invalidate_remote_inode()
27 S_ISLNK(inode->i_mode)) in invalidate_remote_inode()
28 invalidate_mapping_pages(inode->i_mapping, 0, -1); in invalidate_remote_inode()
30 int invalidate_inode_pages2(struct address_space *mapping);
48 filemap_fdatawait(struct address_space * mapping) filemap_fdatawait() argument
66 filemap_write_and_wait(struct address_space * mapping) filemap_write_and_wait() argument
85 filemap_set_wb_err(struct address_space * mapping,int err) filemap_set_wb_err() argument
102 filemap_check_wb_err(struct address_space * mapping,errseq_t since) filemap_check_wb_err() argument
115 filemap_sample_wb_err(struct address_space * mapping) filemap_sample_wb_err() argument
143 mapping_empty(struct address_space * mapping) mapping_empty() argument
169 mapping_shrinkable(struct address_space * mapping) mapping_shrinkable() argument
238 mapping_set_error(struct address_space * mapping,int error) mapping_set_error() argument
257 mapping_set_unevictable(struct address_space * mapping) mapping_set_unevictable() argument
262 mapping_clear_unevictable(struct address_space * mapping) mapping_clear_unevictable() argument
267 mapping_unevictable(struct address_space * mapping) mapping_unevictable() argument
272 mapping_set_exiting(struct address_space * mapping) mapping_set_exiting() argument
277 mapping_exiting(struct address_space * mapping) mapping_exiting() argument
282 mapping_set_no_writeback_tags(struct address_space * mapping) mapping_set_no_writeback_tags() argument
287 mapping_use_writeback_tags(struct address_space * mapping) mapping_use_writeback_tags() argument
292 mapping_release_always(const struct address_space * mapping) mapping_release_always() argument
297 mapping_set_release_always(struct address_space * mapping) mapping_set_release_always() argument
302 mapping_clear_release_always(struct address_space * mapping) mapping_clear_release_always() argument
307 mapping_stable_writes(const struct address_space * mapping) mapping_stable_writes() argument
312 mapping_set_stable_writes(struct address_space * mapping) mapping_set_stable_writes() argument
317 mapping_clear_stable_writes(struct address_space * mapping) mapping_clear_stable_writes() argument
322 mapping_set_inaccessible(struct address_space * mapping) mapping_set_inaccessible() argument
333 mapping_inaccessible(struct address_space * mapping) mapping_inaccessible() argument
338 mapping_gfp_mask(struct address_space * mapping) mapping_gfp_mask() argument
344 mapping_gfp_constraint(struct address_space * mapping,gfp_t gfp_mask) mapping_gfp_constraint() argument
408 mapping_set_folio_order_range(struct address_space * mapping,unsigned int min,unsigned int max) mapping_set_folio_order_range() argument
428 mapping_set_folio_min_order(struct address_space * mapping,unsigned int min) mapping_set_folio_min_order() argument
445 mapping_set_large_folios(struct address_space * mapping) mapping_set_large_folios() argument
451 mapping_max_folio_order(const struct address_space * mapping) mapping_max_folio_order() argument
459 mapping_min_folio_order(const struct address_space * mapping) mapping_min_folio_order() argument
467 mapping_min_folio_nrpages(struct address_space * mapping) mapping_min_folio_nrpages() argument
481 mapping_align_index(struct address_space * mapping,pgoff_t index) mapping_align_index() argument
491 mapping_large_folio_support(struct address_space * mapping) mapping_large_folio_support() argument
501 mapping_max_folio_size(const struct address_space * mapping) mapping_max_folio_size() argument
506 filemap_nr_thps(struct address_space * mapping) filemap_nr_thps() argument
515 filemap_nr_thps_inc(struct address_space * mapping) filemap_nr_thps_inc() argument
525 filemap_nr_thps_dec(struct address_space * mapping) filemap_nr_thps_dec() argument
579 folio_attach_private(struct folio * folio,void * data) folio_attach_private() argument
597 folio_change_private(struct folio * folio,void * data) folio_change_private() argument
616 void *data = folio_get_private(folio); folio_detach_private() local
627 attach_page_private(struct page * page,void * data) attach_page_private() argument
753 filemap_get_folio(struct address_space * mapping,pgoff_t index) filemap_get_folio() argument
771 filemap_lock_folio(struct address_space * mapping,pgoff_t index) filemap_lock_folio() argument
789 filemap_grab_folio(struct address_space * mapping,pgoff_t index) filemap_grab_folio() argument
807 find_get_page(struct address_space * mapping,pgoff_t offset) find_get_page() argument
813 find_get_page_flags(struct address_space * mapping,pgoff_t offset,fgf_t fgp_flags) find_get_page_flags() argument
832 find_lock_page(struct address_space * mapping,pgoff_t index) find_lock_page() argument
857 find_or_create_page(struct address_space * mapping,pgoff_t index,gfp_t gfp_mask) find_or_create_page() argument
878 grab_cache_page_nowait(struct address_space * mapping,pgoff_t index) grab_cache_page_nowait() argument
937 grab_cache_page(struct address_space * mapping,pgoff_t index) grab_cache_page() argument
952 read_mapping_page(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_page() argument
958 read_mapping_folio(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_folio() argument
1261 filemap_range_needs_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_needs_writeback() argument
1291 struct address_space *mapping; global() member
1334 page_cache_sync_readahead(struct address_space * mapping,struct file_ra_state * ra,struct file * file,pgoff_t index,unsigned long req_count) page_cache_sync_readahead() argument
1356 page_cache_async_readahead(struct address_space * mapping,struct file_ra_state * ra,struct file * file,struct folio * folio,unsigned long req_count) page_cache_async_readahead() argument
[all...]
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.h1 /* SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
35 * enum ipc_pcie_sleep_state - Enum type to different sleep state transitions
45 * struct iosm_pcie - IPC_PCIE struct.
54 * @imem: Pointer to imem data struct
81 * struct ipc_skb_cb - Struct definition of the socket buffer which is mapped to
83 * @mapping: Store physical or IOVA mapped address of skb virtual add.
89 dma_addr_t mapping; member
96 * enum ipc_ul_usr_op - Control operation to execute the right action on
110 * ipc_pcie_addr_map - Maps the kernel's virtual address to either IOVA
[all …]
/linux/drivers/net/xen-netback/
H A 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/Documentation/admin-guide/device-mapper/
H A 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 …]
H A Dvdo-design.rst1 .. SPDX-License-Identifier: GPL-2.0-only
4 Design of dm-vdo
7 The dm-vdo (virtual data optimizer) target provides inline deduplication,
8 compression, zero-block elimination, and thin provisioning. A dm-vdo target
12 production environments ever since. It was made open-source in 2017 after
14 dm-vdo. For usage, see vdo.rst in the same directory as this file.
25 The design of dm-vdo is based on the idea that deduplication is a two-part
26 problem. The first is to recognize duplicate data. The second is to avoid
27 storing multiple copies of those duplicates. Therefore, dm-vdo has two main
29 duplicate data, and a data store with a reference counted block map that
[all …]
/linux/Documentation/trace/
H A Dring-buffer-map.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Tracefs ring-buffer memory mapping
11 Tracefs ring-buffer memory map provides an efficient method to stream data
12 as no memory copy is necessary. The application mapping the ring-buffer becomes
13 then a consumer for that ring-buffer, in a similar fashion to trace_pipe.
15 Memory mapping setup
17 The mapping works with a mmap() of the trace_pipe_raw interface.
19 The first system page of the mapping contains ring-buffer statistics and
20 description. It is referred to as the meta-page. One of the most important
21 fields of the meta-page is the reader. It contains the sub-buffer ID which can
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A 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.
31 dma_addr_t mapping; in qede_alloc_rx_buffer() local
32 struct page *data; in qede_alloc_rx_buffer() local
34 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer()
38 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer()
39 rxq->filled_buffers--; in qede_alloc_rx_buffer()
43 data = alloc_pages(GFP_ATOMIC, 0); in qede_alloc_rx_buffer()
44 if (unlikely(!data)) in qede_alloc_rx_buffer()
[all …]
/linux/mm/
H A Dfilemap.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1994-1999 Linus Torvalds
30 #include <linux/error-injection.h>
33 #include <linux/backing-dev.h>
73 * finished 'unifying' the page and buffer cache and SMP-threaded the
74 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com>
76 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de>
82 * ->i_mmap_rwsem (truncate_pagecache)
83 * ->private_lock (__free_pte->block_dirty_folio)
84 * ->swap_lock (exclusive_swap_page, others)
[all …]
/linux/Documentation/core-api/
H A Ddma-api-howto.rst2 Dynamic DMA mapping Guide
10 with example pseudo-code. For a concise description of the API, see
11 Documentation/core-api/dma-api.rst.
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/fs/ecryptfs/
H A 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>
26 * This is where we encrypt the data and pass the encrypted data to
27 * the lower filesystem. In OpenPGP-compatible mode, we operate on
30 static int ecryptfs_writepages(struct address_space *mapping, in ecryptfs_writepages() argument
36 while ((folio = writeback_iter(mapping, wbc, folio, &error))) { in ecryptfs_writepages()
[all …]
/linux/net/core/
H A Dieee8021q_helpers.c1 // SPDX-License-Identifier: GPL-2.0
12 * IEEE 802.1Q-2022 in Annex I "I.3 Traffic type to traffic class mapping" and
13 * Table I-1 "Traffic type to traffic class mapping".
82 * ieee8021q_tt_to_tc - Map IEEE 802.1Q Traffic Type to Traffic Class
87 * on the number of queues configured on the NIC. The mapping is based on the
88 * example provided by IEEE 802.1Q-2022 in Annex I "I.3 Traffic type to traffic
89 * class mapping" and Table I-1 "Traffic type to traffic class mapping".
99 return -EINVAL; in ieee8021q_tt_to_tc()
105 IEEE8021Q_TT_MAX - 1, in ieee8021q_tt_to_tc()
106 "ieee8021q_8queue_tt_tc_map != max - 1"); in ieee8021q_tt_to_tc()
[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/net/netfilter/
H A 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/include/linux/pinctrl/
H A 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/arch/mips/include/asm/
H A 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
/linux/drivers/iommu/
H A Dipmmu-vmsa.c1 // SPDX-License-Identifier: GPL-2.0
3 * IOMMU API for Renesas VMSA-compatible IPMMU
6 * Copyright (C) 2014-2020 Renesas Electronics Corporation
11 #include <linux/dma-mapping.h>
18 #include <linux/io-pgtable.h>
29 #include <asm/dma-iommu.h>
32 #define arm_iommu_attach_device(...) -ENODEV
37 #define IPMMU_CTX_INVALID -1
67 struct dma_iommu_mapping *mapping; member
93 /* -----------------------------------------------------------------------------
[all …]
/linux/drivers/platform/x86/intel/
H A Dtpmi_power_domains.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Mapping of TPMI power domains CPU mapping
23 #include <asm/intel-family.h>
48 * struct tpmi_cpu_info - Mapping information for a CPU
49 * @hnode: Used to add mapping information to hash list
56 * Structure to store mapping information for a Linux CPU
97 return info->pkg_id < topology_max_packages() && in tpmi_domain_is_valid()
98 info->punit_domain_id < MAX_POWER_DOMAINS; in tpmi_domain_is_valid()
104 int ret = -EINVAL; in tpmi_get_linux_cpu_number()
108 if (info->punit_domain_id == domain_id && info->pkg_id == package_id) { in tpmi_get_linux_cpu_number()
[all …]
/linux/Documentation/devicetree/bindings/display/
H A Dlvds.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - $ref: lvds-data-mapping.yaml#
13 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
14 - Thierry Reding <thierry.reding@gmail.com>
17 This binding extends the data mapping defined in lvds-data-mapping.yaml.
19 to accommodate for even more specialized data formats, since a variety of
20 data formats and layouts is used to drive LVDS displays.
23 data-mirror:
[all …]
/linux/fs/f2fs/
H A Ddata.c1 // SPDX-License-Identifier: GPL-2.0
3 * fs/f2fs/data.c
16 #include <linux/blk-crypto.h>
52 struct address_space *mapping = page_folio(page)->mapping; in f2fs_is_cp_guaranteed() local
59 inode = mapping->host; in f2fs_is_cp_guaranteed()
62 if (inode->i_ino == F2FS_META_INO(sbi) || in f2fs_is_cp_guaranteed()
63 inode->i_ino == F2FS_NODE_INO(sbi) || in f2fs_is_cp_guaranteed()
64 S_ISDIR(inode->i_mode)) in f2fs_is_cp_guaranteed()
67 if ((S_ISREG(inode->i_mode) && IS_NOQUOTA(inode)) || in f2fs_is_cp_guaranteed()
75 struct address_space *mapping = folio->mapping; in __read_io_type() local
[all …]
/linux/drivers/net/dsa/microchip/
H A Dksz_dcb.c1 // SPDX-License-Identifier: GPL-2.0
14 * The datasheet specifies: Port 1 - 0x10, Port 2 - 0x20, Port 3 - 0x30.
59 /* ksz_supported_apptrust[] - Supported apptrust selectors and Priority Order
63 * the index within the array indicates the priority of the selector - lower
70 * non-configurable precedence where certain types of priority information
73 * 1. Tail Tag - Highest priority, overrides ACL, VLAN PCP, and DSCP priorities.
74 * 2. ACL - Overrides VLAN PCP and DSCP priorities.
75 * 3. VLAN PCP - Overrides DSCP priority.
76 * 4. DSCP - Lowest priority, does not override any other priority source.
82 * DCB_APP_SEL_PCP - Priority Code Point selector
[all …]
/linux/fs/jfs/
H A Djfs_metapage.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2005
4 * Portions Copyright (C) Christoph Hellwig, 2001-2002
34 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag)
35 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag)
39 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
40 wake_up(&mp->wait); in unlock_metapage()
47 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
51 folio_unlock(mp->folio); in __lock_metapage()
53 folio_lock(mp->folio); in __lock_metapage()
[all …]
/linux/drivers/pci/controller/
H A Dpcie-iproc.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2014-2015 Broadcom Corporation
10 * enum iproc_pcie_type - iProc PCIe interface type
11 * @IPROC_PCIE_PAXB_BCMA: BCMA-based host controllers
12 * @IPROC_PCIE_PAXB: PAXB-based host controllers for
14 * @IPROC_PCIE_PAXB_V2: PAXB-based host controllers for Stingray SoCs
15 * @IPROC_PCIE_PAXC: PAXC-based host controllers
16 * @IPROC_PCIE_PAXC_V2: PAXC-based host controllers (second generation)
33 * struct iproc_pcie_ob - iProc PCIe outbound mapping
36 * @nr_windows: total number of supported outbound mapping windows
[all …]
/linux/drivers/dax/
H A Dbus.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2017-2018 Intel Corporation. All rights reserved. */
10 #include "dax-private.h"
36 * We only ever expect to handle device-dax instances, i.e. the in dax_bus_uevent()
51 list_for_each_entry(dax_id, &dax_drv->ids, list) in __dax_match_id()
52 if (sysfs_streq(dax_id->dev_name, dev_name)) in __dax_match_id()
73 if (dev_dax->region->res.flags & IORESOURCE_DAX_KMEM) in dax_match_type()
76 if (dax_drv->type == type) in dax_match_type()
80 if (dax_drv->type == DAXDRV_DEVICE_TYPE && in dax_match_type()
104 return -EINVAL; in do_id_store()
[all …]

12345678910>>...42