/linux/tools/testing/selftests/mm/ |
H A D | uffd-stress.c | 94 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/drivers/block/drbd/ |
H A D | drbd_bitmap.c | 211 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/drivers/gpu/drm/imagination/ |
H A D | pvr_fw_mips.c | 100 u32 page_nr; in pvr_mips_fw_process() local 135 for (page_nr = 0; page_nr < ARRAY_SIZE(boot_data->pt_phys_addr); page_nr++) { in pvr_mips_fw_process() 137 u32 src_page_nr = (page_nr * ROGUE_MIPSFW_PAGE_SIZE_4K) >> PAGE_SHIFT; in pvr_mips_fw_process() 138 u32 page_offset = (page_nr * ROGUE_MIPSFW_PAGE_SIZE_4K) & ~PAGE_MASK; in pvr_mips_fw_process() 140 boot_data->pt_phys_addr[page_nr] = mips_data->pt_dma_addr[src_page_nr] + in pvr_mips_fw_process()
|
/linux/arch/um/include/asm/ |
H A D | pgtable-3level.h | 85 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/drivers/gpu/drm/nouveau/nvif/ |
H A D | vmm.c | 235 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/drivers/nvmem/ |
H 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/btrfs/ |
H A D | raid56.c | 297 unsigned int page_nr) in full_page_sectors_uptodate() argument 303 ASSERT(page_nr < rbio->nr_pages); in full_page_sectors_uptodate() 305 for (i = sectors_per_page * page_nr; in full_page_sectors_uptodate() 306 i < sectors_per_page * page_nr + sectors_per_page; in full_page_sectors_uptodate() 335 struct btrfs_raid_bio *dest, int page_nr) in steal_rbio_page() argument 341 if (dest->stripe_pages[page_nr]) in steal_rbio_page() 342 __free_page(dest->stripe_pages[page_nr]); in steal_rbio_page() 343 dest->stripe_pages[page_nr] = src->stripe_pages[page_nr]; in steal_rbio_page() 344 src->stripe_pages[page_nr] = NULL; in steal_rbio_page() 347 for (i = sectors_per_page * page_nr; in steal_rbio_page() [all …]
|
/linux/drivers/base/firmware_loader/ |
H A D | sysfs.c | 244 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/arch/x86/include/asm/xen/ |
H A D | page.h | 314 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/arch/csky/include/asm/ |
H A D | pgtable.h | 46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
|
/linux/fs/ |
H A D | splice.c | 205 int page_nr = 0; in splice_to_pipe() local 219 buf->page = spd->pages[page_nr]; in splice_to_pipe() 220 buf->offset = spd->partial[page_nr].offset; in splice_to_pipe() 221 buf->len = spd->partial[page_nr].len; in splice_to_pipe() 222 buf->private = spd->partial[page_nr].private; in splice_to_pipe() 228 page_nr++; in splice_to_pipe() 239 while (page_nr < spd_pages) in splice_to_pipe() 240 spd->spd_release(spd, page_nr++); in splice_to_pipe()
|
/linux/fs/qnx6/ |
H A D | dir.c | 38 static unsigned last_entry(struct inode *inode, unsigned long page_nr) in last_entry() argument 41 last_byte -= page_nr << PAGE_SHIFT; in last_entry()
|
/linux/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | vmm.h | 36 int page_nr; member
|
H A D | if000c.h | 5 __u8 page_nr; member
|
/linux/arch/x86/include/asm/ |
H A D | pgtable.h | 784 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 786 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pte() 792 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 794 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pmd() 800 static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot) in pfn_pud() argument 802 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pud()
|
/linux/fs/fuse/ |
H A D | dev.c | 1422 int page_nr = 0; in fuse_dev_splice_read() local 1447 for (ret = total = 0; page_nr < cs.nr_segs; total += ret) { in fuse_dev_splice_read() 1452 bufs[page_nr].ops = &nosteal_pipe_buf_ops; in fuse_dev_splice_read() 1453 bufs[page_nr].flags = 0; in fuse_dev_splice_read() 1454 ret = add_to_pipe(pipe, &bufs[page_nr++]); in fuse_dev_splice_read() 1461 for (; page_nr < cs.nr_segs; page_nr++) in fuse_dev_splice_read() 1462 put_page(bufs[page_nr].page); in fuse_dev_splice_read()
|
/linux/fs/minix/ |
H A D | dir.c | 34 minix_last_byte(struct inode *inode, unsigned long page_nr) in minix_last_byte() argument 38 if (page_nr == (inode->i_size >> PAGE_SHIFT)) in minix_last_byte()
|
/linux/drivers/net/ethernet/xircom/ |
H A D | xirc2ps_cs.c | 1268 int page_nr; member 1281 sa_info->page_nr++; in set_address() 1282 SelectPage(sa_info->page_nr); in set_address() 1309 sa_info.page_nr = 0x50 - 1; in set_addresses()
|
/linux/drivers/input/touchscreen/ |
H A D | raydium_i2c_ts.c | 701 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/fs/nilfs2/ |
H A D | dir.c | 71 static unsigned int nilfs_last_byte(struct inode *inode, unsigned long page_nr) in nilfs_last_byte() argument 75 last_byte -= page_nr << PAGE_SHIFT; in nilfs_last_byte()
|
/linux/fs/ext2/ |
H 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/fs/ufs/ |
H 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/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | uvmm.c | 582 args->v0.page_nr = 0; in nvkm_uvmm_new() 584 args->v0.page_nr++; in nvkm_uvmm_new()
|
/linux/mm/ |
H A D | swapfile.c | 556 struct swap_cluster_info *cluster_info, unsigned long page_nr) in inc_cluster_info_page() argument 558 unsigned long idx = page_nr / SWAPFILE_CLUSTER; in inc_cluster_info_page() 3237 unsigned int page_nr = swap_header->info.badpages[i]; in setup_swap_map_and_extents() local 3238 if (page_nr == 0 || page_nr > swap_header->info.last_page) in setup_swap_map_and_extents() 3240 if (page_nr < maxpages) { in setup_swap_map_and_extents() 3241 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
|
/linux/arch/sparc/include/asm/ |
H A D | pgtable_64.h | 231 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()
|