/linux-master/mm/ |
H A D | hugetlb_cgroup.c | 460 int nid; local 471 for_each_node_state(nid, N_MEMORY) 472 usage += READ_ONCE(h_cg->nodeinfo[nid]->usage[idx]); 476 for_each_node_state(nid, N_MEMORY) 477 seq_printf(seq, " N%d=%lu", nid, 478 READ_ONCE(h_cg->nodeinfo[nid]->usage[idx]) * 494 for_each_node_state(nid, N_MEMORY) { 499 ->nodeinfo[nid] 503 seq_printf(seq, " N%d=%lu", nid, usage * PAGE_SIZE);
|
H A D | memcontrol.c | 485 static void mem_cgroup_update_tree(struct mem_cgroup *memcg, int nid) argument 493 lru_gen_soft_reclaim(memcg, nid); 497 mctz = soft_limit_tree.rb_tree_per_node[nid]; 505 mz = memcg->nodeinfo[nid]; 532 int nid; local 534 for_each_node(nid) { 535 mz = memcg->nodeinfo[nid]; 536 mctz = soft_limit_tree.rb_tree_per_node[nid]; 1186 static void memcg_check_events(struct mem_cgroup *memcg, int nid) argument 1200 mem_cgroup_update_tree(memcg, nid); 1434 int nid; local 4378 mem_cgroup_node_nr_lru_pages(struct mem_cgroup *memcg, int nid, unsigned int lru_mask, bool tree) argument 4430 int nid; local 5971 int i, nid; local 6204 int nid, ret; local 7131 int nid; local 7626 int nid; member in struct:uncharge_gather [all...] |
H A D | sparse-vmemmap.c | 453 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, 465 r = vmemmap_populate_compound_pages(pfn, start, end, nid, pgmap); 467 r = vmemmap_populate(start, end, nid, altmap); 452 __populate_section_memmap(unsigned long pfn, unsigned long nr_pages, int nid, struct vmem_altmap *altmap, struct dev_pagemap *pgmap) argument
|
/linux-master/arch/sparc/mm/ |
H A D | init_64.c | 962 static u64 __init memblock_nid_range_sun4u(u64 start, u64 end, int *nid) argument 988 *nid = prev_nid; 993 static u64 __init memblock_nid_range(u64 start, u64 end, int *nid) argument 1000 return memblock_nid_range_sun4u(start, end, nid); 1065 *nid = _nid; 1071 * memblock_set_node() calls for 'nid'. We need to be able to get 1074 static void __init allocate_node_data(int nid) argument 1080 NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), 1081 SMP_CACHE_BYTES, nid); 1082 if (!NODE_DATA(nid)) { 1176 int count, nid; local 1221 int nid; local [all...] |
/linux-master/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp-hw.c | 995 unsigned int i, nid = 0; local 1011 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], 1014 if (nid) 1015 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; 1016 nid++; 1020 bdisp_hw_build_node(ctx, &cfg, ctx->node[nid], 1022 ctx->node[nid - 1]->nip = ctx->node_paddr[nid]; 1023 nid [all...] |
/linux-master/sound/pci/hda/ |
H A D | patch_sigmatel.c | 263 if (spec->gen.all_adcs[i] == hinfo->nid) { 272 snd_hda_codec_write(codec, hinfo->nid, 0, 277 snd_hda_codec_write(codec, hinfo->nid, 0, 339 hda_nid_t nid, unsigned int new_vref) 343 codec_dbg(codec, "%s, nid %x ctl %x\n", __func__, nid, new_vref); 344 pinctl = snd_hda_codec_read(codec, nid, 0, 354 error = snd_hda_set_pin_ctl_cache(codec, nid, pinctl); 364 hda_nid_t nid, 367 if (nid 338 stac_vrefout_set(struct hda_codec *codec, hda_nid_t nid, unsigned int new_vref) argument 363 stac_vref_led_power_filter(struct hda_codec *codec, hda_nid_t nid, unsigned int power_state) argument 434 stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, bool enable, bool do_write) argument 483 hda_nid_t nid = spec->pwr_nids[i]; local 517 hda_nid_t nid = spec->pwr_nids[i]; local 829 stac_auto_create_beep_ctls(struct hda_codec *codec, hda_nid_t nid) argument 4313 hda_nid_t nid = spec->gen.beep_nid; local 4397 stac92hd_proc_hook(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 4415 stac92hd7x_proc_hook(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 4423 stac9205_proc_hook(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument 4430 stac927x_proc_hook(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) argument [all...] |
/linux-master/sound/virtio/ |
H A D | virtio_chmap.c | 84 u32 nid = le32_to_cpu(info->hdr.hda_fn_nid); local 88 vpcm = virtsnd_pcm_find_or_create(snd, nid);
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci.h | 275 extern struct iommu_table *pnv_pci_table_alloc(int nid); 314 extern long pnv_pci_ioda2_table_alloc_pages(int nid, __u64 bus_offset,
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_acpi.c | 845 static inline uint64_t amdgpu_acpi_get_numa_size(int nid) argument 853 pg_data_t *pgdat = NODE_DATA(nid); 864 int nid; local 875 nid = pxm_to_node(pxm); 877 numa_info->nid = nid; 879 if (numa_info->nid == NUMA_NO_NODE) { 883 numa_info->size = amdgpu_acpi_get_numa_size(nid);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_managed.c | 87 size_t size, gfp_t gfp, int nid) 96 dr = kmalloc_node_track_caller(tot_size, gfp, nid); 86 alloc_dr(drmres_release_t release, size_t size, gfp_t gfp, int nid) argument
|
/linux-master/sound/soc/codecs/ |
H A D | rt722-sdca.h | 235 unsigned int nid, unsigned int reg, unsigned int value); 237 unsigned int nid, unsigned int reg, unsigned int *value);
|
H A D | rt715.c | 51 unsigned int nid, unsigned int reg, unsigned int value) 54 unsigned int addr = ((RT715_PRIV_INDEX_W_H_2 | nid) << 8) | reg; 65 unsigned int nid, unsigned int reg, unsigned int *value) 68 unsigned int addr = ((RT715_PRIV_INDEX_W_H_2 | nid) << 8) | reg; 79 static int rt715_index_update_bits(struct regmap *regmap, unsigned int nid, argument 85 ret = rt715_index_read_nid(regmap, nid, reg, &orig); 92 return rt715_index_write_nid(regmap, nid, reg, tmp); 564 /* nid = e->reg, vid = 0xf01 */ 601 /* Verb ID = 0x701h, nid = e->reg */ 640 * Due to mux design for nid 2 50 rt715_index_write_nid(struct regmap *regmap, unsigned int nid, unsigned int reg, unsigned int value) argument 64 rt715_index_read_nid(struct regmap *regmap, unsigned int nid, unsigned int reg, unsigned int *value) argument [all...] |
H A D | rt715-sdca.c | 33 unsigned int nid, unsigned int reg, unsigned int value) 39 addr = (nid << 20) | reg; 51 unsigned int nid, unsigned int reg, unsigned int *value) 57 addr = (nid << 20) | reg; 69 unsigned int nid, unsigned int reg, unsigned int mask, unsigned int val) 74 ret = rt715_sdca_index_read(rt715, nid, reg, &tmp); 80 return rt715_sdca_index_write(rt715, nid, reg, tmp); 572 /* Verb ID = 0x701h, nid = e->reg */ 602 * Due to mux design for nid 24 (MUX_IN3)/25 (MUX_IN4), connection index 0 and 32 rt715_sdca_index_write(struct rt715_sdca_priv *rt715, unsigned int nid, unsigned int reg, unsigned int value) argument 50 rt715_sdca_index_read(struct rt715_sdca_priv *rt715, unsigned int nid, unsigned int reg, unsigned int *value) argument 68 rt715_sdca_index_update_bits(struct rt715_sdca_priv *rt715, unsigned int nid, unsigned int reg, unsigned int mask, unsigned int val) argument
|
H A D | rt712-sdca-dmic.c | 133 unsigned int nid, unsigned int reg, unsigned int value) 137 unsigned int addr = (nid << 20) | reg; 149 unsigned int nid, unsigned int reg, unsigned int *value) 153 unsigned int addr = (nid << 20) | reg; 165 unsigned int nid, unsigned int reg, unsigned int mask, unsigned int val) 170 ret = rt712_sdca_dmic_index_read(rt712, nid, reg, &tmp); 175 return rt712_sdca_dmic_index_write(rt712, nid, reg, tmp); 132 rt712_sdca_dmic_index_write(struct rt712_sdca_dmic_priv *rt712, unsigned int nid, unsigned int reg, unsigned int value) argument 148 rt712_sdca_dmic_index_read(struct rt712_sdca_dmic_priv *rt712, unsigned int nid, unsigned int reg, unsigned int *value) argument 164 rt712_sdca_dmic_index_update_bits(struct rt712_sdca_dmic_priv *rt712, unsigned int nid, unsigned int reg, unsigned int mask, unsigned int val) argument
|
/linux-master/arch/loongarch/mm/ |
H A D | init.c | 94 int arch_add_memory(int nid, u64 start, u64 size, struct mhp_params *params) argument 100 ret = __add_pages(nid, start_pfn, nr_pages, params);
|
/linux-master/arch/s390/mm/ |
H A D | init.c | 276 int arch_add_memory(int nid, u64 start, u64 size, argument 291 rc = __add_pages(nid, start_pfn, size_pages, params);
|
/linux-master/drivers/perf/ |
H A D | arm-cmn.c | 374 struct arm_cmn_nodeid nid; local 377 nid.x = 0; 378 nid.y = 0; 379 nid.port = CMN_NODEID_1x1_PID(id); 380 nid.dev = CMN_NODEID_DEVID(id); 384 nid.x = CMN_NODEID_X(id, bits); 385 nid.y = CMN_NODEID_Y(id, bits); 387 nid.port = CMN_NODEID_EXT_PID(id); 388 nid.dev = CMN_NODEID_EXT_DEVID(id); 390 nid 400 struct arm_cmn_nodeid nid = arm_cmn_nid(cmn, dn->id); local 495 struct arm_cmn_nodeid nid = arm_cmn_nid(cmn, dn->id); local 1756 struct arm_cmn_nodeid nid = arm_cmn_nid(cmn, nodeid); local 1854 struct arm_cmn_nodeid nid = arm_cmn_nid(cmn, dn->id); local [all...] |
/linux-master/fs/f2fs/ |
H A D | gc.c | 1016 nid_t nid = le32_to_cpu(entry->nid); local 1029 f2fs_ra_meta_pages(sbi, NAT_BLOCK_OFFSET(nid), 1, 1035 f2fs_ra_node_page(sbi, nid); 1040 node_page = f2fs_get_node_page(sbi, nid); 1050 if (f2fs_get_node_info(sbi, nid, &ni, false)) { 1107 nid_t nid; local 1111 nid = le32_to_cpu(sum->nid); 1114 node_page = f2fs_get_node_page(sbi, nid); 1516 nid_t nid = le32_to_cpu(entry->nid); local [all...] |
/linux-master/arch/x86/kernel/apic/ |
H A D | x2apic_uv_x.c | 1536 int nid = __apicid_to_node[apicid]; local 1539 if ((nid == NUMA_NO_NODE) || (lnid == nid)) 1541 lnid = nid; 1546 _socket_to_node[sockid - minsock] = nid; 1548 if (_node_to_socket[nid] == SOCK_EMPTY) 1549 _node_to_socket[nid] = sockid; 1554 _node_to_socket[nid], 1555 nid,
|
/linux-master/drivers/misc/sgi-gru/ |
H A D | grufile.c | 254 int pnode, nid, bid, chip; local 266 nid = uv_blade_to_memory_nid(bid);/* -1 if no memory on blade */ 267 page = alloc_pages_node(nid, GFP_KERNEL, order);
|
/linux-master/drivers/xen/ |
H A D | balloon.c | 263 int nid, rc; local 282 nid = memory_add_physaddr_to_nid(resource->start); 322 rc = add_memory_resource(nid, resource, MHP_MERGE_RESOURCE);
|
/linux-master/arch/powerpc/mm/book3s64/ |
H A D | pgtable.c | 277 int nid, pgprot_t prot) 280 return radix__create_section_mapping(start, end, nid, prot); 282 return hash__create_section_mapping(start, end, nid, prot); 276 create_section_mapping(unsigned long start, unsigned long end, int nid, pgprot_t prot) argument
|
/linux-master/arch/powerpc/include/asm/book3s/64/ |
H A D | hash.h | 269 int nid, pgprot_t prot);
|
/linux-master/drivers/cxl/core/ |
H A D | cdat.c | 590 int cxl_update_hmat_access_coordinates(int nid, struct cxl_region *cxlr, argument 593 return hmat_update_target_coordinates(nid, &cxlr->coord[access], access); 596 bool cxl_need_node_perf_attrs_update(int nid) argument 598 return !acpi_node_backed_by_real_pxm(nid);
|
/linux-master/include/linux/ |
H A D | mempool.h | 55 gfp_t gfp_mask, int nid);
|