Home
last modified time | relevance | path

Searched +full:page +full:- +full:offset (Results 1 – 25 of 1034) sorted by relevance

12345678910>>...42

/Linux-v6.1/fs/squashfs/
Dfile.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
14 * compressed fragment block (tail-end packed block). The compressed size
23 * retaining a simple and space-efficient block list on disk. The cache
45 * Locate cache slot in range [offset, index] for specified inode. If
48 static struct meta_index *locate_meta_index(struct inode *inode, int offset, in locate_meta_index() argument
52 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info; in locate_meta_index()
55 mutex_lock(&msblk->meta_index_mutex); in locate_meta_index()
57 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index()
59 if (msblk->meta_index == NULL) in locate_meta_index()
[all …]
Dsymlink.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
35 struct page *page = &folio->page; in squashfs_symlink_read_folio() local
36 struct inode *inode = page->mapping->host; in squashfs_symlink_read_folio()
37 struct super_block *sb = inode->i_sb; in squashfs_symlink_read_folio()
38 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_symlink_read_folio()
39 int index = page->index << PAGE_SHIFT; in squashfs_symlink_read_folio()
40 u64 block = squashfs_i(inode)->start; in squashfs_symlink_read_folio()
41 int offset = squashfs_i(inode)->offset; in squashfs_symlink_read_folio() local
42 int length = min_t(int, i_size_read(inode) - index, PAGE_SIZE); in squashfs_symlink_read_folio()
[all …]
/Linux-v6.1/fs/jfs/
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
26 uint pagealloc; /* # of page allocations */
27 uint pagefree; /* # of page frees */
32 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag)
33 #define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag)
37 clear_bit_unlock(META_locked, &mp->flag); in unlock_metapage()
38 wake_up(&mp->wait); in unlock_metapage()
45 add_wait_queue_exclusive(&mp->wait, &wait); in __lock_metapage()
[all …]
/Linux-v6.1/sound/pci/emu10k1/
Dmemory.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * EMU10K1 memory page allocation (PTB area)
18 /* page arguments of these two macros are Emu page (4096 bytes), not like
21 #define __set_ptb_entry(emu,page,addr) \ argument
22 (((__le32 *)(emu)->ptb_pages.area)[page] = \
23 cpu_to_le32(((addr) << (emu->address_mode)) | (page)))
24 #define __get_ptb_entry(emu, page) \ argument
25 (le32_to_cpu(((__le32 *)(emu)->ptb_pages.area)[page]))
30 /* get aligned page from offset address */
31 #define get_aligned_page(offset) ((offset) >> PAGE_SHIFT) argument
[all …]
/Linux-v6.1/fs/ecryptfs/
Dread_write.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * @offset: Byte offset in the lower file to which to write the data
20 * @size: Number of bytes from @data to write at @offset in the lower
28 loff_t offset, size_t size) in ecryptfs_write_lower() argument
33 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_write_lower()
35 return -EIO; in ecryptfs_write_lower()
36 rc = kernel_write(lower_file, data, size, &offset); in ecryptfs_write_lower()
44 * @page_for_lower: The page containing the data to be written to the
46 * @offset_in_page: The offset in the @page_for_lower from which to
51 * Determines the byte offset in the file for the given page and
[all …]
/Linux-v6.1/fs/hfsplus/
Dbitmap.c1 // SPDX-License-Identifier: GPL-2.0
20 u32 offset, u32 *max) in hfsplus_block_allocate() argument
23 struct page *page; in hfsplus_block_allocate() local
34 hfs_dbg(BITMAP, "block_allocate: %u,%u,%u\n", size, offset, len); in hfsplus_block_allocate()
35 mutex_lock(&sbi->alloc_mutex); in hfsplus_block_allocate()
36 mapping = sbi->alloc_file->i_mapping; in hfsplus_block_allocate()
37 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
38 if (IS_ERR(page)) { in hfsplus_block_allocate()
42 pptr = kmap_local_page(page); in hfsplus_block_allocate()
43 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
[all …]
/Linux-v6.1/include/linux/
Dhighmem.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 #include "highmem-internal.h"
17 * kmap - Map a page for long term usage
18 * @page: Pointer to the page to be mapped
37 static inline void *kmap(struct page *page);
40 * kunmap - Unmap the virtual address mapped by kmap()
41 * @page: Pointer to the page which was mapped by kmap()
46 static inline void kunmap(struct page *page);
49 * kmap_to_page - Get the page for a kmap'ed address
52 * Returns: The page which is mapped to @addr.
[all …]
Dscatterlist.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 unsigned int offset; member
31 #define sg_dma_address(sg) ((sg)->dma_address)
34 #define sg_dma_len(sg) ((sg)->dma_length)
36 #define sg_dma_len(sg) ((sg)->length)
55 * the page pointer AND encode information about the sg table as well. The two
71 * We overload the LSB of the page pointer to indicate whether it's
73 * Those low bits are there for everyone! (thanks mason :-)
79 return sg->page_link & SG_PAGE_LINK_MASK; in __sg_flags()
84 return (struct scatterlist *)(sg->page_link & ~SG_PAGE_LINK_MASK); in sg_chain_ptr()
[all …]
Dswapops.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/radix-tree.h>
18 * the low-order bits.
20 * We arrange the `type' and `offset' fields so that `type' is at the six
21 * high-order bits of the swp_entry_t and `offset' is right-aligned in the
25 * swp_entry_t's are *never* stored anywhere in their arch-dependent format.
27 #define SWP_TYPE_SHIFT (BITS_PER_XA_VALUE - MAX_SWAPFILES_SHIFT)
28 #define SWP_OFFSET_MASK ((1UL << SWP_TYPE_SHIFT) - 1)
36 #define SWP_PFN_BITS (MAX_PHYSMEM_BITS - PAGE_SHIFT)
39 sizeof(phys_addr_t) * 8 - PAGE_SHIFT, \
[all …]
/Linux-v6.1/drivers/nvmem/
Drave-sp-eeprom.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/mfd/rave-sp.h>
12 #include <linux/nvmem-provider.h>
18 * enum rave_sp_eeprom_access_type - Supported types of EEPROM access
29 * enum rave_sp_eeprom_header_size - EEPROM command header sizes
43 * struct rave_sp_eeprom_page - RAVE SP EEPROM page
59 * struct rave_sp_eeprom - RAVE SP EEPROM device
76 * rave_sp_eeprom_io - Low-level part of EEPROM page access
80 * @idx: number of the EEPROM page
81 * @page: Data to write or buffer to store result (via page->data)
[all …]
/Linux-v6.1/mm/
Ddmapool.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * This allocator returns small blocks of a given size which are DMA-able by
10 * the given device. It uses the dma_alloc_coherent page allocator to get
15 * represented by the 'struct dma_pool' which keeps a doubly-linked list of
16 * allocated pages. Each page in the page_list is split into blocks of at
17 * least 'size' bytes. Free blocks are tracked in an unsorted singly-linked
18 * list of free blocks within the page. Used blocks aren't tracked, but we
19 * keep a count of how many are currently allocated from each page.
23 #include <linux/dma-mapping.h>
59 unsigned int offset; member
[all …]
Dfrontswap.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Copyright (C) 2009-2012 Oracle Corp. All rights reserved.
28 * is a simple singly-linked list of all registered implementations.
100 return -EINVAL; in frontswap_register_ops()
117 * p->frontswap is a bitmap that we MUST have to figure out which page in frontswap_init()
125 * p->frontswap set to something valid to work properly. in frontswap_init()
131 frontswap_ops->init(type); in frontswap_init()
135 pgoff_t offset) in __frontswap_test() argument
137 if (sis->frontswap_map) in __frontswap_test()
138 return test_bit(offset, sis->frontswap_map); in __frontswap_test()
[all …]
Dswapfile.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/blk-cgroup.h>
31 #include <linux/backing-dev.h>
65 static int least_priority = -1;
73 static const char Bad_offset[] = "Bad swap offset entry ";
74 static const char Unused_offset[] = "Unused swap offset entry ";
89 * swap_info_struct changes between not-full/full, it needs to
90 * add/remove itself to/from this list, but the swap_info_struct->lock
92 * before any swap_info_struct->lock.
124 * corresponding page
[all …]
/Linux-v6.1/drivers/video/fbdev/core/
Dfb_defio.c26 static struct page *fb_deferred_io_page(struct fb_info *info, unsigned long offs) in fb_deferred_io_page()
28 void *screen_base = (void __force *) info->screen_base; in fb_deferred_io_page()
29 struct page *page; in fb_deferred_io_page() local
32 page = vmalloc_to_page(screen_base + offs); in fb_deferred_io_page()
34 page = pfn_to_page((info->fix.smem_start + offs) >> PAGE_SHIFT); in fb_deferred_io_page()
36 return page; in fb_deferred_io_page()
40 unsigned long offset, in fb_deferred_io_pageref_get() argument
41 struct page *page) in fb_deferred_io_pageref_get() argument
43 struct fb_deferred_io *fbdefio = info->fbdefio; in fb_deferred_io_pageref_get()
44 struct list_head *pos = &fbdefio->pagereflist; in fb_deferred_io_pageref_get()
[all …]
/Linux-v6.1/drivers/gpu/drm/
Ddrm_vm.c69 pgprot_t tmp = vm_get_page_prot(vma->vm_flags); in drm_io_prot()
73 if (map->type == _DRM_REGISTERS && !(map->flags & _DRM_WRITE_COMBINING)) in drm_io_prot()
78 if (efi_range_is_wc(vma->vm_start, vma->vm_end - in drm_io_prot()
79 vma->vm_start)) in drm_io_prot()
91 pgprot_t tmp = vm_get_page_prot(vma->vm_flags); in drm_dma_prot()
104 * \return pointer to the page structure.
106 * Find the right map and if it's AGP memory find the real physical page to
107 * map, get the page, increment the use count and return it.
112 struct vm_area_struct *vma = vmf->vma; in drm_vm_fault()
113 struct drm_file *priv = vma->vm_file->private_data; in drm_vm_fault()
[all …]
/Linux-v6.1/sound/pci/trident/
Dtrident_memory.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Trident 4DWave-NX memory page allocation (TLB area)
19 /* page arguments of these two macros are Trident page (4096 bytes), not like
22 #define __set_tlb_bus(trident,page,addr) \ argument
23 (trident)->tlb.entries[page] = cpu_to_le32((addr) & ~(SNDRV_TRIDENT_PAGE_SIZE-1))
24 #define __tlb_to_addr(trident,page) \ argument
25 (dma_addr_t)le32_to_cpu((trident->tlb.entries[page]) & ~(SNDRV_TRIDENT_PAGE_SIZE - 1))
28 /* page size == SNDRV_TRIDENT_PAGE_SIZE */
29 #define ALIGN_PAGE_SIZE PAGE_SIZE /* minimum page size for allocation */
31 /* fill TLB entrie(s) corresponding to page with ptr */
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/e1000e/
Dphy.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
7 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset,
9 static u32 e1000_get_phy_addr_for_hv_page(u32 page);
10 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset,
36 * e1000e_check_reset_block_generic - Check if PHY reset is blocked
53 * e1000e_get_phy_id - Retrieve the PHY ID and revision
61 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id()
66 if (!phy->ops.read_reg) in e1000e_get_phy_id()
74 phy->id = (u32)(phy_id << 16); in e1000e_get_phy_id()
[all …]
/Linux-v6.1/arch/x86/include/uapi/asm/
Dsgx.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright(c) 2016-20 Intel Corporation.
12 * enum sgx_page_flags - page control flags
13 * %SGX_PAGE_MEASURE: Measure the page contents with a sequence of
40 * struct sgx_enclave_create - parameter structure for the
42 * @src: address for the SECS page data
49 * struct sgx_enclave_add_pages - parameter structure for the
51 * @src: start address for the page data
52 * @offset: starting page offset
53 * @length: length of the data (multiple of the page size)
[all …]
/Linux-v6.1/tools/virtio/linux/
Dscatterlist.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 unsigned int offset; member
14 #define sg_is_chain(sg) ((sg)->page_link & 0x01)
15 #define sg_is_last(sg) ((sg)->page_link & 0x02)
17 ((struct scatterlist *) ((sg)->page_link & ~0x03))
20 * sg_assign_page - Assign a given page to an SG entry
22 * @page: The page
25 * Assign page to sg entry. Also see sg_set_page(), the most commonly used
29 static inline void sg_assign_page(struct scatterlist *sg, struct page *page) in sg_assign_page() argument
31 unsigned long page_link = sg->page_link & 0x3; in sg_assign_page()
[all …]
/Linux-v6.1/arch/arm/mm/
Ddma-mapping.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mm/dma-mapping.c
5 * Copyright (C) 2000-2004 Russell King
17 #include <linux/dma-direct.h>
18 #include <linux/dma-map-ops.h>
33 #include <asm/dma-iommu.h>
36 #include <asm/xen/xen-ops.h>
55 struct page *page; member
64 struct page **ret_page);
84 if (buf->virt == virt) { in arm_dma_buffer_find()
[all …]
/Linux-v6.1/fs/verity/
Dread_metadata.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/backing-dev.h>
17 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument
19 const struct fsverity_operations *vops = inode->i_sb->s_vop; in fsverity_read_merkle_tree()
26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree()
27 if (offset >= end_offset) in fsverity_read_merkle_tree()
29 offs_in_page = offset_in_page(offset); in fsverity_read_merkle_tree()
30 last_index = (end_offset - 1) >> PAGE_SHIFT; in fsverity_read_merkle_tree()
33 * Iterate through each Merkle tree page in the requested range and copy in fsverity_read_merkle_tree()
38 for (index = offset >> PAGE_SHIFT; index <= last_index; index++) { in fsverity_read_merkle_tree()
[all …]
/Linux-v6.1/fs/btrfs/
Dverity.c1 // SPDX-License-Identifier: GPL-2.0
16 #include "disk-io.h"
37 * [ inode objectid, BTRFS_VERITY_DESC_ITEM_KEY, offset ]
39 * At offset 0, we store a btrfs_verity_descriptor_item which tracks the
41 * Starting at offset 1, these hold the generic fs verity descriptor.
46 * [ inode objectid, BTRFS_VERITY_MERKLE_ITEM_KEY, offset ]
48 * These also start at offset 0, and correspond to the merkle tree bytes.
49 * So when fsverity asks for page 0 of the merkle tree, we pull up one page
50 * starting at offset 0 for this key type. These are also opaque to btrfs,
54 * linearly with the size of the file (with 4K pages/blocks and SHA-256, it's
[all …]
/Linux-v6.1/net/ethtool/
Deeprom.c1 // SPDX-License-Identifier: GPL-2.0-only
10 u32 offset; member
12 u8 page; member
33 u32 offset = request->offset; in fallback_set_params() local
34 u32 length = request->length; in fallback_set_params()
36 if (request->page) in fallback_set_params()
37 offset = request->page * ETH_MODULE_EEPROM_PAGE_LEN + offset; in fallback_set_params()
39 if (modinfo->type == ETH_MODULE_SFF_8472 && in fallback_set_params()
40 request->i2c_address == 0x51) in fallback_set_params()
41 offset += ETH_MODULE_EEPROM_PAGE_LEN * 2; in fallback_set_params()
[all …]
/Linux-v6.1/lib/
Diov_iter.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/fault-inject-usercopy.h>
23 base = __p + i->iov_offset; \
24 len -= (STEP); \
25 i->iov_offset += len; \
32 size_t skip = i->iov_offset; \
34 len = min(n, __p->iov_len - skip); \
36 base = __p->iov_base + skip; \
37 len -= (STEP); \
40 n -= len; \
[all …]
/Linux-v6.1/drivers/md/
Dmd-bitmap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * bitmap.c two-level bitmap (C) Peter T. Breuer (ptb@ot.uc3m.es) 2003
5 * bitmap_create - sets up the bitmap structure
6 * bitmap_destroy - destroys the bitmap structure
8 * additions, Copyright (C) 2003-2004, Paul Clements, SteelEye Technology, Inc.:
9 * - added disk storage for bitmap
10 * - changes to allow various bitmap chunk sizes
33 #include "md-bitmap.h"
37 return bitmap->mddev ? mdname(bitmap->mddev) : "mdX"; in bmname()
41 * check a page and, if necessary, allocate it (or hijack it if the alloc fails)
[all …]

12345678910>>...42