Home
last modified time | relevance | path

Searched refs:page_index (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/drivers/android/
H A Dbinder_trace.h341 TP_ARGS(alloc, page_index),
344 __field(size_t, page_index)
348 __entry->page_index = page_index;
356 TP_ARGS(alloc, page_index));
360 TP_ARGS(alloc, page_index));
364 TP_ARGS(alloc, page_index));
368 TP_ARGS(alloc, page_index));
372 TP_ARGS(alloc, page_index));
376 TP_ARGS(alloc, page_index));
380 TP_ARGS(alloc, page_index));
[all …]
H A Dbinder_alloc_selftest.c98 int page_index; in check_buffer_pages_allocated() local
103 page_index = (page_addr - alloc->buffer) / PAGE_SIZE; in check_buffer_pages_allocated()
104 if (!alloc->pages[page_index].page_ptr || in check_buffer_pages_allocated()
105 !list_empty(&alloc->pages[page_index].lru)) { in check_buffer_pages_allocated()
107 alloc->pages[page_index].page_ptr ? in check_buffer_pages_allocated()
108 "lru" : "free", page_index); in check_buffer_pages_allocated()
/openbmc/linux/sound/firewire/
H A Dpackets-buffer.c26 unsigned int i, page_index, offset_in_page; in iso_packets_buffer_init() local
50 page_index = i / packets_per_page; in iso_packets_buffer_init()
51 p = page_address(b->iso_buffer.pages[page_index]); in iso_packets_buffer_init()
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A Dencl.c111 unsigned long page_index) in sgx_encl_get_backing_page_pcmd_offset() argument
115 return epc_end_off + page_index * sizeof(struct sgx_pcmd); in sgx_encl_get_backing_page_pcmd_offset()
125 shmem_truncate_range(inode, PFN_PHYS(page_index), PFN_PHYS(page_index) + PAGE_SIZE - 1); in sgx_encl_truncate_backing_page()
138 pgoff_t page_index, page_pcmd_off; in __sgx_encl_eldu() local
147 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in __sgx_encl_eldu()
149 page_index = PFN_DOWN(encl->size); in __sgx_encl_eldu()
158 ret = sgx_encl_lookup_backing(encl, page_index, &b); in __sgx_encl_eldu()
196 sgx_encl_truncate_backing_page(encl, page_index); in __sgx_encl_eldu()
978 contents = sgx_encl_get_backing_page(encl, page_index); in __sgx_encl_get_backing()
1069 ret = __sgx_encl_get_backing(encl, page_index, backing); in sgx_encl_alloc_backing()
[all …]
H A Dencl.h110 int sgx_encl_alloc_backing(struct sgx_encl *encl, unsigned long page_index,
H A Dmain.c302 pgoff_t page_index; in sgx_reclaim_pages() local
334 page_index = PFN_DOWN(encl_page->desc - encl_page->encl->base); in sgx_reclaim_pages()
337 ret = sgx_encl_alloc_backing(encl_page->encl, page_index, &backing[i]); in sgx_reclaim_pages()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dpin_system.c291 size_t page_index; in add_mapping_to_sdma_packet() local
301 page_index = PFN_DOWN(start - cache_entry->rb.addr); in add_mapping_to_sdma_packet()
303 if (page_index >= cache_entry->npages) { in add_mapping_to_sdma_packet()
306 page_index, cache_entry->npages); in add_mapping_to_sdma_packet()
326 cache_entry->pages[page_index], in add_mapping_to_sdma_packet()
338 ret, page_index, page_offset, from_this_page); in add_mapping_to_sdma_packet()
/openbmc/linux/fs/ecryptfs/
H A Dread_write.c247 pgoff_t page_index, in ecryptfs_read_lower_page_segment() argument
255 offset = ((((loff_t)page_index) << PAGE_SHIFT) + offset_in_page); in ecryptfs_read_lower_page_segment()
H A Dcrypto.c355 pgoff_t page_index = op == ENCRYPT ? src_page->index : dst_page->index; in crypt_extent() local
362 extent_base = (((loff_t)page_index) * (PAGE_SIZE / extent_size)); in crypt_extent()
385 "rc = [%d]\n", __func__, page_index, extent_offset, rc); in crypt_extent()
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_bo.c199 uint32_t page_index = bo_page_index(size); in vc4_get_cache_list_for_size() local
201 if (vc4->bo_cache.size_list_size <= page_index) { in vc4_get_cache_list_for_size()
203 page_index + 1); in vc4_get_cache_list_for_size()
233 return &vc4->bo_cache.size_list[page_index]; in vc4_get_cache_list_for_size()
364 uint32_t page_index = bo_page_index(size); in vc4_bo_get_from_cache() local
368 if (page_index >= vc4->bo_cache.size_list_size) in vc4_bo_get_from_cache()
371 if (list_empty(&vc4->bo_cache.size_list[page_index])) in vc4_bo_get_from_cache()
374 bo = list_first_entry(&vc4->bo_cache.size_list[page_index], in vc4_bo_get_from_cache()
/openbmc/linux/tools/testing/selftests/mm/
H A Dgup_test.c196 long page_index = strtol(argv[optind], 0, 0) + 1; in main() local
198 gup.which_pages[extra_arg_count] = page_index; in main()
/openbmc/linux/include/linux/qed/
H A Dqed_chain.h286 u32 page_index = 0; in qed_chain_advance_page() local
305 page_index = *(u16 *)page_to_inc; in qed_chain_advance_page()
309 page_index = *(u32 *)page_to_inc; in qed_chain_advance_page()
311 *p_next_elem = p_chain->pbl.pp_addr_tbl[page_index].virt_addr; in qed_chain_advance_page()
/openbmc/linux/fs/jfs/
H A Djfs_metapage.c583 unsigned long page_index; in __get_metapage() local
591 page_index = lblock >> l2BlocksPerPage; in __get_metapage()
592 page_offset = (lblock - (page_index << l2BlocksPerPage)) << l2bsize; in __get_metapage()
613 page = grab_cache_page(mapping, page_index); in __get_metapage()
620 page = read_mapping_page(mapping, page_index, NULL); in __get_metapage()
/openbmc/linux/fs/xfs/
H A Dxfs_buf.c1461 int page_index; in xfs_buf_ioapply_map() local
1470 page_index = 0; in xfs_buf_ioapply_map()
1473 page_index++; in xfs_buf_ioapply_map()
1494 for (; size && nr_pages; nr_pages--, page_index++) { in xfs_buf_ioapply_map()
1500 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1733 int page_index, page_offset, csize; in xfs_buf_zero() local
1735 page_index = (boff + bp->b_offset) >> PAGE_SHIFT; in xfs_buf_zero()
1737 page = bp->b_pages[page_index]; in xfs_buf_zero()
/openbmc/linux/fs/btrfs/
H A Draid56.c248 int page_index = offset >> PAGE_SHIFT; in index_stripe_sectors() local
250 ASSERT(page_index < rbio->nr_pages); in index_stripe_sectors()
251 rbio->stripe_sectors[i].page = rbio->stripe_pages[page_index]; in index_stripe_sectors()
2751 const int page_index = offset_in_full_stripe >> PAGE_SHIFT; in raid56_parity_cache_data_pages() local
2773 struct page *dst = rbio->stripe_pages[page_nr + page_index]; in raid56_parity_cache_data_pages()
2777 for (int sector_nr = sectors_per_page * page_index; in raid56_parity_cache_data_pages()
2778 sector_nr < sectors_per_page * (page_index + 1); in raid56_parity_cache_data_pages()
H A Drelocation.c2921 int *cluster_nr, unsigned long page_index) in relocate_one_page() argument
2933 ASSERT(page_index <= last_index); in relocate_one_page()
2934 page = find_lock_page(inode->i_mapping, page_index); in relocate_one_page()
2937 page_index, last_index + 1 - page_index); in relocate_one_page()
2938 page = find_or_create_page(inode->i_mapping, page_index, mask); in relocate_one_page()
2945 page_folio(page), page_index, in relocate_one_page()
2946 last_index + 1 - page_index); in relocate_one_page()
/openbmc/linux/fs/nilfs2/
H A Dbtnode.c164 pgoff_t index = page_index(page); in nilfs_btnode_delete()
H A Dbmap.c456 key = page_index(bh->b_page) << (PAGE_SHIFT - in nilfs_bmap_data_get_key()
/openbmc/linux/net/ceph/
H A Dmessenger.c845 cursor->page_index = 0; in ceph_msg_data_pages_cursor_init()
859 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_next()
864 return data->pages[cursor->page_index]; in ceph_msg_data_pages_next()
886 BUG_ON(cursor->page_index >= cursor->page_count); in ceph_msg_data_pages_advance()
887 cursor->page_index++; in ceph_msg_data_pages_advance()
/openbmc/linux/fs/nfs/
H A Dnfstrace.h329 pgoff_t page_index,
333 TP_ARGS(file, verifier, cookie, page_index, dtsize),
361 __entry->index = page_index;
382 pgoff_t page_index, \
385 TP_ARGS(file, verifier, cookie, page_index, dtsize))
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_queue_pair.c340 const u64 page_index = in qp_memcpy_to_queue_iter() local
348 va = kmap_local_page(kernel_if->u.h.page[page_index]); in qp_memcpy_to_queue_iter()
350 va = kernel_if->u.g.vas[page_index + 1]; in qp_memcpy_to_queue_iter()
387 const u64 page_index = in qp_memcpy_from_queue_iter() local
396 va = kmap_local_page(kernel_if->u.h.page[page_index]); in qp_memcpy_from_queue_iter()
398 va = kernel_if->u.g.vas[page_index + 1]; in qp_memcpy_from_queue_iter()
/openbmc/linux/mm/kfence/
H A Dcore.c1163 const int page_index = (addr - (unsigned long)__kfence_pool) / PAGE_SIZE; in kfence_handle_page_fault() local
1176 if (page_index % 2) { in kfence_handle_page_fault()
/openbmc/qemu/include/hw/i2c/
H A Dpmbus_device.h539 int pmbus_page_config(PMBusDevice *pmdev, uint8_t page_index, uint64_t flags);
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c645 u16 page_index = shampo->curr_page_index; in mlx5e_build_shampo_hd_umr() local
660 frag_page = &shampo->pages[page_index]; in mlx5e_build_shampo_hd_umr()
670 page_index = (page_index + 1) & (shampo->hd_per_wq - 1); in mlx5e_build_shampo_hd_umr()
671 frag_page = &shampo->pages[page_index]; in mlx5e_build_shampo_hd_umr()
701 shampo->curr_page_index = page_index; in mlx5e_build_shampo_hd_umr()
/openbmc/linux/include/linux/ceph/
H A Dmessenger.h246 unsigned short page_index; /* index in array */ member

12