| /linux/drivers/gpu/drm/tegra/ |
| H A D | uapi.c | 1 // 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 …]
|
| /linux/include/linux/ |
| H A D | pagemap.h | 1 /* 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); 49 filemap_fdatawait(struct address_space * mapping) filemap_fdatawait() argument 63 filemap_write_and_wait(struct address_space * mapping) filemap_write_and_wait() argument 82 filemap_set_wb_err(struct address_space * mapping,int err) filemap_set_wb_err() argument 99 filemap_check_wb_err(struct address_space * mapping,errseq_t since) filemap_check_wb_err() argument 112 filemap_sample_wb_err(struct address_space * mapping) filemap_sample_wb_err() argument 140 mapping_empty(const struct address_space * mapping) mapping_empty() argument 166 mapping_shrinkable(const 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(const struct address_space * mapping) mapping_unevictable() argument 272 mapping_set_exiting(struct address_space * mapping) mapping_set_exiting() argument 277 mapping_exiting(const 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(const 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(const struct address_space * mapping) mapping_inaccessible() argument 338 mapping_set_writeback_may_deadlock_on_reclaim(struct address_space * mapping) mapping_set_writeback_may_deadlock_on_reclaim() argument 343 mapping_writeback_may_deadlock_on_reclaim(const struct address_space * mapping) mapping_writeback_may_deadlock_on_reclaim() argument 348 mapping_gfp_mask(const struct address_space * mapping) mapping_gfp_mask() argument 354 mapping_gfp_constraint(const struct address_space * mapping,gfp_t gfp_mask) mapping_gfp_constraint() argument 418 mapping_set_folio_order_range(struct address_space * mapping,unsigned int min,unsigned int max) mapping_set_folio_order_range() argument 438 mapping_set_folio_min_order(struct address_space * mapping,unsigned int min) mapping_set_folio_min_order() argument 455 mapping_set_large_folios(struct address_space * mapping) mapping_set_large_folios() argument 461 mapping_max_folio_order(const struct address_space * mapping) mapping_max_folio_order() argument 469 mapping_min_folio_order(const struct address_space * mapping) mapping_min_folio_order() argument 477 mapping_min_folio_nrpages(const struct address_space * mapping) mapping_min_folio_nrpages() argument 483 mapping_min_folio_nrbytes(const struct address_space * mapping) mapping_min_folio_nrbytes() argument 497 mapping_align_index(const struct address_space * mapping,pgoff_t index) mapping_align_index() argument 507 mapping_large_folio_support(const struct address_space * mapping) mapping_large_folio_support() argument 528 mapping_pmd_folio_support(const struct address_space * mapping) mapping_pmd_folio_support() argument 537 mapping_pmd_folio_support(const struct address_space * mapping) mapping_pmd_folio_support() argument 544 mapping_max_folio_size(const struct address_space * mapping) mapping_max_folio_size() argument 593 folio_attach_private(struct folio * folio,void * data) folio_attach_private() argument 611 folio_change_private(struct folio * folio,void * data) folio_change_private() argument 630 void *data = folio_get_private(folio); folio_detach_private() local 641 attach_page_private(struct page * page,void * data) attach_page_private() argument 758 __filemap_get_folio(struct address_space * mapping,pgoff_t index,fgf_t fgf_flags,gfp_t gfp) __filemap_get_folio() argument 778 write_begin_get_folio(const struct kiocb * iocb,struct address_space * mapping,pgoff_t index,size_t len) write_begin_get_folio() argument 802 filemap_get_folio(struct address_space * mapping,pgoff_t index) filemap_get_folio() argument 820 filemap_lock_folio(struct address_space * mapping,pgoff_t index) filemap_lock_folio() argument 838 filemap_grab_folio(struct address_space * mapping,pgoff_t index) filemap_grab_folio() argument 856 find_get_page(struct address_space * mapping,pgoff_t offset) find_get_page() argument 862 find_get_page_flags(struct address_space * mapping,pgoff_t offset,fgf_t fgp_flags) find_get_page_flags() argument 881 find_lock_page(struct address_space * mapping,pgoff_t index) find_lock_page() argument 906 find_or_create_page(struct address_space * mapping,pgoff_t index,gfp_t gfp_mask) find_or_create_page() argument 928 grab_cache_page_nowait(struct address_space * mapping,pgoff_t index) grab_cache_page_nowait() argument 1006 read_mapping_page(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_page() argument 1012 read_mapping_folio(struct address_space * mapping,pgoff_t index,struct file * file) read_mapping_folio() argument 1380 filemap_range_needs_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_needs_writeback() argument 1410 struct address_space *mapping; global() member 1453 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 1475 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...] |
| H A D | iomap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 35 #define IOMAP_INLINE 4 /* data inline in the inode */ 41 * zeroing for areas that no data is copied to. 44 * written data and requires fdatasync to commit them to persistent storage. 55 * buffer heads for this mapping. 58 * rather than a file data extent. 61 * never be merged with the mapping before it. 72 * IOMAP_F_ZERO_TAIL indicates the remainder of the block after the data 98 * Fsverity metadata is stored after the regular file data and thus beyond 128 #define IOMAP_NULL_ADDR -1ULL /* addr is not valid */ [all …]
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_pcie.h | 1 /* 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 D | hash.c | 46 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 D | dm-zoned.rst | 2 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/Documentation/trace/ |
| H A D | ring-buffer-map.rst | 1 .. 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 D | qede_fp.c | 1 // 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. 32 dma_addr_t mapping; in qede_alloc_rx_buffer() local 33 struct page *data; in qede_alloc_rx_buffer() local 35 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer() 39 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer() 40 rxq->filled_buffers--; in qede_alloc_rx_buffer() 44 data = alloc_pages(GFP_ATOMIC, 0); in qede_alloc_rx_buffer() 45 if (unlikely(!data)) in qede_alloc_rx_buffer() [all …]
|
| /linux/fs/ntfs/ |
| H A D | aops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2001-2014 Anton Altaparmakov and Tuxera Inc. 20 int error = blk_status_to_errno(bio->bi_status); in ntfs_iomap_read_end_io() 25 struct ntfs_inode *ni = NTFS_I(folio->mapping->host); in ntfs_iomap_read_end_io() 29 init_size = ni->initialized_size; in ntfs_iomap_read_end_io() 52 * ntfs_read_folio - Read data for a folio from the device 54 * @folio: page cache folio to fill with data 56 * This function handles reading data into the page cache. It first checks 59 * - If the attribute is encrypted, access is denied (-EACCES) because 61 * - If the attribute is non-resident and compressed, the read operation is [all …]
|
| /linux/fs/nfs/ |
| H A D | write.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Write file data over NFS. 23 #include <linux/backing-dev.h> 48 void (*complete)(void *data); 49 void *data; member 83 INIT_LIST_HEAD(&p->pages); in nfs_commitdata_alloc() 105 p->rw_mod in nfs_writehdr_alloc() 120 nfs_io_completion_init(struct nfs_io_completion * ioc,void (* complete)(void *),void * data) nfs_io_completion_init() argument 172 struct address_space *mapping = folio->mapping; nfs_folio_find_head_request() local 215 nfs_set_pageerror(struct address_space * mapping) nfs_set_pageerror() argument 230 struct address_space *mapping = folio->mapping; nfs_mapping_set_error() local 650 nfs_writepages(struct address_space * mapping,struct writeback_control * wbc) nfs_writepages() argument 711 struct address_space *mapping = folio->mapping; nfs_inode_add_request() local 744 struct address_space *mapping = folio->mapping; nfs_inode_remove_request() local 1303 struct address_space *mapping = folio->mapping; nfs_update_folio() local 1439 struct nfs_commit_data *data = calldata; nfs_commit_prepare() local 1627 nfs_commitdata_release(struct nfs_commit_data * data) nfs_commitdata_release() argument 1634 nfs_initiate_commit(struct rpc_clnt * clnt,struct nfs_commit_data * data,const struct nfs_rpc_ops * nfs_ops,const struct rpc_call_ops * call_ops,int how,int flags,struct nfsd_file * localio) nfs_initiate_commit() argument 1695 nfs_init_commit(struct nfs_commit_data * data,struct list_head * head,struct pnfs_layout_segment * lseg,struct nfs_commit_info * cinfo) nfs_init_commit() argument 1768 struct nfs_commit_data *data; nfs_commit_list() local 1800 struct nfs_commit_data *data = calldata; nfs_commit_done() local 1807 nfs_commit_release_pages(struct nfs_commit_data * data) nfs_commit_release_pages() argument 1864 struct nfs_commit_data *data = calldata; nfs_commit_release() local 1976 nfs_filemap_write_and_wait_range(struct address_space * mapping,loff_t lstart,loff_t lend) nfs_filemap_write_and_wait_range() argument 2114 nfs_migrate_folio(struct address_space * mapping,struct folio * dst,struct folio * src,enum migrate_mode mode) nfs_migrate_folio() argument [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_aops.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * Copyright (c) 2016-2025 Christoph Hellwig. 40 * Update on-disk file size now that data has been written to disk. 48 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize() 53 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_setfilesize() 67 ip->i_disk_size = isize; in xfs_setfilesize() 80 * out. If we don't, we can leave a stale delalloc mapping covered by a clean 81 * page that needs to be dirtied again before the delalloc mapping can be 82 * converted. This stale delalloc mapping can trip up a later direct I/O read [all …]
|
| H A D | xfs_reflink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 46 * through the use of a copy-on-write mechanism. At a high level, that 48 * block, write the data to the new block, and if that succeeds we map the 52 * of disk blocks to dirty-but-not-yet-mapped file blocks as long as 58 * create a delalloc mapping, which is a regular in-core extent, but without 60 * a flag that this is a delalloc mapping, and a worst-case estimate of how 61 * many blocks might be required to put the mapping into the BMBT.) delalloc 70 * D: --RRRRRRSSSRRRRRRRR--- (data fork) 71 * C: ------DDDDDDD--------- (CoW fork) 75 * allocating blocks and replacing the delalloc mapping with real ones. [all …]
|
| /linux/mm/ |
| H A D | filemap.c | 1 // 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> 74 * finished 'unifying' the page and buffer cache and SMP-threaded the 75 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 77 * SMP-threade 129 page_cache_delete(struct address_space * mapping,struct folio * folio,void * shadow) page_cache_delete() argument 150 filemap_unaccount_folio(struct address_space * mapping,struct folio * folio) filemap_unaccount_folio() argument 223 struct address_space *mapping = folio->mapping; __filemap_remove_folio() local 230 filemap_free_folio(const struct address_space * mapping,struct folio * folio) filemap_free_folio() argument 252 struct address_space *mapping = folio->mapping; filemap_remove_folio() local 279 page_cache_delete_batch(struct address_space * mapping,struct folio_batch * fbatch) page_cache_delete_batch() argument 320 delete_from_page_cache_batch(struct address_space * mapping,struct folio_batch * fbatch) delete_from_page_cache_batch() argument 346 filemap_check_errors(struct address_space * mapping) filemap_check_errors() argument 360 filemap_check_and_keep_errors(struct address_space * mapping) filemap_check_and_keep_errors() argument 370 filemap_writeback(struct address_space * mapping,loff_t start,loff_t end,enum writeback_sync_modes sync_mode,long * nr_to_write) filemap_writeback() argument 409 filemap_fdatawrite_range(struct address_space * mapping,loff_t start,loff_t end) filemap_fdatawrite_range() argument 416 filemap_fdatawrite(struct address_space * mapping) filemap_fdatawrite() argument 433 filemap_flush_range(struct address_space * mapping,loff_t start,loff_t end) filemap_flush_range() argument 449 filemap_flush(struct address_space * mapping) filemap_flush() argument 460 filemap_flush_nr(struct address_space * mapping,long * nr_to_write) filemap_flush_nr() argument 479 filemap_range_has_page(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_page() argument 510 __filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) __filemap_fdatawait_range() argument 555 filemap_fdatawait_range(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range() argument 577 filemap_fdatawait_range_keep_errors(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_fdatawait_range_keep_errors() argument 603 struct address_space *mapping = file->f_mapping; file_fdatawait_range() local 624 filemap_fdatawait_keep_errors(struct address_space * mapping) filemap_fdatawait_keep_errors() argument 632 mapping_needs_writeback(struct address_space * mapping) mapping_needs_writeback() argument 637 filemap_range_has_writeback(struct address_space * mapping,loff_t start_byte,loff_t end_byte) filemap_range_has_writeback() argument 675 filemap_write_and_wait_range(struct address_space * mapping,loff_t lstart,loff_t lend) filemap_write_and_wait_range() argument 701 __filemap_set_wb_err(struct address_space * mapping,int err) __filemap_set_wb_err() argument 737 struct address_space *mapping = file->f_mapping; file_check_and_advance_wb_err() local 780 struct address_space *mapping = file->f_mapping; file_write_and_wait_range() local 813 struct address_space *mapping = old->mapping; replace_page_cache_folio() local 848 __filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp,void ** shadowp) __filemap_add_folio() argument 955 filemap_add_folio(struct address_space * mapping,struct folio * folio,pgoff_t index,gfp_t gfp) filemap_add_folio() argument 1611 struct address_space *mapping = folio->mapping; filemap_end_dropbehind() local 1812 page_cache_next_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_next_miss() argument 1849 page_cache_prev_miss(struct address_space * mapping,pgoff_t index,unsigned long max_scan) page_cache_prev_miss() argument 1899 filemap_get_entry(struct address_space * mapping,pgoff_t index) filemap_get_entry() argument 1947 __filemap_get_folio_mpol(struct address_space * mapping,pgoff_t index,fgf_t fgp_flags,gfp_t gfp,struct mempolicy * policy) __filemap_get_folio_mpol() argument 2133 find_get_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_get_entries() argument 2182 find_lock_entries(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch,pgoff_t * indices) find_lock_entries() argument 2250 filemap_get_folios(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios() argument 2272 filemap_get_folios_contig(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_contig() argument 2346 filemap_get_folios_tag(struct address_space * mapping,pgoff_t * start,pgoff_t end,xa_mark_t tag,struct folio_batch * fbatch) filemap_get_folios_tag() argument 2400 filemap_get_folios_dirty(struct address_space * mapping,pgoff_t * start,pgoff_t end,struct folio_batch * fbatch) filemap_get_folios_dirty() argument 2469 filemap_get_read_batch(struct address_space * mapping,pgoff_t index,pgoff_t max,struct folio_batch * fbatch) filemap_get_read_batch() argument 2536 filemap_range_uptodate(struct address_space * mapping,loff_t pos,size_t count,struct folio * folio,bool need_uptodate) filemap_range_uptodate() argument 2564 filemap_update_page(struct kiocb * iocb,struct address_space * mapping,size_t count,struct folio * folio,bool need_uptodate) filemap_update_page() argument 2621 struct address_space *mapping = iocb->ki_filp->f_mapping; filemap_create_folio() local 2673 filemap_readahead(struct kiocb * iocb,struct file * file,struct address_space * mapping,struct folio * folio,pgoff_t last_index) filemap_readahead() argument 2690 struct address_space *mapping = filp->f_mapping; filemap_get_pages() local 2792 struct address_space *mapping = filp->f_mapping; filemap_read() local 2904 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_write_and_wait() local 2918 filemap_invalidate_pages(struct address_space * mapping,loff_t pos,loff_t end,bool nowait) filemap_invalidate_pages() argument 2945 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_pages() local 2985 struct address_space *mapping = file->f_mapping; generic_file_read_iter() local 3166 folio_seek_hole_data(struct xa_state * xas,struct address_space * mapping,struct folio * folio,loff_t start,loff_t end,bool seek_data) folio_seek_hole_data() argument 3223 mapping_seek_hole_data(struct address_space * mapping,loff_t start,loff_t end,int whence) mapping_seek_hole_data() argument 3333 struct address_space *mapping = file->f_mapping; do_sync_mmap_readahead() local 3560 struct address_space *mapping = file->f_mapping; filemap_fault() local 3745 next_uptodate_folio(struct xa_state * xas,struct address_space * mapping,pgoff_t end_pgoff) next_uptodate_folio() argument 3794 struct address_space *mapping = folio->mapping; filemap_map_folio_range() local 3904 struct address_space *mapping = file->f_mapping; filemap_map_pages() local 4008 struct address_space *mapping = vmf->vma->vm_file->f_mapping; filemap_page_mkwrite() local 4042 struct address_space *mapping = file->f_mapping; generic_file_mmap() local 4054 struct address_space *mapping = file->f_mapping; generic_file_mmap_prepare() local 4108 do_read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file,gfp_t gfp) do_read_cache_folio() argument 4185 read_cache_folio(struct address_space * mapping,pgoff_t index,filler_t filler,struct file * file) read_cache_folio() argument 4210 mapping_read_folio_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) mapping_read_folio_gfp() argument 4217 do_read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file,gfp_t gfp) do_read_cache_page() argument 4228 read_cache_page(struct address_space * mapping,pgoff_t index,filler_t * filler,struct file * file) read_cache_page() argument 4251 read_cache_page_gfp(struct address_space * mapping,pgoff_t index,gfp_t gfp) read_cache_page_gfp() argument 4281 struct address_space *mapping = iocb->ki_filp->f_mapping; kiocb_invalidate_post_direct_write() local 4293 struct address_space *mapping = iocb->ki_filp->f_mapping; generic_file_direct_write() local 4350 struct address_space *mapping = file->f_mapping; generic_perform_write() local 4464 struct address_space *mapping = file->f_mapping; __generic_file_write_iter() local 4545 struct address_space * const mapping = folio->mapping; filemap_release_folio() local 4575 struct address_space *mapping = inode->i_mapping; filemap_invalidate_inode() local 4618 filemap_cachestat(struct address_space * mapping,pgoff_t first_index,pgoff_t last_index,struct cachestat * cs) filemap_cachestat() argument 4767 struct address_space *mapping; SYSCALL_DEFINE4() local [all...] |
| /linux/net/core/ |
| H A D | ieee8021q_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * IEEE 802.1Q-2022 in Annex I "I.3 Traffic type to traffic class mapping" and 18 * Table I-1 "Traffic type to traffic class mapping". 87 * ieee8021q_tt_to_tc - Map IEEE 802.1Q Traffic Type to Traffic Class 92 * on the number of queues configured on the NIC. The mapping is based on the 93 * example provided by IEEE 802.1Q-2022 in Annex I "I.3 Traffic type to traffic 94 * class mapping" and Table I-1 "Traffic type to traffic class mapping". 104 return -EINVAL; in ieee8021q_tt_to_tc() 136 return -EINVAL; in ieee8021q_tt_to_tc() 141 * ietf_dscp_to_ieee8021q_tt - Map IETF DSCP to IEEE 802.1Q Traffic Type [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_xdp.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2016-2017 Broadcom Limited 28 dma_addr_t mapping, u32 len, in bnxt_xmit_bd() argument 41 num_frags = sinfo->nr_frags; in bnxt_xmit_bd() 45 prod = txr->tx_prod; in bnxt_xmit_bd() 46 tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)]; in bnxt_xmit_bd() 47 tx_buf->nr_frags = num_frags; in bnxt_xmit_bd() 49 tx_buf->page = virt_to_head_page(xdp->data); in bnxt_xmit_bd() 96 __bnxt_xmit_xdp(struct bnxt * bp,struct bnxt_tx_ring_info * txr,dma_addr_t mapping,u32 len,u16 rx_prod,struct xdp_buff * xdp) __bnxt_xmit_xdp() argument 109 __bnxt_xmit_xdp_redirect(struct bnxt * bp,struct bnxt_tx_ring_info * txr,dma_addr_t mapping,u32 len,struct xdp_frame * xdpf) __bnxt_xmit_xdp_redirect() argument 189 dma_addr_t mapping; bnxt_xdp_buff_init() local 232 dma_addr_t mapping; bnxt_rx_xdp() local 337 dma_addr_t mapping; bnxt_xdp_xmit() local [all...] |
| /linux/net/netfilter/ |
| H A D | nft_set_pipapo.h | 1 // 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))) 49 /* Each n-bit range maps to up to n * 2 rules */ 52 /* Use the rest of mapping table buckets for rule indices, but it makes no sense 58 #define NFT_PIPAPO_MAP_TOBITS (BITS_PER_LONG - NFT_PIPAPO_MAP_NBITS) [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | vdso.h | 1 /* 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/include/linux/pinctrl/ |
| H A D | machine.h | 1 /* 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/drivers/iommu/ |
| H A D | ipmmu-vmsa.c | 1 // 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/fs/netfs/ |
| H A D | buffered_write.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Network filesystem high-level buffered write support. 19 static struct folio *netfs_grab_folio_for_write(struct address_space *mapping, in netfs_grab_folio_for_write() argument 25 if (mapping_large_folio_support(mapping)) in netfs_grab_folio_for_write() 28 return __filemap_get_folio(mapping, index, fgp_flags, in netfs_grab_folio_for_write() 29 mapping_gfp_mask(mapping)); in netfs_grab_folio_for_write() 34 * data written into the pagecache until we can find out from the server what 47 if (ctx->ops->update_i_size) { in netfs_update_i_size() 48 ctx->ops->update_i_size(inode, end); in netfs_update_i_size() 52 spin_lock(&inode->i_lock); in netfs_update_i_size() [all …]
|
| /linux/fs/f2fs/ |
| H A D | data.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/f2fs/data.c 16 #include <linux/blk-crypto.h> 64 struct address_space *mapping = folio->mapping; in f2fs_is_cp_guaranteed() local 68 inode = mapping->hos in f2fs_is_cp_guaranteed() 84 struct address_space *mapping = folio->mapping; __read_io_type() local 1299 struct address_space *mapping = inode->i_mapping; f2fs_get_read_data_folio() local 1384 struct address_space *mapping = inode->i_mapping; f2fs_find_data_folio() local 1418 struct address_space *mapping = inode->i_mapping; f2fs_get_lock_data_folio() local 1446 struct address_space *mapping = inode->i_mapping; f2fs_get_new_data_folio() local 2690 struct address_space *mapping = rac ? rac->mapping : folio->mapping; f2fs_mpage_readpages() local 3228 f2fs_write_cache_pages(struct address_space * mapping,struct writeback_control * wbc,enum iostat_type io_type) f2fs_write_cache_pages() argument 3555 __f2fs_write_data_pages(struct address_space * mapping,struct writeback_control * wbc,enum iostat_type io_type) __f2fs_write_data_pages() argument 3636 f2fs_write_data_pages(struct address_space * mapping,struct writeback_control * wbc) f2fs_write_data_pages() argument 3868 f2fs_write_begin(const struct kiocb * iocb,struct address_space * mapping,loff_t pos,unsigned len,struct folio ** foliop,void ** fsdata) f2fs_write_begin() argument 4012 f2fs_write_end(const struct kiocb * iocb,struct address_space * mapping,loff_t pos,unsigned len,unsigned copied,struct folio * folio,void * fsdata) f2fs_write_end() argument 4103 f2fs_dirty_data_folio(struct address_space * mapping,struct folio * folio) f2fs_dirty_data_folio() argument 4151 f2fs_bmap(struct address_space * mapping,sector_t block) f2fs_bmap() argument 4261 struct address_space *mapping = swap_file->f_mapping; check_swap_activate() local 4447 struct address_space *mapping = folio->mapping; f2fs_clear_page_cache_dirty_tag() local [all...] |
| /linux/drivers/platform/x86/intel/ |
| H A D | tpmi_power_domains.c | 1 // 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 D | lvds.yaml | 1 # 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/drivers/pci/controller/ |
| H A D | pcie-iproc.h | 1 /* 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/net/dsa/microchip/ |
| H A D | ksz_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * The datasheet specifies: Port 1 - 0x10, Port 2 - 0x20, Port 3 - 0x30. 63 /* ksz_supported_apptrust[] - Supported apptrust selectors and Priority Order 67 * the index within the array indicates the priority of the selector - lower 74 * non-configurable precedence where certain types of priority information 77 * 1. Tail Tag - Highes 186 u8 data, mask; ksz_port_get_default_prio() local 240 u8 data, mask; ksz_port_get_dscp_prio() local 504 u8 data = 0; ksz_port_set_apptrust() local 546 u8 data; ksz_port_get_apptrust() local [all...] |