Home
last modified time | relevance | path

Searched refs:page_to_nid (Results 1 – 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/include/asm-generic/
Dmemory_model.h46 struct pglist_data *__pgdat = NODE_DATA(page_to_nid(__pg)); \
/kernel/linux/linux-5.10/mm/
Dpage_ext.c128 base = NODE_DATA(page_to_nid(page))->node_page_ext; in lookup_page_ext()
137 index = pfn - round_down(node_start_pfn(page_to_nid(page)), in lookup_page_ext()
Dlist_lru.c117 int nid = page_to_nid(virt_to_page(item)); in list_lru_add()
141 int nid = page_to_nid(virt_to_page(item)); in list_lru_del()
Dslub.c1211 struct kmem_cache_node *n = get_node(s, page_to_nid(page)); in free_debug_processing()
1817 inc_slabs_node(s, page_to_nid(page), page->objects); in allocate_slab()
1872 dec_slabs_node(s, page_to_nid(page), page->objects); in discard_slab()
2161 struct kmem_cache_node *n = get_node(s, page_to_nid(page)); in deactivate_slab()
2326 n2 = get_node(s, page_to_nid(page)); in unfreeze_partials()
2500 if (node != NUMA_NO_NODE && page_to_nid(page) != node) in node_match()
3012 n = get_node(s, page_to_nid(page)); in __slab_free()
3535 if (page_to_nid(page) != node) { in early_kmem_cache_node_alloc()
4683 node_set(page_to_nid(virt_to_page(track)), l->nodes); in add_location()
4714 node_set(page_to_nid(virt_to_page(track)), l->nodes); in add_location()
[all …]
Dhugetlb.c1070 int nid = page_to_nid(page); in enqueue_huge_page()
1274 if (cma_release(hugetlb_cma[page_to_nid(page)], page, 1 << order)) in free_gigantic_page()
1346 h->nr_huge_pages_node[page_to_nid(page)]--; in update_and_free_page()
1454 int nid = page_to_nid(page); in __free_huge_page()
1732 prep_new_huge_page(h, page, page_to_nid(page)); in alloc_fresh_huge_page()
1829 int nid = page_to_nid(head); in dissolve_free_huge_page()
1934 h->surplus_huge_pages_node[page_to_nid(page)]++; in alloc_surplus_huge_page()
2514 prep_new_huge_page(h, page, page_to_nid(page)); in gather_bootmem_prealloc()
2624 h->free_huge_pages_node[page_to_nid(page)]--; in try_to_free_low()
5722 int old_nid = page_to_nid(oldpage); in move_hugetlb_state()
[all …]
Dsparse.c45 int page_to_nid(const struct page *page) in page_to_nid() function
49 EXPORT_SYMBOL(page_to_nid);
Dmemremap.c149 nid = page_to_nid(first_page); in pageunmap_range()
Dhuge_memory.c490 struct pglist_data *pgdat = NODE_DATA(page_to_nid(page)); in get_deferred_split_queue()
500 struct pglist_data *pgdat = NODE_DATA(page_to_nid(page)); in get_deferred_split_queue()
1444 page_nid = page_to_nid(page); in do_huge_pmd_numa_page()
2650 struct pglist_data *pgdata = NODE_DATA(page_to_nid(head)); in split_huge_page_to_list()
2813 memcg_set_shrinker_bit(memcg, page_to_nid(page), in deferred_split_huge_page()
Dmempolicy.c453 int nid = page_to_nid(page); in queue_pages_required()
925 err = page_to_nid(p); in lookup_node()
2136 if (page && page_to_nid(page) == nid) { in alloc_page_interleave()
2462 int curnid = page_to_nid(page); in mpol_misplaced()
Dslab.c558 page_node = page_to_nid(page); in cache_free_pfmemalloc()
795 int page_node = page_to_nid(virt_to_page(objp)); in cache_free_alien()
2595 page_node = page_to_nid(page); in cache_grow_begin()
2650 n = get_node(cachep, page_to_nid(page)); in cache_grow_end()
3141 nid = page_to_nid(page); in fallback_alloc()
Dslob.c326 if (node != NUMA_NO_NODE && page_to_nid(sp) != node) in slob_alloc()
Dmprotect.c114 if (target_node == page_to_nid(page)) in change_pte_range()
Dmigrate.c1570 nid = page_to_nid(page); in alloc_migration_target()
1665 if (page_to_nid(page) == node) in add_page_for_migration()
1843 err = page ? page_to_nid(page) : -ENOENT; in do_pages_stat_array()
Dkhugepaged.c1320 node = page_to_nid(page); in khugepaged_scan_pmd()
2039 node = page_to_nid(page); in khugepaged_scan_file()
Dmemory-failure.c288 drop_slab_node(page_to_nid(p)); in shake_page()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dpage_mm.h165 pgdat = &pg_data_map[page_to_nid(__p)]; \
/kernel/linux/linux-5.10/kernel/dma/
Dcontiguous.c360 if (cma_release(dma_contiguous_pernuma_area[page_to_nid(page)], in dma_free_contiguous()
/kernel/linux/linux-5.10/include/linux/
Dmm.h1328 extern int page_to_nid(const struct page *page);
1330 static inline int page_to_nid(const struct page *page) in page_to_nid() function
1405 return page_to_nid(page); /* XXX */ in page_cpupid_xchg_last()
1410 return page_to_nid(page); /* XXX */ in page_cpupid_last()
1489 return &NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)]; in page_zone()
1494 return NODE_DATA(page_to_nid(page)); in page_pgdat()
Dmmzone.h1458 page_to_nid(pfn_to_page(__pfn_to_nid_pfn)); \
/kernel/linux/linux-5.10/net/core/
Dpage_pool.c133 if (likely(page_to_nid(page) == pref_nid)) { in page_pool_refill_alloc_cache()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_network.h342 unlikely(page_to_nid(pg_info->page) != numa_node_id())) { in recv_buffer_recycle()
/kernel/linux/linux-5.10/fs/proc/
Dtask_mmu.c1780 md->node[page_to_nid(page)] += nr_pages; in gather_stats()
1799 nid = page_to_nid(page); in can_gather_numa_stats()
1824 nid = page_to_nid(page); in can_gather_numa_stats_pmd()
/kernel/linux/linux-5.10/Documentation/vm/
Dmemory-model.rst95 :c:func:`page_to_nid` is generic as it uses the node number encoded in
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/
Dne_misc_dev.c816 if (ne_enclave->numa_node != page_to_nid(mem_region_page)) { in ne_sanity_check_user_mem_region_page()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c436 if (unlikely(page_to_nid(desc_cb->priv) != numa_node_id())) in hns_nic_reuse_page()
580 if (likely(page_to_nid(desc_cb->priv) == numa_node_id())) in hns_nic_poll_rx_skb()

12