/linux/drivers/block/drbd/ |
A D | drbd_bitmap.c | 301 return page_nr; in bm_word_to_page_idx() 309 return page_nr; in bm_bit_to_page_idx() 997 bm_page_lock_io(device, page_nr); in bm_page_io_async() 1008 page = b->bm_pages[page_nr]; in bm_page_io_async() 1366 if (page_nr != last_page_nr) { in __bm_change_bits_to() 1376 last_page_nr = page_nr; in __bm_change_bits_to() 1479 int page_nr; in _drbd_bm_set_bits() local 1508 for (page_nr = first_page; page_nr < last_page; page_nr++) { in _drbd_bm_set_bits() 1581 unsigned int page_nr = -1U; in drbd_bm_count_bits() local 1598 if (page_nr != idx) { in drbd_bm_count_bits() [all …]
|
/linux/tools/testing/selftests/vm/ |
A D | userfaultfd.c | 545 unsigned long page_nr = *(&(page_nr)); /* uninitialized warning */ in locking_thread() local 549 page_nr = -bounces; in locking_thread() 551 page_nr += cpu * nr_pages_per_cpu; in locking_thread() 556 if (getrandom(&page_nr, sizeof(page_nr), 0) != sizeof(page_nr)) in locking_thread() 559 page_nr += 1; in locking_thread() 560 page_nr %= nr_pages; in locking_thread() 563 if (count != count_verify[page_nr]) in locking_thread() 565 page_nr, count, count_verify[page_nr]); in locking_thread() 567 *area_count(area_dst, page_nr) = count_verify[page_nr] = count; in locking_thread() 795 for (page_nr = start_nr; page_nr < mid_nr; page_nr++) in background_thread() [all …]
|
/linux/arch/um/include/asm/ |
A D | pgtable-3level.h | 93 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 96 phys_t phys = pfn_to_phys(page_nr); in pfn_pte() 102 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 104 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
|
/linux/drivers/gpu/drm/nouveau/nvif/ |
A D | vmm.c | 141 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()
|
/linux/drivers/staging/media/atomisp/pci/hmm/ |
A D | hmm_bo.c | 861 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() 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() 947 page_nr = 0; in alloc_user_pages() [all …]
|
/linux/drivers/nvmem/ |
A D | rave-sp-eeprom.c | 162 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/fs/ |
A D | splice.c | 189 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()
|
/linux/drivers/gpu/drm/ |
A D | drm_vm.c | 306 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/arch/x86/include/asm/xen/ |
A D | page.h | 319 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()
|
/linux/arch/x86/include/asm/ |
A D | pgtable.h | 574 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 576 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pte() 582 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 584 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pmd() 590 static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot) in pfn_pud() argument 592 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pud()
|
/linux/drivers/base/firmware_loader/ |
A D | fallback.c | 319 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()
|
/linux/drivers/gpu/drm/nouveau/include/nvif/ |
A D | vmm.h | 30 int page_nr; member
|
A D | if000c.h | 5 __u8 page_nr; member
|
/linux/arch/csky/include/asm/ |
A D | pgtable.h | 46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
|
/linux/fs/qnx6/ |
A D | dir.c | 36 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/fs/fuse/ |
A D | dev.c | 1370 int page_nr = 0; in fuse_dev_splice_read() local 1395 for (ret = total = 0; page_nr < cs.nr_segs; total += ret) { in fuse_dev_splice_read() 1400 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read() 1401 bufs[page_nr].flags = 0; in fuse_dev_splice_read() 1402 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read() 1409 for (; page_nr < cs.nr_segs; page_nr++) in fuse_dev_splice_read() 1410 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
A D | uvmm.c | 398 args->v0.page_nr = 0; in nvkm_uvmm_new() 400 args->v0.page_nr++; in nvkm_uvmm_new()
|
/linux/mm/ |
A D | swapfile.c | 555 struct swap_cluster_info *cluster_info, unsigned long page_nr) in inc_cluster_info_page() argument 557 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in inc_cluster_info_page() 575 struct swap_cluster_info *cluster_info, unsigned long page_nr) in dec_cluster_info_page() argument 577 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in dec_cluster_info_page() 3052 unsigned int page_nr = swap_header->info.badpages[i]; in setup_swap_map_and_extents() local 3053 if (page_nr == 0 || page_nr > swap_header->info.last_page) in setup_swap_map_and_extents() 3055 if (page_nr < maxpages) { in setup_swap_map_and_extents() 3056 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents() 3062 inc_cluster_info_page(p, cluster_info, page_nr); in setup_swap_map_and_extents()
|
/linux/drivers/net/ethernet/xircom/ |
A D | xirc2ps_cs.c | 1265 int page_nr; member 1278 sa_info->page_nr++; in set_address() 1279 SelectPage(sa_info->page_nr); in set_address() 1306 sa_info.page_nr = 0x50 - 1; in set_addresses()
|
/linux/fs/minix/ |
A D | dir.c | 40 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/fs/nilfs2/ |
A D | dir.c | 77 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/drivers/input/touchscreen/ |
A D | raydium_i2c_ts.c | 700 int page_nr; in raydium_i2c_do_update_firmware() local 759 page_nr = 0; in raydium_i2c_do_update_firmware() 764 error = raydium_i2c_fw_write_page(client, page_nr++, data, len); in raydium_i2c_do_update_firmware()
|
/linux/fs/ufs/ |
A D | dir.c | 212 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()
|
/linux/fs/ext2/ |
A D | dir.c | 74 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/arch/sparc/include/asm/ |
A D | pgtable_64.h | 246 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 248 pte_t pte = pfn_pte(page_nr, pgprot); in pfn_pmd()
|