/linux-master/arch/sparc/kernel/ |
H A D | iommu.c | 204 int npages, nid; local 213 nid = dev->archdata.numa_node; 214 page = alloc_pages_node(nid, gfp, order);
|
H A D | pci_sun4v.c | 193 int nid; local 205 nid = dev->archdata.numa_node; 206 page = alloc_pages_node(nid, gfp, order);
|
/linux-master/fs/f2fs/ |
H A D | segment.h | 863 static inline void set_summary(struct f2fs_summary *sum, nid_t nid, argument 866 sum->nid = cpu_to_le32(nid);
|
/linux-master/include/linux/ |
H A D | device.h | 274 int nid, const char *name) __malloc; 277 #define devres_alloc_node(release, size, gfp, nid) \ 278 __devres_alloc_node(release, size, gfp, nid, #release)
|
H A D | memcontrol.h | 1783 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id); 1795 int nid, int shrinker_id) 1794 set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) argument
|
/linux-master/fs/erofs/ |
H A D | super.c | 564 erofs_nid_t nid; local 568 err = erofs_namei(d_inode(child), &dotdot_name, &nid, &d_type); 571 return d_obtain_alias(erofs_iget(child->d_sb, nid)); 658 erofs_err(sb, "rootino(nid %llu) is not a directory(i_mode %o)", 689 erofs_info(sb, "mounted with root inode @ nid %llu.", sbi->root_nid);
|
/linux-master/tools/testing/memblock/tests/ |
H A D | alloc_nid_api.c | 33 phys_addr_t max_addr, int nid) 43 max_addr, nid); 46 max_addr, nid); 47 return memblock_alloc_try_nid(size, align, min_addr, max_addr, nid); 1292 * enough memory (in this case, nid = 6) after falling back to NUMA_NO_NODE. 1344 * large enough and has enough unreserved memory (in this case, nid = 6) after 1455 * nid = NUMA_NODES - 1) after falling back to NUMA_NO_NODE. The region count 1836 * has enough memory (in this case, nid = 0) after falling back to NUMA_NO_NODE. 1888 * is large enough and has enough unreserved memory (in this case, nid = 0) 2002 * nid 30 run_memblock_alloc_nid(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid) argument [all...] |
/linux-master/drivers/virtio/ |
H A D | virtio_mem.c | 129 int nid; member in struct:virtio_mem 2598 rc = memory_group_register_dynamic(vm->nid, unit_pages); 2728 vm->nid = virtio_mem_translate_node_id(vm, node_id); 2733 /* Determine the nid for the device based on the lowest address. */ 2734 if (vm->nid == NUMA_NO_NODE) 2735 vm->nid = memory_add_physaddr_to_nid(vm->addr); 2741 if (vm->nid != NUMA_NO_NODE && IS_ENABLED(CONFIG_NUMA)) 2742 dev_info(&vm->vdev->dev, "nid: %d", vm->nid);
|
/linux-master/drivers/hv/ |
H A D | hv_balloon.c | 722 int i, nid; local 746 nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); 747 ret = add_memory(nid, PFN_PHYS((start_pfn)),
|
/linux-master/include/pcmcia/ |
H A D | cistpl.h | 132 u_char nid; member in struct:cistpl_jedec_t
|
/linux-master/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_pool_test.c | 157 KUNIT_ASSERT_EQ(test, pool->nid, NUMA_NO_NODE);
|
/linux-master/mm/ |
H A D | huge_memory.c | 1720 int nid = NUMA_NO_NODE; local 1750 nid = folio_nid(folio); 1755 if (node_is_toptier(nid)) 1757 target_nid = numa_migrate_prep(folio, vma, haddr, nid, &flags); 1769 nid = target_nid; 1781 if (nid != NUMA_NO_NODE) 1782 task_numa_fault(last_cpupid, nid, HPAGE_PMD_NR, flags); 3303 struct pglist_data *pgdata = NODE_DATA(sc->nid); 3316 struct pglist_data *pgdata = NODE_DATA(sc->nid);
|
H A D | slub.c | 2527 int nid = slab_nid(slab); local 2528 struct kmem_cache_node *n = get_node(s, nid); 2552 inc_slabs_node(s, nid, slab->objects); 3233 slab_out_of_memory(struct kmem_cache *s, gfp_t gfpflags, int nid) argument 3244 nid, gfpflags, &gfpflags); 3268 slab_out_of_memory(struct kmem_cache *s, gfp_t gfpflags, int nid) { } argument 5497 int nid = marg->status_change_nid_normal; local 5504 if (nid < 0) 5518 if (get_node(s, nid)) 5531 s->node[nid] [all...] |
H A D | page_alloc.c | 4865 * @nid: the preferred node ID where memory should be allocated 4869 * Like alloc_pages_exact(), but try to allocate on node nid first before falling 4874 void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask) argument 4882 p = alloc_pages_node(nid, gfp_mask, order); 5244 int nid; local 5277 for_each_node(nid) { 5278 pg_data_t *pgdat = NODE_DATA(nid); 6252 .nid = zone_to_nid(cc->zone), 6509 * @nid: Target node 6527 int nid, nodemask_ 6526 alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask) argument [all...] |
H A D | memory.c | 5059 int nid = NUMA_NO_NODE; local 5116 nid = folio_nid(folio); 5122 !node_is_toptier(nid)) 5126 target_nid = numa_migrate_prep(folio, vma, vmf->address, nid, &flags); 5136 nid = target_nid; 5152 if (nid != NUMA_NO_NODE) 5153 task_numa_fault(last_cpupid, nid, 1, flags);
|
H A D | vmalloc.c | 3490 vm_area_alloc_pages(gfp_t gfp, int nid, argument 3521 * wrongly use nearest node when nid == NUMA_NO_NODE, 3525 if (IS_ENABLED(CONFIG_NUMA) && nid == NUMA_NO_NODE) 3531 nr = alloc_pages_bulk_array_node(bulk_gfp, nid, 3560 if (nid == NUMA_NO_NODE) 3563 page = alloc_pages_node(nid, alloc_gfp, order);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pagealloc.c | 294 int nid = dev_to_node(device); local 300 page = alloc_pages_node(nid, GFP_HIGHUSER, 0);
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci.c | 733 struct iommu_table *pnv_pci_table_alloc(int nid) argument 737 tbl = kzalloc_node(sizeof(struct iommu_table), GFP_KERNEL, nid);
|
H A D | pci-ioda.c | 1350 int nid = pe->phb->hose->node; local 1355 tbl = pnv_pci_table_alloc(nid); 1361 ret = pnv_pci_ioda2_table_alloc_pages(nid,
|
/linux-master/drivers/nvdimm/ |
H A D | pmem.c | 459 int nid = dev_to_node(dev), fua; local 505 disk = blk_alloc_disk(&lim, nid);
|
/linux-master/drivers/cxl/core/ |
H A D | region.c | 2275 static bool cxl_region_update_coordinates(struct cxl_region *cxlr, int nid) argument 2283 if (cxl_need_node_perf_attrs_update(nid)) 2284 node_set_perf_attrs(nid, &cxlr->coord[i], i); 2286 rc = cxl_update_hmat_access_coordinates(nid, cxlr, i); 2316 int nid = mnb->status_change_nid; local 2319 if (nid == NUMA_NO_NODE || action != MEM_ONLINE) 2323 if (nid != region_nid) 2326 if (!cxl_region_update_coordinates(cxlr, nid))
|
/linux-master/drivers/iommu/amd/ |
H A D | amd_iommu_types.h | 558 int nid; /* Node ID */ member in struct:protection_domain
|
H A D | iommu.c | 1788 int nid = iommu ? dev_to_node(&iommu->dev->dev) : NUMA_NO_NODE; local 1799 gcr3_info->gcr3_tbl = alloc_pgtable_page(nid, GFP_ATOMIC); 2016 if (domain->nid == NUMA_NO_NODE) 2017 domain->nid = dev_to_node(dev_data->dev); 2299 domain->nid = NUMA_NO_NODE;
|
/linux-master/arch/arm64/mm/ |
H A D | mmu.c | 1323 int arch_add_memory(int nid, u64 start, u64 size, argument 1339 ret = __add_pages(nid, start >> PAGE_SHIFT, size >> PAGE_SHIFT,
|
/linux-master/arch/powerpc/kernel/ |
H A D | iommu.c | 724 struct iommu_table *iommu_init_table(struct iommu_table *tbl, int nid, argument 737 tbl->it_map = vzalloc_node(sz, nid);
|