Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Duserfaultfd.c362 unsigned long page_nr = *(&(page_nr)); /* uninitialized warning */ in locking_thread() local
380 page_nr = -bounces; in locking_thread()
382 page_nr += cpu * nr_pages_per_cpu; in locking_thread()
391 page_nr = rand_nr; in locking_thread()
392 if (sizeof(page_nr) > sizeof(rand_nr)) { in locking_thread()
397 page_nr |= (((unsigned long) rand_nr) << 16) << in locking_thread()
401 page_nr += 1; in locking_thread()
402 page_nr %= nr_pages; in locking_thread()
406 count = *area_count(area_dst, page_nr); in locking_thread()
410 page_nr, count, in locking_thread()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/um/include/asm/
Dpgtable-3level.h94 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
97 phys_t phys = pfn_to_phys(page_nr); in pfn_pte()
103 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
105 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/
Dvmm.c141 vmm->page_nr = args->page_nr; in nvif_vmm_ctor()
142 vmm->page = kmalloc_array(vmm->page_nr, sizeof(*vmm->page), in nvif_vmm_ctor()
149 for (i = 0; i < vmm->page_nr; i++) { in nvif_vmm_ctor()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hmm/
Dhmm_bo.c861 unsigned int page_nr) in free_user_pages() argument
868 unpin_user_pages(bo->pages, page_nr); in free_user_pages()
870 for (i = 0; i < page_nr; i++) in free_user_pages()
883 int page_nr; in alloc_user_pages() local
921 page_nr = pin_user_pages((unsigned long)userptr, bo->pgnr, in alloc_user_pages()
928 page_nr = get_user_pages_fast((unsigned long)userptr, in alloc_user_pages()
937 bo->mem_type == HMM_BO_MEM_TYPE_USER ? "user" : "pfn", page_nr); in alloc_user_pages()
942 if (page_nr != bo->pgnr) { in alloc_user_pages()
945 bo->pgnr, page_nr); in alloc_user_pages()
946 if (page_nr < 0) in alloc_user_pages()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_vm.c311 unsigned long page_nr; in drm_vm_dma_fault() local
321 page_nr = offset >> PAGE_SHIFT; /* page_nr could just be vmf->pgoff */ in drm_vm_dma_fault()
322 page = virt_to_page((void *)dma->pagelist[page_nr]); in drm_vm_dma_fault()
327 DRM_DEBUG("dma_fault 0x%lx (page %lu)\n", offset, page_nr); in drm_vm_dma_fault()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/
Dvmm.h30 int page_nr; member
Dif000c.h5 __u8 page_nr; member
/kernel/linux/linux-5.10/fs/
Dsplice.c189 int ret = 0, page_nr = 0; in splice_to_pipe() local
203 buf->page = spd->pages[page_nr]; in splice_to_pipe()
204 buf->offset = spd->partial[page_nr].offset; in splice_to_pipe()
205 buf->len = spd->partial[page_nr].len; in splice_to_pipe()
206 buf->private = spd->partial[page_nr].private; in splice_to_pipe()
212 page_nr++; in splice_to_pipe()
223 while (page_nr < spd_pages) in splice_to_pipe()
224 spd->spd_release(spd, page_nr++); in splice_to_pipe()
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/
Dpage.h319 static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot) in mfn_pte() argument
323 pte.pte = ((phys_addr_t)page_nr << PAGE_SHIFT) | in mfn_pte()
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dpgtable.h58 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
/kernel/linux/linux-5.10/drivers/base/firmware_loader/
Dfallback.c319 int page_nr = offset >> PAGE_SHIFT; in firmware_rw() local
323 page_data = kmap(fw_priv->pages[page_nr]); in firmware_rw()
330 kunmap(fw_priv->pages[page_nr]); in firmware_rw()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dpgtable.h603 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
605 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pte()
611 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
613 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pmd()
619 static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot) in pfn_pud() argument
621 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pud()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/fuse/
Ddev.c1384 int page_nr = 0; in fuse_dev_splice_read() local
1409 for (ret = total = 0; page_nr < cs.nr_segs; total += ret) { in fuse_dev_splice_read()
1414 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read()
1415 bufs[page_nr].flags = 0; in fuse_dev_splice_read()
1416 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read()
1423 for (; page_nr < cs.nr_segs; page_nr++) in fuse_dev_splice_read()
1424 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Duvmm.c413 args->v0.page_nr = 0; in nvkm_uvmm_new()
415 args->v0.page_nr++; in nvkm_uvmm_new()
/kernel/linux/linux-5.10/mm/
Dswapfile.c549 struct swap_cluster_info *cluster_info, unsigned long page_nr) in inc_cluster_info_page() argument
551 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in inc_cluster_info_page()
569 struct swap_cluster_info *cluster_info, unsigned long page_nr) in dec_cluster_info_page() argument
571 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in dec_cluster_info_page()
3092 unsigned int page_nr = swap_header->info.badpages[i]; in setup_swap_map_and_extents() local
3093 if (page_nr == 0 || page_nr > swap_header->info.last_page) in setup_swap_map_and_extents()
3095 if (page_nr < maxpages) { in setup_swap_map_and_extents()
3096 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
3102 inc_cluster_info_page(p, cluster_info, page_nr); in setup_swap_map_and_extents()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_page_alloc.c394 unsigned page_nr; in ttm_pool_shrink_scan() local
400 page_nr = (1 << pool->order); in ttm_pool_shrink_scan()
402 nr_free_pool = roundup(nr_free, page_nr) >> pool->order; in ttm_pool_shrink_scan()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Draydium_i2c_ts.c666 int page_nr; in raydium_i2c_do_update_firmware() local
725 page_nr = 0; in raydium_i2c_do_update_firmware()
730 error = raydium_i2c_fw_write_page(client, page_nr++, data, len); in raydium_i2c_do_update_firmware()
/kernel/linux/linux-5.10/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c1276 int page_nr; member
1289 sa_info->page_nr++; in set_address()
1290 SelectPage(sa_info->page_nr); in set_address()
1317 sa_info.page_nr = 0x50 - 1; in set_addresses()
/kernel/linux/linux-5.10/fs/ufs/
Ddir.c212 ufs_last_byte(struct inode *inode, unsigned long page_nr) in ufs_last_byte() argument
216 last_byte -= page_nr << PAGE_SHIFT; in ufs_last_byte()
/kernel/linux/linux-5.10/fs/ext2/
Ddir.c80 ext2_last_byte(struct inode *inode, unsigned long page_nr) in ext2_last_byte() argument
84 last_byte -= page_nr << PAGE_SHIFT; in ext2_last_byte()

12