Home
last modified time | relevance | path

Searched full:mapping (Results 1 – 25 of 3738) sorted by relevance

12345678910>>...150

/Linux-v5.4/drivers/staging/gasket/
Dgasket_sysfs.c17 * The device bound to this mapping. If this is NULL, then this mapping
34 /* Tracks active users of this mapping. */
50 /* Callback when a mapping's refcount goes to zero. */
56 /* Look up mapping information for the given device. */
71 dev_dbg(device, "%s: Mapping to device %s not found\n", in get_mapping()
76 /* Put a reference to a mapping. */
77 static void put_mapping(struct gasket_sysfs_mapping *mapping) in put_mapping() argument
84 if (!mapping) { in put_mapping()
85 pr_debug("%s: Mapping should not be NULL\n", __func__); in put_mapping()
89 mutex_lock(&mapping->mutex); in put_mapping()
[all …]
/Linux-v5.4/mm/
Dtruncate.c34 static inline void __clear_shadow_entry(struct address_space *mapping, in __clear_shadow_entry() argument
37 XA_STATE(xas, &mapping->i_pages, index); in __clear_shadow_entry()
43 mapping->nrexceptional--; in __clear_shadow_entry()
46 static void clear_shadow_entry(struct address_space *mapping, pgoff_t index, in clear_shadow_entry() argument
49 xa_lock_irq(&mapping->i_pages); in clear_shadow_entry()
50 __clear_shadow_entry(mapping, index, entry); in clear_shadow_entry()
51 xa_unlock_irq(&mapping->i_pages); in clear_shadow_entry()
59 static void truncate_exceptional_pvec_entries(struct address_space *mapping, in truncate_exceptional_pvec_entries() argument
67 if (shmem_mapping(mapping)) in truncate_exceptional_pvec_entries()
77 dax = dax_mapping(mapping); in truncate_exceptional_pvec_entries()
[all …]
Dfilemap.c119 static void page_cache_delete(struct address_space *mapping, in page_cache_delete() argument
122 XA_STATE(xas, &mapping->i_pages, page->index); in page_cache_delete()
125 mapping_set_update(&xas, mapping); in page_cache_delete()
140 page->mapping = NULL; in page_cache_delete()
144 mapping->nrexceptional += nr; in page_cache_delete()
153 mapping->nrpages -= nr; in page_cache_delete()
156 static void unaccount_page_cache_page(struct address_space *mapping, in unaccount_page_cache_page() argument
169 cleancache_invalidate_page(mapping, page); in unaccount_page_cache_page()
183 if (mapping_exiting(mapping) && in unaccount_page_cache_page()
209 filemap_nr_thps_dec(mapping); in unaccount_page_cache_page()
[all …]
Dreadahead.c33 file_ra_state_init(struct file_ra_state *ra, struct address_space *mapping) in file_ra_state_init() argument
35 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init()
47 static void read_cache_pages_invalidate_page(struct address_space *mapping, in read_cache_pages_invalidate_page() argument
53 page->mapping = mapping; in read_cache_pages_invalidate_page()
55 page->mapping = NULL; in read_cache_pages_invalidate_page()
64 static void read_cache_pages_invalidate_pages(struct address_space *mapping, in read_cache_pages_invalidate_pages() argument
72 read_cache_pages_invalidate_page(mapping, victim); in read_cache_pages_invalidate_pages()
78 * @mapping: the address_space
88 int read_cache_pages(struct address_space *mapping, struct list_head *pages, in read_cache_pages() argument
97 if (add_to_page_cache_lru(page, mapping, page->index, in read_cache_pages()
[all …]
/Linux-v5.4/include/linux/
Dpagemap.h22 * Bits in mapping->flags.
36 * @mapping - the mapping in which an error should be set
37 * @error - the error to set in the mapping
45 * mapping_set_error to record the error in the mapping so that it can be
48 static inline void mapping_set_error(struct address_space *mapping, int error) in mapping_set_error() argument
54 filemap_set_wb_err(mapping, error); in mapping_set_error()
58 set_bit(AS_ENOSPC, &mapping->flags); in mapping_set_error()
60 set_bit(AS_EIO, &mapping->flags); in mapping_set_error()
63 static inline void mapping_set_unevictable(struct address_space *mapping) in mapping_set_unevictable() argument
65 set_bit(AS_UNEVICTABLE, &mapping->flags); in mapping_set_unevictable()
[all …]
Dio-mapping.h16 * The io_mapping mechanism provides an abstraction for mapping
19 * See Documentation/io-mapping.txt
33 * For small address space machines, mapping large objects
56 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
58 iomap_free(mapping->base, mapping->size); in io_mapping_fini()
63 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument
69 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc()
70 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
72 return iomap_atomic_prot_pfn(pfn, mapping->prot); in io_mapping_map_atomic_wc()
82 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
[all …]
Dtpm_eventlog.h164 void *mapping = NULL; in __calc_tpm2_event_size() local
183 mapping = TPM_MEMREMAP((unsigned long)marker_start, in __calc_tpm2_event_size()
185 if (!mapping) { in __calc_tpm2_event_size()
190 mapping = marker_start; in __calc_tpm2_event_size()
193 event = (struct tcg_pcr_event2_head *)mapping; in __calc_tpm2_event_size()
214 TPM_MEMUNMAP(mapping, mapping_size); in __calc_tpm2_event_size()
216 mapping = TPM_MEMREMAP((unsigned long)marker, in __calc_tpm2_event_size()
218 if (!mapping) { in __calc_tpm2_event_size()
223 mapping = marker; in __calc_tpm2_event_size()
226 memcpy(&halg, mapping, halg_size); in __calc_tpm2_event_size()
[all …]
/Linux-v5.4/Documentation/
Dnommu-mmap.txt2 No-MMU memory mapping support
5 The kernel has limited support for memory mapping under no-MMU conditions, such
7 mapping is made use of in conjunction with the mmap() system call, the shmat()
9 mapping is actually performed by the binfmt drivers, which call back into the
12 Memory mapping behaviour also involves the way fork(), vfork(), clone() and
19 (#) Anonymous mapping, MAP_PRIVATE
27 (#) Anonymous mapping, MAP_SHARED
37 the underlying file are reflected in the mapping; copied across fork.
41 - If one exists, the kernel will re-use an existing mapping to the
45 - If possible, the file mapping will be directly on the backing device
[all …]
Dio-mapping.txt8 The io_mapping functions in linux/io-mapping.h provide an abstraction for
9 efficiently mapping small regions of an I/O device to the CPU. The initial
14 A mapping object is created during driver initialization using::
20 mappable, while 'size' indicates how large a mapping region to
23 This _wc variant provides a mapping which may only be used
26 With this mapping object, individual pages can be mapped either atomically
30 void *io_mapping_map_atomic_wc(struct io_mapping *mapping,
33 'offset' is the offset within the defined mapping region.
59 void *io_mapping_map_wc(struct io_mapping *mapping,
75 void io_mapping_free(struct io_mapping *mapping)
[all …]
DDMA-attributes.txt6 defined in linux/dma-mapping.h.
23 could race with data DMA. Mapping the memory used for completion
29 DMA_ATTR_WEAK_ORDERING specifies that reads and writes to the mapping
39 DMA_ATTR_WRITE_COMBINE specifies that writes to the mapping may be
58 virtual mapping for the allocated buffer. On some architectures creating
59 such mapping is non-trivial task and consumes very limited resources
78 having a mapping created separately for each device and is usually
93 device domain after releasing a mapping for it. Use this attribute with
99 By default DMA-mapping subsystem is allowed to assemble the buffer
108 This is a hint to the DMA-mapping subsystem that it's probably not worth
[all …]
/Linux-v5.4/drivers/media/usb/uvc/
Duvc_ctrl.c365 static s32 uvc_ctrl_get_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_get_zoom() argument
383 static void uvc_ctrl_set_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_set_zoom() argument
390 static s32 uvc_ctrl_get_rel_speed(struct uvc_control_mapping *mapping, in uvc_ctrl_get_rel_speed() argument
393 unsigned int first = mapping->offset / 8; in uvc_ctrl_get_rel_speed()
410 static void uvc_ctrl_set_rel_speed(struct uvc_control_mapping *mapping, in uvc_ctrl_set_rel_speed() argument
413 unsigned int first = mapping->offset / 8; in uvc_ctrl_set_rel_speed()
759 /* Extract the bit string specified by mapping->offset and mapping->size
761 * a signed 32bit integer. Sign extension will be performed if the mapping
764 static s32 uvc_get_le_value(struct uvc_control_mapping *mapping, in uvc_get_le_value() argument
767 int bits = mapping->size; in uvc_get_le_value()
[all …]
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_dma.c8 #include <linux/dma-mapping.h>
52 * drm_iommu_attach_device- attach device to iommu mapping
58 * mapping.
80 ret = arm_iommu_attach_device(subdrv_dev, priv->mapping); in drm_iommu_attach_device()
82 ret = iommu_attach_device(priv->mapping, subdrv_dev); in drm_iommu_attach_device()
92 * drm_iommu_detach_device -detach device address space mapping from device
98 * mapping
108 iommu_detach_device(priv->mapping, subdrv_dev); in drm_iommu_detach_device()
119 DRM_INFO("Exynos DRM: using %s device for DMA mapping operations\n", in exynos_drm_register_dma()
126 if (!priv->mapping) { in exynos_drm_register_dma()
[all …]
/Linux-v5.4/arch/arm/mm/
Ddma-mapping.c3 * linux/arch/arm/mm/dma-mapping.c
7 * DMA uncached mapping support.
18 #include <linux/dma-mapping.h>
445 * Clear previous low-memory mapping to ensure that the in dma_contiguous_remap()
811 * Create userspace mapping for the DMA-coherent memory.
829 * Free a buffer as defined by the above mapping.
938 * Use the driver DMA support - see dma-mapping.h (dma_sync_*)
1138 static int extend_iommu_mapping(struct dma_iommu_mapping *mapping);
1140 static inline dma_addr_t __alloc_iova(struct dma_iommu_mapping *mapping, in __alloc_iova() argument
1146 size_t mapping_size = mapping->bits << PAGE_SHIFT; in __alloc_iova()
[all …]
Dflush.c199 void __flush_dcache_page(struct address_space *mapping, struct page *page) in __flush_dcache_page() argument
202 * Writeback any data associated with the kernel mapping of this in __flush_dcache_page()
204 * coherent with the kernels mapping. in __flush_dcache_page()
232 if (mapping && cache_is_vipt_aliasing()) in __flush_dcache_page()
237 static void __flush_dcache_aliases(struct address_space *mapping, struct page *page) in __flush_dcache_aliases() argument
247 * - aliasing VIPT: we only need to find one mapping of this page. in __flush_dcache_aliases()
251 flush_dcache_mmap_lock(mapping); in __flush_dcache_aliases()
252 vma_interval_tree_foreach(mpnt, &mapping->i_mmap, pgoff, pgoff) { in __flush_dcache_aliases()
265 flush_dcache_mmap_unlock(mapping); in __flush_dcache_aliases()
273 struct address_space *mapping; in __sync_icache_dcache() local
[all …]
/Linux-v5.4/fs/gfs2/
Daops.c91 struct inode *inode = page->mapping->host; in gfs2_writepage()
105 page->mapping->a_ops->invalidatepage(page, 0, PAGE_SIZE); in gfs2_writepage()
124 struct inode * const inode = page->mapping->host; in gfs2_write_full_page()
157 struct inode *inode = page->mapping->host; in __gfs2_jdata_writepage()
183 struct inode *inode = page->mapping->host; in gfs2_jdata_writepage()
204 * @mapping: The mapping to write
209 static int gfs2_writepages(struct address_space *mapping, in gfs2_writepages() argument
212 struct gfs2_sbd *sdp = gfs2_mapping2sbd(mapping); in gfs2_writepages()
213 int ret = mpage_writepages(mapping, wbc, gfs2_get_block_noalloc); in gfs2_writepages()
229 * @mapping: The mapping
[all …]
/Linux-v5.4/fs/
Ddax.c181 * @entry may no longer be the entry at the index in the mapping.
331 static void dax_associate_entry(void *entry, struct address_space *mapping, in dax_associate_entry() argument
344 WARN_ON_ONCE(page->mapping); in dax_associate_entry()
345 page->mapping = mapping; in dax_associate_entry()
350 static void dax_disassociate_entry(void *entry, struct address_space *mapping, in dax_disassociate_entry() argument
362 WARN_ON_ONCE(page->mapping && page->mapping != mapping); in dax_disassociate_entry()
363 page->mapping = NULL; in dax_disassociate_entry()
394 /* Ensure page->mapping isn't freed while we look at it */ in dax_lock_page()
397 struct address_space *mapping = READ_ONCE(page->mapping); in dax_lock_page() local
400 if (!mapping || !dax_mapping(mapping)) in dax_lock_page()
[all …]
/Linux-v5.4/drivers/gpu/drm/etnaviv/
Detnaviv_mmu.c6 #include <linux/dma-mapping.h>
65 /* unroll mapping in case something went wrong */ in etnaviv_context_map()
130 struct etnaviv_vram_mapping *mapping) in etnaviv_iommu_remove_mapping() argument
132 struct etnaviv_gem_object *etnaviv_obj = mapping->object; in etnaviv_iommu_remove_mapping()
134 etnaviv_iommu_unmap(context, mapping->vram_node.start, in etnaviv_iommu_remove_mapping()
136 drm_mm_remove_node(&mapping->vram_node); in etnaviv_iommu_remove_mapping()
171 * so we must keep its mapping. in etnaviv_iommu_find_iova()
203 * this mapping. in etnaviv_iommu_find_iova()
232 struct etnaviv_vram_mapping *mapping, u64 va) in etnaviv_iommu_map_gem() argument
249 mapping->iova = iova; in etnaviv_iommu_map_gem()
[all …]
Detnaviv_gem.c7 #include <linux/dma-mapping.h>
228 struct etnaviv_vram_mapping *mapping; in etnaviv_gem_get_vram_mapping() local
230 list_for_each_entry(mapping, &obj->vram_list, obj_node) { in etnaviv_gem_get_vram_mapping()
231 if (mapping->context == context) in etnaviv_gem_get_vram_mapping()
232 return mapping; in etnaviv_gem_get_vram_mapping()
238 void etnaviv_gem_mapping_unreference(struct etnaviv_vram_mapping *mapping) in etnaviv_gem_mapping_unreference() argument
240 struct etnaviv_gem_object *etnaviv_obj = mapping->object; in etnaviv_gem_mapping_unreference()
243 WARN_ON(mapping->use == 0); in etnaviv_gem_mapping_unreference()
244 mapping->use -= 1; in etnaviv_gem_mapping_unreference()
255 struct etnaviv_vram_mapping *mapping; in etnaviv_gem_mapping_get() local
[all …]
/Linux-v5.4/drivers/sh/clk/
Dcore.c340 struct clk_mapping *mapping = clk->mapping; in clk_establish_mapping() local
345 if (!mapping) { in clk_establish_mapping()
349 * dummy mapping for root clocks with no specified ranges in clk_establish_mapping()
352 clk->mapping = &dummy_mapping; in clk_establish_mapping()
357 * If we're on a child clock and it provides no mapping of its in clk_establish_mapping()
358 * own, inherit the mapping from its root clock. in clk_establish_mapping()
361 mapping = clkp->mapping; in clk_establish_mapping()
362 BUG_ON(!mapping); in clk_establish_mapping()
366 * Establish initial mapping. in clk_establish_mapping()
368 if (!mapping->base && mapping->phys) { in clk_establish_mapping()
[all …]
/Linux-v5.4/arch/unicore32/mm/
Dflush.c58 void __flush_dcache_page(struct address_space *mapping, struct page *page) in __flush_dcache_page() argument
61 * Writeback any data associated with the kernel mapping of this in __flush_dcache_page()
63 * coherent with the kernels mapping. in __flush_dcache_page()
69 * Ensure cache coherency between kernel mapping and userspace mapping
74 struct address_space *mapping; in flush_dcache_page() local
83 mapping = page_mapping_file(page); in flush_dcache_page()
85 if (mapping && !mapping_mapped(mapping)) in flush_dcache_page()
88 __flush_dcache_page(mapping, page); in flush_dcache_page()
89 if (mapping) in flush_dcache_page()
/Linux-v5.4/arch/nios2/mm/
Dcacheflush.c73 static void flush_aliases(struct address_space *mapping, struct page *page) in flush_aliases() argument
81 flush_dcache_mmap_lock(mapping); in flush_aliases()
82 vma_interval_tree_foreach(mpnt, &mapping->i_mmap, pgoff, pgoff) { in flush_aliases()
94 flush_dcache_mmap_unlock(mapping); in flush_aliases()
160 void __flush_dcache_page(struct address_space *mapping, struct page *page) in __flush_dcache_page() argument
163 * Writeback any data associated with the kernel mapping of this in __flush_dcache_page()
165 * coherent with the kernels mapping. in __flush_dcache_page()
174 struct address_space *mapping; in flush_dcache_page() local
183 mapping = page_mapping_file(page); in flush_dcache_page()
186 if (mapping && !mapping_mapped(mapping)) { in flush_dcache_page()
[all …]
/Linux-v5.4/fs/afs/
Dwrite.c77 int afs_write_begin(struct file *file, struct address_space *mapping, in afs_write_begin() argument
98 page = grab_cache_page_write_begin(mapping, index, flags); in afs_write_begin()
181 int afs_write_end(struct file *file, struct address_space *mapping, in afs_write_end() argument
232 static void afs_kill_pages(struct address_space *mapping, in afs_kill_pages() argument
235 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_kill_pages()
250 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_kill_pages()
261 generic_error_remove_page(mapping, page); in afs_kill_pages()
275 struct address_space *mapping, in afs_redirty_pages() argument
278 struct afs_vnode *vnode = AFS_FS_I(mapping->host); in afs_redirty_pages()
293 pv.nr = find_get_pages_contig(mapping, first, count, pv.pages); in afs_redirty_pages()
[all …]
/Linux-v5.4/fs/hpfs/
Dfile.c128 static int hpfs_readpages(struct file *file, struct address_space *mapping, in hpfs_readpages() argument
131 return mpage_readpages(mapping, pages, nr_pages, hpfs_get_block); in hpfs_readpages()
134 static int hpfs_writepages(struct address_space *mapping, in hpfs_writepages() argument
137 return mpage_writepages(mapping, wbc, hpfs_get_block); in hpfs_writepages()
140 static void hpfs_write_failed(struct address_space *mapping, loff_t to) in hpfs_write_failed() argument
142 struct inode *inode = mapping->host; in hpfs_write_failed()
154 static int hpfs_write_begin(struct file *file, struct address_space *mapping, in hpfs_write_begin() argument
161 ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, in hpfs_write_begin()
163 &hpfs_i(mapping->host)->mmu_private); in hpfs_write_begin()
165 hpfs_write_failed(mapping, pos + len); in hpfs_write_begin()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c25 dma_addr_t mapping, u32 len) in bnxt_xmit_bd() argument
40 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_xmit_bd()
48 dma_addr_t mapping, u32 len, u16 rx_prod) in __bnxt_xmit_xdp() argument
52 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp()
59 dma_addr_t mapping, u32 len, in __bnxt_xmit_xdp_redirect() argument
64 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp_redirect()
67 dma_unmap_addr_set(tx_buf, mapping, mapping); in __bnxt_xmit_xdp_redirect()
88 dma_unmap_addr(tx_buf, mapping), in bnxt_tx_int_xdp()
119 dma_addr_t mapping; in bnxt_rx_xdp() local
132 mapping = rx_buf->mapping - bp->rx_dma_offset; in bnxt_rx_xdp()
[all …]
/Linux-v5.4/fs/9p/
Dvfs_addr.c41 struct inode *inode = page->mapping->host; in v9fs_fid_readpage()
92 * @mapping: the address space
98 static int v9fs_vfs_readpages(struct file *filp, struct address_space *mapping, in v9fs_vfs_readpages() argument
104 inode = mapping->host; in v9fs_vfs_readpages()
107 ret = v9fs_readpages_from_fscache(inode, mapping, pages, &nr_pages); in v9fs_vfs_readpages()
111 ret = read_cache_pages(mapping, pages, v9fs_fid_readpage, in v9fs_vfs_readpages()
150 struct inode *inode = page->mapping->host; in v9fs_vfs_writepage_locked()
191 mapping_set_error(page->mapping, retval); in v9fs_vfs_writepage()
208 struct inode *inode = page->mapping->host; in v9fs_launder_page()
255 static int v9fs_write_begin(struct file *filp, struct address_space *mapping, in v9fs_write_begin() argument
[all …]

12345678910>>...150