Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/linux/sound/hda/
H A Dhdac_sysfs.c89 ssize_t (*show)(struct hdac_device *codec, hda_nid_t nid,
91 ssize_t (*store)(struct hdac_device *codec, hda_nid_t nid,
99 int nid; in get_codec_nid() local
102 ret = kstrtoint(kobj->name, 16, &nid); in get_codec_nid()
106 return nid; in get_codec_nid()
115 int nid; in widget_attr_show() local
119 nid = get_codec_nid(kobj, &codec); in widget_attr_show()
120 if (nid < 0) in widget_attr_show()
121 return nid; in widget_attr_show()
122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show()
[all …]
H A Dhdac_device.c225 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() argument
231 if ((addr & ~0xf) || (nid & ~0x7f) || in snd_hdac_make_cmd()
234 addr, nid, verb, parm); in snd_hdac_make_cmd()
239 val |= (u32)nid << 20; in snd_hdac_make_cmd()
276 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() argument
279 unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); in snd_hdac_read()
294 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() argument
299 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in _snd_hdac_read_parm()
313 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() argument
318 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in snd_hdac_read_parm_uncached()
[all …]
/linux/arch/powerpc/mm/
H A Dnuma.c90 unsigned int *nid) in fake_numa_create_new_node() argument
102 *nid = fake_nid; in fake_numa_create_new_node()
129 *nid = fake_nid; in fake_numa_create_new_node()
171 int nid; in __associativity_to_nid() local
180 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid()
183 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid()
184 nid = NUMA_NO_NODE; in __associativity_to_nid()
185 return nid; in __associativity_to_nid()
274 int nid = NUMA_NO_NODE; in of_node_to_nid_single() local
279 nid = associativity_to_nid(tmp); in of_node_to_nid_single()
[all …]
/linux/sound/pci/hda/
H A Dhda_proc.c22 #define param_read(codec, nid, parm) \ argument
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() argument
56 if (item->nid == nid) { in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() argument
82 if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() argument
97 caps = param_read(codec, nid, dir == HDA_OUTPUT ? in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() argument
126 if (snd_hda_get_raw_connections(codec, nid, &conn, 1) < 0) in is_stereo_amps()
[all …]
H A Dhda_jack.h21 hda_nid_t nid; member
31 hda_nid_t nid; member
55 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id);
63 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() argument
65 return snd_hda_jack_tbl_get_mst(codec, nid, 0); in snd_hda_jack_tbl_get()
77 int snd_hda_jack_detect_enable(struct hda_codec *codec, hda_nid_t nid,
81 snd_hda_jack_detect_enable_callback_mst(struct hda_codec *codec, hda_nid_t nid,
95 snd_hda_jack_detect_enable_callback(struct hda_codec *codec, hda_nid_t nid, in snd_hda_jack_detect_enable_callback() argument
98 return snd_hda_jack_detect_enable_callback_mst(codec, nid, 0, cb); in snd_hda_jack_detect_enable_callback()
111 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id);
[all …]
H A Dhda_jack.c29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() argument
33 if (!(snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT)) in is_jack_detectable()
35 if (get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid)) & in is_jack_detectable()
38 if (!(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP) && in is_jack_detectable()
46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense() argument
52 pincap = snd_hda_query_pin_caps(codec, nid); in read_pin_sense()
54 snd_hda_codec_read(codec, nid, 0, in read_pin_sense()
57 val = snd_hda_codec_read(codec, nid, 0, in read_pin_sense()
71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_get_mst() argument
76 if (!nid || !jack) in snd_hda_jack_tbl_get_mst()
[all …]
/linux/include/trace/events/
H A Dvmscan.h51 TP_PROTO(int nid),
53 TP_ARGS(nid),
56 __field( int, nid )
60 __entry->nid = nid;
63 TP_printk("nid=%d", __entry->nid)
68 TP_PROTO(int nid, int zid, int order),
70 TP_ARGS(nid, zid, order),
73 __field( int, nid )
[all...]
H A Derofs.h14 #define show_dev_nid(entry) show_dev(entry->dev), entry->nid
42 __field(erofs_nid_t, nid )
49 __entry->nid = EROFS_I(dir)->nid;
66 __field(erofs_nid_t, nid )
73 __entry->nid = EROFS_I(inode)->nid;
91 __field(erofs_nid_t, nid )
100 __entry->nid = EROFS_I(folio->mapping->host)->nid;
125 __field(erofs_nid_t, nid )
133 __entry->nid = EROFS_I(inode)->nid;
155 __field( erofs_nid_t, nid )
[all …]
/linux/include/linux/
H A Dnode.h78 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs);
79 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord,
82 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument
87 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument
107 void register_memory_blocks_under_node(int nid, unsigned long start_pfn,
111 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, in register_memory_blocks_under_node() argument
122 extern int __register_one_node(int nid);
125 static inline int register_one_node(int nid) in register_one_node() argument
129 if (node_online(nid)) { in register_one_node()
130 struct pglist_data *pgdat = NODE_DATA(nid); in register_one_node()
[all …]
H A Dmemblock.h67 int nid; member
114 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid,
141 void __next_mem_range(u64 *idx, int nid, enum memblock_flags flags,
146 void __next_mem_range_rev(u64 *idx, int nid, enum memblock_flags flags,
189 #define __for_each_mem_range(i, type_a, type_b, nid, flags, \ argument
191 for (i = 0, __next_mem_range(&i, nid, flags, type_a, type_b, \
194 __next_mem_range(&i, nid, flags, type_a, type_b, \
209 #define __for_each_mem_range_rev(i, type_a, type_b, nid, flags, \ argument
212 __next_mem_range_rev(&i, nid, flags, type_a, type_b, \
215 __next_mem_range_rev(&i, nid, flags, type_a, type_b, \
[all …]
/linux/include/sound/
H A Dhda_regmap.h38 #define snd_hdac_regmap_encode_verb(nid, verb) \ argument
39 (((verb) << 8) | 0x80000 | ((unsigned int)(nid) << 20))
50 #define snd_hdac_regmap_encode_amp(nid, ch, dir, idx) \ argument
51 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \
64 #define snd_hdac_regmap_encode_amp_stereo(nid, dir, idx) \ argument
65 (snd_hdac_regmap_encode_verb(nid, AC_VERB_GET_AMP_GAIN_MUTE) | \
79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() argument
82 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_write()
97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update() argument
101 unsigned int cmd = snd_hdac_regmap_encode_verb(nid, verb); in snd_hdac_regmap_update()
[all …]
H A Dhda_codec.h114 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
115 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
139 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member
265 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
270 struct hda_codec *codec, hda_nid_t nid);
322 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument
326 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read()
330 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument
333 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write()
336 #define snd_hda_param_read(codec, nid, param) \ argument
[all …]
/linux/sound/pci/lola/
H A Dlola_proc.c17 struct lola *chip, int nid, const char *name) in print_audio_widget() argument
21 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_audio_widget()
22 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget()
23 lola_read_param(chip, nid, LOLA_PAR_STREAM_FORMATS, &val); in print_audio_widget()
28 struct lola *chip, int nid, unsigned int ampcap, in print_pin_widget() argument
33 lola_read_param(chip, nid, LOLA_PAR_AUDIO_WIDGET_CAP, &val); in print_pin_widget()
34 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget()
37 lola_read_param(chip, nid, ampcap, &val); in print_pin_widget()
44 lola_codec_read(chip, nid, LOLA_VERB_GET_MAX_LEVEL, 0, 0, &val, NULL); in print_pin_widget()
49 struct lola *chip, int nid) in print_clock_widget() argument
[all …]
/linux/mm/
H A Dshrinker.c42 struct shrinker_info *old, int nid) in shrinker_unit_alloc() argument
50 unit = kzalloc_node(sizeof(*unit), GFP_KERNEL, nid); in shrinker_unit_alloc()
66 int nid; in free_shrinker_info() local
68 for_each_node(nid) { in free_shrinker_info()
69 pn = memcg->nodeinfo[nid]; in free_shrinker_info()
79 int nid, ret = 0; in alloc_shrinker_info() local
84 for_each_node(nid) { in alloc_shrinker_info()
86 GFP_KERNEL, nid); in alloc_shrinker_info()
90 if (shrinker_unit_alloc(info, NULL, nid)) { in alloc_shrinker_info()
94 rcu_assign_pointer(memcg->nodeinfo[nid]->shrinker_info, info); in alloc_shrinker_info()
[all …]
H A Dsparse.c52 static void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
54 section_to_node_table[section_nr] = nid; in set_section_nid()
57 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
63 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc() argument
70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
73 nid); in sparse_index_alloc()
75 panic("%s: Failed to allocate %lu bytes nid=%d\n", in sparse_index_alloc()
76 __func__, array_size, nid); in sparse_index_alloc()
82 static int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
97 section = sparse_index_alloc(nid); in sparse_index_init()
106 sparse_index_init(unsigned long section_nr,int nid) sparse_index_init() argument
118 sparse_encode_early_nid(int nid) sparse_encode_early_nid() argument
222 memory_present(int nid,unsigned long start,unsigned long end) memory_present() argument
252 int i, nid; memblocks_present() local
334 int nid; sparse_early_usemaps_alloc_pgdat_section() local
357 check_usemap_section_nr(int nid,struct mem_section_usage * usage) check_usemap_section_nr() argument
407 check_usemap_section_nr(int nid,struct mem_section_usage * usage) check_usemap_section_nr() argument
426 __populate_section_memmap(unsigned long pfn,unsigned long nr_pages,int nid,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) __populate_section_memmap() argument
454 sparse_buffer_init(unsigned long size,int nid) sparse_buffer_init() argument
505 sparse_init_nid(int nid,unsigned long pnum_begin,unsigned long pnum_end,unsigned long map_count) sparse_init_nid() argument
574 int nid = sparse_early_nid(__nr_to_section(pnum_end)); sparse_init() local
634 populate_section_memmap(unsigned long pfn,unsigned long nr_pages,int nid,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) populate_section_memmap() argument
707 populate_section_memmap(unsigned long pfn,unsigned long nr_pages,int nid,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) populate_section_memmap() argument
831 section_activate(int nid,unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) section_activate() argument
893 sparse_add_section(int nid,unsigned long start_pfn,unsigned long nr_pages,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) sparse_add_section() argument
[all...]
H A Dmm_init.c45 int nid; in mminit_verify_zonelist() local
50 for_each_online_node(nid) { in mminit_verify_zonelist()
51 pg_data_t *pgdat = NODE_DATA(nid); in mminit_verify_zonelist()
69 listid > 0 ? "thisnode" : "general", nid, in mminit_verify_zonelist()
301 int i, nid; in early_calculate_totalpages()
303 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) { in early_calculate_totalpages()
308 node_set_state(nid, N_MEMORY); in early_calculate_totalpages()
342 int i, nid; in find_zone_movable_pfns_for_nodes()
363 nid = memblock_get_region_node(r); in find_zone_movable_pfns_for_nodes()
366 zone_movable_pfn[nid] in find_zone_movable_pfns_for_nodes()
302 int i, nid; early_calculate_totalpages() local
343 int i, nid; find_zone_movable_pfns_for_nodes() local
566 __init_single_page(struct page * page,unsigned long pfn,unsigned long zone,int nid) __init_single_page() argument
604 int nid; __early_pfn_to_nid() local
622 int nid; early_pfn_to_nid() local
660 early_page_initialised(unsigned long pfn,int nid) early_page_initialised() argument
673 defer_init(int nid,unsigned long pfn,unsigned long end_pfn) defer_init() argument
709 init_reserved_page(unsigned long pfn,int nid) init_reserved_page() argument
730 early_page_initialised(unsigned long pfn,int nid) early_page_initialised() argument
735 defer_init(int nid,unsigned long pfn,unsigned long end_pfn) defer_init() argument
740 init_reserved_page(unsigned long pfn,int nid) init_reserved_page() argument
752 reserve_bootmem_region(phys_addr_t start,phys_addr_t end,int nid) reserve_bootmem_region() argument
849 memmap_init_range(unsigned long size,int nid,unsigned long zone,unsigned long start_pfn,unsigned long zone_end_pfn,enum meminit_context context,struct vmem_altmap * altmap,int migratetype) memmap_init_range() argument
923 int nid = zone_to_nid(zone), zone_id = zone_idx(zone); memmap_init_zone_range() local
944 int i, j, zone_id = 0, nid; memmap_init() local
979 __init_zone_device_page(struct page * page,unsigned long pfn,unsigned long zone_idx,int nid,struct dev_pagemap * pgmap) __init_zone_device_page() argument
1045 memmap_init_compound(struct page * head,unsigned long head_pfn,unsigned long zone_idx,int nid,struct dev_pagemap * pgmap,unsigned long nr_pages) memmap_init_compound() argument
1081 int nid = pgdat->node_id; memmap_init_zone_device() local
1123 adjust_zone_range_for_zone_movable(int nid,unsigned long zone_type,unsigned long node_end_pfn,unsigned long * zone_start_pfn,unsigned long * zone_end_pfn) adjust_zone_range_for_zone_movable() argument
1153 __absent_pages_in_range(int nid,unsigned long range_start_pfn,unsigned long range_end_pfn) __absent_pages_in_range() argument
1183 zone_absent_pages_in_node(int nid,unsigned long zone_type,unsigned long zone_start_pfn,unsigned long zone_end_pfn) zone_absent_pages_in_node() argument
1228 zone_spanned_pages_in_node(int nid,unsigned long zone_type,unsigned long node_start_pfn,unsigned long node_end_pfn,unsigned long * zone_start_pfn,unsigned long * zone_end_pfn) zone_spanned_pages_in_node() argument
1383 zone_init_internals(struct zone * zone,enum zone_type idx,int nid,unsigned long remaining_pages) zone_init_internals() argument
1514 int nid = pgdat->node_id; free_area_init_core_hotplug() local
1558 int nid = pgdat->node_id; free_area_init_core() local
1582 memmap_alloc(phys_addr_t size,phys_addr_t align,phys_addr_t min_addr,int nid,bool exact_nid) memmap_alloc() argument
1653 get_pfn_range_for_nid(unsigned int nid,unsigned long * start_pfn,unsigned long * end_pfn) get_pfn_range_for_nid() argument
1671 free_area_init_node(int nid) free_area_init_node() argument
1760 int i, nid, zone; free_area_init() local
1889 int i, nid; node_map_pfn_alignment() local
1963 int nid = zone_to_nid(zone); deferred_init_pages() local
2276 int nid; page_alloc_init_late() local
2446 int nid = early_pfn_to_nid(pfn); memblock_free_pages() local
[all...]
H A Dnuma_emulation.c24 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) in emu_find_memblk_by_nid() argument
29 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
50 int nid, int phys_blk, u64 size) in emu_setup_memblk() argument
63 eb->nid = nid; in emu_setup_memblk()
65 if (emu_nid_to_phys[nid] == NUMA_NO_NODE) in emu_setup_memblk()
66 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk()
75 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk()
92 int nid = 0; in split_nodes_interleave() local
143 if (nid < big) in split_nodes_interleave()
175 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
[all …]
H A Dlist_lru.c53 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_from_memcg_idx() argument
58 return mlru ? &mlru->node[nid] : NULL; in list_lru_from_memcg_idx()
60 return &lru->node[nid].lru; in list_lru_from_memcg_idx()
64 lock_list_lru_of_memcg(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_register()
72 l = list_lru_from_memcg_idx(lru, nid, memcg_kmem_id(memcg)); in lru_shrinker_id()
129 list_lru_from_memcg_idx(struct list_lru *lru, int nid, int idx) in list_lru_del() argument
131 return &lru->node[nid].lru; in list_lru_del()
135 lock_list_lru_of_memcg(struct list_lru *lru, int nid, struct mem_cgroup *memcg, in list_lru_del()
138 struct list_lru_one *l = &lru->node[nid].lru; in list_lru_del()
158 bool list_lru_add(struct list_lru *lru, struct list_head *item, int nid, in list_lru_del_obj()
82 list_lru_from_memcg_idx(struct list_lru * lru,int nid,int idx) list_lru_from_memcg_idx() argument
89 list_lru_add(struct list_lru * lru,struct list_head * item,int nid,struct mem_cgroup * memcg) list_lru_add() argument
114 int nid = page_to_nid(virt_to_page(item)); list_lru_add_obj() local
152 int nid = page_to_nid(virt_to_page(item)); list_lru_del_obj() local
182 list_lru_count_one(struct list_lru * lru,int nid,struct mem_cgroup * memcg) list_lru_count_one() argument
199 list_lru_count_node(struct list_lru * lru,int nid) list_lru_count_node() argument
209 __list_lru_walk_one(struct list_lru * lru,int nid,int memcg_idx,list_lru_walk_cb isolate,void * cb_arg,unsigned long * nr_to_walk) __list_lru_walk_one() argument
274 list_lru_walk_one(struct list_lru * lru,int nid,struct mem_cgroup * memcg,list_lru_walk_cb isolate,void * cb_arg,unsigned long * nr_to_walk) list_lru_walk_one() argument
290 list_lru_walk_one_irq(struct list_lru * lru,int nid,struct mem_cgroup * memcg,list_lru_walk_cb isolate,void * cb_arg,unsigned long * nr_to_walk) list_lru_walk_one_irq() argument
304 list_lru_walk_node(struct list_lru * lru,int nid,list_lru_walk_cb isolate,void * cb_arg,unsigned long * nr_to_walk) list_lru_walk_node() argument
346 int nid; memcg_init_list_lru_one() local
396 memcg_reparent_list_lru_node(struct list_lru * lru,int nid,int src_idx,struct mem_cgroup * dst_memcg) memcg_reparent_list_lru_node() argument
[all...]
H A Dnuma_memblks.c28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo()
29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument
141 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
143 nid, start, end - 1); in numa_add_memblk_to()
154 mi->blk[mi->nr_blks].nid = nid; in numa_add_memblk_to()
198 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument
200 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk()
235 numa_add_memblk_to(bi->nid, high, bi->end, in numa_cleanup_meminfo()
259 if (bi->nid != bj->nid) { in numa_cleanup_meminfo()
[all …]
H A Dnuma.c12 void __init alloc_node_data(int nid) in alloc_node_data() argument
20 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in alloc_node_data()
23 nd_size, nid); in alloc_node_data()
27 pr_info("NODE_DATA(%d) allocated [mem %#010Lx-%#010Lx]\n", nid, in alloc_node_data()
30 if (tnid != nid) in alloc_node_data()
31 pr_info(" NODE_DATA(%d) on node %d\n", nid, tnid); in alloc_node_data()
33 node_data[nid] = nd; in alloc_node_data()
34 memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); in alloc_node_data()
37 void __init alloc_offline_node_data(int nid) in alloc_offline_node_data() argument
44 sizeof(*pgdat), nid); in alloc_offline_node_data()
[all …]
H A Dmemory_hotplug.c369 int __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() argument
403 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap, in __add_pages()
414 static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, in find_smallest_section_pfn() argument
422 if (unlikely(pfn_to_nid(start_pfn) != nid)) in find_smallest_section_pfn()
435 static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, in find_biggest_section_pfn() argument
447 if (unlikely(pfn_to_nid(pfn) != nid)) in find_biggest_section_pfn()
463 int nid = zone_to_nid(zone); in shrink_zone_span() local
472 pfn = find_smallest_section_pfn(nid, zone, end_pfn, in shrink_zone_span()
488 pfn = find_biggest_section_pfn(nid, zone, zone->zone_start_pfn, in shrink_zone_span()
679 int nid in node_states_check_changes_online() local
749 int nid = pgdat->node_id; move_pfn_range_to_zone() local
837 auto_movable_can_online_movable(int nid,struct memory_group * group,unsigned long nr_pages) auto_movable_can_online_movable() argument
892 default_kernel_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_kernel_zone_for_pfn() argument
958 auto_movable_zone_for_pfn(int nid,struct memory_group * group,unsigned long pfn,unsigned long nr_pages) auto_movable_zone_for_pfn() argument
1019 default_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_zone_for_pfn() argument
1043 zone_for_pfn_range(int online_type,int nid,struct memory_group * group,unsigned long start_pfn,unsigned long nr_pages) zone_for_pfn_range() argument
1151 const int nid = zone_to_nid(zone); online_pages() local
1236 hotadd_init_pgdat(int nid) hotadd_init_pgdat() argument
1271 __try_online_node(int nid,bool set_node_online) __try_online_node() argument
1298 try_online_node(int nid) try_online_node() argument
1420 create_altmaps_and_memory_blocks(int nid,struct memory_group * group,u64 start,u64 size,mhp_t mhp_flags) create_altmaps_and_memory_blocks() argument
1476 add_memory_resource(int nid,struct resource * res,mhp_t mhp_flags) add_memory_resource() argument
1583 __add_memory(int nid,u64 start,u64 size,mhp_t mhp_flags) __add_memory() argument
1598 add_memory(int nid,u64 start,u64 size,mhp_t mhp_flags) add_memory() argument
1631 add_memory_driver_managed(int nid,u64 start,u64 size,const char * resource_name,mhp_t mhp_flags) add_memory_driver_managed() argument
2120 int *nid = arg; check_memblock_offlined_cb() local
2146 check_cpu_on_node(int nid) check_cpu_on_node() argument
2164 int nid = *(int *)arg; check_no_memblock_for_node_cb() local
2183 try_offline_node(int nid) try_offline_node() argument
2238 int rc, nid = NUMA_NO_NODE; try_remove_memory() local
[all...]
H A Dpage_ext.c189 static int __init alloc_node_page_ext(int nid) in alloc_node_page_ext() argument
195 nr_pages = NODE_DATA(nid)->node_spanned_pages; in alloc_node_page_ext()
204 if (!IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) || in alloc_node_page_ext()
205 !IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES)) in alloc_node_page_ext()
212 MEMBLOCK_ALLOC_ACCESSIBLE, nid); in alloc_node_page_ext()
215 NODE_DATA(nid)->node_page_ext = base; in alloc_node_page_ext()
224 int nid, fail; in page_ext_init_flatmem() local
229 for_each_online_node(nid) { in page_ext_init_flatmem()
230 fail = alloc_node_page_ext(nid); in page_ext_init_flatmem()
266 static void *__meminit alloc_page_ext(size_t size, int nid) in alloc_page_ext() argument
[all …]
/linux/arch/sh/include/asm/
H A Dmmzone.h10 int nid; in pfn_to_nid() local
12 for (nid = 0; nid < MAX_NUMNODES; nid++) in pfn_to_nid()
13 if (pfn >= node_start_pfn(nid) && pfn <= node_end_pfn(nid)) in pfn_to_nid()
16 return nid; in pfn_to_nid()
25 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end);
28 setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument
37 void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
40 void __init allocate_pgdat(unsigned int nid);
/linux/drivers/of/
H A Dof_numa.c23 u32 nid; in of_numa_parse_cpu_nodes() local
28 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes()
32 pr_debug("CPU on %u\n", nid); in of_numa_parse_cpu_nodes()
33 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes()
34 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_cpu_nodes()
36 node_set(nid, numa_nodes_parsed); in of_numa_parse_cpu_nodes()
44 u32 nid; in of_numa_parse_memory_nodes() local
48 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes()
57 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes()
58 pr_warn("Node id %u exceeds maximum value\n", nid); in of_numa_parse_memory_nodes()
[all …]
/linux/arch/sh/mm/
H A Dnuma.c23 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument
28 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); in setup_bootmem_node()
38 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node()
41 NODE_DATA(nid) = memblock_alloc_node(sizeof(struct pglist_data), in setup_bootmem_node()
42 SMP_CACHE_BYTES, nid); in setup_bootmem_node()
43 if (!NODE_DATA(nid)) in setup_bootmem_node()
46 nid); in setup_bootmem_node()
48 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node()
49 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
52 node_set_online(nid); in setup_bootmem_node()

12345678910>>...12