Home
last modified time | relevance | path

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

12

/include/linux/
Dnode.h67 void node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs);
68 void node_set_perf_attrs(unsigned int nid, struct node_hmem_attrs *hmem_attrs,
71 static inline void node_add_cache(unsigned int nid, in node_add_cache() argument
76 static inline void node_set_perf_attrs(unsigned int nid, in node_set_perf_attrs() argument
96 void register_memory_blocks_under_node(int nid, unsigned long start_pfn,
100 static inline void register_memory_blocks_under_node(int nid, unsigned long start_pfn, in register_memory_blocks_under_node() argument
111 extern int __register_one_node(int nid);
114 static inline int register_one_node(int nid) in register_one_node() argument
118 if (node_online(nid)) { in register_one_node()
119 struct pglist_data *pgdat = NODE_DATA(nid); in register_one_node()
[all …]
Dlist_lru.h116 int nid, struct mem_cgroup *memcg);
117 unsigned long list_lru_count_node(struct list_lru *lru, int nid);
122 return list_lru_count_one(lru, sc->nid, sc->memcg); in list_lru_shrink_count()
128 int nid; in list_lru_count() local
130 for_each_node_state(nid, N_NORMAL_MEMORY) in list_lru_count()
131 count += list_lru_count_node(lru, nid); in list_lru_count()
166 int nid, struct mem_cgroup *memcg,
183 int nid, struct mem_cgroup *memcg,
186 unsigned long list_lru_walk_node(struct list_lru *lru, int nid,
194 return list_lru_walk_one(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk()
[all …]
Dmemory_hotplug.h29 extern pg_data_t *arch_alloc_nodedata(int nid);
30 extern void arch_refresh_nodedata(int nid, pg_data_t *pgdat);
34 #define arch_alloc_nodedata(nid) generic_alloc_nodedata(nid) argument
42 #define generic_alloc_nodedata(nid) \ argument
48 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) in arch_refresh_nodedata() argument
50 node_data[nid] = pgdat; in arch_refresh_nodedata()
56 static inline pg_data_t *generic_alloc_nodedata(int nid) in generic_alloc_nodedata() argument
61 static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) in arch_refresh_nodedata() argument
168 extern int try_online_node(int nid);
170 extern int arch_add_memory(int nid, u64 start, u64 size,
[all …]
Dmemblock.h64 int nid; member
111 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid,
137 void __next_mem_range(u64 *idx, int nid, enum memblock_flags flags,
142 void __next_mem_range_rev(u64 *idx, int nid, enum memblock_flags flags,
185 #define __for_each_mem_range(i, type_a, type_b, nid, flags, \ argument
187 for (i = 0, __next_mem_range(&i, nid, flags, type_a, type_b, \
190 __next_mem_range(&i, nid, flags, type_a, type_b, \
205 #define __for_each_mem_range_rev(i, type_a, type_b, nid, flags, \ argument
208 __next_mem_range_rev(&i, nid, flags, type_a, type_b, \
211 __next_mem_range_rev(&i, nid, flags, type_a, type_b, \
[all …]
Dgfp.h164 static inline struct zonelist *node_zonelist(int nid, gfp_t flags) in node_zonelist() argument
166 return NODE_DATA(nid)->node_zonelists + gfp_zonelist(flags); in node_zonelist()
204 alloc_pages_bulk_array_node(gfp_t gfp, int nid, unsigned long nr_pages, struct page **page_array) in alloc_pages_bulk_array_node() argument
206 if (nid == NUMA_NO_NODE) in alloc_pages_bulk_array_node()
207 nid = numa_mem_id(); in alloc_pages_bulk_array_node()
209 return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, NULL, page_array); in alloc_pages_bulk_array_node()
231 __alloc_pages_node(int nid, gfp_t gfp_mask, unsigned int order) in __alloc_pages_node() argument
233 VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); in __alloc_pages_node()
234 warn_if_node_offline(nid, gfp_mask); in __alloc_pages_node()
236 return __alloc_pages(gfp_mask, order, nid, NULL); in __alloc_pages_node()
[all …]
Dmemory.h53 int nid; member
72 int nid; /* NID for this memory block */ member
157 extern int memory_group_register_static(int nid, unsigned long max_pages);
158 extern int memory_group_register_dynamic(int nid, unsigned long unit_pages);
162 int walk_dynamic_memory_groups(int nid, walk_memory_groups_func_t func,
173 void memory_block_add_nid(struct memory_block *mem, int nid,
Dcompaction.h180 extern void kcompactd_run(int nid);
181 extern void kcompactd_stop(int nid);
217 static inline void kcompactd_run(int nid) in kcompactd_run() argument
220 static inline void kcompactd_stop(int nid) in kcompactd_stop() argument
Dgenalloc.h102 phys_addr_t phys, size_t size, int nid) in gen_pool_add_virt() argument
104 return gen_pool_add_owner(pool, addr, phys, size, nid, NULL); in gen_pool_add_virt()
120 size_t size, int nid) in gen_pool_add() argument
122 return gen_pool_add_virt(pool, addr, -1, size, nid); in gen_pool_add()
206 int min_alloc_order, int nid, const char *name);
Dnodemask.h446 static inline unsigned int next_online_node(int nid) in next_online_node() argument
448 return next_node(nid, node_states[N_ONLINE]); in next_online_node()
450 static inline unsigned int next_memory_node(int nid) in next_memory_node() argument
452 return next_node(nid, node_states[N_MEMORY]); in next_memory_node()
458 static inline void node_set_online(int nid) in node_set_online() argument
460 node_set_state(nid, N_ONLINE); in node_set_online()
464 static inline void node_set_offline(int nid) in node_set_offline() argument
466 node_clear_state(nid, N_ONLINE); in node_set_offline()
495 #define next_online_node(nid) (MAX_NUMNODES) argument
496 #define next_memory_node(nid) (MAX_NUMNODES) argument
Dmmzone.h1358 #define node_present_pages(nid) (NODE_DATA(nid)->node_present_pages) argument
1359 #define node_spanned_pages(nid) (NODE_DATA(nid)->node_spanned_pages) argument
1361 #define node_start_pfn(nid) (NODE_DATA(nid)->node_start_pfn) argument
1362 #define node_end_pfn(nid) pgdat_end_pfn(NODE_DATA(nid)) argument
1451 static inline void zone_set_nid(struct zone *zone, int nid) in zone_set_nid() argument
1453 zone->node = nid; in zone_set_nid()
1461 static inline void zone_set_nid(struct zone *zone, int nid) {} in zone_set_nid() argument
1522 static inline struct pglist_data *NODE_DATA(int nid) in NODE_DATA() argument
1675 int nid; in movable_only_nodes() local
1685 nid = first_node(*nodes); in movable_only_nodes()
[all …]
Dshrinker.h16 int nid; member
Dcma.h38 int nid);
Df2fs_fs.h250 __le32 nid; /* node id */ member
349 __le32 nid[NIDS_PER_BLOCK]; /* array of data block address */ member
448 __le32 nid; /* parent node id */ member
493 __le32 nid; member
/include/sound/
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 …]
Dhda_codec.h118 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
120 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
144 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */ member
271 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
276 struct hda_codec *codec, hda_nid_t nid);
328 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read() argument
332 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read()
336 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write() argument
339 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write()
342 #define snd_hda_param_read(codec, nid, param) \ argument
[all …]
Dhda_component.h17 int snd_hdac_sync_audio_rate(struct hdac_device *codec, hda_nid_t nid,
19 int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id,
38 hda_nid_t nid, int dev_id, int rate) in snd_hdac_sync_audio_rate() argument
42 static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_acomp_get_eld() argument
Dhda_hwdep.h17 #define HDA_VERB(nid,verb,param) ((nid)<<24 | (verb)<<8 | (param)) argument
Dhdaudio.h130 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
132 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
134 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
136 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
138 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
140 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
147 int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
149 bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
152 int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
154 int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid,
[all …]
/include/trace/events/
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 )
79 __entry->nid = nid;
85 __entry->nid,
[all …]
Dcompaction.h190 __field(int, nid)
197 __entry->nid = zone_to_nid(zone);
204 __entry->nid,
235 __field(int, nid)
244 __entry->nid = zone_to_nid(zone);
253 __entry->nid,
284 TP_PROTO(int nid),
286 TP_ARGS(nid),
289 __field(int, nid)
293 __entry->nid = nid;
[all …]
Derofs.h14 #define show_dev_nid(entry) show_dev(entry->dev), entry->nid
37 __field(erofs_nid_t, nid )
44 __entry->nid = EROFS_I(dir)->nid;
61 __field(erofs_nid_t, nid )
68 __entry->nid = EROFS_I(inode)->nid;
86 __field(erofs_nid_t, nid )
95 __entry->nid = EROFS_I(page->mapping->host)->nid;
120 __field(erofs_nid_t, nid )
128 __entry->nid = EROFS_I(inode)->nid;
149 __field( erofs_nid_t, nid )
[all …]
Df2fs.h374 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs, int free),
376 TP_ARGS(inode, nid, ofs, free),
381 __field(nid_t, nid)
389 __entry->nid = nid;
396 (unsigned int)__entry->nid,
461 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr),
463 TP_ARGS(inode, nid, blk_addr),
468 __field(nid_t, nid)
475 __entry->nid = nid;
481 (unsigned int)__entry->nid,
[all …]
/include/trace/hooks/
Dvmscan.h16 TP_PROTO(int nid, bool *skip, bool run),
17 TP_ARGS(nid, skip, run));
19 TP_PROTO(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority, bool *bypass),
20 TP_ARGS(gfp_mask, nid, memcg, priority, bypass));
/include/asm-generic/
Dnuma.h37 void __init early_map_cpu_to_node(unsigned int cpu, int nid);
49 static inline void early_map_cpu_to_node(unsigned int cpu, int nid) { } in early_map_cpu_to_node() argument
/include/net/
Dpage_pool.h79 int nid; /* Numa node id to allocate from pages from */ member
385 if (unlikely(pool->p.nid != new_nid)) in page_pool_nid_changed()

12