Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/mm/
H A 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()
112 if (count != count_verify[page_nr]) in locking_thread()
114 page_nr, count, count_verify[page_nr]); in locking_thread()
116 *area_count(area_dst, page_nr) = count_verify[page_nr] = count; in locking_thread()
157 for (page_nr = start_nr; page_nr < mid_nr; page_nr++) in background_thread()
[all …]
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_bitmap.c301 return page_nr; in bm_word_to_page_idx()
309 return page_nr; in bm_bit_to_page_idx()
1031 bm_page_lock_io(device, page_nr); in bm_page_io_async()
1042 page = b->bm_pages[page_nr]; in bm_page_io_async()
1403 if (page_nr != last_page_nr) { in __bm_change_bits_to()
1413 last_page_nr = page_nr; in __bm_change_bits_to()
1516 int page_nr; in _drbd_bm_set_bits() local
1545 for (page_nr = first_page; page_nr < last_page; page_nr++) { in _drbd_bm_set_bits()
1618 unsigned int page_nr = -1U; in drbd_bm_count_bits() local
1635 if (page_nr != idx) { in drbd_bm_count_bits()
[all …]
/openbmc/linux/arch/um/include/asm/
H A 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()
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/
H A 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()
/openbmc/linux/drivers/nvmem/
H A 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()
/openbmc/linux/fs/btrfs/
H A 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()
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()
2772 for (int page_nr = 0; page_nr < (BTRFS_STRIPE_LEN >> PAGE_SHIFT); page_nr++) { in raid56_parity_cache_data_pages() local
[all …]
/openbmc/linux/drivers/base/firmware_loader/
H A 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()
/openbmc/linux/drivers/gpu/drm/
H A 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()
/openbmc/linux/arch/x86/include/asm/xen/
H A 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()
/openbmc/linux/arch/csky/include/asm/
H A Dpgtable.h46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dvmm.h36 int page_nr; member
H A Dif000c.h5 __u8 page_nr; member
/openbmc/linux/fs/qnx6/
H A 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()
/openbmc/linux/fs/
H A 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()
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable.h747 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
749 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pte()
755 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
757 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pmd()
763 static inline pud_t pfn_pud(unsigned long page_nr, pgprot_t pgprot) in pfn_pud() argument
765 phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; in pfn_pud()
/openbmc/linux/fs/fuse/
H A 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()
/openbmc/linux/mm/
H A 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()
2928 unsigned int page_nr = swap_header->info.badpages[i]; in setup_swap_map_and_extents() local
2929 if (page_nr == 0 || page_nr > swap_header->info.last_page) in setup_swap_map_and_extents()
2931 if (page_nr < maxpages) { in setup_swap_map_and_extents()
2932 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
2938 inc_cluster_info_page(p, cluster_info, page_nr); in setup_swap_map_and_extents()
/openbmc/linux/fs/minix/
H A 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()
/openbmc/linux/drivers/net/ethernet/xircom/
H A 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()
/openbmc/linux/drivers/input/touchscreen/
H A 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()
/openbmc/linux/fs/ext2/
H A 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()
/openbmc/linux/fs/ufs/
H A 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()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Duvmm.c576 args->v0.page_nr = 0; in nvkm_uvmm_new()
578 args->v0.page_nr++; in nvkm_uvmm_new()
/openbmc/linux/fs/nilfs2/
H A 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()
/openbmc/linux/arch/sparc/include/asm/
H A 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