Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/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.c81 unsigned long page_idx, buddy_idx; in unset_migratetype_isolate() local
100 page_idx = page_to_pfn(page) & ((1 << MAX_ORDER) - 1); in unset_migratetype_isolate()
101 buddy_idx = __find_buddy_index(page_idx, order); in unset_migratetype_isolate()
102 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.h152 __find_buddy_index(unsigned long page_idx, unsigned int order) in __find_buddy_index() argument
154 return page_idx ^ (1 << order); in __find_buddy_index()
Dpage_alloc.c578 unsigned long page_idx; in __free_one_page() local
593 page_idx = pfn & ((1 << MAX_ORDER) - 1); in __free_one_page()
595 VM_BUG_ON_PAGE(page_idx & ((1 << order) - 1), page); in __free_one_page()
600 buddy_idx = __find_buddy_index(page_idx, order); in __free_one_page()
601 buddy = page + (buddy_idx - page_idx); in __free_one_page()
615 combined_idx = buddy_idx & page_idx; in __free_one_page()
616 page = page + (combined_idx - page_idx); in __free_one_page()
617 page_idx = combined_idx; in __free_one_page()
632 buddy_idx = __find_buddy_index(page_idx, order); in __free_one_page()
633 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.1.27/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.1.27/drivers/staging/lustre/lustre/llite/
Drw.c645 unsigned long page_idx; in ll_read_ahead_pages() local
651 for (page_idx = ria->ria_start; page_idx <= ria->ria_end && in ll_read_ahead_pages()
652 *reserved_pages > 0; page_idx++) { in ll_read_ahead_pages()
653 if (ras_inside_ra_window(page_idx, ria)) { in ll_read_ahead_pages()
656 page_idx, mapping); in ll_read_ahead_pages()
670 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()
671 page_idx, in ll_read_ahead_pages()
674 offset = page_idx - ria->ria_stoff; in ll_read_ahead_pages()
677 page_idx += ria->ria_length - offset; in ll_read_ahead_pages()
678 CDEBUG(D_READA, "i %lu skip %lu \n", page_idx, in ll_read_ahead_pages()
[all …]
/linux-4.1.27/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.1.27/fs/
Dmpage.c360 unsigned page_idx; in mpage_readpages() local
367 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in mpage_readpages()
375 nr_pages - page_idx, in mpage_readpages()
/linux-4.1.27/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()
1670 data->flags & MMC_DATA_READ ? 'R' : 'W', host->page_idx, in usdhi6_timeout_work()
/linux-4.1.27/fs/ubifs/
Dfile.c721 int err, page_idx, page_cnt, ret = 0, n = 0; in ubifs_do_bulk_read() local
779 for (page_idx = 1; page_idx < page_cnt; page_idx++) { in ubifs_do_bulk_read()
780 pgoff_t page_offset = offset + page_idx; in ubifs_do_bulk_read()
797 ui->last_page_read = offset + page_idx - 1; in ubifs_do_bulk_read()
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c1193 static unsigned char page_idx = DDP_PGIDX_MAX; variable
1237 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
1238 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
1240 if (page_idx == DDP_PGIDX_MAX) { in ddp_setup_host_page_size()
1246 page_idx = ddp_find_page_index(PAGE_SIZE); in ddp_setup_host_page_size()
1248 pr_info("system PAGE %lu, ddp idx %u.\n", PAGE_SIZE, page_idx); in ddp_setup_host_page_size()
1554 if (page_idx >= DDP_PGIDX_MAX || !cdev->ddp || in cxgbi_ddp_reserve()
1557 "pgidx %u, xfer %u, NO ddp.\n", page_idx, xferlen); in cxgbi_ddp_reserve()
2538 err = csk->cdev->csk_ddp_setup_pgidx(csk, csk->tid, page_idx, 0); in cxgbi_bind_conn()
/linux-4.1.27/fs/btrfs/
Dextent_io.c4201 unsigned page_idx; in extent_readpages() local
4209 for (page_idx = 0; page_idx < nr_pages; page_idx++) { in extent_readpages()
/linux-4.1.27/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()