Home
last modified time | relevance | path

Searched refs:page_idx (Results 1 – 18 of 18) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dicm.h65 int page_idx; member
94 iter->page_idx = 0; in mlx4_icm_first()
104 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
112 iter->page_idx = 0; in mlx4_icm_next()
118 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_addr()
123 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mlx4_icm_size()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_memfree.h77 int page_idx; member
106 iter->page_idx = 0; in mthca_icm_first()
116 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next()
124 iter->page_idx = 0; in mthca_icm_next()
130 return sg_dma_address(&iter->chunk->mem[iter->page_idx]); in mthca_icm_addr()
135 return sg_dma_len(&iter->chunk->mem[iter->page_idx]); in mthca_icm_size()
/linux-4.4.14/mm/
Dreadahead.c115 unsigned page_idx; in read_pages() local
127 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in read_pages()
160 int page_idx; in __do_page_cache_readahead() local
172 for (page_idx = 0; page_idx < nr_to_read; page_idx++) { in __do_page_cache_readahead()
173 pgoff_t page_offset = offset + page_idx; in __do_page_cache_readahead()
189 if (page_idx == nr_to_read - lookahead_size) in __do_page_cache_readahead()
Dpage_isolation.c82 unsigned long page_idx, buddy_idx; in unset_migratetype_isolate() local
101 page_idx = page_to_pfn(page) & ((1 << MAX_ORDER) - 1); in unset_migratetype_isolate()
102 buddy_idx = __find_buddy_index(page_idx, order); in unset_migratetype_isolate()
103 buddy = page + (buddy_idx - page_idx); in unset_migratetype_isolate()
Dpercpu-vm.c14 unsigned int cpu, int page_idx) in pcpu_chunk_page() argument
19 return vmalloc_to_page((void *)pcpu_chunk_addr(chunk, cpu, page_idx)); in pcpu_chunk_page()
Dinternal.h172 __find_buddy_index(unsigned long page_idx, unsigned int order) in __find_buddy_index() argument
174 return page_idx ^ (1 << order); in __find_buddy_index()
Dpage_alloc.c661 unsigned long page_idx; in __free_one_page() local
676 page_idx = pfn & ((1 << MAX_ORDER) - 1); in __free_one_page()
678 VM_BUG_ON_PAGE(page_idx & ((1 << order) - 1), page); in __free_one_page()
683 buddy_idx = __find_buddy_index(page_idx, order); in __free_one_page()
684 buddy = page + (buddy_idx - page_idx); in __free_one_page()
698 combined_idx = buddy_idx & page_idx; in __free_one_page()
699 page = page + (combined_idx - page_idx); in __free_one_page()
700 page_idx = combined_idx; in __free_one_page()
715 buddy_idx = __find_buddy_index(page_idx, order); in __free_one_page()
716 buddy = page + (buddy_idx - page_idx); in __free_one_page()
[all …]
Dpercpu.c238 static int __maybe_unused pcpu_page_idx(unsigned int cpu, int page_idx) in pcpu_page_idx() argument
240 return pcpu_unit_map[cpu] * pcpu_unit_pages + page_idx; in pcpu_page_idx()
244 unsigned int cpu, int page_idx) in pcpu_chunk_addr() argument
247 (page_idx << PAGE_SHIFT); in pcpu_chunk_addr()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_inode_fork.c894 xfs_extnum_t page_idx = idx; /* ext index in target list */ in xfs_iext_get_ext() local
896 erp = xfs_iext_idx_to_irec(ifp, &page_idx, &erp_idx, 0); in xfs_iext_get_ext()
897 return &erp->er_extbuf[page_idx]; in xfs_iext_get_ext()
988 int page_idx = idx; in xfs_iext_add() local
992 erp = xfs_iext_idx_to_irec(ifp, &page_idx, &erp_idx, 1); in xfs_iext_add()
1000 if (page_idx < erp->er_extcount) { in xfs_iext_add()
1001 memmove(&erp->er_extbuf[page_idx + ext_diff], in xfs_iext_add()
1002 &erp->er_extbuf[page_idx], in xfs_iext_add()
1003 (erp->er_extcount - page_idx) * in xfs_iext_add()
1005 memset(&erp->er_extbuf[page_idx], 0, byte_diff); in xfs_iext_add()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Drw.c617 unsigned long page_idx; in ll_read_ahead_pages() local
623 for (page_idx = ria->ria_start; page_idx <= ria->ria_end && in ll_read_ahead_pages()
624 *reserved_pages > 0; page_idx++) { in ll_read_ahead_pages()
625 if (ras_inside_ra_window(page_idx, ria)) { in ll_read_ahead_pages()
628 page_idx, mapping); in ll_read_ahead_pages()
642 LASSERTF(page_idx > ria->ria_stoff, "Invalid page_idx %lu rs %lu re %lu ro %lu rl %lu rp %lu\n", in ll_read_ahead_pages()
643 page_idx, in ll_read_ahead_pages()
646 offset = page_idx - ria->ria_stoff; in ll_read_ahead_pages()
649 page_idx += ria->ria_length - offset; in ll_read_ahead_pages()
650 CDEBUG(D_READA, "i %lu skip %lu \n", page_idx, in ll_read_ahead_pages()
[all …]
/linux-4.4.14/fs/ext4/
Dreadpage.c138 unsigned page_idx; in ext4_mpage_readpages() local
160 for (page_idx = 0; nr_pages; page_idx++, nr_pages--) { in ext4_mpage_readpages()
/linux-4.4.14/fs/
Dmpage.c360 unsigned page_idx; in mpage_readpages() local
368 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in mpage_readpages()
377 nr_pages - page_idx, in mpage_readpages()
/linux-4.4.14/drivers/mmc/host/
Dusdhi6rol0.c181 int page_idx; /* page index within an SG segment */ member
415 (host->page_idx << PAGE_SHIFT) + data->blksz - blk_head) in usdhi6_sg_unmap()
439 host->page_idx++; in usdhi6_sg_advance()
449 host->page_idx++; in usdhi6_sg_advance()
459 done = (host->page_idx << PAGE_SHIFT) + host->offset; in usdhi6_sg_advance()
485 host->page_idx = 0; in usdhi6_sg_advance()
502 host->pg.page = nth_page(sg_page(host->sg), host->page_idx); in usdhi6_sg_advance()
1003 host->page_idx = 0; in usdhi6_rq_start()
1672 data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx, in usdhi6_timeout_work()
/linux-4.4.14/fs/ubifs/
Dfile.c720 int err, page_idx, page_cnt, ret = 0, n = 0; in ubifs_do_bulk_read() local
778 for (page_idx = 1; page_idx < page_cnt; page_idx++) { in ubifs_do_bulk_read()
779 pgoff_t page_offset = offset + page_idx; in ubifs_do_bulk_read()
796 ui->last_page_read = offset + page_idx - 1; in ubifs_do_bulk_read()
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c1197 static unsigned char page_idx = DDP_PGIDX_MAX; variable
1241 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
1242 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
1244 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
1250 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
1252 pr_info("system PAGE %lu, ddp idx %u.\n", PAGE_SIZE, page_idx); in ddp_setup_host_page_size()
1558 if (page_idx >= DDP_PGIDX_MAX || !cdev->ddp || in cxgbi_ddp_reserve()
1561 "pgidx %u, xfer %u, NO ddp.\n", page_idx, xferlen); in cxgbi_ddp_reserve()
2542 err = csk->cdev->csk_ddp_setup_pgidx(csk, csk->tid, page_idx, 0); in cxgbi_bind_conn()
/linux-4.4.14/fs/f2fs/
Ddata.c878 unsigned page_idx; in f2fs_mpage_readpages() local
895 for (page_idx = 0; nr_pages; page_idx++, nr_pages--) { in f2fs_mpage_readpages()
/linux-4.4.14/fs/btrfs/
Dextent_io.c4273 unsigned page_idx; in extent_readpages() local
4281 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in extent_readpages()
/linux-4.4.14/fs/fuse/
Dfile.c2263 int page_idx = 0; in fuse_ioctl_copy_user() local
2271 struct page *page = pages[page_idx++]; in fuse_ioctl_copy_user()