Home
last modified time | relevance | path

Searched refs:page_nr (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/mm/
Duffd-stress.c94 unsigned long page_nr; in locking_thread() local
98 page_nr = -bounces; in locking_thread()
100 page_nr += cpu * nr_pages_per_cpu; in locking_thread()
105 if (getrandom(&page_nr, sizeof(page_nr), 0) != sizeof(page_nr)) in locking_thread()
108 page_nr += 1; in locking_thread()
109 page_nr %= nr_pages; in locking_thread()
110 pthread_mutex_lock(area_mutex(area_dst, page_nr)); in locking_thread()
111 count = *area_count(area_dst, page_nr); in locking_thread()
112 if (count != count_verify[page_nr]) in locking_thread()
114 page_nr, count, count_verify[page_nr]); in locking_thread()
[all …]
/linux-6.6.21/drivers/block/drbd/
Ddrbd_bitmap.c211 static void bm_page_lock_io(struct drbd_device *device, int page_nr) in bm_page_lock_io() argument
214 void *addr = &page_private(b->bm_pages[page_nr]); in bm_page_lock_io()
218 static void bm_page_unlock_io(struct drbd_device *device, int page_nr) in bm_page_unlock_io() argument
221 void *addr = &page_private(b->bm_pages[page_nr]); in bm_page_unlock_io()
254 void drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr) in drbd_bm_mark_for_writeout() argument
258 if (page_nr >= device->bitmap->bm_number_of_pages) { in drbd_bm_mark_for_writeout()
260 page_nr, (int)device->bitmap->bm_number_of_pages); in drbd_bm_mark_for_writeout()
263 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
266 b->al_bitmap_hints[b->n_bitmap_hints++] = page_nr; in drbd_bm_mark_for_writeout()
299 unsigned int page_nr = long_nr >> (PAGE_SHIFT - LN2_BPL + 3); in bm_word_to_page_idx() local
[all …]
/linux-6.6.21/arch/um/include/asm/
Dpgtable-3level.h85 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
88 phys_t phys = pfn_to_phys(page_nr); in pfn_pte()
94 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
96 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvif/
Dvmm.c235 vmm->page_nr = args->page_nr; in nvif_vmm_ctor()
236 vmm->page = kmalloc_array(vmm->page_nr, sizeof(*vmm->page), in nvif_vmm_ctor()
243 for (i = 0; i < vmm->page_nr; i++) { in nvif_vmm_ctor()
/linux-6.6.21/drivers/nvmem/
Drave-sp-eeprom.c162 const unsigned int page_nr = offset / RAVE_SP_EEPROM_PAGE_SIZE; in rave_sp_eeprom_page_access() local
182 page_nr, &page); in rave_sp_eeprom_page_access()
190 ret = rave_sp_eeprom_io(eeprom, type, page_nr, &page); in rave_sp_eeprom_page_access()
/linux-6.6.21/fs/btrfs/
Draid56.c219 unsigned int page_nr) in full_page_sectors_uptodate() argument
225 ASSERT(page_nr < rbio->nr_pages); in full_page_sectors_uptodate()
227 for (i = sectors_per_page * page_nr; in full_page_sectors_uptodate()
228 i < sectors_per_page * page_nr + sectors_per_page; in full_page_sectors_uptodate()
257 struct btrfs_raid_bio *dest, int page_nr) in steal_rbio_page() argument
263 if (dest->stripe_pages[page_nr]) in steal_rbio_page()
264 __free_page(dest->stripe_pages[page_nr]); in steal_rbio_page()
265 dest->stripe_pages[page_nr] = src->stripe_pages[page_nr]; in steal_rbio_page()
266 src->stripe_pages[page_nr] = NULL; in steal_rbio_page()
269 for (i = sectors_per_page * page_nr; in steal_rbio_page()
[all …]
/linux-6.6.21/drivers/base/firmware_loader/
Dsysfs.c244 int page_nr = offset >> PAGE_SHIFT; in firmware_rw() local
249 memcpy_from_page(buffer, fw_priv->pages[page_nr], in firmware_rw()
252 memcpy_to_page(fw_priv->pages[page_nr], page_ofs, in firmware_rw()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_vm.c306 unsigned long page_nr; in drm_vm_dma_fault() local
316 page_nr = offset >> PAGE_SHIFT; /* page_nr could just be vmf->pgoff */ in drm_vm_dma_fault()
317 page = virt_to_page((void *)dma->pagelist[page_nr]); in drm_vm_dma_fault()
322 DRM_DEBUG("dma_fault 0x%lx (page %lu)\n", offset, page_nr); in drm_vm_dma_fault()
/linux-6.6.21/arch/x86/include/asm/xen/
Dpage.h314 static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot) in mfn_pte() argument
318 pte.pte = ((phys_addr_t)page_nr << PAGE_SHIFT) | in mfn_pte()
/linux-6.6.21/arch/csky/include/asm/
Dpgtable.h46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
/linux-6.6.21/fs/qnx6/
Ddir.c36 static unsigned last_entry(struct inode *inode, unsigned long page_nr) in last_entry() argument
39 last_byte -= page_nr << PAGE_SHIFT; in last_entry()
/linux-6.6.21/fs/
Dsplice.c204 int ret = 0, page_nr = 0; in splice_to_pipe() local
218 buf->page = spd->pages[page_nr]; in splice_to_pipe()
219 buf->offset = spd->partial[page_nr].offset; in splice_to_pipe()
220 buf->len = spd->partial[page_nr].len; in splice_to_pipe()
221 buf->private = spd->partial[page_nr].private; in splice_to_pipe()
227 page_nr++; in splice_to_pipe()
238 while (page_nr < spd_pages) in splice_to_pipe()
239 spd->spd_release(spd, page_nr++); in splice_to_pipe()
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvif/
Dvmm.h36 int page_nr; member
Dif000c.h5 __u8 page_nr; member
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h763 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
765 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pte()
771 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
773 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pmd()
779 static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot) in pfn_pud() argument
781 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pud()
/linux-6.6.21/fs/fuse/
Ddev.c1375 int page_nr = 0; in fuse_dev_splice_read() local
1400 for (ret = total = 0; page_nr < cs.nr_segs; total += ret) { in fuse_dev_splice_read()
1405 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read()
1406 bufs[page_nr].flags = 0; in fuse_dev_splice_read()
1407 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read()
1414 for (; page_nr < cs.nr_segs; page_nr++) in fuse_dev_splice_read()
1415 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
/linux-6.6.21/mm/
Dswapfile.c563 struct swap_cluster_info *cluster_info, unsigned long page_nr) in inc_cluster_info_page() argument
565 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in inc_cluster_info_page()
583 struct swap_cluster_info *cluster_info, unsigned long page_nr) in dec_cluster_info_page() argument
585 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in dec_cluster_info_page()
2917 unsigned int page_nr = swap_header->info.badpages[i]; in setup_swap_map_and_extents() local
2918 if (page_nr == 0 || page_nr > swap_header->info.last_page) in setup_swap_map_and_extents()
2920 if (page_nr < maxpages) { in setup_swap_map_and_extents()
2921 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
2927 inc_cluster_info_page(p, cluster_info, page_nr); in setup_swap_map_and_extents()
/linux-6.6.21/fs/minix/
Ddir.c40 minix_last_byte(struct inode *inode, unsigned long page_nr) in minix_last_byte() argument
44 if (page_nr == (inode->i_size >> PAGE_SHIFT)) in minix_last_byte()
/linux-6.6.21/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c1270 int page_nr; member
1283 sa_info->page_nr++; in set_address()
1284 SelectPage(sa_info->page_nr); in set_address()
1311 sa_info.page_nr = 0x50 - 1; in set_addresses()
/linux-6.6.21/fs/nilfs2/
Ddir.c77 static unsigned int nilfs_last_byte(struct inode *inode, unsigned long page_nr) in nilfs_last_byte() argument
81 last_byte -= page_nr << PAGE_SHIFT; in nilfs_last_byte()
/linux-6.6.21/drivers/input/touchscreen/
Draydium_i2c_ts.c701 int page_nr; in raydium_i2c_do_update_firmware() local
760 page_nr = 0; in raydium_i2c_do_update_firmware()
765 error = raydium_i2c_fw_write_page(client, page_nr++, data, len); in raydium_i2c_do_update_firmware()
/linux-6.6.21/fs/ufs/
Ddir.c218 ufs_last_byte(struct inode *inode, unsigned long page_nr) in ufs_last_byte() argument
222 last_byte -= page_nr << PAGE_SHIFT; in ufs_last_byte()
/linux-6.6.21/fs/ext2/
Ddir.c74 ext2_last_byte(struct inode *inode, unsigned long page_nr) in ext2_last_byte() argument
78 last_byte -= page_nr << PAGE_SHIFT; in ext2_last_byte()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Duvmm.c576 args->v0.page_nr = 0; in nvkm_uvmm_new()
578 args->v0.page_nr++; in nvkm_uvmm_new()
/linux-6.6.21/arch/sparc/include/asm/
Dpgtable_64.h231 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
233 pte_t pte = pfn_pte(page_nr, pgprot); in pfn_pmd()

12